string-kit
Advanced tools
Comparing version 0.17.10 to 0.18.0
@@ -31,8 +31,8 @@ /* | ||
var map = require( './latinize-map.json' ) ; | ||
const latinizeMap = require( './json-data/latinize-map.json' ) ; | ||
module.exports = function( str ) { | ||
return str.replace( /[^\u0000-\u007e]/g , ( c ) => { return map[ c ] || c ; } ) ; | ||
return str.replace( /[^\u0000-\u007e]/g , ( c ) => { return latinizeMap[ c ] || c ; } ) ; | ||
} ; | ||
@@ -75,3 +75,5 @@ /* | ||
fuzzy: require( './fuzzy.js' ) , | ||
StringNumber: require( './StringNumber.js' ) | ||
StringNumber: require( './StringNumber.js' ) , | ||
english: require( './english.js' ) , | ||
emoji: require( './emoji.js' ) | ||
} | ||
@@ -78,0 +80,0 @@ ) ; |
@@ -223,3 +223,3 @@ /* | ||
( function() { | ||
var ranges = require( './unicode-emoji-width-ranges.json' ) ; | ||
var ranges = require( './json-data/unicode-emoji-width-ranges.json' ) ; | ||
for ( let range of ranges ) { | ||
@@ -226,0 +226,0 @@ for ( let i = range.s ; i <= range.e ; i ++ ) { |
{ | ||
"name": "string-kit", | ||
"version": "0.17.10", | ||
"version": "0.18.0", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=14.15.0" |
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
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
794112
40
7639
5