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.4.1 to 7.4.2

6

dist/commonjs/pack.d.ts

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

import { TarOptions } from './options.js';
export declare class Pack extends Minipass<Minipass.ContiguousData, Buffer, WarnEvent> implements Warner {
export declare class Pack extends Minipass<Buffer, ReadEntry | string, WarnEvent<Buffer>> implements Warner {
opt: TarOptions;

@@ -72,3 +72,5 @@ cwd: string;

add(path: string | ReadEntry): this;
end(path?: string | ReadEntry): this;
end(cb?: () => void): this;
end(path: string | ReadEntry, cb?: () => void): this;
end(path: string | ReadEntry, encoding?: Minipass.Encoding, cb?: () => void): this;
write(path: string | ReadEntry): boolean;

@@ -75,0 +77,0 @@ [ADDTARENTRY](p: ReadEntry): void;

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

const zlib = __importStar(require("minizlib"));
//@ts-ignore
const yallist_1 = require("yallist");

@@ -112,2 +111,3 @@ const read_entry_js_1 = require("./read-entry.js");

constructor(opt = {}) {
//@ts-ignore
super();

@@ -182,4 +182,13 @@ this.opt = opt;

}
//@ts-ignore
end(path) {
end(path, encoding, cb) {
/* c8 ignore start */
if (typeof path === 'function') {
cb = path;
path = undefined;
}
if (typeof encoding === 'function') {
cb = encoding;
encoding = undefined;
}
/* c8 ignore stop */
if (path) {

@@ -190,5 +199,7 @@ this.add(path);

this[PROCESS]();
/* c8 ignore next */
if (cb)
cb();
return this;
}
//@ts-ignore
write(path) {

@@ -195,0 +206,0 @@ if (this[ENDED]) {

@@ -0,1 +1,2 @@

/// <reference types="node" />
import { type Minipass } from 'minipass';

@@ -11,3 +12,3 @@ /** has a warn method */

};
export type WarnEvent = Minipass.Events & {
export type WarnEvent<T = Buffer> = Minipass.Events<T> & {
warn: [code: string, message: string, data: WarnData];

@@ -14,0 +15,0 @@ };

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

import { TarOptions } from './options.js';
export declare class Pack extends Minipass<Minipass.ContiguousData, Buffer, WarnEvent> implements Warner {
export declare class Pack extends Minipass<Buffer, ReadEntry | string, WarnEvent<Buffer>> implements Warner {
opt: TarOptions;

@@ -72,3 +72,5 @@ cwd: string;

add(path: string | ReadEntry): this;
end(path?: string | ReadEntry): this;
end(cb?: () => void): this;
end(path: string | ReadEntry, cb?: () => void): this;
end(path: string | ReadEntry, encoding?: Minipass.Encoding, cb?: () => void): this;
write(path: string | ReadEntry): boolean;

@@ -75,0 +77,0 @@ [ADDTARENTRY](p: ReadEntry): void;

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

import * as zlib from 'minizlib';
//@ts-ignore
import { Yallist } from 'yallist';

@@ -82,2 +81,3 @@ import { ReadEntry } from './read-entry.js';

constructor(opt = {}) {
//@ts-ignore
super();

@@ -152,4 +152,13 @@ this.opt = opt;

}
//@ts-ignore
end(path) {
end(path, encoding, cb) {
/* c8 ignore start */
if (typeof path === 'function') {
cb = path;
path = undefined;
}
if (typeof encoding === 'function') {
cb = encoding;
encoding = undefined;
}
/* c8 ignore stop */
if (path) {

@@ -160,5 +169,7 @@ this.add(path);

this[PROCESS]();
/* c8 ignore next */
if (cb)
cb();
return this;
}
//@ts-ignore
write(path) {

@@ -165,0 +176,0 @@ if (this[ENDED]) {

@@ -0,1 +1,2 @@

/// <reference types="node" resolution-mode="require"/>
import { type Minipass } from 'minipass';

@@ -11,3 +12,3 @@ /** has a warn method */

};
export type WarnEvent = Minipass.Events & {
export type WarnEvent<T = Buffer> = Minipass.Events<T> & {
warn: [code: string, message: string, data: WarnData];

@@ -14,0 +15,0 @@ };

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

"description": "tar for node",
"version": "7.4.1",
"version": "7.4.2",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

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