New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

random-access-layered-storage

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-access-layered-storage - npm Package Compare versions

Comparing version 1.0.3 to 1.0.31

tests/comparison-stress-time.test.js

10

lib/random-access-layered-storage.js

@@ -474,2 +474,10 @@ import RAS from 'random-access-storage';

flush(offset = 0, size = this._size, callback) {
if (typeof offset === "function") {
callback = offset;
offset = 0;
}
if (typeof size === "function") {
callback = size;
size = this._size;
}
this._ensureOpen((err) => {

@@ -546,3 +554,3 @@ if (err) return callback(err);

setImmediate(flushNext);
setImmediate(flushNext.bind(this));
});

@@ -549,0 +557,0 @@ };

4

package.json
{
"name": "random-access-layered-storage",
"version": "1.0.3",
"version": "1.0.31",
"description": "A flexible, layered storage solution building on the random-access-storage interface. Provides an in-memory overlay with configurable eviction, paging, and strict size enforcement options, designed for complex data management scenarios.",

@@ -11,2 +11,4 @@ "type": "module",

"test": "brittle ./tests/rals.test.js",
"comparison-test": "brittle ./tests/comparison-stress-time.test.js",
"large-file-test": "brittle ./tests/large-file.test.js",
"bundle": "node ./bundle.js"

@@ -13,0 +15,0 @@ },

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