Skip to content

Commit 193b452

Browse files
committed
punycode: update to 1.4.1
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:
1 parent a15906c commit 193b452

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lib/punycode.js

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! https://mths.be/punycode v1.3.2 by @mathias */
1+
/*! https://mths.be/punycode v1.4.1 by @mathias */
22
;(function(root) {
33

44
/** Detect free variables */
@@ -486,7 +486,7 @@
486486
* @memberOf punycode
487487
* @type String
488488
*/
489-
'version': '1.3.2',
489+
'version': '1.4.1',
490490
/**
491491
* An object of methods to convert from JavaScript's internal character
492492
* representation (UCS-2) to Unicode code points, and back.
@@ -516,15 +516,18 @@
516516
return punycode;
517517
});
518518
} else if (freeExports && freeModule) {
519-
if (module.exports == freeExports) { // in Node.js or RingoJS v0.8.0+
519+
if (module.exports == freeExports) {
520+
// in Node.js, io.js, or RingoJS v0.8.0+
520521
freeModule.exports = punycode;
521-
} else { // in Narwhal or RingoJS v0.7.0-
522+
} else {
523+
// in Narwhal or RingoJS v0.7.0-
522524
for (key in punycode) {
523525
punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);
524526
}
525527
}
526-
} else { // in Rhino or a web browser
528+
} else {
529+
// in Rhino or a web browser
527530
root.punycode = punycode;
528531
}
529532

530-
}(this));
533+
}(this));

0 commit comments

Comments
 (0)