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

caesar-parser

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

caesar-parser - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

todo.md

39

lib/JsonParser.js

@@ -286,18 +286,21 @@ 'use strict';

var ch = st.next();
try {
switch (ch) {
case 't':
next('r').next('u').next('e');
return true;
case 'f':
next('a').next('l').next('s').next('e');
return false;
case 'n':
next('u').next('l').next('l');
return null;
default:
throw new Error('word error');
}
} catch (e) {
return this.error('word syntax error.', st);
switch (ch) {
case 't':
next('r');
next('u');
next('e');
return true;
case 'f':
next('a');
next('l');
next('s');
next('e');
return false;
case 'n':
next('u');
next('l');
next('l');
return null;
default:
return this.error('word syntax error.', st);
}

@@ -307,5 +310,3 @@

if (st.next() !== _ch) {
throw new Error('word error');
} else {
return { next: next };
this.error('word syntax error.', st);
}

@@ -312,0 +313,0 @@ }

{
"name": "caesar-parser",
"version": "0.2.3",
"version": "0.2.4",
"description": "",

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

@@ -237,18 +237,21 @@ import Parser from './Parser'

const ch = st.next()
try {
switch (ch) {
case 't':
next('r').next('u').next('e')
return true
case 'f':
next('a').next('l').next('s').next('e')
return false
case 'n':
next('u').next('l').next('l')
return null
default:
throw new Error('word error')
}
} catch (e) {
return this.error('word syntax error.', st)
switch (ch) {
case 't':
next('r')
next('u')
next('e')
return true
case 'f':
next('a')
next('l')
next('s')
next('e')
return false
case 'n':
next('u')
next('l')
next('l')
return null
default:
return this.error('word syntax error.', st)
}

@@ -258,5 +261,3 @@

if (st.next() !== _ch) {
throw new Error('word error')
} else {
return {next: next}
this.error('word syntax error.', st)
}

@@ -263,0 +264,0 @@ }

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