@pnpm/exe 11.0.0-beta.2 → 11.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node_modules/@gar/promise-retry/LICENSE +1 -0
- package/dist/node_modules/@gar/promise-retry/lib/index.js +43 -9
- package/dist/node_modules/@gar/promise-retry/lib/retry.js +109 -0
- package/dist/node_modules/@gar/promise-retry/package.json +1 -4
- package/dist/node_modules/@npmcli/redact/LICENSE +21 -0
- package/dist/node_modules/@npmcli/redact/lib/deep-map.js +71 -0
- package/dist/node_modules/@npmcli/redact/lib/error.js +28 -0
- package/dist/node_modules/@npmcli/redact/lib/index.js +44 -0
- package/dist/node_modules/@npmcli/redact/lib/matchers.js +88 -0
- package/dist/node_modules/@npmcli/redact/lib/server.js +59 -0
- package/dist/node_modules/@npmcli/redact/lib/utils.js +202 -0
- package/dist/node_modules/{unique-slug → @npmcli/redact}/package.json +21 -18
- package/dist/node_modules/brace-expansion/dist/commonjs/index.js +3 -1
- package/dist/node_modules/brace-expansion/dist/esm/index.js +3 -1
- package/dist/node_modules/brace-expansion/package.json +1 -1
- package/dist/node_modules/cacache/lib/content/write.js +2 -2
- package/dist/node_modules/cacache/lib/entry-index.js +2 -2
- package/dist/node_modules/cacache/lib/util/tmp.js +6 -0
- package/dist/node_modules/cacache/package.json +4 -5
- package/dist/node_modules/make-fetch-happen/lib/remote.js +4 -2
- package/dist/node_modules/make-fetch-happen/package.json +2 -1
- package/dist/node_modules/minipass-flush/package.json +6 -3
- package/dist/node_modules/picomatch/lib/constants.js +4 -0
- package/dist/node_modules/picomatch/lib/parse.js +301 -0
- package/dist/node_modules/picomatch/lib/picomatch.js +11 -3
- package/dist/node_modules/picomatch/package.json +2 -3
- package/dist/node_modules/tar/dist/commonjs/create.js +3 -4
- package/dist/node_modules/tar/dist/commonjs/get-write-flag.js +7 -4
- package/dist/node_modules/tar/dist/commonjs/header.js +14 -27
- package/dist/node_modules/tar/dist/commonjs/index.min.js +3 -3
- package/dist/node_modules/tar/dist/commonjs/list.js +2 -7
- package/dist/node_modules/tar/dist/commonjs/make-command.js +3 -12
- package/dist/node_modules/tar/dist/commonjs/mkdir.js +5 -6
- package/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js +1 -1
- package/dist/node_modules/tar/dist/commonjs/pack.js +3 -8
- package/dist/node_modules/tar/dist/commonjs/parse.js +12 -22
- package/dist/node_modules/tar/dist/commonjs/path-reservations.js +2 -2
- package/dist/node_modules/tar/dist/commonjs/read-entry.js +2 -6
- package/dist/node_modules/tar/dist/commonjs/replace.js +5 -10
- package/dist/node_modules/tar/dist/commonjs/unpack.js +38 -63
- package/dist/node_modules/tar/dist/commonjs/winchars.js +1 -1
- package/dist/node_modules/tar/dist/commonjs/write-entry.js +12 -13
- package/dist/node_modules/tar/dist/esm/create.js +3 -4
- package/dist/node_modules/tar/dist/esm/get-write-flag.js +7 -4
- package/dist/node_modules/tar/dist/esm/header.js +14 -27
- package/dist/node_modules/tar/dist/esm/index.min.js +3 -3
- package/dist/node_modules/tar/dist/esm/list.js +2 -7
- package/dist/node_modules/tar/dist/esm/make-command.js +3 -12
- package/dist/node_modules/tar/dist/esm/mkdir.js +5 -6
- package/dist/node_modules/tar/dist/esm/normalize-windows-path.js +1 -1
- package/dist/node_modules/tar/dist/esm/pack.js +4 -9
- package/dist/node_modules/tar/dist/esm/parse.js +13 -23
- package/dist/node_modules/tar/dist/esm/path-reservations.js +2 -2
- package/dist/node_modules/tar/dist/esm/read-entry.js +2 -6
- package/dist/node_modules/tar/dist/esm/replace.js +6 -11
- package/dist/node_modules/tar/dist/esm/unpack.js +38 -63
- package/dist/node_modules/tar/dist/esm/winchars.js +1 -1
- package/dist/node_modules/tar/dist/esm/write-entry.js +14 -15
- package/dist/node_modules/tar/package.json +9 -4
- package/dist/pnpm.mjs +147455 -129305
- package/dist/worker.js +173 -62
- package/package.json +12 -9
- package/pn +1 -0
- package/pnpx +1 -0
- package/pnx +1 -0
- package/prepare.js +12 -3
- package/setup.js +28 -1
- package/dist/node_modules/imurmurhash/imurmurhash.js +0 -138
- package/dist/node_modules/imurmurhash/imurmurhash.min.js +0 -12
- package/dist/node_modules/imurmurhash/package.json +0 -40
- package/dist/node_modules/minipass-flush/LICENSE +0 -15
- package/dist/node_modules/retry/License +0 -21
- package/dist/node_modules/retry/index.js +0 -1
- package/dist/node_modules/retry/lib/retry.js +0 -100
- package/dist/node_modules/retry/lib/retry_operation.js +0 -162
- package/dist/node_modules/retry/package.json +0 -36
- package/dist/node_modules/unique-filename/LICENSE +0 -5
- package/dist/node_modules/unique-filename/lib/index.js +0 -7
- package/dist/node_modules/unique-filename/package.json +0 -53
- package/dist/node_modules/unique-slug/LICENSE +0 -15
- package/dist/node_modules/unique-slug/lib/index.js +0 -11
|
@@ -4,11 +4,11 @@ import path from 'path';
|
|
|
4
4
|
import { Header } from './header.js';
|
|
5
5
|
import { modeFix } from './mode-fix.js';
|
|
6
6
|
import { normalizeWindowsPath } from './normalize-windows-path.js';
|
|
7
|
-
import { dealias
|
|
7
|
+
import { dealias } from './options.js';
|
|
8
8
|
import { Pax } from './pax.js';
|
|
9
9
|
import { stripAbsolutePath } from './strip-absolute-path.js';
|
|
10
10
|
import { stripTrailingSlashes } from './strip-trailing-slashes.js';
|
|
11
|
-
import { warnMethod
|
|
11
|
+
import { warnMethod } from './warn-method.js';
|
|
12
12
|
import * as winchars from './winchars.js';
|
|
13
13
|
const prefixPath = (path, prefix) => {
|
|
14
14
|
if (!prefix) {
|
|
@@ -83,8 +83,7 @@ export class WriteEntry extends Minipass {
|
|
|
83
83
|
this.noPax = !!opt.noPax;
|
|
84
84
|
this.noMtime = !!opt.noMtime;
|
|
85
85
|
this.mtime = opt.mtime;
|
|
86
|
-
this.prefix =
|
|
87
|
-
opt.prefix ? normalizeWindowsPath(opt.prefix) : undefined;
|
|
86
|
+
this.prefix = opt.prefix ? normalizeWindowsPath(opt.prefix) : undefined;
|
|
88
87
|
this.onWriteEntry = opt.onWriteEntry;
|
|
89
88
|
if (typeof opt.onwarn === 'function') {
|
|
90
89
|
this.on('warn', opt.onwarn);
|
|
@@ -101,8 +100,8 @@ export class WriteEntry extends Minipass {
|
|
|
101
100
|
if (this.win32) {
|
|
102
101
|
// force the \ to / normalization, since we might not *actually*
|
|
103
102
|
// be on windows, but want \ to be considered a path separator.
|
|
104
|
-
this.path = winchars.decode(this.path.
|
|
105
|
-
p = p.
|
|
103
|
+
this.path = winchars.decode(this.path.replaceAll(/\\/g, '/'));
|
|
104
|
+
p = p.replaceAll(/\\/g, '/');
|
|
106
105
|
}
|
|
107
106
|
this.absolute = normalizeWindowsPath(opt.absolute || path.resolve(this.cwd, p));
|
|
108
107
|
if (this.path === '') {
|
|
@@ -204,7 +203,7 @@ export class WriteEntry extends Minipass {
|
|
|
204
203
|
atime: this.portable ? undefined : this.header.atime,
|
|
205
204
|
ctime: this.portable ? undefined : this.header.ctime,
|
|
206
205
|
gid: this.portable ? undefined : this.header.gid,
|
|
207
|
-
mtime: this.noMtime ? undefined :
|
|
206
|
+
mtime: this.noMtime ? undefined : this.mtime || this.header.mtime,
|
|
208
207
|
path: this[PREFIX](this.path),
|
|
209
208
|
linkpath: this.type === 'Link' && this.linkpath !== undefined ?
|
|
210
209
|
this[PREFIX](this.linkpath)
|
|
@@ -407,7 +406,7 @@ export class WriteEntry extends Minipass {
|
|
|
407
406
|
if (this.blockRemain) {
|
|
408
407
|
super.write(Buffer.alloc(this.blockRemain));
|
|
409
408
|
}
|
|
410
|
-
return this[CLOSE](er => er ? this.emit('error', er) : this.end());
|
|
409
|
+
return this[CLOSE](er => (er ? this.emit('error', er) : this.end()));
|
|
411
410
|
}
|
|
412
411
|
/* c8 ignore start */
|
|
413
412
|
if (!this.buf) {
|
|
@@ -455,7 +454,7 @@ export class WriteEntrySync extends WriteEntry {
|
|
|
455
454
|
try {
|
|
456
455
|
this[CLOSE](() => { });
|
|
457
456
|
}
|
|
458
|
-
catch
|
|
457
|
+
catch { }
|
|
459
458
|
}
|
|
460
459
|
}
|
|
461
460
|
}
|
|
@@ -524,16 +523,13 @@ export class WriteEntryTar extends Minipass {
|
|
|
524
523
|
this.prefix = opt.prefix;
|
|
525
524
|
this.path = normalizeWindowsPath(readEntry.path);
|
|
526
525
|
this.mode =
|
|
527
|
-
readEntry.mode !== undefined ?
|
|
528
|
-
this[MODE](readEntry.mode)
|
|
529
|
-
: undefined;
|
|
526
|
+
readEntry.mode !== undefined ? this[MODE](readEntry.mode) : undefined;
|
|
530
527
|
this.uid = this.portable ? undefined : readEntry.uid;
|
|
531
528
|
this.gid = this.portable ? undefined : readEntry.gid;
|
|
532
529
|
this.uname = this.portable ? undefined : readEntry.uname;
|
|
533
530
|
this.gname = this.portable ? undefined : readEntry.gname;
|
|
534
531
|
this.size = readEntry.size;
|
|
535
|
-
this.mtime =
|
|
536
|
-
this.noMtime ? undefined : opt.mtime || readEntry.mtime;
|
|
532
|
+
this.mtime = this.noMtime ? undefined : opt.mtime || readEntry.mtime;
|
|
537
533
|
this.atime = this.portable ? undefined : readEntry.atime;
|
|
538
534
|
this.ctime = this.portable ? undefined : readEntry.ctime;
|
|
539
535
|
this.linkpath =
|
|
@@ -645,7 +641,10 @@ export class WriteEntryTar extends Minipass {
|
|
|
645
641
|
}
|
|
646
642
|
if (cb)
|
|
647
643
|
this.once('finish', cb);
|
|
648
|
-
|
|
644
|
+
if (chunk)
|
|
645
|
+
super.end(chunk, cb);
|
|
646
|
+
else
|
|
647
|
+
super.end(cb);
|
|
649
648
|
/* c8 ignore stop */
|
|
650
649
|
return this;
|
|
651
650
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "Isaac Z. Schlueter",
|
|
3
3
|
"name": "tar",
|
|
4
4
|
"description": "tar for node",
|
|
5
|
-
"version": "7.5.
|
|
5
|
+
"version": "7.5.13",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/isaacs/node-tar.git"
|
|
@@ -18,7 +18,10 @@
|
|
|
18
18
|
"postversion": "npm publish",
|
|
19
19
|
"prepublishOnly": "git push origin --follow-tags",
|
|
20
20
|
"format": "prettier --write . --log-level warn",
|
|
21
|
-
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
|
|
21
|
+
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts",
|
|
22
|
+
"lint": "oxlint --fix src test",
|
|
23
|
+
"postsnap": "npm run lint",
|
|
24
|
+
"postlint": "npm run format"
|
|
22
25
|
},
|
|
23
26
|
"dependencies": {
|
|
24
27
|
"@isaacs/fs-minipass": "^4.0.0",
|
|
@@ -28,13 +31,15 @@
|
|
|
28
31
|
"yallist": "^5.0.0"
|
|
29
32
|
},
|
|
30
33
|
"devDependencies": {
|
|
31
|
-
"@types/node": "^25.
|
|
34
|
+
"@types/node": "^25.5.0",
|
|
32
35
|
"chmodr": "^2.0.2",
|
|
33
36
|
"end-of-stream": "^1.4.3",
|
|
34
|
-
"esbuild": "^0.27.
|
|
37
|
+
"esbuild": "^0.27.4",
|
|
35
38
|
"events-to-array": "^2.0.3",
|
|
36
39
|
"mutate-fs": "^2.1.1",
|
|
37
40
|
"nock": "^13.5.4",
|
|
41
|
+
"oxlint": "^1.56.0",
|
|
42
|
+
"oxlint-tsgolint": "^0.17.0",
|
|
38
43
|
"prettier": "^3.8.1",
|
|
39
44
|
"rimraf": "^6.1.2",
|
|
40
45
|
"tap": "^21.6.2",
|