transliteration
Advanced tools
Comparing version 2.1.7 to 2.1.8
@@ -0,0 +0,0 @@ export interface Charmap { |
@@ -5,3 +5,3 @@ import { OptionsSlugify } from '../types'; | ||
export declare class Slugify extends Transliterate { | ||
readonly options: OptionsSlugify; | ||
get options(): OptionsSlugify; | ||
/** | ||
@@ -8,0 +8,0 @@ * Set default config |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -7,3 +7,3 @@ import { IntervalArray, OptionReplaceArray, OptionReplaceCombined, OptionsTransliterate } from '../types'; | ||
protected map: Charmap; | ||
readonly options: OptionsTransliterate; | ||
get options(): OptionsTransliterate; | ||
constructor(confOptions?: OptionsTransliterate, map?: Charmap); | ||
@@ -10,0 +10,0 @@ /** |
@@ -43,3 +43,3 @@ "use strict"; | ||
for (let i = 0; i < str.length; i++) { | ||
// Get current character, take surrogates in consideration | ||
// Get current character, taking surrogates in consideration | ||
const char = /[\uD800-\uDBFF]/.test(str[i]) && /[\uDC00-\uDFFF]/.test(str[i + 1]) ? | ||
@@ -145,3 +145,3 @@ str[i] + str[i + 1] : str[i]; | ||
// force convert to string | ||
let str = String(source); | ||
let str = typeof source === 'string' ? source : String(source); | ||
const replaceOption = this.formatReplaceOption(opt.replace); | ||
@@ -148,0 +148,0 @@ if (replaceOption.length) { |
@@ -0,0 +0,0 @@ import { IntervalArray } from '../types'; |
@@ -0,0 +0,0 @@ "use strict"; |
import { SlugifyFunction, TransliterateFunction } from '../types'; | ||
export declare const transliterate: TransliterateFunction; | ||
export declare const slugify: SlugifyFunction; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Charmap } from '../../data/charmap'; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "transliteration", | ||
"version": "2.1.7", | ||
"version": "2.1.8", | ||
"description": "Unicode to ACSII transliteration / slugify module for node.js, browser, Web Worker, ReactNative and CLI.", | ||
@@ -55,18 +55,18 @@ "main": "dist/node/src/node/index.js", | ||
"devDependencies": { | ||
"@babel/core": "7.6.0", | ||
"@babel/plugin-proposal-class-properties": "7.5.5", | ||
"@babel/plugin-proposal-object-rest-spread": "7.5.5", | ||
"@babel/preset-env": "7.6.0", | ||
"@babel/preset-typescript": "7.6.0", | ||
"@babel/core": "7.7.5", | ||
"@babel/plugin-proposal-class-properties": "7.7.4", | ||
"@babel/plugin-proposal-object-rest-spread": "7.7.4", | ||
"@babel/preset-env": "7.7.6", | ||
"@babel/preset-typescript": "7.7.4", | ||
"@types/execa": "2.0.0", | ||
"@types/tape": "4.2.33", | ||
"@types/yargs": "13.0.2", | ||
"codecov": "3.5.0", | ||
"core-js": "3.2.1", | ||
"coveralls": "3.0.6", | ||
"execa": "2.0.4", | ||
"json5": "2.1.0", | ||
"@types/yargs": "13.0.3", | ||
"codecov": "3.6.1", | ||
"core-js": "3.5.0", | ||
"coveralls": "3.0.9", | ||
"execa": "3.4.0", | ||
"json5": "2.1.1", | ||
"nyc": "14.1.1", | ||
"rimraf": "3.0.0", | ||
"rollup": "1.21.0", | ||
"rollup": "1.27.13", | ||
"rollup-plugin-babel": "5.0.0-alpha.0", | ||
@@ -76,16 +76,16 @@ "rollup-plugin-commonjs": "10.1.0", | ||
"rollup-plugin-sourcemaps": "0.4.2", | ||
"rollup-plugin-terser": "5.1.1", | ||
"rollup-plugin-typescript2": "0.24.0", | ||
"rollup-plugin-uglify": "6.0.3", | ||
"rollup-plugin-terser": "5.1.3", | ||
"rollup-plugin-typescript2": "0.25.3", | ||
"rollup-plugin-uglify": "6.0.4", | ||
"tap-spec": "5.0.0", | ||
"tape": "4.11.0", | ||
"ts-loader": "6.0.4", | ||
"ts-node": "8.3.0", | ||
"tslint": "5.19.0", | ||
"tape": "4.12.0", | ||
"ts-loader": "6.2.1", | ||
"ts-node": "8.5.4", | ||
"tslint": "5.20.1", | ||
"tslint-config-prettier": "1.18.0", | ||
"typescript": "3.6.2" | ||
"typescript": "3.7.3" | ||
}, | ||
"dependencies": { | ||
"yargs": "^14.0.0" | ||
"yargs": "^15.0.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
1503825
3719
0
+ Addedansi-regex@5.0.1(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedcliui@6.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedwrap-ansi@6.2.0(transitive)
+ Addedyargs@15.4.1(transitive)
+ Addedyargs-parser@18.1.3(transitive)
- Removedansi-regex@4.1.1(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedcliui@5.0.0(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedemoji-regex@7.0.3(transitive)
- Removedfind-up@3.0.0(transitive)
- Removedis-fullwidth-code-point@2.0.0(transitive)
- Removedlocate-path@3.0.0(transitive)
- Removedp-locate@3.0.0(transitive)
- Removedpath-exists@3.0.0(transitive)
- Removedstring-width@3.1.0(transitive)
- Removedstrip-ansi@5.2.0(transitive)
- Removedwrap-ansi@5.1.0(transitive)
- Removedyargs@14.2.3(transitive)
- Removedyargs-parser@15.0.3(transitive)
Updatedyargs@^15.0.2