Socket
Socket
Sign inDemoInstall

iconv-lite

Package Overview
Dependencies
0
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.13 to 0.4.14

lib/index.d.ts

10

Changelog.md
# 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

@@ -3,0 +13,0 @@

22

encodings/dbcs-data.js

@@ -41,3 +41,2 @@ "use strict"

'shiftjis': {

@@ -53,4 +52,6 @@ type: '_dbcs',

'windows31j': 'shiftjis',
'ms31j': 'shiftjis',
'xsjis': 'shiftjis',
'windows932': 'shiftjis',
'ms932': 'shiftjis',
'932': 'shiftjis',

@@ -69,4 +70,6 @@ 'cp932': 'shiftjis',

// == Chinese/GBK ==========================================================
// http://en.wikipedia.org/wiki/GBK
// We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder

@@ -80,7 +83,6 @@ // Oldest GB2312 (1981, ~7600 chars) is a subset of 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',

@@ -98,4 +100,9 @@ 'cp936': {

'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': {

@@ -105,2 +112,4 @@ type: '_dbcs',

gb18030: function() { return require('./tables/gb18030-ranges.json') },
encodeSkipVals: [0x80],
encodeAdd: {'€': 0xA2E3},
},

@@ -110,6 +119,2 @@

// 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

@@ -119,2 +124,3 @@ // == Korean ===============================================================

'windows949': 'cp949',
'ms949': 'cp949',
'949': 'cp949',

@@ -160,2 +166,3 @@ 'cp949': {

'windows950': 'cp950',
'ms950': 'cp950',
'950': 'cp950',

@@ -178,3 +185,2 @@ 'cp950': {

'xxbig5': 'big5hkscs',
};
"use strict"
// Note: UTF16-LE (or UCS2) codec is Node.js native. See encodings/internal.js
// == UTF16-BE codec. ==========================================================

@@ -4,0 +6,0 @@

{
"name": "iconv-lite",
"description": "Convert character encodings in pure javascript.",
"version": "0.4.13",
"version": "0.4.14",
"license": "MIT",

@@ -25,2 +25,3 @@

"main": "./lib/index.js",
"typings": "./lib/index.d.ts",
"homepage": "https://github.com/ashtuchkin/iconv-lite",

@@ -33,3 +34,3 @@ "bugs": "https://github.com/ashtuchkin/iconv-lite/issues",

"engines": {
"node": ">=0.8.0"
"node": ">=0.10.0"
},

@@ -47,3 +48,3 @@ "scripts": {

"mocha": "*",
"request": "2.47",
"request": "*",
"unorm": "*",

@@ -53,4 +54,4 @@ "errto": "*",

"istanbul": "*",
"iconv": "2.1"
"iconv": "*"
}
}

@@ -11,2 +11,3 @@ ## Pure JS character encoding conversion [![Build Status](https://travis-ci.org/ashtuchkin/iconv-lite.svg?branch=master)](https://travis-ci.org/ashtuchkin/iconv-lite)

* 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.

@@ -124,2 +125,3 @@

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.

@@ -159,2 +161,2 @@

[![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)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc