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

@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 2.2.2 to 2.2.3-rc.1

11

lib/async.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLibzipPromise = exports.getLibzipSync = void 0;
const tslib_1 = require("tslib");
const libzipAsync_1 = (0, tslib_1.__importDefault)(require("./libzipAsync"));
const makeInterface_1 = require("./makeInterface");

@@ -11,11 +13,6 @@ let promise = null;

async function getLibzipPromise() {
if (promise === null) {
promise = new Promise(resolve => {
require(`./libzipAsync`).then((libzip) => {
resolve(makeInterface_1.makeInterface(libzip));
});
});
}
if (promise === null)
promise = (0, libzipAsync_1.default)().then(libzip => (0, makeInterface_1.makeInterface)(libzip));
return promise;
}
exports.getLibzipPromise = getLibzipPromise;
/// <reference types="emscripten" />
export = Module;
// eslint-disable-next-line arca/no-default-export
export default function createModule(): Promise<EmscriptenModule>;
/// <reference types="emscripten" />
export = Module;
// eslint-disable-next-line arca/no-default-export
export default function createModule(): EmscriptenModule;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLibzipPromise = exports.getLibzipSync = void 0;
const tslib_1 = require("tslib");
const libzipSync_1 = (0, tslib_1.__importDefault)(require("./libzipSync"));
const makeInterface_1 = require("./makeInterface");

@@ -8,3 +10,3 @@ let mod = null;

if (mod === null)
mod = makeInterface_1.makeInterface(require(`./libzipSync`));
mod = (0, makeInterface_1.makeInterface)((0, libzipSync_1.default)());
return mod;

@@ -11,0 +13,0 @@ }

{
"name": "@yarnpkg/libzip",
"version": "2.2.2",
"version": "2.2.3-rc.1",
"license": "BSD-2-Clause",

@@ -35,3 +35,4 @@ "main": "./lib/sync.js",

"node": ">=12 <14 || 14.2 - 14.9 || >14.10.0"
}
},
"stableVersion": "2.2.2"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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