From e55844bbaf16874cc5ac45746fb7c7a87048f702 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 25 Jan 2016 10:21:15 -0500 Subject: [PATCH] punycode: update to v1.4.0 --- lib/punycode.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/punycode.js b/lib/punycode.js index 51aa75132937d5..0b4f5da351e7dc 100644 --- a/lib/punycode.js +++ b/lib/punycode.js @@ -1,4 +1,4 @@ -/*! https://mths.be/punycode v1.3.2 by @mathias */ +/*! https://mths.be/punycode v1.4.0 by @mathias */ ;(function(root) { /** Detect free variables */ @@ -516,14 +516,17 @@ 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; }