sentinello 3.8.0 → 3.8.1
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/cli.cjs +13 -13
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -2680,16 +2680,16 @@ var require_parse2 = __commonJS({
|
|
|
2680
2680
|
return self2.pull(4).then(function(data) {
|
|
2681
2681
|
if (data.length === 0)
|
|
2682
2682
|
return;
|
|
2683
|
-
const
|
|
2684
|
-
if (
|
|
2683
|
+
const signature2 = data.readUInt32LE(0);
|
|
2684
|
+
if (signature2 === 875721283) {
|
|
2685
2685
|
return self2._readCrxHeader();
|
|
2686
2686
|
}
|
|
2687
|
-
if (
|
|
2687
|
+
if (signature2 === 67324752) {
|
|
2688
2688
|
return self2._readFile();
|
|
2689
|
-
} else if (
|
|
2689
|
+
} else if (signature2 === 33639248) {
|
|
2690
2690
|
self2.reachedCD = true;
|
|
2691
2691
|
return self2._readCentralDirectoryFileHeader();
|
|
2692
|
-
} else if (
|
|
2692
|
+
} else if (signature2 === 101010256) {
|
|
2693
2693
|
return self2._readEndOfCentralDirectoryRecord();
|
|
2694
2694
|
} else if (self2.reachedCD) {
|
|
2695
2695
|
const includeEof = true;
|
|
@@ -2697,7 +2697,7 @@ var require_parse2 = __commonJS({
|
|
|
2697
2697
|
return self2._readEndOfCentralDirectoryRecord();
|
|
2698
2698
|
});
|
|
2699
2699
|
} else
|
|
2700
|
-
self2.emit("error", new Error("invalid signature: 0x" +
|
|
2700
|
+
self2.emit("error", new Error("invalid signature: 0x" + signature2.toString(16)));
|
|
2701
2701
|
}).then((function(loop) {
|
|
2702
2702
|
if (loop) {
|
|
2703
2703
|
return self2._readRecord();
|
|
@@ -12784,13 +12784,13 @@ var require_directory = __commonJS({
|
|
|
12784
12784
|
var parseDateTime = require_parseDateTime();
|
|
12785
12785
|
var parseBuffer = require_parseBuffer();
|
|
12786
12786
|
var Bluebird = require_bluebird();
|
|
12787
|
-
var
|
|
12788
|
-
|
|
12787
|
+
var signature2 = Buffer.alloc(4);
|
|
12788
|
+
signature2.writeUInt32LE(101010256, 0);
|
|
12789
12789
|
function getCrxHeader(source) {
|
|
12790
12790
|
const sourceStream = source.stream(0).pipe(PullStream());
|
|
12791
12791
|
return sourceStream.pull(4).then(function(data) {
|
|
12792
|
-
const
|
|
12793
|
-
if (
|
|
12792
|
+
const signature3 = data.readUInt32LE(0);
|
|
12793
|
+
if (signature3 === 875721283) {
|
|
12794
12794
|
let crxHeader;
|
|
12795
12795
|
return sourceStream.pull(12).then(function(data2) {
|
|
12796
12796
|
crxHeader = parseBuffer.parse(data2, [
|
|
@@ -12853,7 +12853,7 @@ var require_directory = __commonJS({
|
|
|
12853
12853
|
source.stream(Math.max(0, size - tailSize)).on("error", function(error62) {
|
|
12854
12854
|
endDir.emit("error", error62);
|
|
12855
12855
|
}).pipe(endDir);
|
|
12856
|
-
return endDir.pull(
|
|
12856
|
+
return endDir.pull(signature2);
|
|
12857
12857
|
}).then(function() {
|
|
12858
12858
|
return Bluebird.props({ directory: endDir.pull(22), crxHeader });
|
|
12859
12859
|
}).then(function(d) {
|
|
@@ -57773,8 +57773,8 @@ function createUi(options) {
|
|
|
57773
57773
|
|
|
57774
57774
|
// src/help.ts
|
|
57775
57775
|
var CLI_VERSION = (function resolveVersion() {
|
|
57776
|
-
if ("3.8.
|
|
57777
|
-
return "3.8.
|
|
57776
|
+
if ("3.8.1".length > 0) {
|
|
57777
|
+
return "3.8.1";
|
|
57778
57778
|
}
|
|
57779
57779
|
const fromEnv = process.env.SENTINELLO_VERSION;
|
|
57780
57780
|
if (fromEnv && fromEnv.trim().length > 0) return fromEnv.trim();
|