Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

transliteration

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

transliteration - npm Package Compare versions

Comparing version 2.1.7 to 2.1.8

0

dist/node/data/charmap.d.ts

@@ -0,0 +0,0 @@ export interface Charmap {

2

dist/node/src/common/slugify.d.ts

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc