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

clarinet

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clarinet - npm Package Compare versions

Comparing version 0.12.5 to 0.12.6

16

clarinet.js

@@ -390,2 +390,3 @@ ;(function (clarinet) {

var i = 0, c = chunk.charCodeAt(0), p = parser.p;
var lockIncrements = false;
if (clarinet.DEBUG) console.log('write -> [' + chunk + ']');

@@ -405,7 +406,11 @@ while (c) {

if (clarinet.DEBUG) console.log(i,c,clarinet.STATE[parser.state]);
parser.position ++;
if (c === Char.lineFeed) {
parser.line ++;
parser.column = 0;
} else parser.column ++;
if (!lockIncrements) {
parser.position ++;
if (c === Char.lineFeed) {
parser.line ++;
parser.column = 0;
} else parser.column ++;
} else {
lockIncrements = false;
}
switch (parser.state) {

@@ -671,2 +676,3 @@

i--; // go back one
lockIncrements = true; // do not apply increments for a single cycle
parser.state = parser.stack.pop() || S.VALUE;

@@ -673,0 +679,0 @@ }

@@ -11,3 +11,3 @@ {

],
"version": "0.12.5",
"version": "0.12.6",
"main": "./clarinet.js",

@@ -42,3 +42,3 @@ "homepage": "https://github.com/dscape/clarinet",

"scripts": {
"test": "mocha -r should -t 10000 -s 2000 test/parser.spec.js test/clarinet.js test/npm.js test/utf8-chunks.js test/position.js",
"test": "mocha -r should -t 10000 -s 2000 test/parser.spec.js test/clarinet.js test/npm.js test/utf8-chunks.js test/positions.js",
"bench": "cd benchmark && npm test",

@@ -45,0 +45,0 @@ "prebench": "cd benchmark && test -e node_modules || npm i --ignore-scripts"

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