Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

devalue

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devalue - npm Package Compare versions

Comparing version 4.3.1 to 4.3.2

types/index.d.ts.map

60

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc