[Pkg-javascript-commits] [node-text-encoding] 01/07: New upstream version 0.6.4

Julien Puydt julien.puydt at laposte.net
Wed Jan 11 09:00:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository node-text-encoding.

commit dd8faa4b2fe77635bf08b96b462073713b38dfd7
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Tue Jan 10 20:07:22 2017 +0100

    New upstream version 0.6.4
---
 bower.json              |  2 +-
 lib/encoding-indexes.js | 12 ++++++++++--
 lib/encoding.js         | 18 +++++++++++-------
 package.json            |  2 +-
 4 files changed, 23 insertions(+), 11 deletions(-)

diff --git a/bower.json b/bower.json
index ef72a42..9554ef8 100644
--- a/bower.json
+++ b/bower.json
@@ -1,6 +1,6 @@
 {
   "name": "text-encoding",
-  "version": "0.6.1",
+  "version": "0.6.4",
   "homepage": "https://github.com/inexorabletash/text-encoding",
   "authors": [
     "Joshua Bell <inexorabletash at gmail.com>",
diff --git a/lib/encoding-indexes.js b/lib/encoding-indexes.js
index 5fd98f5..4f170c3 100644
--- a/lib/encoding-indexes.js
+++ b/lib/encoding-indexes.js
@@ -1,5 +1,10 @@
 (function(global) {
   'use strict';
+
+  if (typeof module !== "undefined" && module.exports) {
+    module.exports = global;
+  }
+
   global["encoding-indexes"] =
 {
   "big5":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,nu [...]
@@ -35,5 +40,8 @@
   "windows-1257":[8364,129,8218,131,8222,8230,8224,8225,136,8240,138,8249,140,168,711,184,144,8216,8217,8220,8221,8226,8211,8212,152,8482,154,8250,156,175,731,159,160,null,162,163,164,null,166,167,216,169,342,171,172,173,174,198,176,177,178,179,180,181,182,183,248,185,343,187,188,189,190,230,260,302,256,262,196,197,280,274,268,201,377,278,290,310,298,315,352,323,325,211,332,213,214,215,370,321,346,362,220,379,381,223,261,303,257,263,228,229,281,275,269,233,378,279,291,311,299,316,353,324 [...]
   "windows-1258":[8364,129,8218,402,8222,8230,8224,8225,710,8240,138,8249,338,141,142,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,154,8250,339,157,158,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,258,196,197,198,199,200,201,202,203,768,205,206,207,272,209,777,211,212,416,214,215,216,217,218,219,220,431,771,223,224,225,226,259,228,229,230,231,232,233,234,235,769,237,238,239,273,241,8 [...]
   "x-mac-cyrillic":[1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,8224,176,1168,163,167,8226,182,1030,174,169,8482,1026,1106,8800,1027,1107,8734,177,8804,8805,1110,181,1169,1032,1028,1108,1031,1111,1033,1113,1034,1114,1112,1029,172,8730,402,8776,8710,171,187,8230,160,1035,1115,1036,1116,1109,8211,8212,8220,8221,8216,8217,247,8222,1038,1118,1039,1119,8470,1025,1105,1103,1072,1 [...]
-}
-;}(this));
+};
+
+// For strict environments where `this` inside the global scope
+// is `undefined`, take a pure object instead
+}(this || {}));
\ No newline at end of file
diff --git a/lib/encoding.js b/lib/encoding.js
index b5c8904..13aca2c 100644
--- a/lib/encoding.js
+++ b/lib/encoding.js
@@ -1,19 +1,20 @@
 // This is free and unencumbered software released into the public domain.
 // See LICENSE.md for more information.
 
-// If we're in node require encoding-indexes and attach it to the global.
 /**
  * @fileoverview Global |this| required for resolving indexes in node.
  * @suppress {globalThis}
  */
-if (typeof module !== "undefined" && module.exports &&
-    !this["encoding-indexes"]) {
-    require("./encoding-indexes.js");
-}
-
 (function(global) {
   'use strict';
 
+  // If we're in node require encoding-indexes and attach it to the global.
+  if (typeof module !== "undefined" && module.exports &&
+    !global["encoding-indexes"]) {
+    global["encoding-indexes"] =
+      require("./encoding-indexes.js")["encoding-indexes"];
+  }
+
   //
   // Utilities
   //
@@ -3306,4 +3307,7 @@ if (typeof module !== "undefined" && module.exports &&
       EncodingIndexes: global["encoding-indexes"]
     };
   }
-}(this));
+
+// For strict environments where `this` inside the global scope
+// is `undefined`, take a pure object instead
+}(this || {}));
\ No newline at end of file
diff --git a/package.json b/package.json
index 7707c1b..5e8e66f 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
     "Pierre Queinnec <pierre at queinnec.org>",
     "Zack Weinberg <zackw at panix.com>"
   ],
-  "version": "0.6.2",
+  "version": "0.6.4",
   "description": "Polyfill for the Encoding Living Standard's API.",
   "main": "index.js",
   "files": [

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-text-encoding.git



More information about the Pkg-javascript-commits mailing list