scream-code 0.10.1 → 0.10.3

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.
@@ -0,0 +1,95 @@
1
+ #!/usr/bin/env node
2
+ import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';
3
+ import { dirname as __cjsShimDirname } from 'node:path';
4
+ const __filename = __cjsShimFileURLToPath(import.meta.url);
5
+ const __dirname = __cjsShimDirname(__filename);
6
+ import { t as __commonJSMin } from "./chunk-D90kvbyJ.mjs";
7
+ //#region ../../node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js
8
+ var require_base64_js = /* @__PURE__ */ __commonJSMin(((exports) => {
9
+ exports.byteLength = byteLength;
10
+ exports.toByteArray = toByteArray;
11
+ exports.fromByteArray = fromByteArray;
12
+ var lookup = [];
13
+ var revLookup = [];
14
+ var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
15
+ var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
16
+ for (var i = 0, len = code.length; i < len; ++i) {
17
+ lookup[i] = code[i];
18
+ revLookup[code.charCodeAt(i)] = i;
19
+ }
20
+ revLookup["-".charCodeAt(0)] = 62;
21
+ revLookup["_".charCodeAt(0)] = 63;
22
+ function getLens(b64) {
23
+ var len = b64.length;
24
+ if (len % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
25
+ var validLen = b64.indexOf("=");
26
+ if (validLen === -1) validLen = len;
27
+ var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;
28
+ return [validLen, placeHoldersLen];
29
+ }
30
+ function byteLength(b64) {
31
+ var lens = getLens(b64);
32
+ var validLen = lens[0];
33
+ var placeHoldersLen = lens[1];
34
+ return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
35
+ }
36
+ function _byteLength(b64, validLen, placeHoldersLen) {
37
+ return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
38
+ }
39
+ function toByteArray(b64) {
40
+ var tmp;
41
+ var lens = getLens(b64);
42
+ var validLen = lens[0];
43
+ var placeHoldersLen = lens[1];
44
+ var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
45
+ var curByte = 0;
46
+ var len = placeHoldersLen > 0 ? validLen - 4 : validLen;
47
+ var i;
48
+ for (i = 0; i < len; i += 4) {
49
+ tmp = revLookup[b64.charCodeAt(i)] << 18 | revLookup[b64.charCodeAt(i + 1)] << 12 | revLookup[b64.charCodeAt(i + 2)] << 6 | revLookup[b64.charCodeAt(i + 3)];
50
+ arr[curByte++] = tmp >> 16 & 255;
51
+ arr[curByte++] = tmp >> 8 & 255;
52
+ arr[curByte++] = tmp & 255;
53
+ }
54
+ if (placeHoldersLen === 2) {
55
+ tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4;
56
+ arr[curByte++] = tmp & 255;
57
+ }
58
+ if (placeHoldersLen === 1) {
59
+ tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2;
60
+ arr[curByte++] = tmp >> 8 & 255;
61
+ arr[curByte++] = tmp & 255;
62
+ }
63
+ return arr;
64
+ }
65
+ function tripletToBase64(num) {
66
+ return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
67
+ }
68
+ function encodeChunk(uint8, start, end) {
69
+ var tmp;
70
+ var output = [];
71
+ for (var i = start; i < end; i += 3) {
72
+ tmp = (uint8[i] << 16 & 16711680) + (uint8[i + 1] << 8 & 65280) + (uint8[i + 2] & 255);
73
+ output.push(tripletToBase64(tmp));
74
+ }
75
+ return output.join("");
76
+ }
77
+ function fromByteArray(uint8) {
78
+ var tmp;
79
+ var len = uint8.length;
80
+ var extraBytes = len % 3;
81
+ var parts = [];
82
+ var maxChunkLength = 16383;
83
+ for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) parts.push(encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength));
84
+ if (extraBytes === 1) {
85
+ tmp = uint8[len - 1];
86
+ parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "==");
87
+ } else if (extraBytes === 2) {
88
+ tmp = (uint8[len - 2] << 8) + uint8[len - 1];
89
+ parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "=");
90
+ }
91
+ return parts.join("");
92
+ }
93
+ }));
94
+ //#endregion
95
+ export { require_base64_js as t };
@@ -36,6 +36,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
36
36
  value: mod,
37
37
  enumerable: true
38
38
  }) : target, mod));
39
+ var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
39
40
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
40
41
  //#endregion
41
- export { __toESM as a, __require as i, __esmMin as n, __exportAll as r, __commonJSMin as t };
42
+ export { __toCommonJS as a, __require as i, __esmMin as n, __toESM as o, __exportAll as r, __commonJSMin as t };
@@ -3,7 +3,7 @@ import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';
3
3
  import { dirname as __cjsShimDirname } from 'node:path';
4
4
  const __filename = __cjsShimFileURLToPath(import.meta.url);
5
5
  const __dirname = __cjsShimDirname(__filename);
6
- import { i as __require, t as __commonJSMin } from "./chunk-apG1qJts.mjs";
6
+ import { i as __require, t as __commonJSMin } from "./chunk-D90kvbyJ.mjs";
7
7
  //#region ../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
8
8
  var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9
9
  /**
@@ -3,7 +3,7 @@ import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';
3
3
  import { dirname as __cjsShimDirname } from 'node:path';
4
4
  const __filename = __cjsShimFileURLToPath(import.meta.url);
5
5
  const __dirname = __cjsShimDirname(__filename);
6
- import { i as __require, n as __esmMin, t as __commonJSMin } from "./chunk-apG1qJts.mjs";
6
+ import { i as __require, n as __esmMin, t as __commonJSMin } from "./chunk-D90kvbyJ.mjs";
7
7
  import { promises } from "node:fs";
8
8
  import "node:path";
9
9
  //#region ../../node_modules/.pnpm/web-streams-polyfill@3.3.3/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js
package/dist/main.mjs CHANGED
@@ -6,7 +6,7 @@ const __dirname = __cjsShimDirname(__filename);
6
6
  import "./suppress-sqlite-warning-C2VB0doZ.mjs";
7
7
  //#region src/main.ts
8
8
  try {
9
- (await import("./app-DVRLAZ8b.mjs")).main();
9
+ (await import("./app-DkhRwgvY.mjs")).main();
10
10
  } catch (error) {
11
11
  process.stderr.write(`${error instanceof Error ? error.stack ?? error.message : String(error)}\n`);
12
12
  process.exit(1);