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

non-blocking-json

Package Overview
Dependencies
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

non-blocking-json - npm Package Compare versions

Comparing version 1.1.0-1596113581708 to 1.1.0-1596184291766

24

es/index.js

@@ -23,11 +23,17 @@ import { __awaiter } from "tslib";

let tickLength = 0;
while (currentLength && tickLength < BATCH_LENGTH) {
const queueItem = queue.shift();
queueItem.cb();
tickLength += queueItem.length;
currentLength -= queueItem.length;
}
if (queue.length) {
tick(run);
}
isRunning = true;
tick(() => {
while (currentLength && tickLength < BATCH_LENGTH) {
const queueItem = queue.shift();
queueItem.cb();
tickLength += queueItem.length;
currentLength -= queueItem.length;
}
if (queue.length) {
run();
}
else {
isRunning = false;
}
});
}

@@ -34,0 +40,0 @@ return (length, cb) => {

@@ -25,11 +25,17 @@ "use strict";

let tickLength = 0;
while (currentLength && tickLength < BATCH_LENGTH) {
const queueItem = queue.shift();
queueItem.cb();
tickLength += queueItem.length;
currentLength -= queueItem.length;
}
if (queue.length) {
tick(run);
}
isRunning = true;
tick(() => {
while (currentLength && tickLength < BATCH_LENGTH) {
const queueItem = queue.shift();
queueItem.cb();
tickLength += queueItem.length;
currentLength -= queueItem.length;
}
if (queue.length) {
run();
}
else {
isRunning = false;
}
});
}

@@ -36,0 +42,0 @@ return (length, cb) => {

{
"name": "non-blocking-json",
"version": "1.1.0-1596113581708",
"version": "1.1.0-1596184291766",
"description": "Async JSON parse and stringify",

@@ -5,0 +5,0 @@ "author": "Christian Alfoni <christianalfoni@gmail.com>",

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