Comparing version 4.0.0 to 4.0.1-0
@@ -17,3 +17,3 @@ interface Options { | ||
} | ||
export declare const reviver: (options: Options) => (this: any, key: string, value: string | ValueContainer) => any; | ||
export declare const reviver: (options: Options) => (this: any, key: string, value: ValueContainer | string) => any; | ||
export declare const isJSON: (input: string) => RegExpMatchArray | null; | ||
@@ -20,0 +20,0 @@ export declare const stringify: (data: any, options?: Partial<Options>) => string; |
@@ -270,3 +270,3 @@ "use strict"; | ||
replacement = _ref.replacement; | ||
var replacementArr = JSON.parse(replacement); | ||
var replacementArr = isJSON(replacement) ? JSON.parse(replacement) : replacement.split('.'); | ||
@@ -273,0 +273,0 @@ if (replacementArr.length === 0) { |
{ | ||
"name": "telejson", | ||
"version": "4.0.0", | ||
"version": "4.0.1-0", | ||
"description": "", | ||
@@ -23,2 +23,5 @@ "keywords": [ | ||
}, | ||
"files": [ | ||
"dist/*" | ||
], | ||
"license": "MIT", | ||
@@ -45,24 +48,24 @@ "main": "dist/index.js", | ||
"is-function": "^1.0.2", | ||
"is-regex": "^1.0.5", | ||
"is-regex": "^1.1.0", | ||
"is-symbol": "^1.0.3", | ||
"isobject": "^4.0.0", | ||
"lodash": "^4.17.15", | ||
"lodash": "^4.17.19", | ||
"memoizerific": "^1.11.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.9.6", | ||
"@babel/preset-env": "^7.9.6", | ||
"@babel/preset-typescript": "^7.9.0", | ||
"@storybook/eslint-config-storybook": "^2.3.0", | ||
"@types/jest": "^25.2.1", | ||
"@types/lodash": "^4.14.150", | ||
"@babel/cli": "^7.10.5", | ||
"@babel/core": "^7.10.5", | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/preset-typescript": "^7.10.4", | ||
"@storybook/eslint-config-storybook": "^2.4.0", | ||
"@types/jest": "^26.0.6", | ||
"@types/lodash": "^4.14.158", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-jest": "^25.5.1", | ||
"babel-jest": "^26.1.0", | ||
"common-tags": "^1.8.0", | ||
"eslint": "^6.8.0", | ||
"jest": "^25.5.2", | ||
"eslint": "^7.5.0", | ||
"jest": "^26.1.0", | ||
"prettier": "^2.0.5", | ||
"regenerator-runtime": "^0.13.5", | ||
"typescript": "^3.8.3" | ||
"regenerator-runtime": "^0.13.7", | ||
"typescript": "^3.9.7" | ||
}, | ||
@@ -69,0 +72,0 @@ "publishConfig": { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
20442
5
368
1
Updatedis-regex@^1.1.0
Updatedlodash@^4.17.19