cachetool
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -6,3 +6,2 @@ "use strict"; | ||
const EXEC_PATH = path.join(__dirname, '../bin/cachetool'); | ||
let OneOperationOnlyList = []; | ||
/** | ||
@@ -13,6 +12,2 @@ * Function | ||
return new Promise((resolve, reject) => { | ||
if (OneOperationOnlyList.includes(cachePath)) { | ||
return reject(`An operation on ${cachePath} is already running.`); | ||
} | ||
OneOperationOnlyList.push(cachePath); | ||
const args = [cachePath, cacheBackendType || 'simple', command, ...(commandArgs || [])]; | ||
@@ -34,3 +29,2 @@ if (!silent) { | ||
child.on('close', (code) => { | ||
OneOperationOnlyList = OneOperationOnlyList.filter((k) => k !== cachePath); | ||
if (!silent) { | ||
@@ -37,0 +31,0 @@ console.log(`cachetool process exited with code ${code}`); |
{ | ||
"name": "cachetool", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Chrome's cachetool, usable from Node", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
26183649
238