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.11.0 to 1.12.0

6

dist/esm/registry.js

@@ -14,8 +14,2 @@ import { DoubleIndexedKV } from './double-indexed-kv';

}
if (process.env.NODE_ENV !== 'production') {
var alreadyRegistered = this.kv.getByKey(identifier);
if (alreadyRegistered && alreadyRegistered !== value) {
console.debug("Ambiguous class \"" + identifier + "\", provide a unique identifier.");
}
}
this.kv.set(identifier, value);

@@ -22,0 +16,0 @@ };

@@ -17,8 +17,2 @@ "use strict";

}
if (process.env.NODE_ENV !== 'production') {
var alreadyRegistered = this.kv.getByKey(identifier);
if (alreadyRegistered && alreadyRegistered !== value) {
console.debug("Ambiguous class \"" + identifier + "\", provide a unique identifier.");
}
}
this.kv.set(identifier, value);

@@ -25,0 +19,0 @@ };

2

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

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

@@ -19,10 +19,2 @@ import { Registry } from './registry';

const warnSpy = jest.spyOn(console, 'debug');
registry.register(class Car {});
expect(warnSpy).toHaveBeenCalledTimes(1);
expect(warnSpy.mock.calls[0][0]).toContain(
'Ambiguous class "Car", provide a unique identifier.'
);
registry.register(class Car {}, 'car2');

@@ -29,0 +21,0 @@

@@ -17,11 +17,2 @@ import { DoubleIndexedKV } from './double-indexed-kv';

if (process.env.NODE_ENV !== 'production') {
const alreadyRegistered = this.kv.getByKey(identifier);
if (alreadyRegistered && alreadyRegistered !== value) {
console.debug(
`Ambiguous class "${identifier}", provide a unique identifier.`
);
}
}
this.kv.set(identifier, value);

@@ -28,0 +19,0 @@ }

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