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

tar

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tar - npm Package Compare versions

Comparing version 7.2.0 to 7.3.0

2

dist/commonjs/make-command.d.ts

@@ -48,3 +48,3 @@ import { TarOptions, TarOptionsAsyncFile, TarOptionsAsyncNoFile, TarOptionsSyncFile, TarOptionsSyncNoFile, TarOptionsWithAliases, TarOptionsWithAliasesAsync, TarOptionsWithAliasesAsyncFile, TarOptionsWithAliasesAsyncNoFile, TarOptionsWithAliasesFile, TarOptionsWithAliasesNoFile, TarOptionsWithAliasesSync, TarOptionsWithAliasesSyncFile, TarOptionsWithAliasesSyncNoFile } from './options.js';

sync: true;
}>(syncFile: (opt: TarOptionsSyncFile, entries: string[]) => void, asyncFile: (opt: TarOptionsAsyncFile, entries: string[], cb?: CB) => Promise<void>, syncNoFile: (opt: TarOptionsSyncNoFile, entries: string[]) => SyncClass, asyncNoFile: (opt: TarOptionsAsyncNoFile, entries: string[]) => AsyncClass, validate?: ((opt: TarOptions, entries?: string[]) => void) | undefined) => TarCommand<AsyncClass, SyncClass>;
}>(syncFile: (opt: TarOptionsSyncFile, entries: string[]) => void, asyncFile: (opt: TarOptionsAsyncFile, entries: string[], cb?: CB) => Promise<void>, syncNoFile: (opt: TarOptionsSyncNoFile, entries: string[]) => SyncClass, asyncNoFile: (opt: TarOptionsAsyncNoFile, entries: string[]) => AsyncClass, validate?: (opt: TarOptions, entries?: string[]) => void) => TarCommand<AsyncClass, SyncClass>;
//# sourceMappingURL=make-command.d.ts.map

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

import { type WarnData } from './warn-method.js';
import { WriteEntry } from './write-entry.js';
/**

@@ -223,2 +224,11 @@ * The options that can be provided to tar commands.

/**
* When creating, updating, or replacing within archives, this method will
* be called with each WriteEntry that is created.
*
* It's not called 'onentry' because that's already taken for the ReadEntry
* when reading archives, and it's just easier to only have one type of
* options object that this whole library can pass around without issue.
*/
onWriteEntry?: (entry: WriteEntry) => any;
/**
* When extracting or listing archives, this method will be called with

@@ -225,0 +235,0 @@ * each entry that is not excluded by a `filter`.

@@ -63,2 +63,3 @@ /// <reference types="node" />

[WRITEENTRYCLASS]: typeof WriteEntry | typeof WriteEntrySync;
onWriteEntry?: (entry: WriteEntry) => void;
[QUEUE]: Yallist<PackJob>;

@@ -65,0 +66,0 @@ [JOBS]: number;

@@ -105,2 +105,3 @@ "use strict";

[WRITEENTRYCLASS];
onWriteEntry;
[QUEUE];

@@ -123,2 +124,3 @@ [JOBS] = 0;

this.readdirCache = opt.readdirCache || new Map();
this.onWriteEntry = opt.onWriteEntry;
this[WRITEENTRYCLASS] = write_entry_js_1.WriteEntry;

@@ -166,3 +168,3 @@ if (typeof opt.onwarn === 'function') {

this.filter =
typeof opt.filter === 'function' ? opt.filter : _ => true;
typeof opt.filter === 'function' ? opt.filter : () => true;
this[QUEUE] = new yallist_1.Yallist();

@@ -366,4 +368,5 @@ this[JOBS] = 0;

try {
return new this[WRITEENTRYCLASS](job.path, this[ENTRYOPT](job))
.on('end', () => this[JOBDONE](job))
const e = new this[WRITEENTRYCLASS](job.path, this[ENTRYOPT](job));
this.onWriteEntry?.(e);
return e.on('end', () => this[JOBDONE](job))
.on('error', er => this.emit('error', er));

@@ -370,0 +373,0 @@ }

@@ -48,3 +48,3 @@ import { TarOptions, TarOptionsAsyncFile, TarOptionsAsyncNoFile, TarOptionsSyncFile, TarOptionsSyncNoFile, TarOptionsWithAliases, TarOptionsWithAliasesAsync, TarOptionsWithAliasesAsyncFile, TarOptionsWithAliasesAsyncNoFile, TarOptionsWithAliasesFile, TarOptionsWithAliasesNoFile, TarOptionsWithAliasesSync, TarOptionsWithAliasesSyncFile, TarOptionsWithAliasesSyncNoFile } from './options.js';

sync: true;
}>(syncFile: (opt: TarOptionsSyncFile, entries: string[]) => void, asyncFile: (opt: TarOptionsAsyncFile, entries: string[], cb?: CB) => Promise<void>, syncNoFile: (opt: TarOptionsSyncNoFile, entries: string[]) => SyncClass, asyncNoFile: (opt: TarOptionsAsyncNoFile, entries: string[]) => AsyncClass, validate?: ((opt: TarOptions, entries?: string[]) => void) | undefined) => TarCommand<AsyncClass, SyncClass>;
}>(syncFile: (opt: TarOptionsSyncFile, entries: string[]) => void, asyncFile: (opt: TarOptionsAsyncFile, entries: string[], cb?: CB) => Promise<void>, syncNoFile: (opt: TarOptionsSyncNoFile, entries: string[]) => SyncClass, asyncNoFile: (opt: TarOptionsAsyncNoFile, entries: string[]) => AsyncClass, validate?: (opt: TarOptions, entries?: string[]) => void) => TarCommand<AsyncClass, SyncClass>;
//# sourceMappingURL=make-command.d.ts.map

@@ -6,2 +6,3 @@ /// <reference types="node" resolution-mode="require"/>

import { type WarnData } from './warn-method.js';
import { WriteEntry } from './write-entry.js';
/**

@@ -223,2 +224,11 @@ * The options that can be provided to tar commands.

/**
* When creating, updating, or replacing within archives, this method will
* be called with each WriteEntry that is created.
*
* It's not called 'onentry' because that's already taken for the ReadEntry
* when reading archives, and it's just easier to only have one type of
* options object that this whole library can pass around without issue.
*/
onWriteEntry?: (entry: WriteEntry) => any;
/**
* When extracting or listing archives, this method will be called with

@@ -225,0 +235,0 @@ * each entry that is not excluded by a `filter`.

@@ -63,2 +63,3 @@ /// <reference types="node" resolution-mode="require"/>

[WRITEENTRYCLASS]: typeof WriteEntry | typeof WriteEntrySync;
onWriteEntry?: (entry: WriteEntry) => void;
[QUEUE]: Yallist<PackJob>;

@@ -65,0 +66,0 @@ [JOBS]: number;

@@ -75,2 +75,3 @@ // A readable tar stream creator

[WRITEENTRYCLASS];
onWriteEntry;
[QUEUE];

@@ -93,2 +94,3 @@ [JOBS] = 0;

this.readdirCache = opt.readdirCache || new Map();
this.onWriteEntry = opt.onWriteEntry;
this[WRITEENTRYCLASS] = WriteEntry;

@@ -136,3 +138,3 @@ if (typeof opt.onwarn === 'function') {

this.filter =
typeof opt.filter === 'function' ? opt.filter : _ => true;
typeof opt.filter === 'function' ? opt.filter : () => true;
this[QUEUE] = new Yallist();

@@ -336,4 +338,5 @@ this[JOBS] = 0;

try {
return new this[WRITEENTRYCLASS](job.path, this[ENTRYOPT](job))
.on('end', () => this[JOBDONE](job))
const e = new this[WRITEENTRYCLASS](job.path, this[ENTRYOPT](job));
this.onWriteEntry?.(e);
return e.on('end', () => this[JOBDONE](job))
.on('error', er => this.emit('error', er));

@@ -340,0 +343,0 @@ }

@@ -5,3 +5,3 @@ {

"description": "tar for node",
"version": "7.2.0",
"version": "7.3.0",
"repository": {

@@ -27,3 +27,3 @@ "type": "git",

"chownr": "^3.0.0",
"minipass": "^7.1.0",
"minipass": "^7.1.2",
"minizlib": "^3.0.1",

@@ -97,2 +97,3 @@ "mkdirp": "^3.0.1",

"import": {
"source": "./src/index.ts",
"types": "./dist/esm/index.d.ts",

@@ -102,2 +103,3 @@ "default": "./dist/esm/index.js"

"require": {
"source": "./src/index.ts",
"types": "./dist/commonjs/index.d.ts",

@@ -109,2 +111,3 @@ "default": "./dist/commonjs/index.js"

"import": {
"source": "./src/create.ts",
"types": "./dist/esm/create.d.ts",

@@ -114,2 +117,3 @@ "default": "./dist/esm/create.js"

"require": {
"source": "./src/create.ts",
"types": "./dist/commonjs/create.d.ts",

@@ -121,2 +125,3 @@ "default": "./dist/commonjs/create.js"

"import": {
"source": "./src/create.ts",
"types": "./dist/esm/create.d.ts",

@@ -126,2 +131,3 @@ "default": "./dist/esm/create.js"

"require": {
"source": "./src/create.ts",
"types": "./dist/commonjs/create.d.ts",

@@ -133,2 +139,3 @@ "default": "./dist/commonjs/create.js"

"import": {
"source": "./src/create.ts",
"types": "./dist/esm/create.d.ts",

@@ -138,2 +145,3 @@ "default": "./dist/esm/create.js"

"require": {
"source": "./src/create.ts",
"types": "./dist/commonjs/create.d.ts",

@@ -145,2 +153,3 @@ "default": "./dist/commonjs/create.js"

"import": {
"source": "./src/create.ts",
"types": "./dist/esm/create.d.ts",

@@ -150,2 +159,3 @@ "default": "./dist/esm/create.js"

"require": {
"source": "./src/create.ts",
"types": "./dist/commonjs/create.d.ts",

@@ -157,2 +167,3 @@ "default": "./dist/commonjs/create.js"

"import": {
"source": "./src/list.ts",
"types": "./dist/esm/list.d.ts",

@@ -162,2 +173,3 @@ "default": "./dist/esm/list.js"

"require": {
"source": "./src/list.ts",
"types": "./dist/commonjs/list.d.ts",

@@ -169,2 +181,3 @@ "default": "./dist/commonjs/list.js"

"import": {
"source": "./src/list.ts",
"types": "./dist/esm/list.d.ts",

@@ -174,2 +187,3 @@ "default": "./dist/esm/list.js"

"require": {
"source": "./src/list.ts",
"types": "./dist/commonjs/list.d.ts",

@@ -181,2 +195,3 @@ "default": "./dist/commonjs/list.js"

"import": {
"source": "./src/update.ts",
"types": "./dist/esm/update.d.ts",

@@ -186,2 +201,3 @@ "default": "./dist/esm/update.js"

"require": {
"source": "./src/update.ts",
"types": "./dist/commonjs/update.d.ts",

@@ -193,2 +209,3 @@ "default": "./dist/commonjs/update.js"

"import": {
"source": "./src/update.ts",
"types": "./dist/esm/update.d.ts",

@@ -198,2 +215,3 @@ "default": "./dist/esm/update.js"

"require": {
"source": "./src/update.ts",
"types": "./dist/commonjs/update.d.ts",

@@ -205,2 +223,3 @@ "default": "./dist/commonjs/update.js"

"import": {
"source": "./src/extract.ts",
"types": "./dist/esm/extract.d.ts",

@@ -210,2 +229,3 @@ "default": "./dist/esm/extract.js"

"require": {
"source": "./src/extract.ts",
"types": "./dist/commonjs/extract.d.ts",

@@ -217,2 +237,3 @@ "default": "./dist/commonjs/extract.js"

"import": {
"source": "./src/extract.ts",
"types": "./dist/esm/extract.d.ts",

@@ -222,2 +243,3 @@ "default": "./dist/esm/extract.js"

"require": {
"source": "./src/extract.ts",
"types": "./dist/commonjs/extract.d.ts",

@@ -229,2 +251,3 @@ "default": "./dist/commonjs/extract.js"

"import": {
"source": "./src/pack.ts",
"types": "./dist/esm/pack.d.ts",

@@ -234,2 +257,3 @@ "default": "./dist/esm/pack.js"

"require": {
"source": "./src/pack.ts",
"types": "./dist/commonjs/pack.d.ts",

@@ -241,2 +265,3 @@ "default": "./dist/commonjs/pack.js"

"import": {
"source": "./src/unpack.ts",
"types": "./dist/esm/unpack.d.ts",

@@ -246,2 +271,3 @@ "default": "./dist/esm/unpack.js"

"require": {
"source": "./src/unpack.ts",
"types": "./dist/commonjs/unpack.d.ts",

@@ -253,2 +279,3 @@ "default": "./dist/commonjs/unpack.js"

"import": {
"source": "./src/parse.ts",
"types": "./dist/esm/parse.d.ts",

@@ -258,2 +285,3 @@ "default": "./dist/esm/parse.js"

"require": {
"source": "./src/parse.ts",
"types": "./dist/commonjs/parse.d.ts",

@@ -265,2 +293,3 @@ "default": "./dist/commonjs/parse.js"

"import": {
"source": "./src/read-entry.ts",
"types": "./dist/esm/read-entry.d.ts",

@@ -270,2 +299,3 @@ "default": "./dist/esm/read-entry.js"

"require": {
"source": "./src/read-entry.ts",
"types": "./dist/commonjs/read-entry.d.ts",

@@ -277,2 +307,3 @@ "default": "./dist/commonjs/read-entry.js"

"import": {
"source": "./src/write-entry.ts",
"types": "./dist/esm/write-entry.d.ts",

@@ -282,2 +313,3 @@ "default": "./dist/esm/write-entry.js"

"require": {
"source": "./src/write-entry.ts",
"types": "./dist/commonjs/write-entry.d.ts",

@@ -289,2 +321,3 @@ "default": "./dist/commonjs/write-entry.js"

"import": {
"source": "./src/header.ts",
"types": "./dist/esm/header.d.ts",

@@ -294,2 +327,3 @@ "default": "./dist/esm/header.js"

"require": {
"source": "./src/header.ts",
"types": "./dist/commonjs/header.d.ts",

@@ -301,2 +335,3 @@ "default": "./dist/commonjs/header.js"

"import": {
"source": "./src/pax.ts",
"types": "./dist/esm/pax.d.ts",

@@ -306,2 +341,3 @@ "default": "./dist/esm/pax.js"

"require": {
"source": "./src/pax.ts",
"types": "./dist/commonjs/pax.d.ts",

@@ -313,2 +349,3 @@ "default": "./dist/commonjs/pax.js"

"import": {
"source": "./src/types.ts",
"types": "./dist/esm/types.d.ts",

@@ -318,2 +355,3 @@ "default": "./dist/esm/types.js"

"require": {
"source": "./src/types.ts",
"types": "./dist/commonjs/types.d.ts",

@@ -320,0 +358,0 @@ "default": "./dist/commonjs/types.js"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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