Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

random-access-storage

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-access-storage - npm Package Compare versions

Comparing version
1.4.1
to
1.4.2
+23
.github/workflows/test-node.yml
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)
}
{
"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": {

@@ -9,4 +9,2 @@ # random-access-storage

[![build status](https://travis-ci.org/random-access-storage/random-access-storage.svg?branch=master)](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