polite-json
Advanced tools
Comparing version 4.0.1 to 5.0.0
{ | ||
"name": "polite-json", | ||
"version": "4.0.1", | ||
"version": "5.0.0", | ||
"description": "JSON.parse and stringify with better errors that respects formatting", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/mjs/index.js", | ||
"main": "./dist/commonjs/index.js", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"import": { | ||
"types": "./dist/mjs/index.d.ts", | ||
"default": "./dist/mjs/index.js" | ||
"types": "./dist/esm/index.d.ts", | ||
"default": "./dist/esm/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/cjs/index.d.ts", | ||
"default": "./dist/cjs/index.js" | ||
"types": "./dist/commonjs/index.d.ts", | ||
"default": "./dist/commonjs/index.js" | ||
} | ||
}, | ||
"./package.json": { | ||
"import": "./package.json", | ||
"require": "./package.json" | ||
} | ||
@@ -30,7 +26,7 @@ }, | ||
"prepublishOnly": "git push origin --follow-tags", | ||
"prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json && bash scripts/fixup.sh", | ||
"prepare": "tshy", | ||
"pretest": "npm run prepare", | ||
"presnap": "npm run prepare", | ||
"test": "c8 tap", | ||
"snap": "c8 tap", | ||
"test": "tap", | ||
"snap": "tap", | ||
"postsnap": "npm run format", | ||
@@ -59,15 +55,8 @@ "format": "prettier --write . --loglevel warn", | ||
"sync-content": "^1.0.2", | ||
"tap": "^16.3.3", | ||
"ts-node": "^10.9.1", | ||
"typedoc": "^0.23.21", | ||
"typescript": "^4.9.3" | ||
"tap": "^18.8.0", | ||
"tshy": "^1.14.0", | ||
"typedoc": "^0.23.21" | ||
}, | ||
"tap": { | ||
"coverage": false, | ||
"node-arg": [ | ||
"--no-warnings", | ||
"--loader", | ||
"ts-node/esm" | ||
], | ||
"ts": false | ||
"typecheck": true | ||
}, | ||
@@ -90,3 +79,11 @@ "prettier": { | ||
"url": "https://github.com/sponsors/isaacs" | ||
} | ||
}, | ||
"tshy": { | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": "./src/index.ts" | ||
} | ||
}, | ||
"types": "./dist/commonjs/index.d.ts", | ||
"type": "module" | ||
} |
@@ -82,2 +82,6 @@ # polite-json | ||
The `er` parameter is attached as the `JSONParseError.cause` | ||
property. This is used to provide a reference to the original | ||
system error that was raised by `JSON.parse()`. | ||
Set a `caller` function to trim internal implementation details | ||
@@ -84,0 +88,0 @@ out of the stack trace. When calling `parseJson`, this is set to |
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
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
53875
8
102
Yes
1