Socket
Socket
Sign inDemoInstall

crack-json

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crack-json - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

14

dist/utilities/extractJson.js

@@ -44,15 +44,3 @@ "use strict";

break;
} catch (error) {} //
// $FlowFixMe
if (openCharacter === '"') {
try {
const result = parser(haystack.replace(/\n/g, '\\n'));
foundObjects.push(result);
subjectOffset += startIndex + haystack.length;
rule.lastIndex = 0;
break;
} catch (error) {//
}
} catch (error) {//
}

@@ -59,0 +47,0 @@

2

package.json

@@ -67,3 +67,3 @@ {

},
"version": "1.1.1"
"version": "1.2.0"
}

@@ -60,19 +60,2 @@ // @flow

// $FlowFixMe
if (openCharacter === '"') {
try {
const result = parser(haystack.replace(/\n/g, '\\n'));
foundObjects.push(result);
subjectOffset += startIndex + haystack.length;
rule.lastIndex = 0;
break;
} catch (error) {
//
}
}
const offsetIndex = haystack.slice(0, -1).lastIndexOf(closeCharacter) + 1;

@@ -79,0 +62,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