random-access-storage
Advanced tools
| name: Build Status | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| jobs: | ||
| build: | ||
| strategy: | ||
| matrix: | ||
| node-version: [lts/*] | ||
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| - run: npm install | ||
| - run: npm test |
+4
-7
| var events = require('events') | ||
| var inherits = require('inherits') | ||
| var queueTick = require('queue-tick') | ||
@@ -85,3 +86,3 @@ var NOT_READABLE = defaultImpl(new Error('Not readable')) | ||
| if (!cb) cb = noop | ||
| if (this.opened && !this._needsOpen) return process.nextTick(cb, null) | ||
| if (this.opened && !this._needsOpen) return queueTick(() => cb(null)) | ||
| queueAndRun(this, new Request(this, OPEN_OP, 0, 0, null, cb)) | ||
@@ -95,3 +96,3 @@ } | ||
| if (!cb) cb = noop | ||
| if (this.closed) return process.nextTick(cb, null) | ||
| if (this.closed) return queueTick(() => cb(null)) | ||
| queueAndRun(this, new Request(this, CLOSE_OP, 0, 0, null, cb)) | ||
@@ -270,7 +271,3 @@ } | ||
| function nextTick (req, err, val) { | ||
| process.nextTick(nextTickCallback, req, err, val) | ||
| queueTick(() => req.callback(err, val)) | ||
| } | ||
| function nextTickCallback (req, err, val) { | ||
| req.callback(err, val) | ||
| } |
+3
-2
| { | ||
| "name": "random-access-storage", | ||
| "version": "1.4.1", | ||
| "version": "1.4.2", | ||
| "description": "Easily make random-access-storage instances", | ||
| "main": "index.js", | ||
| "dependencies": { | ||
| "inherits": "^2.0.3" | ||
| "inherits": "^2.0.3", | ||
| "queue-tick": "^1.0.0" | ||
| }, | ||
@@ -9,0 +10,0 @@ "devDependencies": { |
+0
-2
@@ -9,4 +9,2 @@ # random-access-storage | ||
| [](https://travis-ci.org/random-access-storage/random-access-storage) | ||
| A random-access-storage instance is a common interface for a storage abstraction, that provides the following core api. | ||
@@ -13,0 +11,0 @@ |
| language: node_js | ||
| sudo: false | ||
| node_js: | ||
| - 6 | ||
| - 8 | ||
| - 9 |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
25045
1.02%2
100%629
-0.32%233
-0.85%+ Added
+ Added