perl-net-dns-resolver-programmable used the undocumented and internal method Net::DNS::rcodesbyname [0], and that interface is no longer exposed. This patch, copied from [1], makes the program check for the existence of the method before trying to use it. [0] [1] diff --git a/lib/Net/DNS/Resolver/Programmable.pm b/lib/Net/DNS/Resolver/Programmable.pm index 1af72ce..e09a2f0 100644 --- a/lib/Net/DNS/Resolver/Programmable.pm +++ b/lib/Net/DNS/Resolver/Programmable.pm @@ -203,8 +203,10 @@ sub send { if (defined(my $resolver_code = $self->{resolver_code})) { ($result, $aa, @answer_rrs) = $resolver_code->($domain, $rr_type, $class); } - - if (not defined($result) or defined($Net::DNS::rcodesbyname{$result})) { + + if (not defined($result) + or defined($Net::DNS::Parameters::rcodebyname{$result}) + or defined($Net::DNS::rcodesbyname{$result})) { # Valid RCODE, return a packet: $aa = TRUE if not defined($aa); >
aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKosei Kitahara <surgo.jp@gmail.com>2015-07-28 21:36:22 +0900
committerKosei Kitahara <surgo.jp@gmail.com>2015-07-28 21:36:22 +0900
commit8108c7ffafac2eff8b9d9d263f6f6b89ed13c003 (patch)
tree4fe396de76eb9fd59f93768102b52676c54a1313 /tools
parentba9936a5725f35c3d3452bf3aeba4055de1a1071 (diff)
downloadtracifyjs-8108c7ffafac2eff8b9d9d263f6f6b89ed13c003.tar.gz
tracifyjs-8108c7ffafac2eff8b9d9d263f6f6b89ed13c003.zip
Support wrap and exportAll options.
Diffstat (limited to 'tools')
-rw-r--r--tools/node.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/node.js b/tools/node.js
index cbe49e39..7bba3231 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -84,6 +84,9 @@ exports.minify = function(files, options) {
});
});
}
+ if (options.wrap) {
+ toplevel = toplevel.wrap_commonjs(options.wrap, options.exportAll);
+ }
// 2. compress
if (options.compress) {