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

@memberjunction/global

Package Overview
Dependencies
Maintainers
0
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@memberjunction/global - npm Package Compare versions

Comparing version 1.8.1 to 2.0.0

2

dist/util.d.ts

@@ -31,3 +31,3 @@ /**

*/
export declare function SafeJSONParse<T>(jsonString: string): T;
export declare function SafeJSONParse<T>(jsonString: string, logErrors?: boolean): T;
//# sourceMappingURL=util.d.ts.map

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

*/
function SafeJSONParse(jsonString) {
function SafeJSONParse(jsonString, logErrors = false) {
try {

@@ -152,3 +152,4 @@ return JSON.parse(jsonString);

catch (e) {
console.error("Error parsing JSON string:", e);
if (logErrors)
console.error("Error parsing JSON string:", e);
return null;

@@ -155,0 +156,0 @@ }

{
"name": "@memberjunction/global",
"version": "1.8.1",
"version": "2.0.0",
"description": "MemberJunction: Global Object - Needed for ALL other MJ components",

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

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