Skip to content

Commit

Permalink
punycode: update to v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cjihrig committed Jan 25, 2016
1 parent accd69e commit e55844b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 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.0 by @mathias */
;(function(root) {

/** Detect free variables */
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit e55844b

Please sign in to comment.