fast-json-stringify 5.9.0 → 5.9.1
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.
- package/README.md +1 -1
- package/benchmark/bench-cmp-branch.js +1 -1
- package/benchmark/bench-thread.js +1 -1
- package/benchmark/bench.js +2 -2
- package/build/build-schema-validator.js +2 -2
- package/examples/server.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/test/standalone-mode.test.js +2 -2
- package/test/webpack.test.js +1 -1
package/README.md
CHANGED
|
@@ -692,7 +692,7 @@ The standalone mode is used to compile the code that can be directly run by `nod
|
|
|
692
692
|
itself. You need to have `fast-json-stringify` installed for the standalone code to work.
|
|
693
693
|
|
|
694
694
|
```js
|
|
695
|
-
const fs = require('
|
|
695
|
+
const fs = require('fs')
|
|
696
696
|
const code = fastJson({
|
|
697
697
|
title: 'default string',
|
|
698
698
|
type: 'object',
|
package/benchmark/bench.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
const Ajv = require('ajv')
|
|
4
4
|
const standaloneCode = require('ajv/dist/standalone').default
|
|
5
5
|
const ajvFormats = require('ajv-formats')
|
|
6
|
-
const fs = require('
|
|
7
|
-
const path = require('
|
|
6
|
+
const fs = require('fs')
|
|
7
|
+
const path = require('path')
|
|
8
8
|
|
|
9
9
|
const ajv = new Ajv({
|
|
10
10
|
addUsedSchema: false,
|
package/examples/server.js
CHANGED
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
const merge = require('@fastify/deepmerge')()
|
|
6
6
|
const clone = require('rfdc')({ proto: true })
|
|
7
|
-
const { randomUUID } = require('
|
|
7
|
+
const { randomUUID } = require('crypto')
|
|
8
8
|
const { RefResolver } = require('json-schema-ref-resolver')
|
|
9
9
|
|
|
10
10
|
const validate = require('./lib/schema-validator')
|
package/package.json
CHANGED