diff --git a/package-lock.json b/package-lock.json index 9c59d0d..fbaffeb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.71", "license": "GPL-3.0", "dependencies": { - "flatted": "^3.2.9", + "@ungap/structured-clone": "^1.2.0", "riscript": "^1.0.32" }, "devDependencies": { @@ -526,6 +526,11 @@ "undici-types": "~5.26.4" } }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==" + }, "node_modules/ansi-colors": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", @@ -1066,11 +1071,6 @@ "flat": "cli.js" } }, - "node_modules/flatted": { - "version": "3.2.9", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", - "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==" - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", diff --git a/package.json b/package.json index d8c7af8..4a24b30 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "license": "GPL-3.0", "type": "module", "scripts": { - "test": "NODE_ENV=dev mocha", - "test:dist": "NODE_ENV=dev mocha test/dist", + "test": "NODE_ENV=dev npx mocha", + "test:dist": "NODE_ENV=dev npx mocha test/dist", "build": "rm -rf dist/ && npx tsup", "types": "npx tsc", "pub": "./npnb/source/cli.js --no-release-draft patch", @@ -52,7 +52,7 @@ "typescript": "^5.2.2" }, "dependencies": { - "flatted": "^3.2.9", + "@ungap/structured-clone": "^1.2.0", "riscript": "^1.0.32" } } diff --git a/src/markov.js b/src/markov.js index 6b76c77..225de6e 100644 --- a/src/markov.js +++ b/src/markov.js @@ -1,4 +1,4 @@ -import { parse, stringify } from 'flatted'; +import { parse, stringify } from '@ungap/structured-clone/json'; /* * See full set of options for RiMarkov (https://rednoise.org/rita/reference/RiTa/markov/index.html)