hot-updater 0.17.0 → 0.18.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.
@@ -0,0 +1,99 @@
1
+ import { createRequire } from "node:module";
2
+
3
+ //#region rolldown:runtime
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __commonJS = (cb, mod) => function() {
11
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
15
+ key = keys[i];
16
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: ((k) => from[k]).bind(null, key),
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
+ value: mod,
25
+ enumerable: true
26
+ }) : target, mod));
27
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
28
+
29
+ //#endregion
30
+ //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
31
+ var require_picocolors = __commonJS({ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
32
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
33
+ let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
34
+ let formatter = (open, close, replace = open) => (input) => {
35
+ let string = "" + input, index = string.indexOf(close, open.length);
36
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
37
+ };
38
+ let replaceClose = (string, close, replace, index) => {
39
+ let result = "", cursor = 0;
40
+ do {
41
+ result += string.substring(cursor, index) + replace;
42
+ cursor = index + close.length;
43
+ index = string.indexOf(close, cursor);
44
+ } while (~index);
45
+ return result + string.substring(cursor);
46
+ };
47
+ let createColors = (enabled = isColorSupported) => {
48
+ let f = enabled ? formatter : () => String;
49
+ return {
50
+ isColorSupported: enabled,
51
+ reset: f("\x1B[0m", "\x1B[0m"),
52
+ bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
53
+ dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
54
+ italic: f("\x1B[3m", "\x1B[23m"),
55
+ underline: f("\x1B[4m", "\x1B[24m"),
56
+ inverse: f("\x1B[7m", "\x1B[27m"),
57
+ hidden: f("\x1B[8m", "\x1B[28m"),
58
+ strikethrough: f("\x1B[9m", "\x1B[29m"),
59
+ black: f("\x1B[30m", "\x1B[39m"),
60
+ red: f("\x1B[31m", "\x1B[39m"),
61
+ green: f("\x1B[32m", "\x1B[39m"),
62
+ yellow: f("\x1B[33m", "\x1B[39m"),
63
+ blue: f("\x1B[34m", "\x1B[39m"),
64
+ magenta: f("\x1B[35m", "\x1B[39m"),
65
+ cyan: f("\x1B[36m", "\x1B[39m"),
66
+ white: f("\x1B[37m", "\x1B[39m"),
67
+ gray: f("\x1B[90m", "\x1B[39m"),
68
+ bgBlack: f("\x1B[40m", "\x1B[49m"),
69
+ bgRed: f("\x1B[41m", "\x1B[49m"),
70
+ bgGreen: f("\x1B[42m", "\x1B[49m"),
71
+ bgYellow: f("\x1B[43m", "\x1B[49m"),
72
+ bgBlue: f("\x1B[44m", "\x1B[49m"),
73
+ bgMagenta: f("\x1B[45m", "\x1B[49m"),
74
+ bgCyan: f("\x1B[46m", "\x1B[49m"),
75
+ bgWhite: f("\x1B[47m", "\x1B[49m"),
76
+ blackBright: f("\x1B[90m", "\x1B[39m"),
77
+ redBright: f("\x1B[91m", "\x1B[39m"),
78
+ greenBright: f("\x1B[92m", "\x1B[39m"),
79
+ yellowBright: f("\x1B[93m", "\x1B[39m"),
80
+ blueBright: f("\x1B[94m", "\x1B[39m"),
81
+ magentaBright: f("\x1B[95m", "\x1B[39m"),
82
+ cyanBright: f("\x1B[96m", "\x1B[39m"),
83
+ whiteBright: f("\x1B[97m", "\x1B[39m"),
84
+ bgBlackBright: f("\x1B[100m", "\x1B[49m"),
85
+ bgRedBright: f("\x1B[101m", "\x1B[49m"),
86
+ bgGreenBright: f("\x1B[102m", "\x1B[49m"),
87
+ bgYellowBright: f("\x1B[103m", "\x1B[49m"),
88
+ bgBlueBright: f("\x1B[104m", "\x1B[49m"),
89
+ bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
90
+ bgCyanBright: f("\x1B[106m", "\x1B[49m"),
91
+ bgWhiteBright: f("\x1B[107m", "\x1B[49m")
92
+ };
93
+ };
94
+ module.exports = createColors();
95
+ module.exports.createColors = createColors;
96
+ } });
97
+
98
+ //#endregion
99
+ export { __commonJS, __require, __toESM, require_picocolors };
@@ -0,0 +1,114 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJS = (cb, mod) => function() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
13
+ key = keys[i];
14
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
+ get: ((k) => from[k]).bind(null, key),
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
22
+ value: mod,
23
+ enumerable: true
24
+ }) : target, mod));
25
+
26
+ //#endregion
27
+
28
+ //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
29
+ var require_picocolors = __commonJS({ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
30
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
31
+ let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
32
+ let formatter = (open, close, replace = open) => (input) => {
33
+ let string = "" + input, index = string.indexOf(close, open.length);
34
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
35
+ };
36
+ let replaceClose = (string, close, replace, index) => {
37
+ let result = "", cursor = 0;
38
+ do {
39
+ result += string.substring(cursor, index) + replace;
40
+ cursor = index + close.length;
41
+ index = string.indexOf(close, cursor);
42
+ } while (~index);
43
+ return result + string.substring(cursor);
44
+ };
45
+ let createColors = (enabled = isColorSupported) => {
46
+ let f = enabled ? formatter : () => String;
47
+ return {
48
+ isColorSupported: enabled,
49
+ reset: f("\x1B[0m", "\x1B[0m"),
50
+ bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
51
+ dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
52
+ italic: f("\x1B[3m", "\x1B[23m"),
53
+ underline: f("\x1B[4m", "\x1B[24m"),
54
+ inverse: f("\x1B[7m", "\x1B[27m"),
55
+ hidden: f("\x1B[8m", "\x1B[28m"),
56
+ strikethrough: f("\x1B[9m", "\x1B[29m"),
57
+ black: f("\x1B[30m", "\x1B[39m"),
58
+ red: f("\x1B[31m", "\x1B[39m"),
59
+ green: f("\x1B[32m", "\x1B[39m"),
60
+ yellow: f("\x1B[33m", "\x1B[39m"),
61
+ blue: f("\x1B[34m", "\x1B[39m"),
62
+ magenta: f("\x1B[35m", "\x1B[39m"),
63
+ cyan: f("\x1B[36m", "\x1B[39m"),
64
+ white: f("\x1B[37m", "\x1B[39m"),
65
+ gray: f("\x1B[90m", "\x1B[39m"),
66
+ bgBlack: f("\x1B[40m", "\x1B[49m"),
67
+ bgRed: f("\x1B[41m", "\x1B[49m"),
68
+ bgGreen: f("\x1B[42m", "\x1B[49m"),
69
+ bgYellow: f("\x1B[43m", "\x1B[49m"),
70
+ bgBlue: f("\x1B[44m", "\x1B[49m"),
71
+ bgMagenta: f("\x1B[45m", "\x1B[49m"),
72
+ bgCyan: f("\x1B[46m", "\x1B[49m"),
73
+ bgWhite: f("\x1B[47m", "\x1B[49m"),
74
+ blackBright: f("\x1B[90m", "\x1B[39m"),
75
+ redBright: f("\x1B[91m", "\x1B[39m"),
76
+ greenBright: f("\x1B[92m", "\x1B[39m"),
77
+ yellowBright: f("\x1B[93m", "\x1B[39m"),
78
+ blueBright: f("\x1B[94m", "\x1B[39m"),
79
+ magentaBright: f("\x1B[95m", "\x1B[39m"),
80
+ cyanBright: f("\x1B[96m", "\x1B[39m"),
81
+ whiteBright: f("\x1B[97m", "\x1B[39m"),
82
+ bgBlackBright: f("\x1B[100m", "\x1B[49m"),
83
+ bgRedBright: f("\x1B[101m", "\x1B[49m"),
84
+ bgGreenBright: f("\x1B[102m", "\x1B[49m"),
85
+ bgYellowBright: f("\x1B[103m", "\x1B[49m"),
86
+ bgBlueBright: f("\x1B[104m", "\x1B[49m"),
87
+ bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
88
+ bgCyanBright: f("\x1B[106m", "\x1B[49m"),
89
+ bgWhiteBright: f("\x1B[107m", "\x1B[49m")
90
+ };
91
+ };
92
+ module.exports = createColors();
93
+ module.exports.createColors = createColors;
94
+ } });
95
+
96
+ //#endregion
97
+ Object.defineProperty(exports, '__commonJS', {
98
+ enumerable: true,
99
+ get: function () {
100
+ return __commonJS;
101
+ }
102
+ });
103
+ Object.defineProperty(exports, '__toESM', {
104
+ enumerable: true,
105
+ get: function () {
106
+ return __toESM;
107
+ }
108
+ });
109
+ Object.defineProperty(exports, 'require_picocolors', {
110
+ enumerable: true,
111
+ get: function () {
112
+ return require_picocolors;
113
+ }
114
+ });