transliteration
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -84,2 +84,3 @@ "use strict"; | ||
for (const key in option) { | ||
/* istanbul ignore else */ | ||
if (Object.prototype.hasOwnProperty.call(option, key)) { | ||
@@ -128,2 +129,3 @@ replaceArr.push([key, option[key]]); | ||
for (const from in data) { | ||
/* istanbul ignore else */ | ||
if (Object.prototype.hasOwnProperty.call(data, from) && from.length < 3 && from <= '\udbff\udfff') { | ||
@@ -130,0 +132,0 @@ this.map[from] = data[from]; |
@@ -38,2 +38,3 @@ "use strict"; | ||
for (const key in obj) { | ||
/* istanbul ignore else */ | ||
if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
@@ -40,0 +41,0 @@ clonedObj[key] = deepClone(obj[key]); |
{ | ||
"name": "transliteration", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Unicode to ACSII transliteration / slugify module for node.js, browser, Web Worker, ReactNative and CLI.", | ||
@@ -5,0 +5,0 @@ "main": "dist/node/src/node/index.js", |
@@ -6,3 +6,3 @@ # Transliteration | ||
[![Dev Dependencies](https://img.shields.io/david/dev/dzcpy/transliteration.svg)](https://github.com/dzcpy/transliteration/blob/master/package.json) | ||
[![Coverage Status](https://img.shields.io/codecov/c/github/dzcpy/transliteration.svg)](https://coveralls.io/github/dzcpy/transliteration?branch=master) | ||
[![Coverage Status](https://coveralls.io/repos/github/dzcpy/transliteration/badge.svg?branch=master)](https://coveralls.io/github/dzcpy/transliteration?branch=master) | ||
[![NPM Version](https://img.shields.io/npm/v/transliteration.svg)](https://www.npmjs.com/package/transliteration) | ||
@@ -114,3 +114,3 @@ [![NPM Download](https://img.shields.io/npm/dm/transliteration.svg)](https://www.npmjs.com/package/transliteration) | ||
### transliterate.config([optionsObj])__ | ||
### transliterate.config([optionsObj]) | ||
@@ -117,0 +117,0 @@ Bind options globally so any following calls will be using `optoinsObj` by default. If `optionsObj` argument is omitted, it will return current default option object. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1499343
3766
0