Skip to content

Commit

Permalink
punycode: update to 1.4.1
Browse files Browse the repository at this point in the history
Update punycode to the latest released version. This is mainly in
order to further reduce the maintenance burden. In
nodejs#1246 a fix introducing `new` to
errors was introduced and it has since been ported back to the
punycode library.

This puts Node back in sync with the library itself so it can receive
future fixes and updates directly.

PR-URL:
Reviewed-By:
Reviewed-By:
  • Loading branch information
benjamingr committed Mar 27, 2016
1 parent a15906c commit 193b452
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/punycode.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! https://mths.be/punycode v1.3.2 by @mathias */
/*! https://mths.be/punycode v1.4.1 by @mathias */
;(function(root) {

/** Detect free variables */
Expand Down Expand Up @@ -486,7 +486,7 @@
* @memberOf punycode
* @type String
*/
'version': '1.3.2',
'version': '1.4.1',
/**
* An object of methods to convert from JavaScript's internal character
* representation (UCS-2) to Unicode code points, and back.
Expand Down Expand Up @@ -516,15 +516,18 @@
return punycode;
});
} else if (freeExports && freeModule) {
if (module.exports == freeExports) { // in Node.js or RingoJS v0.8.0+
if (module.exports == freeExports) {
// in Node.js, io.js, or RingoJS v0.8.0+
freeModule.exports = punycode;
} else { // in Narwhal or RingoJS v0.7.0-
} else {
// in Narwhal or RingoJS v0.7.0-
for (key in punycode) {
punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);
}
}
} else { // in Rhino or a web browser
} else {
// in Rhino or a web browser
root.punycode = punycode;
}

}(this));
}(this));

0 comments on commit 193b452

Please sign in to comment.