Comparing version 4.3.1 to 4.3.2
{ | ||
"name": "devalue", | ||
"description": "Gets the job done when JSON.stringify can't", | ||
"version": "4.3.1", | ||
"repository": "Rich-Harris/devalue", | ||
"exports": { | ||
".": { | ||
"types": "./types/index.d.ts", | ||
"import": "./index.js", | ||
"default": "./index.js" | ||
} | ||
}, | ||
"files": [ | ||
"index.js", | ||
"src", | ||
"types" | ||
], | ||
"types": "./types/index.d.ts", | ||
"devDependencies": { | ||
"publint": "^0.1.7", | ||
"typescript": "^3.1.3", | ||
"uvu": "^0.5.6" | ||
}, | ||
"license": "MIT", | ||
"type": "module", | ||
"packageManager": "pnpm@7.9.5", | ||
"scripts": { | ||
"build": "tsc", | ||
"test": "uvu test" | ||
} | ||
"name": "devalue", | ||
"description": "Gets the job done when JSON.stringify can't", | ||
"version": "4.3.2", | ||
"repository": "Rich-Harris/devalue", | ||
"exports": { | ||
".": { | ||
"types": "./types/index.d.ts", | ||
"import": "./index.js", | ||
"default": "./index.js" | ||
} | ||
}, | ||
"files": [ | ||
"index.js", | ||
"src", | ||
"types" | ||
], | ||
"types": "./types/index.d.ts", | ||
"devDependencies": { | ||
"dts-buddy": "^0.0.4", | ||
"publint": "^0.1.7", | ||
"typescript": "^3.1.3", | ||
"uvu": "^0.5.6" | ||
}, | ||
"scripts": { | ||
"build": "dts-buddy", | ||
"test": "uvu test", | ||
"prepublishOnly": "npm test && publint && npm run build" | ||
}, | ||
"license": "MIT", | ||
"type": "module", | ||
"packageManager": "pnpm@8.5.1" | ||
} |
@@ -1,3 +0,26 @@ | ||
export { uneval } from "./src/uneval.js"; | ||
export { stringify } from "./src/stringify.js"; | ||
export { parse, unflatten } from "./src/parse.js"; | ||
declare module 'devalue' { | ||
/** | ||
* Turn a value into the JavaScript that creates an equivalent value | ||
* | ||
*/ | ||
export function uneval(value: any, replacer?: (value: any) => string | void): string; | ||
/** | ||
* Turn a value into a JSON string that can be parsed with `devalue.parse` | ||
* | ||
*/ | ||
export function stringify(value: any, reducers?: Record<string, (value: any) => any>): string; | ||
/** | ||
* Revive a value serialized with `devalue.stringify` | ||
* | ||
*/ | ||
export function parse(serialized: string, revivers?: Record<string, (value: any) => any>): any; | ||
/** | ||
* Revive a value flattened with `devalue.stringify` | ||
* | ||
*/ | ||
export function unflatten(parsed: number | any[], revivers?: Record<string, (value: any) => any>): any; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25550
4
11
649