Socket
Socket
Sign inDemoInstall

@yarnpkg/libzip

Package Overview
Dependencies
Maintainers
5
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.0 to 2.2.1

107

lib/async.d.ts
export declare function getLibzipSync(): void;
export declare function getLibzipPromise(): Promise<void>;
export declare function getLibzipPromise(): Promise<{
readonly HEAP8: Int8Array;
readonly HEAPU8: Uint8Array;
readonly errors: typeof import("./makeInterface").Errors;
readonly SEEK_SET: 0;
readonly SEEK_CUR: 1;
readonly SEEK_END: 2;
readonly ZIP_CHECKCONS: 4;
readonly ZIP_CREATE: 1;
readonly ZIP_EXCL: 2;
readonly ZIP_TRUNCATE: 8;
readonly ZIP_RDONLY: 16;
readonly ZIP_FL_OVERWRITE: 8192;
readonly ZIP_FL_COMPRESSED: 4;
readonly ZIP_OPSYS_DOS: 0;
readonly ZIP_OPSYS_AMIGA: 1;
readonly ZIP_OPSYS_OPENVMS: 2;
readonly ZIP_OPSYS_UNIX: 3;
readonly ZIP_OPSYS_VM_CMS: 4;
readonly ZIP_OPSYS_ATARI_ST: 5;
readonly ZIP_OPSYS_OS_2: 6;
readonly ZIP_OPSYS_MACINTOSH: 7;
readonly ZIP_OPSYS_Z_SYSTEM: 8;
readonly ZIP_OPSYS_CPM: 9;
readonly ZIP_OPSYS_WINDOWS_NTFS: 10;
readonly ZIP_OPSYS_MVS: 11;
readonly ZIP_OPSYS_VSE: 12;
readonly ZIP_OPSYS_ACORN_RISC: 13;
readonly ZIP_OPSYS_VFAT: 14;
readonly ZIP_OPSYS_ALTERNATE_MVS: 15;
readonly ZIP_OPSYS_BEOS: 16;
readonly ZIP_OPSYS_TANDEM: 17;
readonly ZIP_OPSYS_OS_400: 18;
readonly ZIP_OPSYS_OS_X: 19;
readonly ZIP_CM_DEFAULT: -1;
readonly ZIP_CM_STORE: 0;
readonly ZIP_CM_DEFLATE: 8;
readonly uint08S: number;
readonly uint16S: number;
readonly uint32S: number;
readonly uint64S: number;
readonly malloc: (size: number) => number;
readonly free: (ptr: number) => void;
readonly getValue: (ptr: number, type: string, noSafe?: boolean | undefined) => number;
readonly open: (...args: any[]) => any;
readonly openFromSource: (...args: any[]) => any;
readonly close: (...args: any[]) => any;
readonly discard: (...args: any[]) => any;
readonly getError: (...args: any[]) => any;
readonly getName: (...args: any[]) => any;
readonly getNumEntries: (...args: any[]) => any;
readonly delete: (...args: any[]) => any;
readonly stat: (...args: any[]) => any;
readonly statIndex: (...args: any[]) => any;
readonly fopen: (...args: any[]) => any;
readonly fopenIndex: (...args: any[]) => any;
readonly fread: (...args: any[]) => any;
readonly fclose: (...args: any[]) => any;
readonly dir: {
readonly add: (...args: any[]) => any;
};
readonly file: {
readonly add: (...args: any[]) => any;
readonly getError: (...args: any[]) => any;
readonly getExternalAttributes: (...args: any[]) => any;
readonly setExternalAttributes: (...args: any[]) => any;
readonly setMtime: (...args: any[]) => any;
readonly setCompression: (...args: any[]) => any;
};
readonly ext: {
readonly countSymlinks: (...args: any[]) => any;
};
readonly error: {
readonly initWithCode: (...args: any[]) => any;
readonly strerror: (...args: any[]) => any;
};
readonly name: {
readonly locate: (...args: any[]) => any;
};
readonly source: {
readonly fromUnattachedBuffer: (...args: any[]) => any;
readonly fromBuffer: (...args: any[]) => any;
readonly free: (...args: any[]) => any;
readonly keep: (...args: any[]) => any;
readonly open: (...args: any[]) => any;
readonly close: (...args: any[]) => any;
readonly seek: (...args: any[]) => any;
readonly tell: (...args: any[]) => any;
readonly read: (...args: any[]) => any;
readonly error: (...args: any[]) => any;
readonly setMtime: (...args: any[]) => any;
};
readonly struct: {
readonly stat: (...args: any[]) => any;
readonly statS: (...args: any[]) => any;
readonly statName: (...args: any[]) => any;
readonly statIndex: (...args: any[]) => any;
readonly statSize: (...args: any[]) => any;
readonly statCompSize: (...args: any[]) => any;
readonly statCompMethod: (...args: any[]) => any;
readonly statMtime: (...args: any[]) => any;
readonly error: (...args: any[]) => any;
readonly errorS: (...args: any[]) => any;
readonly errorCodeZip: (...args: any[]) => any;
};
}>;
export type { Libzip } from './makeInterface';

@@ -18,3 +18,4 @@ "use strict";

}
return promise;
}
exports.getLibzipPromise = getLibzipPromise;

3

lib/makeInterface.js

@@ -43,3 +43,3 @@ "use strict";

})(Errors = exports.Errors || (exports.Errors = {}));
exports.makeInterface = (libzip) => ({
const makeInterface = (libzip) => ({
// Those are getters because they can change after memory growth

@@ -151,1 +151,2 @@ get HEAP8() { return libzip.HEAP8; },

});
exports.makeInterface = makeInterface;
{
"name": "@yarnpkg/libzip",
"version": "2.2.0",
"version": "2.2.1",
"license": "BSD-2-Clause",

@@ -5,0 +5,0 @@ "main": "./lib/sync.js",

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