windmill-cli 1.479.2 → 1.480.0

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.
Files changed (82) hide show
  1. package/esm/deps/jsr.io/@std/encoding/1.0.4/_base32_common.js +183 -0
  2. package/esm/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/_validate_binary_like.js +1 -1
  3. package/esm/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/ascii85.js +1 -1
  4. package/esm/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/base32.js +22 -40
  5. package/esm/deps/jsr.io/@std/encoding/1.0.4/base32_stream.js +92 -0
  6. package/esm/deps/jsr.io/@std/encoding/1.0.4/base32hex.js +77 -0
  7. package/esm/deps/jsr.io/@std/encoding/1.0.4/base32hex_stream.js +92 -0
  8. package/esm/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/base58.js +1 -1
  9. package/esm/deps/jsr.io/@std/encoding/1.0.4/base64.js +163 -0
  10. package/esm/deps/jsr.io/@std/encoding/1.0.4/base64_stream.js +92 -0
  11. package/esm/deps/jsr.io/@std/encoding/1.0.4/base64url.js +81 -0
  12. package/esm/deps/jsr.io/@std/encoding/1.0.4/base64url_stream.js +93 -0
  13. package/esm/deps/jsr.io/@std/encoding/1.0.4/hex.js +109 -0
  14. package/esm/deps/jsr.io/@std/encoding/1.0.4/hex_stream.js +81 -0
  15. package/esm/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/mod.js +7 -2
  16. package/esm/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/varint.js +3 -1
  17. package/esm/deps.js +1 -1
  18. package/esm/gen/core/OpenAPI.js +1 -1
  19. package/esm/hub.js +3 -16
  20. package/esm/main.js +1 -1
  21. package/package.json +1 -1
  22. package/types/deps/jsr.io/@std/encoding/1.0.4/_base32_common.d.ts +17 -0
  23. package/types/deps/jsr.io/@std/encoding/1.0.4/_base32_common.d.ts.map +1 -0
  24. package/types/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/_validate_binary_like.d.ts.map +1 -1
  25. package/types/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/ascii85.d.ts +1 -3
  26. package/types/deps/jsr.io/@std/encoding/1.0.4/ascii85.d.ts.map +1 -0
  27. package/types/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/base32.d.ts +15 -17
  28. package/types/deps/jsr.io/@std/encoding/1.0.4/base32.d.ts.map +1 -0
  29. package/types/deps/jsr.io/@std/encoding/1.0.4/base32_stream.d.ts +48 -0
  30. package/types/deps/jsr.io/@std/encoding/1.0.4/base32_stream.d.ts.map +1 -0
  31. package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex.d.ts +42 -0
  32. package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex.d.ts.map +1 -0
  33. package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex_stream.d.ts +48 -0
  34. package/types/deps/jsr.io/@std/encoding/1.0.4/base32hex_stream.d.ts.map +1 -0
  35. package/types/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/base58.d.ts +1 -3
  36. package/types/deps/jsr.io/@std/encoding/1.0.4/base58.d.ts.map +1 -0
  37. package/types/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/base64.d.ts +1 -3
  38. package/types/deps/jsr.io/@std/encoding/1.0.4/base64.d.ts.map +1 -0
  39. package/types/deps/jsr.io/@std/encoding/1.0.4/base64_stream.d.ts +48 -0
  40. package/types/deps/jsr.io/@std/encoding/1.0.4/base64_stream.d.ts.map +1 -0
  41. package/types/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/base64url.d.ts +1 -3
  42. package/types/deps/jsr.io/@std/encoding/1.0.4/base64url.d.ts.map +1 -0
  43. package/types/deps/jsr.io/@std/encoding/1.0.4/base64url_stream.d.ts +49 -0
  44. package/types/deps/jsr.io/@std/encoding/1.0.4/base64url_stream.d.ts.map +1 -0
  45. package/types/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/hex.d.ts +1 -3
  46. package/types/deps/jsr.io/@std/encoding/1.0.4/hex.d.ts.map +1 -0
  47. package/types/deps/jsr.io/@std/encoding/1.0.4/hex_stream.d.ts +48 -0
  48. package/types/deps/jsr.io/@std/encoding/1.0.4/hex_stream.d.ts.map +1 -0
  49. package/types/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/mod.d.ts +6 -0
  50. package/types/deps/jsr.io/@std/encoding/1.0.4/mod.d.ts.map +1 -0
  51. package/types/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/varint.d.ts +1 -3
  52. package/types/deps/jsr.io/@std/encoding/1.0.4/varint.d.ts.map +1 -0
  53. package/types/deps.d.ts +1 -1
  54. package/types/hub.d.ts.map +1 -1
  55. package/types/main.d.ts +1 -1
  56. package/esm/deps/jsr.io/@std/encoding/1.0.8/_common16.js +0 -45
  57. package/esm/deps/jsr.io/@std/encoding/1.0.8/_common32.js +0 -175
  58. package/esm/deps/jsr.io/@std/encoding/1.0.8/_common64.js +0 -98
  59. package/esm/deps/jsr.io/@std/encoding/1.0.8/_common_detach.js +0 -13
  60. package/esm/deps/jsr.io/@std/encoding/1.0.8/_types.js +0 -2
  61. package/esm/deps/jsr.io/@std/encoding/1.0.8/base64.js +0 -82
  62. package/esm/deps/jsr.io/@std/encoding/1.0.8/base64url.js +0 -72
  63. package/esm/deps/jsr.io/@std/encoding/1.0.8/hex.js +0 -87
  64. package/types/deps/jsr.io/@std/encoding/1.0.8/_common16.d.ts +0 -21
  65. package/types/deps/jsr.io/@std/encoding/1.0.8/_common16.d.ts.map +0 -1
  66. package/types/deps/jsr.io/@std/encoding/1.0.8/_common32.d.ts +0 -21
  67. package/types/deps/jsr.io/@std/encoding/1.0.8/_common32.d.ts.map +0 -1
  68. package/types/deps/jsr.io/@std/encoding/1.0.8/_common64.d.ts +0 -21
  69. package/types/deps/jsr.io/@std/encoding/1.0.8/_common64.d.ts.map +0 -1
  70. package/types/deps/jsr.io/@std/encoding/1.0.8/_common_detach.d.ts +0 -4
  71. package/types/deps/jsr.io/@std/encoding/1.0.8/_common_detach.d.ts.map +0 -1
  72. package/types/deps/jsr.io/@std/encoding/1.0.8/_types.d.ts +0 -9
  73. package/types/deps/jsr.io/@std/encoding/1.0.8/_types.d.ts.map +0 -1
  74. package/types/deps/jsr.io/@std/encoding/1.0.8/ascii85.d.ts.map +0 -1
  75. package/types/deps/jsr.io/@std/encoding/1.0.8/base32.d.ts.map +0 -1
  76. package/types/deps/jsr.io/@std/encoding/1.0.8/base58.d.ts.map +0 -1
  77. package/types/deps/jsr.io/@std/encoding/1.0.8/base64.d.ts.map +0 -1
  78. package/types/deps/jsr.io/@std/encoding/1.0.8/base64url.d.ts.map +0 -1
  79. package/types/deps/jsr.io/@std/encoding/1.0.8/hex.d.ts.map +0 -1
  80. package/types/deps/jsr.io/@std/encoding/1.0.8/mod.d.ts.map +0 -1
  81. package/types/deps/jsr.io/@std/encoding/1.0.8/varint.d.ts.map +0 -1
  82. /package/types/deps/jsr.io/@std/encoding/{1.0.8 → 1.0.4}/_validate_binary_like.d.ts +0 -0
package/esm/hub.js CHANGED
@@ -25,27 +25,14 @@ export async function pull(opts) {
25
25
  if (uid) {
26
26
  headers["X-uid"] = uid;
27
27
  }
28
- let preList = await fetch(hubBaseUrl + "/resource_types/list", {
28
+ let list = await fetch(hubBaseUrl + "/resource_types/list", {
29
29
  headers,
30
30
  }).then((r) => r.json());
31
- if (preList && preList.length === 0 && hubBaseUrl !== DEFAULT_HUB_BASE_URL) {
32
- preList = await fetch(DEFAULT_HUB_BASE_URL + "/resource_types/list", {
31
+ if (list && list.length === 0 && hubBaseUrl !== DEFAULT_HUB_BASE_URL) {
32
+ list = await fetch(DEFAULT_HUB_BASE_URL + "/resource_types/list", {
33
33
  headers,
34
34
  }).then((r) => r.json());
35
35
  }
36
- let list = await Promise.all(preList.map((x) => fetch(hubBaseUrl + "/resource_types/" + x.id + "/" + x.name, {
37
- headers: {
38
- Accept: "application/json",
39
- },
40
- })))
41
- .then((x) => x.map((x) => x.json().catch((e) => {
42
- log.info(e);
43
- return undefined;
44
- })))
45
- .then((x) => Promise.all(x))
46
- .then((x) => x
47
- .filter((x) => x)
48
- .map((x) => x.resource_type));
49
36
  const resourceTypes = await wmill.listResourceType({
50
37
  workspace: workspace.workspaceId,
51
38
  });
package/esm/main.js CHANGED
@@ -34,7 +34,7 @@ export { flow, app, script, workspace, resource, user, variable, hub, folder, sc
34
34
  // console.error(JSON.stringify(event.error, null, 4));
35
35
  // }
36
36
  // });
37
- export const VERSION = "1.479.2";
37
+ export const VERSION = "1.480.0";
38
38
  const command = new Command()
39
39
  .name("wmill")
40
40
  .action(() => log.info(`Welcome to Windmill CLI ${VERSION}. Use -h for help.`))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-cli",
3
- "version": "1.479.2",
3
+ "version": "1.480.0",
4
4
  "description": "CLI for Windmill",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Decodes an encoded string with the given lookup table.
3
+ *
4
+ * @param b32 The string to encode.
5
+ * @param lookup The lookup table
6
+ * @returns The encoded string.
7
+ */
8
+ export declare function decode(b32: string, lookup: ReadonlyArray<string>): Uint8Array;
9
+ /**
10
+ * Encodes the given data using the lookup table.
11
+ *
12
+ * @param data The data to encode.
13
+ * @param lookup The lookup table.
14
+ * @returns The encoded string.
15
+ */
16
+ export declare function encode(data: ArrayBuffer | Uint8Array | string, lookup: ReadonlyArray<string>): string;
17
+ //# sourceMappingURL=_base32_common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_base32_common.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/_base32_common.ts"],"names":[],"mappings":"AAyCA;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,UAAU,CAqE7E;AA6BD;;;;;;GAMG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,EACvC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,GAC5B,MAAM,CA6DR"}
@@ -1 +1 @@
1
- {"version":3,"file":"_validate_binary_like.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.8/_validate_binary_like.ts"],"names":[],"mappings":"AAeA,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAa9D"}
1
+ {"version":3,"file":"_validate_binary_like.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/_validate_binary_like.ts"],"names":[],"mappings":"AAeA,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAa9D"}
@@ -1,5 +1,3 @@
1
- import type { Uint8Array_ } from "./_types.js";
2
- export type { Uint8Array_ };
3
1
  /**
4
2
  * Supported ascii85 standards for {@linkcode EncodeAscii85Options} and
5
3
  * {@linkcode DecodeAscii85Options}.
@@ -57,5 +55,5 @@ export type DecodeAscii85Options = Omit<EncodeAscii85Options, "delimiter">;
57
55
  * );
58
56
  * ```
59
57
  */
60
- export declare function decodeAscii85(ascii85: string, options?: DecodeAscii85Options): Uint8Array_;
58
+ export declare function decodeAscii85(ascii85: string, options?: DecodeAscii85Options): Uint8Array;
61
59
  //# sourceMappingURL=ascii85.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ascii85.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/ascii85.ts"],"names":[],"mappings":"AAyBA;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,KAAK,CAAC;AAEpE,6CAA6C;AAC7C,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAOD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,EACvC,OAAO,GAAE,oBAAyB,GACjC,MAAM,CA6DR;AAED,6CAA6C;AAC7C,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,oBAAoB,EAAE,WAAW,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,oBAAyB,GACjC,UAAU,CA4CZ"}
@@ -1,40 +1,38 @@
1
- import type { Uint8Array_ } from "./_types.js";
2
- export type { Uint8Array_ };
3
1
  /**
4
- * Converts data into a base32-encoded string.
2
+ * Decodes a base32-encoded string.
5
3
  *
6
4
  * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
7
5
  *
8
- * @param data The data to encode.
9
- * @returns The base32-encoded string.
6
+ * @param b32 The base32-encoded string to decode.
7
+ * @returns The decoded data.
10
8
  *
11
9
  * @example Usage
12
10
  * ```ts
13
- * import { encodeBase32 } from "@std/encoding/base32";
11
+ * import { decodeBase32 } from "@std/encoding/base32";
14
12
  * import { assertEquals } from "@std/assert";
15
13
  *
16
- * assertEquals(encodeBase32("6c60c0"), "GZRTMMDDGA======");
14
+ * assertEquals(
15
+ * decodeBase32("GZRTMMDDGA======"),
16
+ * new TextEncoder().encode("6c60c0"),
17
+ * );
17
18
  * ```
18
19
  */
19
- export declare function encodeBase32(data: ArrayBuffer | Uint8Array | string): string;
20
+ export declare function decodeBase32(b32: string): Uint8Array;
20
21
  /**
21
- * Decodes a base32-encoded string.
22
+ * Converts data into a base32-encoded string.
22
23
  *
23
24
  * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
24
25
  *
25
- * @param b32 The base32-encoded string to decode.
26
- * @returns The decoded data.
26
+ * @param data The data to encode.
27
+ * @returns The base32-encoded string.
27
28
  *
28
29
  * @example Usage
29
30
  * ```ts
30
- * import { decodeBase32 } from "@std/encoding/base32";
31
+ * import { encodeBase32 } from "@std/encoding/base32";
31
32
  * import { assertEquals } from "@std/assert";
32
33
  *
33
- * assertEquals(
34
- * decodeBase32("GZRTMMDDGA======"),
35
- * new TextEncoder().encode("6c60c0"),
36
- * );
34
+ * assertEquals(encodeBase32("6c60c0"), "GZRTMMDDGA======");
37
35
  * ```
38
36
  */
39
- export declare function decodeBase32(b32: string): Uint8Array_;
37
+ export declare function encodeBase32(data: ArrayBuffer | Uint8Array | string): string;
40
38
  //# sourceMappingURL=base32.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base32.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/base32.ts"],"names":[],"mappings":"AA+BA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAEpD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAE5E"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Converts a Uint8Array stream into a base32-encoded stream.
3
+ *
4
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
5
+ *
6
+ * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
7
+ *
8
+ * @example Usage
9
+ * ```ts
10
+ * import { assertEquals } from "@std/assert";
11
+ * import { encodeBase32 } from "@std/encoding/base32";
12
+ * import { Base32EncoderStream } from "@std/encoding/base32-stream";
13
+ * import { toText } from "@std/streams/to-text";
14
+ *
15
+ * const stream = ReadableStream.from(["Hello,", " world!"])
16
+ * .pipeThrough(new TextEncoderStream())
17
+ * .pipeThrough(new Base32EncoderStream());
18
+ *
19
+ * assertEquals(await toText(stream), encodeBase32(new TextEncoder().encode("Hello, world!")));
20
+ * ```
21
+ */
22
+ export declare class Base32EncoderStream extends TransformStream<Uint8Array, string> {
23
+ constructor();
24
+ }
25
+ /**
26
+ * Decodes a base32-encoded stream into a Uint8Array stream.
27
+ *
28
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
29
+ *
30
+ * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
31
+ *
32
+ * @example Usage
33
+ * ```ts
34
+ * import { assertEquals } from "@std/assert";
35
+ * import { Base32DecoderStream } from "@std/encoding/base32-stream";
36
+ * import { toText } from "@std/streams/to-text";
37
+ *
38
+ * const stream = ReadableStream.from(["JBSWY3DPEBLW64TMMQQQ===="])
39
+ * .pipeThrough(new Base32DecoderStream())
40
+ * .pipeThrough(new TextDecoderStream());
41
+ *
42
+ * assertEquals(await toText(stream), "Hello World!");
43
+ * ```
44
+ */
45
+ export declare class Base32DecoderStream extends TransformStream<string, Uint8Array> {
46
+ constructor();
47
+ }
48
+ //# sourceMappingURL=base32_stream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base32_stream.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/base32_stream.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,mBAAoB,SAAQ,eAAe,CAAC,UAAU,EAAE,MAAM,CAAC;;CAsB3E;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,mBAAoB,SAAQ,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC;;CAoB3E"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Decodes a base32hex-encoded string.
3
+ *
4
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
5
+ *
6
+ * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-7}
7
+ *
8
+ * @param b32 The base32hex-encoded string to decode.
9
+ * @returns The decoded data.
10
+ *
11
+ * @example Usage
12
+ * ```ts
13
+ * import { decodeBase32Hex } from "@std/encoding/base32hex";
14
+ * import { assertEquals } from "@std/assert";
15
+ *
16
+ * assertEquals(
17
+ * decodeBase32Hex("6PHJCC3360======"),
18
+ * new TextEncoder().encode("6c60c0"),
19
+ * );
20
+ * ```
21
+ */
22
+ export declare function decodeBase32Hex(b32: string): Uint8Array;
23
+ /**
24
+ * Converts data into a base32hex-encoded string.
25
+ *
26
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
27
+ *
28
+ * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-7}
29
+ *
30
+ * @param data The data to encode.
31
+ * @returns The base32hex-encoded string.
32
+ *
33
+ * @example Usage
34
+ * ```ts
35
+ * import { encodeBase32Hex } from "@std/encoding/base32hex";
36
+ * import { assertEquals } from "@std/assert";
37
+ *
38
+ * assertEquals(encodeBase32Hex("6c60c0"), "6PHJCC3360======");
39
+ * ```
40
+ */
41
+ export declare function encodeBase32Hex(data: ArrayBuffer | Uint8Array | string): string;
42
+ //# sourceMappingURL=base32hex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base32hex.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/base32hex.ts"],"names":[],"mappings":"AAmCA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAEvD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GACtC,MAAM,CAER"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Converts a Uint8Array stream into a base32hex-encoded stream.
3
+ *
4
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
5
+ *
6
+ * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
7
+ *
8
+ * @example Usage
9
+ * ```ts
10
+ * import { assertEquals } from "@std/assert";
11
+ * import { encodeBase32Hex } from "@std/encoding/base32hex";
12
+ * import { Base32HexEncoderStream } from "@std/encoding/base32hex-stream";
13
+ * import { toText } from "@std/streams/to-text";
14
+ *
15
+ * const stream = ReadableStream.from(["Hello,", " world!"])
16
+ * .pipeThrough(new TextEncoderStream())
17
+ * .pipeThrough(new Base32HexEncoderStream());
18
+ *
19
+ * assertEquals(await toText(stream), encodeBase32Hex(new TextEncoder().encode("Hello, world!")));
20
+ * ```
21
+ */
22
+ export declare class Base32HexEncoderStream extends TransformStream<Uint8Array, string> {
23
+ constructor();
24
+ }
25
+ /**
26
+ * Decodes a base32hex-encoded stream into a Uint8Array stream.
27
+ *
28
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
29
+ *
30
+ * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6}
31
+ *
32
+ * @example Usage
33
+ * ```ts
34
+ * import { assertEquals } from "@std/assert";
35
+ * import { Base32HexDecoderStream } from "@std/encoding/base32hex-stream";
36
+ * import { toText } from "@std/streams/to-text";
37
+ *
38
+ * const stream = ReadableStream.from(["91IMOR3F5GG7ERRI", "DHI22==="])
39
+ * .pipeThrough(new Base32HexDecoderStream())
40
+ * .pipeThrough(new TextDecoderStream());
41
+ *
42
+ * assertEquals(await toText(stream), "Hello, world!");
43
+ * ```
44
+ */
45
+ export declare class Base32HexDecoderStream extends TransformStream<string, Uint8Array> {
46
+ constructor();
47
+ }
48
+ //# sourceMappingURL=base32hex_stream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base32hex_stream.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/base32hex_stream.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,sBACX,SAAQ,eAAe,CAAC,UAAU,EAAE,MAAM,CAAC;;CAsB5C;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,sBACX,SAAQ,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC;;CAsB5C"}
@@ -1,5 +1,3 @@
1
- import type { Uint8Array_ } from "./_types.js";
2
- export type { Uint8Array_ };
3
1
  /**
4
2
  * Converts data into a base58-encoded string.
5
3
  *
@@ -36,5 +34,5 @@ export declare function encodeBase58(data: ArrayBuffer | Uint8Array | string): s
36
34
  * );
37
35
  * ```
38
36
  */
39
- export declare function decodeBase58(b58: string): Uint8Array_;
37
+ export declare function decodeBase58(b58: string): Uint8Array;
40
38
  //# sourceMappingURL=base58.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base58.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/base58.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAgD5E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAkDpD"}
@@ -1,5 +1,3 @@
1
- import type { Uint8Array_ } from "./_types.js";
2
- export type { Uint8Array_ };
3
1
  /**
4
2
  * Converts data into a base64-encoded string.
5
3
  *
@@ -36,5 +34,5 @@ export declare function encodeBase64(data: ArrayBuffer | Uint8Array | string): s
36
34
  * );
37
35
  * ```
38
36
  */
39
- export declare function decodeBase64(b64: string): Uint8Array_;
37
+ export declare function decodeBase64(b64: string): Uint8Array;
40
38
  //# sourceMappingURL=base64.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/base64.ts"],"names":[],"mappings":"AA6FA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAmC5E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAQpD"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Converts a Uint8Array stream into a base64-encoded stream.
3
+ *
4
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
5
+ *
6
+ * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-4}
7
+ *
8
+ * @example Usage
9
+ * ```ts
10
+ * import { assertEquals } from "@std/assert";
11
+ * import { encodeBase64 } from "@std/encoding/base64";
12
+ * import { Base64EncoderStream } from "@std/encoding/base64-stream";
13
+ * import { toText } from "@std/streams/to-text";
14
+ *
15
+ * const stream = ReadableStream.from(["Hello,", " world!"])
16
+ * .pipeThrough(new TextEncoderStream())
17
+ * .pipeThrough(new Base64EncoderStream());
18
+ *
19
+ * assertEquals(await toText(stream), encodeBase64(new TextEncoder().encode("Hello, world!")));
20
+ * ```
21
+ */
22
+ export declare class Base64EncoderStream extends TransformStream<Uint8Array, string> {
23
+ constructor();
24
+ }
25
+ /**
26
+ * Decodes a base64-encoded stream into a Uint8Array stream.
27
+ *
28
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
29
+ *
30
+ * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-4}
31
+ *
32
+ * @example Usage
33
+ * ```ts
34
+ * import { assertEquals } from "@std/assert";
35
+ * import { Base64DecoderStream } from "@std/encoding/base64-stream";
36
+ * import { toText } from "@std/streams/to-text";
37
+ *
38
+ * const stream = ReadableStream.from(["SGVsbG8s", "IHdvcmxkIQ=="])
39
+ * .pipeThrough(new Base64DecoderStream())
40
+ * .pipeThrough(new TextDecoderStream());
41
+ *
42
+ * assertEquals(await toText(stream), "Hello, world!");
43
+ * ```
44
+ */
45
+ export declare class Base64DecoderStream extends TransformStream<string, Uint8Array> {
46
+ constructor();
47
+ }
48
+ //# sourceMappingURL=base64_stream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base64_stream.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/base64_stream.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,mBAAoB,SAAQ,eAAe,CAAC,UAAU,EAAE,MAAM,CAAC;;CAsB3E;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,mBAAoB,SAAQ,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC;;CAoB3E"}
@@ -1,5 +1,3 @@
1
- import type { Uint8Array_ } from "./_types.js";
2
- export type { Uint8Array_ };
3
1
  /**
4
2
  * Convert data into a base64url-encoded string.
5
3
  *
@@ -36,5 +34,5 @@ export declare function encodeBase64Url(data: ArrayBuffer | Uint8Array | string)
36
34
  * );
37
35
  * ```
38
36
  */
39
- export declare function decodeBase64Url(b64url: string): Uint8Array_;
37
+ export declare function decodeBase64Url(b64url: string): Uint8Array;
40
38
  //# sourceMappingURL=base64url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base64url.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/base64url.ts"],"names":[],"mappings":"AA4CA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,GACtC,MAAM,CAER;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAE1D"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Converts a Uint8Array stream into a base64url-encoded stream.
3
+ *
4
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
5
+ *
6
+ * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5}
7
+ *
8
+ * @example Usage
9
+ * ```ts
10
+ * import { assertEquals } from "@std/assert";
11
+ * import { encodeBase64Url } from "@std/encoding/base64url";
12
+ * import { Base64UrlEncoderStream } from "@std/encoding/base64url-stream";
13
+ * import { toText } from "@std/streams/to-text";
14
+ *
15
+ * const stream = ReadableStream.from(["Hello,", " world!"])
16
+ * .pipeThrough(new TextEncoderStream())
17
+ * .pipeThrough(new Base64UrlEncoderStream());
18
+ *
19
+ * assertEquals(await toText(stream), encodeBase64Url(new TextEncoder().encode("Hello, world!")));
20
+ * ```
21
+ */
22
+ export declare class Base64UrlEncoderStream extends TransformStream<Uint8Array, string> {
23
+ constructor();
24
+ }
25
+ /**
26
+ * Decodes a base64url-encoded stream into a Uint8Array stream.
27
+ *
28
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
29
+ *
30
+ * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5}
31
+ *
32
+ * @example Usage
33
+ * ```ts
34
+ * import { assertEquals } from "@std/assert";
35
+ * import { encodeBase64Url } from "@std/encoding/base64url";
36
+ * import { Base64UrlDecoderStream } from "@std/encoding/base64url-stream";
37
+ * import { toText } from "@std/streams/to-text";
38
+ *
39
+ * const stream = ReadableStream.from(["SGVsbG8s", "IHdvcmxkIQ"])
40
+ * .pipeThrough(new Base64UrlDecoderStream())
41
+ * .pipeThrough(new TextDecoderStream());
42
+ *
43
+ * assertEquals(await toText(stream), "Hello, world!");
44
+ * ```
45
+ */
46
+ export declare class Base64UrlDecoderStream extends TransformStream<string, Uint8Array> {
47
+ constructor();
48
+ }
49
+ //# sourceMappingURL=base64url_stream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base64url_stream.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/base64url_stream.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,sBACX,SAAQ,eAAe,CAAC,UAAU,EAAE,MAAM,CAAC;;CAsB5C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,sBACX,SAAQ,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC;;CAsB5C"}
@@ -1,5 +1,3 @@
1
- import type { Uint8Array_ } from "./_types.js";
2
- export type { Uint8Array_ };
3
1
  /**
4
2
  * Converts data into a hex-encoded string.
5
3
  *
@@ -35,5 +33,5 @@ export declare function encodeHex(src: string | Uint8Array | ArrayBuffer): strin
35
33
  * );
36
34
  * ```
37
35
  */
38
- export declare function decodeHex(src: string): Uint8Array_;
36
+ export declare function decodeHex(src: string): Uint8Array;
39
37
  //# sourceMappingURL=hex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hex.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/hex.ts"],"names":[],"mappings":"AAwDA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAUxE;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAiBjD"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Converts a Uint8Array stream into a hex-encoded stream.
3
+ *
4
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
5
+ *
6
+ * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-8}
7
+ *
8
+ * @example Usage
9
+ * ```ts
10
+ * import { assertEquals } from "@std/assert";
11
+ * import { encodeHex } from "@std/encoding/hex";
12
+ * import { HexEncoderStream } from "@std/encoding/hex-stream";
13
+ * import { toText } from "@std/streams/to-text";
14
+ *
15
+ * const stream = ReadableStream.from(["Hello,", " world!"])
16
+ * .pipeThrough(new TextEncoderStream())
17
+ * .pipeThrough(new HexEncoderStream());
18
+ *
19
+ * assertEquals(await toText(stream), encodeHex(new TextEncoder().encode("Hello, world!")));
20
+ * ```
21
+ */
22
+ export declare class HexEncoderStream extends TransformStream<Uint8Array, string> {
23
+ constructor();
24
+ }
25
+ /**
26
+ * Decodes a hex-encoded stream into a Uint8Array stream.
27
+ *
28
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
29
+ *
30
+ * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-8}
31
+ *
32
+ * @example Usage
33
+ * ```ts
34
+ * import { assertEquals } from "@std/assert";
35
+ * import { HexDecoderStream } from "@std/encoding/hex-stream";
36
+ * import { toText } from "@std/streams/to-text";
37
+ *
38
+ * const stream = ReadableStream.from(["48656c6c6f2c", "20776f726c6421"])
39
+ * .pipeThrough(new HexDecoderStream())
40
+ * .pipeThrough(new TextDecoderStream());
41
+ *
42
+ * assertEquals(await toText(stream), "Hello, world!");
43
+ * ```
44
+ */
45
+ export declare class HexDecoderStream extends TransformStream<string, Uint8Array> {
46
+ constructor();
47
+ }
48
+ //# sourceMappingURL=hex_stream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hex_stream.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/hex_stream.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,gBAAiB,SAAQ,eAAe,CAAC,UAAU,EAAE,MAAM,CAAC;;CAQxE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,gBAAiB,SAAQ,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC;;CAoBxE"}
@@ -14,9 +14,15 @@
14
14
  */
15
15
  export * from "./ascii85.js";
16
16
  export * from "./base32.js";
17
+ export * from "./base32_stream.js";
18
+ export * from "./base32hex.js";
19
+ export * from "./base32hex_stream.js";
17
20
  export * from "./base58.js";
18
21
  export * from "./base64.js";
22
+ export * from "./base64_stream.js";
19
23
  export * from "./base64url.js";
24
+ export * from "./base64url_stream.js";
20
25
  export * from "./hex.js";
26
+ export * from "./hex_stream.js";
21
27
  export * from "./varint.js";
22
28
  //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/mod.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
@@ -21,8 +21,6 @@
21
21
  *
22
22
  * @module
23
23
  */
24
- import type { Uint8Array_ } from "./_types.js";
25
- export type { Uint8Array_ };
26
24
  /**
27
25
  * The maximum value of an unsigned 64-bit integer.
28
26
  * Equivalent to `2n**64n - 1n`
@@ -116,5 +114,5 @@ export declare function decodeVarint32(buf: Uint8Array, offset?: number): [numbe
116
114
  * assertEquals(encodeVarint(42n, buf), [new Uint8Array([42]), 1]);
117
115
  * ```
118
116
  */
119
- export declare function encodeVarint(num: bigint | number, buf?: Uint8Array, offset?: number): [Uint8Array_, number];
117
+ export declare function encodeVarint(num: bigint | number, buf?: Uint8Array, offset?: number): [Uint8Array, number];
120
118
  //# sourceMappingURL=varint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"varint.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.4/varint.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAKH;;;GAGG;AACH,eAAO,MAAM,SAAS,wBAAwB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC;;GAEG;AACH,eAAO,MAAM,cAAc,IAAI,CAAC;AAahC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,SAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA6D1E;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,SAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAe5E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,GAAG,GAAE,UAA2C,EAChD,MAAM,SAAI,GACT,CAAC,UAAU,EAAE,MAAM,CAAC,CAuBtB"}
package/types/deps.d.ts CHANGED
@@ -12,7 +12,7 @@ export { CompletionsCommand } from "./deps/jsr.io/@windmill-labs/cliffy-command/
12
12
  export { ensureDir } from "./deps/jsr.io/@std/fs/1.0.15/mod.js";
13
13
  export { SEPARATOR as SEP } from "./deps/jsr.io/@std/path/1.0.8/mod.js";
14
14
  export * as path from "./deps/jsr.io/@std/path/1.0.8/mod.js";
15
- export { encodeHex } from "./deps/jsr.io/@std/encoding/1.0.8/mod.js";
15
+ export { encodeHex } from "./deps/jsr.io/@std/encoding/1.0.4/mod.js";
16
16
  export { writeAllSync } from "./deps/jsr.io/@std/io/0.225.2/write_all.js";
17
17
  export { copy } from "./deps/jsr.io/@std/io/0.225.2/copy.js";
18
18
  export { readAll } from "./deps/jsr.io/@std/io/0.225.2/read_all.js";
@@ -1 +1 @@
1
- {"version":3,"file":"hub.d.ts","sourceRoot":"","sources":["../src/hub.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAO,MAAM,WAAW,CAAC;AAKzC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,wBAAsB,IAAI,CAAC,IAAI,EAAE,aAAa,iBA0G7C;AAED,QAAA,MAAM,OAAO;;;;;;oBAKS,CAAC;AAEvB,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"hub.d.ts","sourceRoot":"","sources":["../src/hub.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAO,MAAM,WAAW,CAAC;AAKzC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAa3C,wBAAsB,IAAI,CAAC,IAAI,EAAE,aAAa,iBAwE7C;AAED,QAAA,MAAM,OAAO;;;;;;oBAKS,CAAC;AAEvB,eAAe,OAAO,CAAC"}
package/types/main.d.ts CHANGED
@@ -20,7 +20,7 @@ import { pull as hubPull } from "./hub.js";
20
20
  import { pull, push } from "./sync.js";
21
21
  import { add as workspaceAdd } from "./workspace.js";
22
22
  export { flow, app, script, workspace, resource, user, variable, hub, folder, schedule, trigger, sync, instance, dev, hubPull, pull, push, workspaceAdd, };
23
- export declare const VERSION = "1.479.2";
23
+ export declare const VERSION = "1.480.0";
24
24
  declare const command: Command<{
25
25
  workspace?: (import("./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").StringType & string) | undefined;
26
26
  } & {