@shell-shock/plugin-update 0.1.58

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 (54) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +264 -0
  3. package/dist/_virtual/_rolldown/runtime.cjs +29 -0
  4. package/dist/components/index.cjs +18 -0
  5. package/dist/components/index.d.cts +3 -0
  6. package/dist/components/index.d.mts +3 -0
  7. package/dist/components/index.mjs +4 -0
  8. package/dist/components/update-builtin.cjs +1301 -0
  9. package/dist/components/update-builtin.d.cts +55 -0
  10. package/dist/components/update-builtin.d.cts.map +1 -0
  11. package/dist/components/update-builtin.d.mts +55 -0
  12. package/dist/components/update-builtin.d.mts.map +1 -0
  13. package/dist/components/update-builtin.mjs +1287 -0
  14. package/dist/components/update-builtin.mjs.map +1 -0
  15. package/dist/components/update-command.cjs +95 -0
  16. package/dist/components/update-command.d.cts +8 -0
  17. package/dist/components/update-command.d.cts.map +1 -0
  18. package/dist/components/update-command.d.mts +8 -0
  19. package/dist/components/update-command.d.mts.map +1 -0
  20. package/dist/components/update-command.mjs +95 -0
  21. package/dist/components/update-command.mjs.map +1 -0
  22. package/dist/index.cjs +78 -0
  23. package/dist/index.d.cts +11 -0
  24. package/dist/index.d.cts.map +1 -0
  25. package/dist/index.d.mts +11 -0
  26. package/dist/index.d.mts.map +1 -0
  27. package/dist/index.mjs +75 -0
  28. package/dist/index.mjs.map +1 -0
  29. package/dist/types/env.cjs +12 -0
  30. package/dist/types/env.d.cts +12 -0
  31. package/dist/types/env.d.cts.map +1 -0
  32. package/dist/types/env.d.mts +12 -0
  33. package/dist/types/env.d.mts.map +1 -0
  34. package/dist/types/env.mjs +11 -0
  35. package/dist/types/env.mjs.map +1 -0
  36. package/dist/types/index.cjs +11 -0
  37. package/dist/types/index.d.cts +3 -0
  38. package/dist/types/index.d.mts +3 -0
  39. package/dist/types/index.mjs +4 -0
  40. package/dist/types/package-manager.cjs +31 -0
  41. package/dist/types/package-manager.d.cts +7 -0
  42. package/dist/types/package-manager.d.cts.map +1 -0
  43. package/dist/types/package-manager.d.mts +7 -0
  44. package/dist/types/package-manager.d.mts.map +1 -0
  45. package/dist/types/package-manager.mjs +28 -0
  46. package/dist/types/package-manager.mjs.map +1 -0
  47. package/dist/types/plugin.cjs +75 -0
  48. package/dist/types/plugin.d.cts +45 -0
  49. package/dist/types/plugin.d.cts.map +1 -0
  50. package/dist/types/plugin.d.mts +45 -0
  51. package/dist/types/plugin.d.mts.map +1 -0
  52. package/dist/types/plugin.mjs +71 -0
  53. package/dist/types/plugin.mjs.map +1 -0
  54. package/package.json +200 -0
@@ -0,0 +1,75 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ //#region src/types/plugin.ts
4
+ const __ΩPartial = [
5
+ "T",
6
+ "Partial",
7
+ "l+e#!e\"!fRb!Pde\"!gN#\"w\"y"
8
+ ];
9
+ const __ΩRequired = [
10
+ "T",
11
+ "Required",
12
+ "l+e#!e\"!fRb!Pde\"!gN##w\"y"
13
+ ];
14
+ const __ΩOmit = [
15
+ "T",
16
+ "K",
17
+ () => __ΩPick,
18
+ () => __ΩExclude,
19
+ "Omit",
20
+ "b!b\"e!!e!!ge!\"o$#o##w%y"
21
+ ];
22
+ const __ΩPick = [
23
+ "T",
24
+ "K",
25
+ "Pick",
26
+ "l+e#!e\"!fRb!b\"Pde\"\"N#!w#y"
27
+ ];
28
+ const __ΩExclude = [
29
+ "T",
30
+ "U",
31
+ "Exclude",
32
+ "l6!Re$!RPe#!e$\"qk#%QRb!b\"Pde\"!p)w#y"
33
+ ];
34
+ const __ΩUpdatePluginOptions = [
35
+ "staleTime",
36
+ 60,
37
+ "The time in milliseconds after which previously retrieved version data is considered stale.",
38
+ () => __ΩPartial,
39
+ "command",
40
+ "update",
41
+ "Should the plugin add the `update` command?",
42
+ "UpdatePluginOptions",
43
+ "P'4!8>\"?#P!o$\"&J4%8>&?'Mw(y"
44
+ ];
45
+ const __ΩUpdatePluginUserConfig = [
46
+ () => __ΩUpdatePluginOptions,
47
+ "update",
48
+ "Resolved update configuration for the plugin.",
49
+ "UpdatePluginUserConfig",
50
+ "P!Pn!4\"?#MKw$y"
51
+ ];
52
+ const __ΩUpdatePluginResolvedConfig = [
53
+ () => __ΩRequired,
54
+ () => __ΩOmit,
55
+ () => __ΩUpdatePluginOptions,
56
+ "command",
57
+ "command",
58
+ "Resolved command configuration for the update command.",
59
+ "update",
60
+ "Resolved update configuration for the plugin.",
61
+ "UpdatePluginResolvedConfig",
62
+ "P!PPn#.$o\"#o!\"P!4%?&MK4'?(MKw)y"
63
+ ];
64
+ const __ΩUpdatePluginContext = [
65
+ () => __ΩUpdatePluginResolvedConfig,
66
+ "TResolvedConfig",
67
+ "UpdatePluginContext",
68
+ "n!c\"!w#y"
69
+ ];
70
+
71
+ //#endregion
72
+ exports.__ΩUpdatePluginContext = __ΩUpdatePluginContext;
73
+ exports.__ΩUpdatePluginOptions = __ΩUpdatePluginOptions;
74
+ exports.__ΩUpdatePluginResolvedConfig = __ΩUpdatePluginResolvedConfig;
75
+ exports.__ΩUpdatePluginUserConfig = __ΩUpdatePluginUserConfig;
@@ -0,0 +1,45 @@
1
+ import { CommandConfig, Context, ResolvedConfig, UserConfig } from "@shell-shock/core";
2
+ import { RequiredKeys } from "@stryke/types/base";
3
+
4
+ //#region src/types/plugin.d.ts
5
+ interface UpdatePluginOptions {
6
+ /**
7
+ * The time in milliseconds after which previously retrieved version data is considered stale.
8
+ *
9
+ * @remarks
10
+ * This field will control how often the application will check for new versions. If set, the application will check for new versions at the specified interval and notify the user if an update is available. If set to `-1`, the application will only check for updates when the command is executed.
11
+ *
12
+ * @defaultValue 2 * 60 * 60 * 1000 (2 hours)
13
+ */
14
+ staleTime?: number;
15
+ /**
16
+ * Should the plugin add the `update` command?
17
+ *
18
+ * @remarks
19
+ * This can be set to a string to specify a custom command name for the `update` command or an object to override the default command configuration. By default, the command name will be `"update"`.
20
+ *
21
+ * @defaultValue "update"
22
+ */
23
+ command?: Partial<CommandConfig> | string;
24
+ }
25
+ type UpdatePluginUserConfig = UserConfig & {
26
+ /**
27
+ * Resolved update configuration for the plugin.
28
+ */
29
+ update: UpdatePluginOptions;
30
+ };
31
+ type UpdatePluginResolvedConfig = ResolvedConfig & {
32
+ /**
33
+ * Resolved update configuration for the plugin.
34
+ */
35
+ update: Required<Omit<UpdatePluginOptions, "command">> & {
36
+ /**
37
+ * Resolved command configuration for the update command.
38
+ */
39
+ command: RequiredKeys<Partial<CommandConfig>, "name">;
40
+ };
41
+ };
42
+ type UpdatePluginContext<TResolvedConfig extends UpdatePluginResolvedConfig = UpdatePluginResolvedConfig> = Context<TResolvedConfig>;
43
+ //#endregion
44
+ export { UpdatePluginContext, UpdatePluginOptions, UpdatePluginResolvedConfig, UpdatePluginUserConfig };
45
+ //# sourceMappingURL=plugin.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;UA0BiB,mBAAA;;AAAjB;;;;;;;EASE,SAAA;EAU+B;AAAA;AAGjC;;;;;;EAHE,OAAA,GAAU,OAAO,CAAC,aAAA;AAAA;AAAA,KAGR,sBAAA,GAAyB,UAAA;EAOzB;;;EAHV,MAAA,EAAQ,mBAAmB;AAAA;AAAA,KAGjB,0BAAA,GAA6B,cAAA;EAI/B;;;EAAR,MAAA,EAAQ,QAAA,CAAS,IAAA,CAAK,mBAAA;IAIC;;;IAArB,OAAA,EAAS,YAAA,CAAa,OAAA,CAAQ,aAAA;EAAA;AAAA;AAAA,KAItB,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,OAAA,CAAQ,eAAA"}
@@ -0,0 +1,45 @@
1
+ import { CommandConfig, Context, ResolvedConfig, UserConfig } from "@shell-shock/core";
2
+ import { RequiredKeys } from "@stryke/types/base";
3
+
4
+ //#region src/types/plugin.d.ts
5
+ interface UpdatePluginOptions {
6
+ /**
7
+ * The time in milliseconds after which previously retrieved version data is considered stale.
8
+ *
9
+ * @remarks
10
+ * This field will control how often the application will check for new versions. If set, the application will check for new versions at the specified interval and notify the user if an update is available. If set to `-1`, the application will only check for updates when the command is executed.
11
+ *
12
+ * @defaultValue 2 * 60 * 60 * 1000 (2 hours)
13
+ */
14
+ staleTime?: number;
15
+ /**
16
+ * Should the plugin add the `update` command?
17
+ *
18
+ * @remarks
19
+ * This can be set to a string to specify a custom command name for the `update` command or an object to override the default command configuration. By default, the command name will be `"update"`.
20
+ *
21
+ * @defaultValue "update"
22
+ */
23
+ command?: Partial<CommandConfig> | string;
24
+ }
25
+ type UpdatePluginUserConfig = UserConfig & {
26
+ /**
27
+ * Resolved update configuration for the plugin.
28
+ */
29
+ update: UpdatePluginOptions;
30
+ };
31
+ type UpdatePluginResolvedConfig = ResolvedConfig & {
32
+ /**
33
+ * Resolved update configuration for the plugin.
34
+ */
35
+ update: Required<Omit<UpdatePluginOptions, "command">> & {
36
+ /**
37
+ * Resolved command configuration for the update command.
38
+ */
39
+ command: RequiredKeys<Partial<CommandConfig>, "name">;
40
+ };
41
+ };
42
+ type UpdatePluginContext<TResolvedConfig extends UpdatePluginResolvedConfig = UpdatePluginResolvedConfig> = Context<TResolvedConfig>;
43
+ //#endregion
44
+ export { UpdatePluginContext, UpdatePluginOptions, UpdatePluginResolvedConfig, UpdatePluginUserConfig };
45
+ //# sourceMappingURL=plugin.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":""}
@@ -0,0 +1,71 @@
1
+ //#region src/types/plugin.ts
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.mjs","names":[],"sources":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,200 @@
1
+ {
2
+ "name": "@shell-shock/plugin-update",
3
+ "version": "0.1.58",
4
+ "private": false,
5
+ "description": "A package containing a Shell Shock plugin to manage updating the local application's version.",
6
+ "keywords": [
7
+ "shell-shock",
8
+ "shell-shock-plugin",
9
+ "powerlines",
10
+ "storm-software"
11
+ ],
12
+ "homepage": "https://stormsoftware.com",
13
+ "bugs": {
14
+ "url": "https://stormsoftware.com/support",
15
+ "email": "support@stormsoftware.com"
16
+ },
17
+ "repository": {
18
+ "type": "github",
19
+ "url": "https://github.com/storm-software/shell-shock.git",
20
+ "directory": "packages/plugin-update"
21
+ },
22
+ "funding": {
23
+ "type": "github",
24
+ "url": "https://github.com/sponsors/storm-software"
25
+ },
26
+ "license": "Apache-2.0",
27
+ "author": {
28
+ "name": "Storm Software",
29
+ "email": "contact@stormsoftware.com",
30
+ "url": "https://stormsoftware.com"
31
+ },
32
+ "maintainers": [
33
+ {
34
+ "name": "Storm Software",
35
+ "email": "contact@stormsoftware.com",
36
+ "url": "https://stormsoftware.com"
37
+ }
38
+ ],
39
+ "contributors": [
40
+ {
41
+ "name": "Storm Software",
42
+ "email": "contact@stormsoftware.com",
43
+ "url": "https://stormsoftware.com"
44
+ }
45
+ ],
46
+ "type": "module",
47
+ "exports": {
48
+ ".": {
49
+ "require": {
50
+ "types": "./dist/index.d.cts",
51
+ "default": "./dist/index.cjs"
52
+ },
53
+ "import": {
54
+ "types": "./dist/index.d.mts",
55
+ "default": "./dist/index.mjs"
56
+ },
57
+ "default": {
58
+ "types": "./dist/index.d.mts",
59
+ "default": "./dist/index.mjs"
60
+ }
61
+ },
62
+ "./components": {
63
+ "require": {
64
+ "types": "./dist/components/index.d.cts",
65
+ "default": "./dist/components/index.cjs"
66
+ },
67
+ "import": {
68
+ "types": "./dist/components/index.d.mts",
69
+ "default": "./dist/components/index.mjs"
70
+ },
71
+ "default": {
72
+ "types": "./dist/components/index.d.mts",
73
+ "default": "./dist/components/index.mjs"
74
+ }
75
+ },
76
+ "./components/update-builtin": {
77
+ "require": {
78
+ "types": "./dist/components/update-builtin.d.cts",
79
+ "default": "./dist/components/update-builtin.cjs"
80
+ },
81
+ "import": {
82
+ "types": "./dist/components/update-builtin.d.mts",
83
+ "default": "./dist/components/update-builtin.mjs"
84
+ },
85
+ "default": {
86
+ "types": "./dist/components/update-builtin.d.mts",
87
+ "default": "./dist/components/update-builtin.mjs"
88
+ }
89
+ },
90
+ "./components/update-command": {
91
+ "require": {
92
+ "types": "./dist/components/update-command.d.cts",
93
+ "default": "./dist/components/update-command.cjs"
94
+ },
95
+ "import": {
96
+ "types": "./dist/components/update-command.d.mts",
97
+ "default": "./dist/components/update-command.mjs"
98
+ },
99
+ "default": {
100
+ "types": "./dist/components/update-command.d.mts",
101
+ "default": "./dist/components/update-command.mjs"
102
+ }
103
+ },
104
+ "./package.json": "./package.json",
105
+ "./types": {
106
+ "require": {
107
+ "types": "./dist/types/index.d.cts",
108
+ "default": "./dist/types/index.cjs"
109
+ },
110
+ "import": {
111
+ "types": "./dist/types/index.d.mts",
112
+ "default": "./dist/types/index.mjs"
113
+ },
114
+ "default": {
115
+ "types": "./dist/types/index.d.mts",
116
+ "default": "./dist/types/index.mjs"
117
+ }
118
+ },
119
+ "./types/env": {
120
+ "require": {
121
+ "types": "./dist/types/env.d.cts",
122
+ "default": "./dist/types/env.cjs"
123
+ },
124
+ "import": {
125
+ "types": "./dist/types/env.d.mts",
126
+ "default": "./dist/types/env.mjs"
127
+ },
128
+ "default": {
129
+ "types": "./dist/types/env.d.mts",
130
+ "default": "./dist/types/env.mjs"
131
+ }
132
+ },
133
+ "./types/package-manager": {
134
+ "require": {
135
+ "types": "./dist/types/package-manager.d.cts",
136
+ "default": "./dist/types/package-manager.cjs"
137
+ },
138
+ "import": {
139
+ "types": "./dist/types/package-manager.d.mts",
140
+ "default": "./dist/types/package-manager.mjs"
141
+ },
142
+ "default": {
143
+ "types": "./dist/types/package-manager.d.mts",
144
+ "default": "./dist/types/package-manager.mjs"
145
+ }
146
+ },
147
+ "./types/plugin": {
148
+ "require": {
149
+ "types": "./dist/types/plugin.d.cts",
150
+ "default": "./dist/types/plugin.cjs"
151
+ },
152
+ "import": {
153
+ "types": "./dist/types/plugin.d.mts",
154
+ "default": "./dist/types/plugin.mjs"
155
+ },
156
+ "default": {
157
+ "types": "./dist/types/plugin.d.mts",
158
+ "default": "./dist/types/plugin.mjs"
159
+ }
160
+ }
161
+ },
162
+ "main": "./dist/index.cjs",
163
+ "module": "./dist/index.mjs",
164
+ "types": "./dist/index.d.cts",
165
+ "typings": "dist/index.d.mts",
166
+ "files": ["dist/**/*"],
167
+ "dependencies": {
168
+ "@alloy-js/core": "^0.23.1",
169
+ "@alloy-js/typescript": "^0.23.0",
170
+ "@powerlines/deepkit": "^0.9.81",
171
+ "@powerlines/plugin-alloy": "^0.26.220",
172
+ "@powerlines/plugin-plugin": "^0.12.539",
173
+ "@shell-shock/core": "0.17.13",
174
+ "@stryke/path": "^0.29.11",
175
+ "@stryke/type-checks": "^0.6.17",
176
+ "@stryke/types": "^0.12.12",
177
+ "defu": "^6.1.7",
178
+ "powerlines": "^0.47.127"
179
+ },
180
+ "devDependencies": {
181
+ "@powerlines/plugin-deepkit": "^0.11.470",
182
+ "@types/node": "^25.9.1"
183
+ },
184
+ "publishConfig": {
185
+ "access": "public",
186
+ "exports": {
187
+ ".": { "require": "./dist/index.cjs", "import": "./dist/index.mjs" },
188
+ "./types": {
189
+ "require": "./dist/types/index.cjs",
190
+ "import": "./dist/types/index.mjs"
191
+ },
192
+ "./types/plugin": {
193
+ "require": "./dist/types/plugin.cjs",
194
+ "import": "./dist/types/plugin.mjs"
195
+ },
196
+ "./package.json": "./package.json"
197
+ }
198
+ },
199
+ "gitHead": "5e6228dd92f825a7e19988626b7b24bd0be08518"
200
+ }