Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

memory-pager

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memory-pager - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

9

index.js

@@ -25,8 +25,11 @@ module.exports = Pager

Pager.prototype.get = function (i, noMutate) {
if (i >= this.pages.length) this.pages = grow(this.pages, i, this.length)
Pager.prototype.get = function (i, noAllocate) {
if (i >= this.pages.length) {
if (noAllocate) return
this.pages = grow(this.pages, i, this.length)
}
var page = this.pages[i]
if (!page && !noMutate) {
if (!page && !noAllocate) {
page = this.pages[i] = new Page(i, alloc(this.pageSize))

@@ -33,0 +36,0 @@ if (i >= this.length) this.length = i + 1

{
"name": "memory-pager",
"version": "1.0.2",
"version": "1.0.3",
"description": "Access memory using small fixed sized buffers",

@@ -5,0 +5,0 @@ "main": "index.js",

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