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

cog

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cog - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

3

jsonparse.js

@@ -51,3 +51,4 @@ /* jshint node: true */

(firstChar == '{' && lastChar == '}') ||
(firstChar == '[' && lastChar == ']');
(firstChar == '[' && lastChar == ']') ||
(firstChar == '"' && lastChar == '"');

@@ -54,0 +55,0 @@ if (shouldParse) {

@@ -5,3 +5,3 @@ {

"author": "Damon Oehlman <damon.oehlman@gmail.com>",
"version": "0.5.2",
"version": "0.5.3",
"dependencies": {},

@@ -8,0 +8,0 @@ "devDependencies": {

@@ -82,3 +82,3 @@ var test = require('tape');

parse(JSON.stringify('2007bf44-56a5-4a77-9b1e-b43cfac9c70f')),
'\"2007bf44-56a5-4a77-9b1e-b43cfac9c70f\"',
'2007bf44-56a5-4a77-9b1e-b43cfac9c70f',
'correctly parse uuid'

@@ -104,2 +104,7 @@ );

);
});
test('correctly parse JSONified string', function(t) {
t.plan(1);
t.equal(parse(JSON.stringify('hello')), 'hello', 'parsed ok');
});
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