Comparing version 2.0.2 to 2.0.3
@@ -6,11 +6,13 @@ const FSLock = require('../src/FSLock/FSLock'); | ||
(async ()=>{ | ||
(async () => { | ||
// Will auto-process this as autoexec is true. | ||
const createDirJob = queue.add('Directory.create','./myfolder'); | ||
const createDirJob = queue.add('Directory.create', './myfolder'); | ||
const createFileJob = queue.add('File.create', './myfolder/myfile.json', { something: true }); | ||
const createFileJob = queue.add('File.create', './myfolder/myfile.json', {something: true}); | ||
await createFileJob.execution(); | ||
const file = await queue.add('File.read', './myfolder/myfile.json').execution(); | ||
console.log({storedFile: file.result}); | ||
console.log(file.result); | ||
// Needed in order to release pending intervals | ||
await queue.stop(); | ||
})() |
{ | ||
"name": "fslockjs", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Easy to use file system queue with locking and events. Provide Asynchronous utilities for Directories and File", | ||
@@ -32,8 +32,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"chai": "^4.2.0", | ||
"mocha": "^8.2.1" | ||
}, | ||
"dependencies": { | ||
"lodash.map": "^4.6.0" | ||
"chai": "^4.3.10", | ||
"mocha": "^10.2.0" | ||
} | ||
} |
@@ -1,3 +0,1 @@ | ||
const map = require('lodash.map'); | ||
const processQueue = async (self) => { | ||
@@ -4,0 +2,0 @@ if (self.queue.length > 0) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
38610
47
880
- Removedlodash.map@^4.6.0
- Removedlodash.map@4.6.0(transitive)