aboutsummaryrefslogtreecommitdiff
path: root/node_modules/iconv-lite
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-04-20 03:09:25 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-04-24 16:14:29 +0200
commit82f2b76e25a4a67e01ec67e5ebe39d14ad771ea8 (patch)
tree965f6eb89b84d65a62b49008fd972c004832ccd1 /node_modules/iconv-lite
parente6e0cbc387c2a77b48e4065c229daa65bf1aa0fa (diff)
downloadwallet-core-82f2b76e25a4a67e01ec67e5ebe39d14ad771ea8.tar.xz
Reorganize module loading.
We now use webpack instead of SystemJS, effectively bundling modules into one file (plus commons chunks) for every entry point. This results in a much smaller extension size (almost half). Furthermore we use yarn/npm even for extension run-time dependencies. This relieves us from manually vendoring and building dependencies. It's also easier to understand for new developers familiar with node.
Diffstat (limited to 'node_modules/iconv-lite')
-rw-r--r--node_modules/iconv-lite/.travis.yml14
-rw-r--r--node_modules/iconv-lite/Changelog.md15
-rw-r--r--node_modules/iconv-lite/README.md4
-rw-r--r--node_modules/iconv-lite/encodings/dbcs-data.js22
-rw-r--r--node_modules/iconv-lite/encodings/utf16.js2
-rw-r--r--node_modules/iconv-lite/package.json9
6 files changed, 47 insertions, 19 deletions
diff --git a/node_modules/iconv-lite/.travis.yml b/node_modules/iconv-lite/.travis.yml
index f5343f193..0e82b1e83 100644
--- a/node_modules/iconv-lite/.travis.yml
+++ b/node_modules/iconv-lite/.travis.yml
@@ -1,14 +1,17 @@
sudo: false
- env:
- - CXX=g++-4.8
language: node_js
node_js:
- - "0.8"
- "0.10"
- "0.11"
- "0.12"
- "iojs"
- - "4.0"
+ - "4"
+ - "6"
+ - "node"
+
+
+ env:
+ - CXX=g++-4.8
addons:
apt:
sources:
@@ -16,5 +19,4 @@
packages:
- gcc-4.8
- g++-4.8
- before_install:
- - "test $TRAVIS_NODE_VERSION != '0.8' || npm install -g npm@1.2.8000"
+
diff --git a/node_modules/iconv-lite/Changelog.md b/node_modules/iconv-lite/Changelog.md
index 421b1e2db..7471505bb 100644
--- a/node_modules/iconv-lite/Changelog.md
+++ b/node_modules/iconv-lite/Changelog.md
@@ -1,4 +1,19 @@
+# 0.4.15 / 2016-11-21
+
+ * Fixed typescript type definition (#137)
+
+
+# 0.4.14 / 2016-11-20
+
+ * Preparation for v1.0
+ * Added Node v6 and latest Node versions to Travis CI test rig
+ * Deprecated Node v0.8 support
+ * Typescript typings (@larssn)
+ * Fix encoding of Euro character in GB 18030 (inspired by @lygstate)
+ * Add ms prefix to dbcs windows encodings (@rokoroku)
+
+
# 0.4.13 / 2015-10-01
* Fix silly mistake in deprecation notice.
diff --git a/node_modules/iconv-lite/README.md b/node_modules/iconv-lite/README.md
index 160b7cf65..07955de2b 100644
--- a/node_modules/iconv-lite/README.md
+++ b/node_modules/iconv-lite/README.md
@@ -8,6 +8,7 @@
* Streaming support for Node v0.10+
* [Deprecated] Can extend Node.js primitives (buffers, streams) to support all iconv-lite encodings.
* In-browser usage via [Browserify](https://github.com/substack/node-browserify) (~180k gzip compressed with Buffer shim included).
+ * Typescript [type definition file](https://github.com/ashtuchkin/iconv-lite/blob/master/lib/index.d.ts) included.
* License: MIT.
[![NPM Stats](https://nodei.co/npm/iconv-lite.png?downloads=true&downloadRank=true)](https://npmjs.org/packages/iconv-lite/)
@@ -120,6 +121,7 @@ Note: your results may vary, so please always check on your hardware.
* Decoding: BOM is stripped by default, unless overridden by passing `stripBOM: false` in options
(f.ex. `iconv.decode(buf, enc, {stripBOM: false})`).
A callback might also be given as a `stripBOM` parameter - it'll be called if BOM character was actually found.
+ * If you want to detect UTF-8 BOM when decoding other encodings, use [node-autodetect-decoder-stream](https://github.com/danielgindi/node-autodetect-decoder-stream) module.
* Encoding: No BOM added, unless overridden by `addBOM: true` option.
## UTF-16 Encodings
@@ -154,4 +156,4 @@ $ open coverage/lcov-report/index.html
## Adoption
[![NPM](https://nodei.co/npm-dl/iconv-lite.png)](https://nodei.co/npm/iconv-lite/)
-[![Codeship Status for ashtuchkin/iconv-lite](https://www.codeship.io/projects/81670840-fa72-0131-4520-4a01a6c01acc/status)](https://www.codeship.io/projects/29053)
+[![Codeship Status for ashtuchkin/iconv-lite](https://www.codeship.com/projects/81670840-fa72-0131-4520-4a01a6c01acc/status)](https://www.codeship.com/projects/29053)
diff --git a/node_modules/iconv-lite/encodings/dbcs-data.js b/node_modules/iconv-lite/encodings/dbcs-data.js
index 2bf741528..a9e719b39 100644
--- a/node_modules/iconv-lite/encodings/dbcs-data.js
+++ b/node_modules/iconv-lite/encodings/dbcs-data.js
@@ -38,7 +38,6 @@ module.exports = {
//
// Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html
-
'shiftjis': {
type: '_dbcs',
table: function() { return require('./tables/shiftjis.json') },
@@ -49,8 +48,10 @@ module.exports = {
'mskanji': 'shiftjis',
'sjis': 'shiftjis',
'windows31j': 'shiftjis',
+ 'ms31j': 'shiftjis',
'xsjis': 'shiftjis',
'windows932': 'shiftjis',
+ 'ms932': 'shiftjis',
'932': 'shiftjis',
'cp932': 'shiftjis',
@@ -64,8 +65,10 @@ module.exports = {
// TODO: IBM CCSID 942 = CP932, but F0-F9 custom chars and other char changes.
// TODO: IBM CCSID 943 = Shift_JIS = CP932 with original Shift_JIS lower 128 chars.
+
// == Chinese/GBK ==========================================================
// http://en.wikipedia.org/wiki/GBK
+ // We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder
// Oldest GB2312 (1981, ~7600 chars) is a subset of CP936
'gb2312': 'cp936',
@@ -74,11 +77,10 @@ module.exports = {
'csgb2312': 'cp936',
'csiso58gb231280': 'cp936',
'euccn': 'cp936',
- 'isoir58': 'gbk',
// Microsoft's CP936 is a subset and approximation of GBK.
- // TODO: Euro = 0x80 in cp936, but not in GBK (where it's valid but undefined)
'windows936': 'cp936',
+ 'ms936': 'cp936',
'936': 'cp936',
'cp936': {
type: '_dbcs',
@@ -91,24 +93,28 @@ module.exports = {
table: function() { return require('./tables/cp936.json').concat(require('./tables/gbk-added.json')) },
},
'xgbk': 'gbk',
+ 'isoir58': 'gbk',
// GB18030 is an algorithmic extension of GBK.
+ // Main source: https://www.w3.org/TR/encoding/#gbk-encoder
+ // http://icu-project.org/docs/papers/gb18030.html
+ // http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml
+ // http://www.khngai.com/chinese/charmap/tblgbk.php?page=0
'gb18030': {
type: '_dbcs',
table: function() { return require('./tables/cp936.json').concat(require('./tables/gbk-added.json')) },
gb18030: function() { return require('./tables/gb18030-ranges.json') },
+ encodeSkipVals: [0x80],
+ encodeAdd: {'€': 0xA2E3},
},
'chinese': 'gb18030',
- // TODO: Support GB18030 (~27000 chars + whole unicode mapping, cp54936)
- // http://icu-project.org/docs/papers/gb18030.html
- // http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml
- // http://www.khngai.com/chinese/charmap/tblgbk.php?page=0
// == Korean ===============================================================
// EUC-KR, KS_C_5601 and KS X 1001 are exactly the same.
'windows949': 'cp949',
+ 'ms949': 'cp949',
'949': 'cp949',
'cp949': {
type: '_dbcs',
@@ -149,6 +155,7 @@ module.exports = {
// Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong.
'windows950': 'cp950',
+ 'ms950': 'cp950',
'950': 'cp950',
'cp950': {
type: '_dbcs',
@@ -166,5 +173,4 @@ module.exports = {
'cnbig5': 'big5hkscs',
'csbig5': 'big5hkscs',
'xxbig5': 'big5hkscs',
-
};
diff --git a/node_modules/iconv-lite/encodings/utf16.js b/node_modules/iconv-lite/encodings/utf16.js
index 399f55159..ac47a66d1 100644
--- a/node_modules/iconv-lite/encodings/utf16.js
+++ b/node_modules/iconv-lite/encodings/utf16.js
@@ -1,5 +1,7 @@
"use strict"
+// Note: UTF16-LE (or UCS2) codec is Node.js native. See encodings/internal.js
+
// == UTF16-BE codec. ==========================================================
exports.utf16be = Utf16BECodec;
diff --git a/node_modules/iconv-lite/package.json b/node_modules/iconv-lite/package.json
index 826225ee3..a39a7e310 100644
--- a/node_modules/iconv-lite/package.json
+++ b/node_modules/iconv-lite/package.json
@@ -1,7 +1,7 @@
{
"name": "iconv-lite",
"description": "Convert character encodings in pure javascript.",
- "version": "0.4.13",
+ "version": "0.4.15",
"license": "MIT",
"keywords": ["iconv", "convert", "charset", "icu"],
@@ -22,6 +22,7 @@
],
"main": "./lib/index.js",
+ "typings": "./lib/index.d.ts",
"homepage": "https://github.com/ashtuchkin/iconv-lite",
"bugs": "https://github.com/ashtuchkin/iconv-lite/issues",
"repository": {
@@ -29,7 +30,7 @@
"url": "git://github.com/ashtuchkin/iconv-lite.git"
},
"engines": {
- "node": ">=0.8.0"
+ "node": ">=0.10.0"
},
"scripts": {
"coverage": "istanbul cover _mocha -- --grep .",
@@ -42,11 +43,11 @@
},
"devDependencies": {
"mocha": "*",
- "request": "2.47",
+ "request": "*",
"unorm": "*",
"errto": "*",
"async": "*",
"istanbul": "*",
- "iconv": "2.1"
+ "iconv": "*"
}
}