tiny-pinyin
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -49,6 +49,5 @@ 'use strict'; | ||
source: ch | ||
}; | ||
// First check EXCEPTIONS map, then search with UNIHANS table. | ||
if (ch in EXCEPTIONS) { | ||
// First check EXCEPTIONS map, then search with UNIHANS table. | ||
};if (ch in EXCEPTIONS) { | ||
token.type = PINYIN; | ||
@@ -55,0 +54,0 @@ token.target = EXCEPTIONS[ch]; |
@@ -22,6 +22,6 @@ 'use strict'; | ||
'\u94B6': 'KE' // 钶 | ||
}; | ||
// Update UNIHANS dict. | ||
DICT.UNIHANS[91] = '\u4F15'; // FU: 夫 --> 伕 | ||
// Update UNIHANS dict. | ||
};DICT.UNIHANS[91] = '\u4F15'; // FU: 夫 --> 伕 | ||
DICT.UNIHANS[347] = '\u4EDA'; // XIAN: 仙 --> 仚 | ||
@@ -28,0 +28,0 @@ DICT.UNIHANS[393] = '\u8BCC'; // ZHOU: 州 --> 诌 |
{ | ||
"name": "tiny-pinyin", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "convert hanzi to pinyin", | ||
@@ -17,29 +17,29 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"autoprefixer": "^7.0.1", | ||
"babel-cli": "^6.24.1", | ||
"babel-loader": "^7.0.0", | ||
"autoprefixer": "^7.2.6", | ||
"babel-cli": "^6.26.0", | ||
"babel-loader": "^7.1.5", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-power-assert": "^1.0.0", | ||
"css-loader": "^0.28.1", | ||
"eslint": "^3.19.0", | ||
"css-loader": "^0.28.11", | ||
"eslint": "^4.19.1", | ||
"eslint-config-standard": "^10.2.1", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-node": "^4.2.2", | ||
"eslint-plugin-promise": "^3.5.0", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"extract-text-webpack-plugin": "^2.1.0", | ||
"full-icu": "^1.0.3", | ||
"html-webpack-plugin": "^2.28.0", | ||
"karma": "^1.7.0", | ||
"karma-chrome-launcher": "^2.1.1", | ||
"karma-firefox-launcher": "^1.0.1", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-node": "^4.2.3", | ||
"eslint-plugin-promise": "^3.8.0", | ||
"eslint-plugin-standard": "^3.1.0", | ||
"extract-text-webpack-plugin": "^2.1.2", | ||
"full-icu": "^1.3.1", | ||
"html-webpack-plugin": "^2.30.1", | ||
"karma": "^1.7.1", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-firefox-launcher": "^1.3.0", | ||
"karma-mocha": "^1.3.0", | ||
"karma-safari-launcher": "^1.0.0", | ||
"karma-sauce-launcher": "^1.1.0", | ||
"karma-webpack": "^2.0.3", | ||
"mocha": "^3.3.0", | ||
"postcss-loader": "^2.0.5", | ||
"power-assert": "^1.4.2", | ||
"karma-sauce-launcher": "^1.2.0", | ||
"karma-webpack": "^2.0.13", | ||
"mocha": "^3.5.3", | ||
"postcss-loader": "^2.1.6", | ||
"power-assert": "^1.6.1", | ||
"style-loader": "^0.17.0", | ||
"webpack": "^2.4.1" | ||
"webpack": "^2.7.0" | ||
}, | ||
@@ -46,0 +46,0 @@ "scripts": { |
@@ -11,4 +11,3 @@ # tiny-pinyin [![Build Status](https://travis-ci.org/creeperyang/pinyin.svg?branch=master)](https://travis-ci.org/creeperyang/pinyin) [![npm version](https://badge.fury.io/js/tiny-pinyin.svg)](https://badge.fury.io/js/tiny-pinyin) [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fcreeperyang%2Fpinyin.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fcreeperyang%2Fpinyin?ref=badge_shield) | ||
2. 可以轻松处理 **6763** 个的常用汉字,其它汉字未测试,但应该有相当正确率,欢迎测试。 | ||
3. 同时支持 **`node.js (4-12)` 和 浏览器 (safari/chrome/firefox/android 6+/ios)** 。 | ||
- 但是travis配置将逐渐删除过时的node版本,也推荐使用在维护期的正式node版本。 | ||
3. 同时支持 **`node.js (4-latest)` 和 浏览器 (safari/chrome/firefox/android 6+/ios)** 。 | ||
@@ -44,2 +43,8 @@ **注意:不支持多音字;`ie/edge` 测试未通过。** | ||
### Important: node 13+ support full icu by default | ||
node 13 开始,node 默认开始完整的ICU支持,意味着我们不必再安装 `full-icu`。 | ||
详情看<https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V13.md#notable-changes-16>。 | ||
## Demo | ||
@@ -46,0 +51,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42185
113
752