@shell-shock/plugin-update 0.1.67 → 0.1.68
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/components/index.cjs +1 -2
- package/dist/components/index.mjs +2 -2
- package/dist/components/update-builtin.cjs +143 -236
- package/dist/components/update-builtin.d.cts +1 -2
- package/dist/components/update-builtin.d.cts.map +1 -1
- package/dist/components/update-builtin.d.mts +1 -2
- package/dist/components/update-builtin.mjs +11 -101
- package/dist/components/update-command.cjs +16 -21
- package/dist/components/update-command.d.cts.map +1 -1
- package/dist/components/update-command.mjs +5 -10
- package/dist/generator.cjs +33 -0
- package/dist/generator.d.cts +10 -0
- package/dist/generator.d.cts.map +1 -0
- package/dist/generator.d.mts +10 -0
- package/dist/generator.d.mts.map +1 -0
- package/dist/generator.mjs +32 -0
- package/dist/generator.mjs.map +1 -0
- package/dist/index.cjs +21 -34
- package/dist/index.d.cts +2 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +20 -32
- package/dist/schemas/env.cjs +27 -0
- package/dist/schemas/env.d.cts +145 -0
- package/dist/schemas/env.d.cts.map +1 -0
- package/dist/schemas/env.d.mts +145 -0
- package/dist/{types → schemas}/env.d.mts.map +1 -1
- package/dist/schemas/env.mjs +27 -0
- package/dist/schemas/index.cjs +4 -0
- package/dist/schemas/index.d.cts +2 -0
- package/dist/schemas/index.d.mts +2 -0
- package/dist/schemas/index.mjs +3 -0
- package/dist/types/index.cjs +2 -7
- package/dist/types/index.mjs +3 -3
- package/dist/types/package-manager.cjs +1 -12
- package/dist/types/package-manager.d.cts.map +1 -1
- package/dist/types/package-manager.mjs +1 -10
- package/dist/types/plugin.cjs +0 -75
- package/dist/types/plugin.d.cts +0 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +0 -1
- package/dist/types/plugin.mjs +1 -71
- package/package.json +58 -31
- package/dist/_virtual/_rolldown/runtime.cjs +0 -29
- package/dist/types/env.cjs +0 -12
- package/dist/types/env.d.cts +0 -12
- package/dist/types/env.d.cts.map +0 -1
- package/dist/types/env.d.mts +0 -12
- package/dist/types/env.mjs +0 -11
- package/dist/types/plugin.mjs.map +0 -1
- /package/dist/{types → schemas}/env.mjs.map +0 -0
package/dist/types/plugin.mjs
CHANGED
|
@@ -1,71 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const __ΩPartial = [
|
|
3
|
-
"T",
|
|
4
|
-
"Partial",
|
|
5
|
-
"l+e#!e\"!fRb!Pde\"!gN#\"w\"y"
|
|
6
|
-
];
|
|
7
|
-
const __ΩRequired = [
|
|
8
|
-
"T",
|
|
9
|
-
"Required",
|
|
10
|
-
"l+e#!e\"!fRb!Pde\"!gN##w\"y"
|
|
11
|
-
];
|
|
12
|
-
const __ΩOmit = [
|
|
13
|
-
"T",
|
|
14
|
-
"K",
|
|
15
|
-
() => __ΩPick,
|
|
16
|
-
() => __ΩExclude,
|
|
17
|
-
"Omit",
|
|
18
|
-
"b!b\"e!!e!!ge!\"o$#o##w%y"
|
|
19
|
-
];
|
|
20
|
-
const __ΩPick = [
|
|
21
|
-
"T",
|
|
22
|
-
"K",
|
|
23
|
-
"Pick",
|
|
24
|
-
"l+e#!e\"!fRb!b\"Pde\"\"N#!w#y"
|
|
25
|
-
];
|
|
26
|
-
const __ΩExclude = [
|
|
27
|
-
"T",
|
|
28
|
-
"U",
|
|
29
|
-
"Exclude",
|
|
30
|
-
"l6!Re$!RPe#!e$\"qk#%QRb!b\"Pde\"!p)w#y"
|
|
31
|
-
];
|
|
32
|
-
const __ΩUpdatePluginOptions = [
|
|
33
|
-
"staleTime",
|
|
34
|
-
60,
|
|
35
|
-
"The time in milliseconds after which previously retrieved version data is considered stale.",
|
|
36
|
-
() => __ΩPartial,
|
|
37
|
-
"command",
|
|
38
|
-
"update",
|
|
39
|
-
"Should the plugin add the `update` command?",
|
|
40
|
-
"UpdatePluginOptions",
|
|
41
|
-
"P'4!8>\"?#P!o$\"&J4%8>&?'Mw(y"
|
|
42
|
-
];
|
|
43
|
-
const __ΩUpdatePluginUserConfig = [
|
|
44
|
-
() => __ΩUpdatePluginOptions,
|
|
45
|
-
"update",
|
|
46
|
-
"Resolved update configuration for the plugin.",
|
|
47
|
-
"UpdatePluginUserConfig",
|
|
48
|
-
"P!Pn!4\"?#MKw$y"
|
|
49
|
-
];
|
|
50
|
-
const __ΩUpdatePluginResolvedConfig = [
|
|
51
|
-
() => __ΩRequired,
|
|
52
|
-
() => __ΩOmit,
|
|
53
|
-
() => __ΩUpdatePluginOptions,
|
|
54
|
-
"command",
|
|
55
|
-
"command",
|
|
56
|
-
"Resolved command configuration for the update command.",
|
|
57
|
-
"update",
|
|
58
|
-
"Resolved update configuration for the plugin.",
|
|
59
|
-
"UpdatePluginResolvedConfig",
|
|
60
|
-
"P!PPn#.$o\"#o!\"P!4%?&MK4'?(MKw)y"
|
|
61
|
-
];
|
|
62
|
-
const __ΩUpdatePluginContext = [
|
|
63
|
-
() => __ΩUpdatePluginResolvedConfig,
|
|
64
|
-
"TResolvedConfig",
|
|
65
|
-
"UpdatePluginContext",
|
|
66
|
-
"n!c\"!w#y"
|
|
67
|
-
];
|
|
68
|
-
|
|
69
|
-
//#endregion
|
|
70
|
-
export { __ΩUpdatePluginContext, __ΩUpdatePluginOptions, __ΩUpdatePluginResolvedConfig, __ΩUpdatePluginUserConfig };
|
|
71
|
-
//# sourceMappingURL=plugin.mjs.map
|
|
1
|
+
export { };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/plugin-update",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.68",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Shell Shock plugin to manage updating the local application's version.",
|
|
6
6
|
"keywords": [
|
|
@@ -101,33 +101,61 @@
|
|
|
101
101
|
"default": "./dist/components/update-command.mjs"
|
|
102
102
|
}
|
|
103
103
|
},
|
|
104
|
+
"./generator": {
|
|
105
|
+
"require": {
|
|
106
|
+
"types": "./dist/generator.d.cts",
|
|
107
|
+
"default": "./dist/generator.cjs"
|
|
108
|
+
},
|
|
109
|
+
"import": {
|
|
110
|
+
"types": "./dist/generator.d.mts",
|
|
111
|
+
"default": "./dist/generator.mjs"
|
|
112
|
+
},
|
|
113
|
+
"default": {
|
|
114
|
+
"types": "./dist/generator.d.mts",
|
|
115
|
+
"default": "./dist/generator.mjs"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
104
118
|
"./package.json": "./package.json",
|
|
105
|
-
"./
|
|
119
|
+
"./schemas": {
|
|
106
120
|
"require": {
|
|
107
|
-
"types": "./dist/
|
|
108
|
-
"default": "./dist/
|
|
121
|
+
"types": "./dist/schemas/index.d.cts",
|
|
122
|
+
"default": "./dist/schemas/index.cjs"
|
|
109
123
|
},
|
|
110
124
|
"import": {
|
|
111
|
-
"types": "./dist/
|
|
112
|
-
"default": "./dist/
|
|
125
|
+
"types": "./dist/schemas/index.d.mts",
|
|
126
|
+
"default": "./dist/schemas/index.mjs"
|
|
113
127
|
},
|
|
114
128
|
"default": {
|
|
115
|
-
"types": "./dist/
|
|
116
|
-
"default": "./dist/
|
|
129
|
+
"types": "./dist/schemas/index.d.mts",
|
|
130
|
+
"default": "./dist/schemas/index.mjs"
|
|
117
131
|
}
|
|
118
132
|
},
|
|
119
|
-
"./
|
|
133
|
+
"./schemas/env": {
|
|
120
134
|
"require": {
|
|
121
|
-
"types": "./dist/
|
|
122
|
-
"default": "./dist/
|
|
135
|
+
"types": "./dist/schemas/env.d.cts",
|
|
136
|
+
"default": "./dist/schemas/env.cjs"
|
|
123
137
|
},
|
|
124
138
|
"import": {
|
|
125
|
-
"types": "./dist/
|
|
126
|
-
"default": "./dist/
|
|
139
|
+
"types": "./dist/schemas/env.d.mts",
|
|
140
|
+
"default": "./dist/schemas/env.mjs"
|
|
127
141
|
},
|
|
128
142
|
"default": {
|
|
129
|
-
"types": "./dist/
|
|
130
|
-
"default": "./dist/
|
|
143
|
+
"types": "./dist/schemas/env.d.mts",
|
|
144
|
+
"default": "./dist/schemas/env.mjs"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"./types": {
|
|
148
|
+
"require": {
|
|
149
|
+
"types": "./dist/types/index.d.cts",
|
|
150
|
+
"default": "./dist/types/index.cjs"
|
|
151
|
+
},
|
|
152
|
+
"import": {
|
|
153
|
+
"types": "./dist/types/index.d.mts",
|
|
154
|
+
"default": "./dist/types/index.mjs"
|
|
155
|
+
},
|
|
156
|
+
"default": {
|
|
157
|
+
"types": "./dist/types/index.d.mts",
|
|
158
|
+
"default": "./dist/types/index.mjs"
|
|
131
159
|
}
|
|
132
160
|
},
|
|
133
161
|
"./types/package-manager": {
|
|
@@ -163,24 +191,23 @@
|
|
|
163
191
|
"module": "./dist/index.mjs",
|
|
164
192
|
"types": "./dist/index.d.cts",
|
|
165
193
|
"typings": "dist/index.d.mts",
|
|
166
|
-
"files": ["dist
|
|
194
|
+
"files": ["dist"],
|
|
167
195
|
"dependencies": {
|
|
168
|
-
"@alloy-js/core": "^0.
|
|
169
|
-
"@alloy-js/typescript": "^0.
|
|
170
|
-
"@
|
|
171
|
-
"@
|
|
172
|
-
"@powerlines/plugin-
|
|
173
|
-
"@
|
|
174
|
-
"@
|
|
175
|
-
"@stryke/
|
|
176
|
-
"@stryke/
|
|
196
|
+
"@alloy-js/core": "^0.24.1",
|
|
197
|
+
"@alloy-js/typescript": "^0.24.0",
|
|
198
|
+
"@power-plant/alloy-js": "^0.0.87",
|
|
199
|
+
"@power-plant/core": "^0.0.90",
|
|
200
|
+
"@powerlines/plugin-alloy": "^0.26.308",
|
|
201
|
+
"@powerlines/plugin-plugin": "^0.12.623",
|
|
202
|
+
"@shell-shock/core": "0.17.23",
|
|
203
|
+
"@stryke/path": "^0.29.35",
|
|
204
|
+
"@stryke/type-checks": "^0.6.41",
|
|
205
|
+
"@stryke/types": "^0.12.36",
|
|
177
206
|
"defu": "^6.1.7",
|
|
178
|
-
"powerlines": "^0.47.
|
|
179
|
-
|
|
180
|
-
"devDependencies": {
|
|
181
|
-
"@powerlines/plugin-deepkit": "^0.11.480",
|
|
182
|
-
"@types/node": "^25.9.3"
|
|
207
|
+
"powerlines": "^0.47.210",
|
|
208
|
+
"zod": "^4.4.3"
|
|
183
209
|
},
|
|
210
|
+
"devDependencies": { "@types/node": "^25.9.5" },
|
|
184
211
|
"publishConfig": {
|
|
185
212
|
"access": "public",
|
|
186
213
|
"exports": {
|
|
@@ -196,5 +223,5 @@
|
|
|
196
223
|
"./package.json": "./package.json"
|
|
197
224
|
}
|
|
198
225
|
},
|
|
199
|
-
"gitHead": "
|
|
226
|
+
"gitHead": "3227e8ed7b3e816987d4d4f270dfdfceb963c022"
|
|
200
227
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
-
value: mod,
|
|
24
|
-
enumerable: true
|
|
25
|
-
}) : target, mod));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
|
|
29
|
-
exports.__toESM = __toESM;
|
package/dist/types/env.cjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
|
|
3
|
-
//#region src/types/env.ts
|
|
4
|
-
const __ΩShellShockUpdateEnv = [
|
|
5
|
-
"SKIP_UPDATE_CHECK",
|
|
6
|
-
"An environment variable that can be set to skip the version check when determining if a check for updates is required. If this variable is set to any value, the `isCheckForUpdatesRequired` function will return `false`, indicating that a check for updates is not required. This can be useful in CI environments or other non-interactive contexts where you want to avoid performing a version check, which may involve file system operations or network requests. By setting this environment variable, you can ensure that the update process proceeds without checking for updates, which can help speed up the process in certain scenarios.",
|
|
7
|
-
"ShellShockUpdateEnv",
|
|
8
|
-
"P!)4!8?\"Mw#y"
|
|
9
|
-
];
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
exports.__ΩShellShockUpdateEnv = __ΩShellShockUpdateEnv;
|
package/dist/types/env.d.cts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ShellShockEnv } from "@shell-shock/core/types/env";
|
|
2
|
-
|
|
3
|
-
//#region src/types/env.d.ts
|
|
4
|
-
interface ShellShockUpdateEnv extends ShellShockEnv {
|
|
5
|
-
/**
|
|
6
|
-
* An environment variable that can be set to skip the version check when determining if a check for updates is required. If this variable is set to any value, the `isCheckForUpdatesRequired` function will return `false`, indicating that a check for updates is not required. This can be useful in CI environments or other non-interactive contexts where you want to avoid performing a version check, which may involve file system operations or network requests. By setting this environment variable, you can ensure that the update process proceeds without checking for updates, which can help speed up the process in certain scenarios.
|
|
7
|
-
*/
|
|
8
|
-
SKIP_UPDATE_CHECK?: boolean;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { ShellShockUpdateEnv };
|
|
12
|
-
//# sourceMappingURL=env.d.cts.map
|
package/dist/types/env.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.cts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;UAqBiB,mBAAA,SAA4B,aAAa;;AAA1D;;EAIE,iBAAiB;AAAA"}
|
package/dist/types/env.d.mts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ShellShockEnv } from "@shell-shock/core/types/env";
|
|
2
|
-
|
|
3
|
-
//#region src/types/env.d.ts
|
|
4
|
-
interface ShellShockUpdateEnv extends ShellShockEnv {
|
|
5
|
-
/**
|
|
6
|
-
* An environment variable that can be set to skip the version check when determining if a check for updates is required. If this variable is set to any value, the `isCheckForUpdatesRequired` function will return `false`, indicating that a check for updates is not required. This can be useful in CI environments or other non-interactive contexts where you want to avoid performing a version check, which may involve file system operations or network requests. By setting this environment variable, you can ensure that the update process proceeds without checking for updates, which can help speed up the process in certain scenarios.
|
|
7
|
-
*/
|
|
8
|
-
SKIP_UPDATE_CHECK?: boolean;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { ShellShockUpdateEnv };
|
|
12
|
-
//# sourceMappingURL=env.d.mts.map
|
package/dist/types/env.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region src/types/env.ts
|
|
2
|
-
const __ΩShellShockUpdateEnv = [
|
|
3
|
-
"SKIP_UPDATE_CHECK",
|
|
4
|
-
"An environment variable that can be set to skip the version check when determining if a check for updates is required. If this variable is set to any value, the `isCheckForUpdatesRequired` function will return `false`, indicating that a check for updates is not required. This can be useful in CI environments or other non-interactive contexts where you want to avoid performing a version check, which may involve file system operations or network requests. By setting this environment variable, you can ensure that the update process proceeds without checking for updates, which can help speed up the process in certain scenarios.",
|
|
5
|
-
"ShellShockUpdateEnv",
|
|
6
|
-
"P!)4!8?\"Mw#y"
|
|
7
|
-
];
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
|
-
export { __ΩShellShockUpdateEnv };
|
|
11
|
-
//# sourceMappingURL=env.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.mjs","names":[],"sources":[],"mappings":""}
|
|
File without changes
|