@kitman-sh/cli 0.10.98 → 0.10.99
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/{chunk-g1xmj2nb.js → chunk-0a10kdrd.js} +4 -4
- package/dist/{chunk-aba9zdpb.js → chunk-0hjtwtms.js} +59 -34
- package/dist/{chunk-7c3pgktm.js → chunk-0tsc91qr.js} +8 -8
- package/dist/{chunk-sy8d7bfa.js → chunk-2fs34341.js} +111 -105
- package/dist/{chunk-797w5qe6.js → chunk-3ka78n56.js} +7 -7
- package/dist/{chunk-p83y21hp.js → chunk-3r7ahnwy.js} +4 -4
- package/dist/{chunk-6dc0x5cg.js → chunk-3v70x040.js} +8 -8
- package/dist/{chunk-fd39ch4n.js → chunk-4sswz0mn.js} +8 -8
- package/dist/{chunk-95mkdtzk.js → chunk-56e202xk.js} +6 -6
- package/dist/{chunk-j8vq6sk1.js → chunk-6vmpa1nw.js} +19 -19
- package/dist/{chunk-7ya2q09c.js → chunk-a244myqw.js} +1 -1
- package/dist/{chunk-gfqm22x7.js → chunk-abf4m4b2.js} +5 -5
- package/dist/{chunk-07p2dcq3.js → chunk-ampzxrqe.js} +94 -333
- package/dist/{chunk-d1sqb8rt.js → chunk-bk3dpjxq.js} +1 -1
- package/dist/{chunk-qrxkpwzy.js → chunk-et6qa95h.js} +1 -1
- package/dist/{chunk-cgjyv52e.js → chunk-fv6kgtze.js} +2 -2
- package/dist/{chunk-xwhybbj2.js → chunk-g3r5xp0t.js} +2 -2
- package/dist/{chunk-3bjekzn7.js → chunk-k0shg2fb.js} +485 -333
- package/dist/{chunk-nym2zmz3.js → chunk-rdv42ygn.js} +4 -4
- package/dist/{chunk-bqg9gy2e.js → chunk-rp224rm4.js} +7 -7
- package/dist/{chunk-s90hj0mb.js → chunk-rrj434w6.js} +361 -133
- package/dist/{chunk-n8c1wh6t.js → chunk-t7ncjd6s.js} +6 -6
- package/dist/{chunk-s5p94z8x.js → chunk-vjcn82g3.js} +214 -65
- package/dist/{chunk-c6h3fhtb.js → chunk-z2f9enrp.js} +24 -24
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-fv6kgtze.js";
|
|
8
|
+
import"./chunk-et6qa95h.js";
|
|
9
|
+
import"./chunk-bk3dpjxq.js";
|
|
10
|
+
import"./chunk-ampzxrqe.js";
|
|
11
11
|
export {
|
|
12
12
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
13
13
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
gen,
|
|
13
13
|
fail7,
|
|
14
14
|
flatMap3,
|
|
15
|
-
|
|
15
|
+
map8,
|
|
16
16
|
mapError2,
|
|
17
17
|
orDie,
|
|
18
18
|
provide3,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ampzxrqe.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-vjcn82g3.js";
|
|
32
32
|
import {
|
|
33
33
|
digestSha256,
|
|
34
34
|
digestSha512,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
get2,
|
|
39
39
|
layer4,
|
|
40
40
|
KitDigest
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-k0shg2fb.js";
|
|
42
42
|
|
|
43
43
|
// packages/core/src/npm-registry.ts
|
|
44
44
|
var KitManifest = Struct({
|
|
@@ -72,7 +72,7 @@ var PackageJson = Struct({ kitman: optionalKey(Unknown) });
|
|
|
72
72
|
var decodePackageJson = decodeUnknownOption(fromJsonString(PackageJson));
|
|
73
73
|
var decodeManifest = decodeUnknownOption(KitManifest);
|
|
74
74
|
var decodeJson = decodeUnknownOption(fromJsonString(Unknown));
|
|
75
|
-
var gunzip = (bytes) => tryPromise(() => new Response(new Blob([new Uint8Array(bytes)]).stream().pipeThrough(new DecompressionStream("gzip"))).arrayBuffer()).pipe(
|
|
75
|
+
var gunzip = (bytes) => tryPromise(() => new Response(new Blob([new Uint8Array(bytes)]).stream().pipeThrough(new DecompressionStream("gzip"))).arrayBuffer()).pipe(map8((buffer) => new Uint8Array(buffer)));
|
|
76
76
|
var text = (bytes) => new TextDecoder().decode(bytes).replace(/\0.*$/su, "");
|
|
77
77
|
var untar = (tar) => {
|
|
78
78
|
const files = new Map;
|
|
@@ -101,7 +101,7 @@ var untar = (tar) => {
|
|
|
101
101
|
};
|
|
102
102
|
var registryUrl = String2("NPM_CONFIG_REGISTRY").pipe(withDefault("https://registry.npmjs.org"));
|
|
103
103
|
var npmRegistryAt = (url = registryUrl) => {
|
|
104
|
-
const base = (isString2(url) ? succeed6(url) : orDie(url)).pipe(
|
|
104
|
+
const base = (isString2(url) ? succeed6(url) : orDie(url)).pipe(map8((value) => value.replace(/\/+$/u, "")));
|
|
105
105
|
const unreachable = (name, version) => (error) => new NpmRegistryError({
|
|
106
106
|
kind: "unreachable",
|
|
107
107
|
message: `npm did not answer for ${name}@${version}: ${error.message}; try again`
|
|
@@ -123,7 +123,7 @@ var npmRegistryAt = (url = registryUrl) => {
|
|
|
123
123
|
const dist = found.versions[version]?.dist;
|
|
124
124
|
if (dist === undefined)
|
|
125
125
|
return yield* new NpmRegistryError({ kind: "not_found", message: `npm has no ${name}@${wanted}` });
|
|
126
|
-
const tarball = yield* get2(dist.tarball).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer),
|
|
126
|
+
const tarball = yield* get2(dist.tarball).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer), map8((buffer) => new Uint8Array(buffer)), mapError2(unreachable(name, version)), provide3(layer4));
|
|
127
127
|
if (!tarballMatches(tarball, dist))
|
|
128
128
|
return yield* new NpmRegistryError({
|
|
129
129
|
kind: "integrity",
|