npm-pkg-lint 4.4.0 → 4.4.2
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/index.js +7 -6
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7791,7 +7791,7 @@ var _i = class extends Ie {
|
|
|
7791
7791
|
this.src.removeListener("error", this.proxyErrors), super.unpipe();
|
|
7792
7792
|
}
|
|
7793
7793
|
constructor(t, e, i) {
|
|
7794
|
-
super(t, e, i), this.proxyErrors = (r) =>
|
|
7794
|
+
super(t, e, i), this.proxyErrors = (r) => this.dest.emit("error", r), t.on("error", this.proxyErrors);
|
|
7795
7795
|
}
|
|
7796
7796
|
};
|
|
7797
7797
|
var zr = (s3) => !!s3.objectMode;
|
|
@@ -8043,6 +8043,7 @@ var A = class extends Oi {
|
|
|
8043
8043
|
});
|
|
8044
8044
|
}, throw: e, return: e, [Symbol.asyncIterator]() {
|
|
8045
8045
|
return this;
|
|
8046
|
+
}, [Symbol.asyncDispose]: async () => {
|
|
8046
8047
|
} };
|
|
8047
8048
|
}
|
|
8048
8049
|
[Symbol.iterator]() {
|
|
@@ -8054,6 +8055,7 @@ var A = class extends Oi {
|
|
|
8054
8055
|
};
|
|
8055
8056
|
return this.once("end", e), this.once(yi, e), this.once(w, e), { next: i, throw: e, return: e, [Symbol.iterator]() {
|
|
8056
8057
|
return this;
|
|
8058
|
+
}, [Symbol.dispose]: () => {
|
|
8057
8059
|
} };
|
|
8058
8060
|
}
|
|
8059
8061
|
destroy(t) {
|
|
@@ -10117,16 +10119,15 @@ var qt = class extends st {
|
|
|
10117
10119
|
[ps](t, e) {
|
|
10118
10120
|
let i = t[e], { type: r } = t;
|
|
10119
10121
|
if (!i || this.preservePaths) return true;
|
|
10120
|
-
let n = i.split("/");
|
|
10121
|
-
if (
|
|
10122
|
+
let [n, o] = ce(i), h = o.replace(/\\/g, "/").split("/");
|
|
10123
|
+
if (h.includes("..") || Oe && /^[a-z]:\.\.$/i.test(h[0] ?? "")) {
|
|
10122
10124
|
if (e === "path" || r === "Link") return this.warn("TAR_ENTRY_ERROR", `${e} contains '..'`, { entry: t, [e]: i }), false;
|
|
10123
10125
|
{
|
|
10124
|
-
let a = R.posix.dirname(t.path), l = R.posix.normalize(R.posix.join(a,
|
|
10126
|
+
let a = R.posix.dirname(t.path), l = R.posix.normalize(R.posix.join(a, h.join("/")));
|
|
10125
10127
|
if (l.startsWith("../") || l === "..") return this.warn("TAR_ENTRY_ERROR", `${e} escapes extraction directory`, { entry: t, [e]: i }), false;
|
|
10126
10128
|
}
|
|
10127
10129
|
}
|
|
10128
|
-
|
|
10129
|
-
return o && (t[e] = String(h), this.warn("TAR_ENTRY_INFO", `stripping ${o} from absolute ${e}`, { entry: t, [e]: i })), true;
|
|
10130
|
+
return n && (t[e] = String(o), this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute ${e}`, { entry: t, [e]: i })), true;
|
|
10130
10131
|
}
|
|
10131
10132
|
[_r](t) {
|
|
10132
10133
|
let e = f(t.path), i = e.split("/");
|