Socket
Socket
Sign inDemoInstall

@yarnpkg/libzip

Package Overview
Dependencies
Maintainers
6
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yarnpkg/libzip - npm Package Compare versions

Comparing version 3.0.0-rc.27 to 3.0.0-rc.28

5

lib/mountMemoryDrive.d.ts

@@ -6,2 +6,5 @@ /// <reference types="node" />

import { ZipFS } from './ZipFS';
export declare function mountMemoryDrive(origFs: typeof fs, mountPoint: PortablePath, source?: Buffer): ZipFS;
export type MemoryDriveOpts = {
typeCheck?: number | null;
};
export declare function mountMemoryDrive(origFs: typeof fs, mountPoint: PortablePath, source?: Buffer | null, opts?: MemoryDriveOpts): ZipFS;

@@ -8,6 +8,6 @@ "use strict";

const ZipFS_1 = require("./ZipFS");
function mountMemoryDrive(origFs, mountPoint, source = Buffer.alloc(0)) {
function mountMemoryDrive(origFs, mountPoint, source = Buffer.alloc(0), opts) {
const archive = new ZipFS_1.ZipFS(source);
const getMountPoint = (p) => {
const detectedMountPoint = p.startsWith(`${mountPoint}/`) ? p.slice(0, mountPoint.length) : null;
const detectedMountPoint = p === mountPoint || p.startsWith(`${mountPoint}/`) ? p.slice(0, mountPoint.length) : null;
return detectedMountPoint;

@@ -33,2 +33,3 @@ };

maxAge: Infinity,
typeCheck: opts === null || opts === void 0 ? void 0 : opts.typeCheck,
});

@@ -35,0 +36,0 @@ (0, fslib_1.patchFs)(fs_1.default, new fslib_1.PosixFS(mountFs));

6

package.json
{
"name": "@yarnpkg/libzip",
"version": "3.0.0-rc.27",
"version": "3.0.0-rc.28",
"license": "BSD-2-Clause",

@@ -45,7 +45,7 @@ "main": "./lib/sync.js",

"@types/emscripten": "^1.39.6",
"@yarnpkg/fslib": "^3.0.0-rc.27",
"@yarnpkg/fslib": "^3.0.0-rc.28",
"tslib": "^2.4.0"
},
"peerDependencies": {
"@yarnpkg/fslib": "^3.0.0-rc.27"
"@yarnpkg/fslib": "^3.0.0-rc.28"
},

@@ -52,0 +52,0 @@ "engines": {

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