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

superjson

Package Overview
Dependencies
Maintainers
4
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superjson - npm Package Compare versions

Comparing version 1.12.0 to 1.12.1

4

dist/esm/index.d.ts

@@ -32,1 +32,5 @@ import { SuperJSONResult, SuperJSONValue, Class, JSONValue } from './types';

export declare const parse: <T = unknown>(string: string) => T;
export declare const registerClass: (v: Class, options?: string | RegisterOptions | undefined) => void;
export declare const registerCustom: <I, O extends JSONValue>(transformer: Omit<CustomTransfomer<I, O>, "name">, name: string) => void;
export declare const registerSymbol: (v: Symbol, identifier?: string | undefined) => void;
export declare const allowErrorProps: (...props: string[]) => void;

@@ -110,2 +110,6 @@ var __assign = (this && this.__assign) || function () {

export var parse = SuperJSON.parse;
export var registerClass = SuperJSON.registerClass;
export var registerCustom = SuperJSON.registerCustom;
export var registerSymbol = SuperJSON.registerSymbol;
export var allowErrorProps = SuperJSON.allowErrorProps;
//# sourceMappingURL=index.js.map

@@ -32,1 +32,5 @@ import { SuperJSONResult, SuperJSONValue, Class, JSONValue } from './types';

export declare const parse: <T = unknown>(string: string) => T;
export declare const registerClass: (v: Class, options?: string | RegisterOptions | undefined) => void;
export declare const registerCustom: <I, O extends JSONValue>(transformer: Omit<CustomTransfomer<I, O>, "name">, name: string) => void;
export declare const registerSymbol: (v: Symbol, identifier?: string | undefined) => void;
export declare const allowErrorProps: (...props: string[]) => void;

@@ -35,3 +35,3 @@ "use strict";

exports.__esModule = true;
exports.parse = exports.stringify = exports.deserialize = exports.serialize = void 0;
exports.allowErrorProps = exports.registerSymbol = exports.registerCustom = exports.registerClass = exports.parse = exports.stringify = exports.deserialize = exports.serialize = void 0;
var class_registry_1 = require("./class-registry");

@@ -114,2 +114,6 @@ var registry_1 = require("./registry");

exports.parse = SuperJSON.parse;
exports.registerClass = SuperJSON.registerClass;
exports.registerCustom = SuperJSON.registerCustom;
exports.registerSymbol = SuperJSON.registerSymbol;
exports.allowErrorProps = SuperJSON.allowErrorProps;
//# sourceMappingURL=index.js.map

2

package.json
{
"version": "1.12.0",
"version": "1.12.1",
"license": "MIT",

@@ -4,0 +4,0 @@ "main": "dist/index.js",

@@ -45,2 +45,6 @@ <p align="center">

## Sponsors
[<img src="https://user-images.githubusercontent.com/3496193/206313745-11f25f7b-2540-4a4c-86c0-d085e38b0b45.png" alt="Flightcontrol Logo" style="width: 400px;"/>](https://www.flightcontrol.dev/?ref=superjson)
## Getting started

@@ -47,0 +51,0 @@

@@ -129,1 +129,6 @@ import { SuperJSONResult, SuperJSONValue, Class, JSONValue } from './types';

export const parse = SuperJSON.parse;
export const registerClass = SuperJSON.registerClass;
export const registerCustom = SuperJSON.registerCustom;
export const registerSymbol = SuperJSON.registerSymbol;
export const allowErrorProps = SuperJSON.allowErrorProps;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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