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

polite-json

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polite-json - npm Package Compare versions

Comparing version 4.0.1 to 5.0.0

dist/commonjs/index.d.ts

49

package.json
{
"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

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