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 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('node:fs')
695
+ const fs = require('fs')
696
696
  const code = fastJson({
697
697
  title: 'default string',
698
698
  type: 'object',
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- const { spawn } = require('node:child_process')
3
+ const { spawn } = require('child_process')
4
4
 
5
5
  const cliSelect = require('cli-select')
6
6
  const simpleGit = require('simple-git')
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- const { workerData: benchmark, parentPort } = require('node:worker_threads')
3
+ const { workerData: benchmark, parentPort } = require('worker_threads')
4
4
 
5
5
  const Benchmark = require('benchmark')
6
6
  Benchmark.options.minSamples = 100
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
- const path = require('node:path')
4
- const { Worker } = require('node:worker_threads')
3
+ const path = require('path')
4
+ const { Worker } = require('worker_threads')
5
5
 
6
6
  const BENCH_THREAD_PATH = path.join(__dirname, 'bench-thread.js')
7
7
 
@@ -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('node:fs')
7
- const path = require('node:path')
6
+ const fs = require('fs')
7
+ const path = require('path')
8
8
 
9
9
  const ajv = new Ajv({
10
10
  addUsedSchema: false,
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- const http = require('node:http')
3
+ const http = require('http')
4
4
 
5
5
  const stringify = require('fast-json-stringify')({
6
6
  type: 'object',
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('node:crypto')
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-json-stringify",
3
- "version": "5.9.0",
3
+ "version": "5.9.1",
4
4
  "description": "Stringify your JSON at max speed",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
@@ -2,8 +2,8 @@
2
2
 
3
3
  const test = require('tap').test
4
4
  const fjs = require('..')
5
- const fs = require('node:fs')
6
- const path = require('node:path')
5
+ const fs = require('fs')
6
+ const path = require('path')
7
7
 
8
8
  function build (opts, schema) {
9
9
  return fjs(schema || {
@@ -2,7 +2,7 @@
2
2
 
3
3
  const test = require('tap').test
4
4
  const webpack = require('webpack')
5
- const path = require('node:path')
5
+ const path = require('path')
6
6
 
7
7
  test('the library should work with webpack', async (t) => {
8
8
  t.plan(1)