fat-json 0.0.38 → 0.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/husky.mjs +16 -0
  3. package/package.json +9 -8
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Fat Json
2
2
 
3
- Stringify and parse non-standard JSON [data types](#from-wikipedia): _reviver_ and _replacer_ functions for the built-in `JSON` object
3
+ Stringify and parse non-standard JSON data types: _reviver_ and _replacer_ functions for the built-in `JSON` object
4
4
 
5
5
  ## Install
6
6
 
package/husky.mjs ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+
3
+ // @ts-ignore
4
+ Promise.resolve(import('husky'))
5
+ .then(({ default: husky }) => { husky() })
6
+ .catch((e) => {
7
+ if (e instanceof Error) {
8
+ if ('code' in e) {
9
+ const { code } = e
10
+ if (code === 'ERR_MODULE_NOT_FOUND') return
11
+ }
12
+
13
+ const { message } = e
14
+ if (message) console.error(`💥 ${message}`)
15
+ }
16
+ })
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "fat-json",
3
- "version": "0.0.38",
3
+ "version": "0.0.66",
4
+ "description": "Stringify and parse non-standard JSON data types: Reviver and Replacer functions for the built-in JSON object",
4
5
  "keywords": [
5
6
  "JSON",
6
7
  "stringify",
@@ -26,7 +27,7 @@
26
27
  "scripts": {
27
28
  "lint": "eslint .",
28
29
  "lint:fix": "npm run lint -- --fix",
29
- "prepare": "husky",
30
+ "prepare": "node husky.mjs",
30
31
  "test": "mocha test --recursive"
31
32
  },
32
33
  "devDependencies": {
@@ -34,14 +35,14 @@
34
35
  "@sequencemedia/eslint-config-typescript": "^0.1.182",
35
36
  "@types/chai": "^5.2.3",
36
37
  "@types/mocha": "^10.0.10",
37
- "@types/node": "^24.10.1",
38
- "@types/sinon": "^21.0.0",
39
- "chai": "^6.2.1",
38
+ "@types/node": "^26.1.0",
39
+ "@types/sinon": "^22.0.0",
40
+ "chai": "^6.2.2",
40
41
  "eslint": "9.38.0",
41
- "globals": "^16.5.0",
42
+ "globals": "^17.7.0",
42
43
  "husky": "^9.1.7",
43
- "mocha": "^11.7.5",
44
- "sinon": "^21.0.0",
44
+ "mocha": "^11.7.6",
45
+ "sinon": "^22.0.0",
45
46
  "sinon-chai": "^4.0.1"
46
47
  },
47
48
  "imports": {