@shell-shock/plugin-upgrade 0.1.14 → 0.1.18

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["render","getAppTitle","joinPaths","defu","UpgradeBuiltin","UpgradeCommand","plugin","options","name","config","debug","upgrade","type","staleTime","env","types","validate","configResolved","inputs","some","input","id","info","push","alias","path","segments","title","description","entry","file","entryPath","isVirtual","prepare","_$createComponent"],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport { getAppTitle } from \"@shell-shock/core/plugin-utils\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { UpgradeBuiltin, UpgradeCommand } from \"./components\";\nimport type {\n UpgradePluginContext,\n UpgradePluginOptions\n} from \"./types/plugin\";\n\n/**\n * The Upgrade - Shell Shock plugin to add version check functionality and upgrade commands to a Shell Shock application.\n */\nexport const plugin = <\n TContext extends UpgradePluginContext = UpgradePluginContext\n>(\n options: UpgradePluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"shell-shock:upgrade\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `upgrade` plugin.\"\n );\n\n return {\n upgrade: defu(options, {\n type: \"confirm\",\n staleTime: 36 * 60 * 60 * 1000 // 36 hours\n }),\n env: {\n types:\n \"@shell-shock/plugin-upgrade/types/env#ShellShockUpgradePluginEnv\",\n validate: false\n }\n };\n },\n configResolved() {\n this.debug(\"Adding the CLI upgrade commands to the application context.\");\n\n this.inputs ??= [];\n if (this.inputs.some(input => input.id === \"upgrade\")) {\n this.info(\n \"The `upgrade` command already exists in the commands list. If you would like the upgrade command to be managed by the `@shell-shock/plugin-upgrade` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"upgrade\",\n name: \"upgrade\",\n alias: [\"up\", \"update\"],\n path: \"upgrade\",\n segments: [\"upgrade\"],\n title: \"Upgrade\",\n description: `A command for checking and upgrading the version of the ${getAppTitle(\n this\n )}.`,\n entry: {\n file: joinPaths(this.entryPath, \"upgrade\", \"command.ts\"),\n input: {\n file: joinPaths(this.entryPath, \"upgrade\", \"command.ts\")\n }\n },\n isVirtual: false\n });\n }\n },\n async prepare() {\n this.debug(\n \"Rendering upgrade built-in and command modules for the Shell Shock `upgrade` plugin.\"\n );\n\n return render(\n this,\n <>\n <UpgradeBuiltin />\n <UpgradeCommand />\n </>\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AAgCA,MAAaM,UAGXC,UAAgC,EAAE,KACb;AACrB,QAAO;EACLC,MAAM;EACNC,SAAS;AACP,QAAKC,MACH,wEACD;AAED,UAAO;IACLC,SAASR,KAAKI,SAAS;KACrBK,MAAM;KACNC,WAAW,OAAU,KAAK;KAC3B,CAAC;IACFC,KAAK;KACHC,OACE;KACFC,UAAU;KACZ;IACD;;EAEHC,iBAAiB;AACf,QAAKP,MAAM,8DAA8D;AAEzE,QAAKQ,WAAW,EAAE;AAClB,OAAI,KAAKA,OAAOC,MAAKC,UAASA,MAAMC,OAAO,UAAU,CACnD,MAAKC,KACH,oMACD;OAED,MAAKJ,OAAOK,KAAK;IACfF,IAAI;IACJb,MAAM;IACNgB,OAAO,CAAC,MAAM,SAAS;IACvBC,MAAM;IACNC,UAAU,CAAC,UAAU;IACrBC,OAAO;IACPC,aAAa,2DAA2D3B,YACtE,KACD,CAAA;IACD4B,OAAO;KACLC,MAAM5B,UAAU,KAAK6B,WAAW,WAAW,aAAa;KACxDX,OAAO,EACLU,MAAM5B,UAAU,KAAK6B,WAAW,WAAW,aAAY,EACzD;KACD;IACDC,WAAW;IACZ,CAAC;;EAGN,MAAMC,UAAU;AACd,QAAKvB,MACH,uFACD;AAED,UAAOV,OACL,MAAI,CAAAkC,gBAED9B,gBAAc,EAAA,CAAA,EAAA8B,gBACd7B,gBAAc,EAAA,CAAA,CAEnB,CAAC;;EAEJ;;AAGH,kBAAeC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport { getAppTitle } from \"@shell-shock/core/plugin-utils\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport { UpgradeBuiltin, UpgradeCommand } from \"./components\";\nimport type {\n UpgradePluginContext,\n UpgradePluginOptions\n} from \"./types/plugin\";\n\n/**\n * The Upgrade - Shell Shock plugin to add version check functionality and upgrade commands to a Shell Shock application.\n */\nexport const plugin = <\n TContext extends UpgradePluginContext = UpgradePluginContext\n>(\n options: UpgradePluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"shell-shock:upgrade\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `upgrade` plugin.\"\n );\n\n return {\n upgrade: defu(options, {\n type: \"confirm\",\n staleTime: 36 * 60 * 60 * 1000 // 36 hours\n }),\n env: {\n types:\n \"@shell-shock/plugin-upgrade/types/env#ShellShockUpgradePluginEnv\",\n validate: false\n }\n };\n },\n configResolved() {\n this.debug(\"Adding the CLI upgrade commands to the application context.\");\n\n this.inputs ??= [];\n if (this.inputs.some(input => input.id === \"upgrade\")) {\n this.info(\n \"The `upgrade` command already exists in the commands list. If you would like the upgrade command to be managed by the `@shell-shock/plugin-upgrade` package, please remove or rename the command.\"\n );\n } else {\n this.inputs.push({\n id: \"upgrade\",\n name: \"upgrade\",\n alias: [\"up\", \"update\"],\n path: \"upgrade\",\n segments: [\"upgrade\"],\n title: \"Upgrade\",\n description: `A command for checking and upgrading the version of the ${getAppTitle(\n this,\n true\n )} command-line interface application.`,\n entry: {\n file: joinPaths(this.entryPath, \"upgrade\", \"index.ts\"),\n input: {\n file: joinPaths(this.entryPath, \"upgrade\", \"command.ts\")\n }\n },\n isVirtual: false\n });\n }\n },\n async prepare() {\n this.debug(\n \"Rendering upgrade built-in and command modules for the Shell Shock `upgrade` plugin.\"\n );\n\n return render(\n this,\n <>\n <UpgradeBuiltin />\n <UpgradeCommand />\n </>\n );\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AA8BA,MAAO,UAA4E,UAA0B,EAAW,KAAA;AACtH,QAAA;EACF,MAAO;EACL,SAAS;AACV,QAAA,MAAA,wEAAA;AACC,UAAS;IACR,SAAO,KAAY,SAAC;KACd,MAAA;KACC,WAAO,OAAc,KAAA;KAC3B,CAAM;IACJ,KAAK;KACF,OAAA;KACF,UAAA;;IAED;;EAEF,iBAAa;AACX,QAAI,MAAA,8DAAqC;AACzC,QAAI,WAAA,EAAA;AACJ,OAAE,KAAK,OAAA,MAAA,UAAA,MAAA,OAAA,UAAA,CACL,MAAE,KAAK,oMAAA;OAEP,MAAE,OAAU,KAAA;IACZ,IAAA;IACD,MAAA;IACF,OAAA,CAAA,MAAA,SAAA;IACD,MAAA;IACM,UAAQ,CAAA,UAAW;;IAEnB,aAAa,2DAAC,YAAA,MAAA,KAAA,CAAA;IACd,OAAK;KACH,MAAK,UAAA,KAAA,WAAA,WAAA,WAAA;KACN,OAAK,EACP,MAAA,UAAA,KAAA,WAAA,WAAA,aAAA,EACI;KACL;IACE,WAAK;IACN,CAAC;;EAGN,MAAM,UAAU;AACd,QAAI,MAAO,uFAAS;AACpB,UAAI,OAAA,MAAgB,CAAA,gBAAY,gBAAuB,EAAA,CAAG,EAAC,gBAAiB,gBAAW,EAAA,CAAA,CAAA,CAAA;;EAE1F"}
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.cts","names":[],"sources":["../../src/types/env.ts"],"sourcesContent":[],"mappings":";;;UAoBiB,0BAAA,SAAmC;;AAApD"}
1
+ {"version":3,"file":"env.d.cts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;UAoBiB,0BAAA,SAAmC,aAAA;;AAApD;;;;EAME,kBAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.mts","names":[],"sources":["../../src/types/env.ts"],"sourcesContent":[],"mappings":";;;UAoBiB,0BAAA,SAAmC;;AAApD"}
1
+ {"version":3,"file":"env.d.mts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;UAoBiB,0BAAA,SAAmC,aAAA;;AAApD;;;;EAME,kBAAA;AAAA"}
@@ -1,3 +1,4 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1
2
  const require_types_package_manager = require('./package-manager.cjs');
2
3
 
3
4
  exports.PACKAGE_MANAGERS = require_types_package_manager.PACKAGE_MANAGERS;
@@ -1,3 +1,4 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1
2
 
2
3
  //#region src/types/package-manager.ts
3
4
  const PACKAGE_MANAGERS = [
@@ -1 +1 @@
1
- {"version":3,"file":"package-manager.d.cts","names":[],"sources":["../../src/types/package-manager.ts"],"sourcesContent":[],"mappings":";KAkBY,cAAA;AAAA,cAEC,gBAFa,EAAA,SAEc,cAFd,EAAA;AAEb,cAQA,4BAR2B,EAQG,MARW,CAAA,MAAA,EAQI,cARJ,CAAA"}
1
+ {"version":3,"file":"package-manager.d.cts","names":[],"sources":["../../src/types/package-manager.ts"],"mappings":";KAkBY,cAAA;AAAA,cAEC,gBAAA,WAA2B,cAAA;AAAA,cAQ3B,4BAAA,EAA8B,MAAA,SAAe,cAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"package-manager.d.mts","names":[],"sources":["../../src/types/package-manager.ts"],"sourcesContent":[],"mappings":";KAkBY,cAAA;AAAA,cAEC,gBAFa,EAAA,SAEc,cAFd,EAAA;AAEb,cAQA,4BARyC,EAQX,MARW,CAAA,MAAA,EAQI,cARJ,CAAA"}
1
+ {"version":3,"file":"package-manager.d.mts","names":[],"sources":["../../src/types/package-manager.ts"],"mappings":";KAkBY,cAAA;AAAA,cAEC,gBAAA,WAA2B,cAAA;AAAA,cAQ3B,4BAAA,EAA8B,MAAA,SAAe,cAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"package-manager.mjs","names":["PACKAGE_MANAGERS","PACKAGE_MANAGER_LOCKFILE_MAP","yarn","deno","bun"],"sources":["../../src/types/package-manager.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport type PackageManager = \"npm\" | \"yarn\" | \"pnpm\" | \"deno\" | \"bun\";\n\nexport const PACKAGE_MANAGERS: readonly PackageManager[] = [\n \"npm\",\n \"yarn\",\n \"pnpm\",\n \"deno\",\n \"bun\"\n] as const;\n\nexport const PACKAGE_MANAGER_LOCKFILE_MAP: Record<string, PackageManager> = {\n \"package-lock\": \"npm\",\n yarn: \"yarn\",\n \"pnpm-lock\": \"pnpm\",\n deno: \"deno\",\n bun: \"bun\"\n} as const;\n"],"mappings":";AAoBA,MAAaA,mBAA8C;CACzD;CACA;CACA;CACA;CACA;CACQ;AAEV,MAAaC,+BAA+D;CAC1E,gBAAgB;CAChBC,MAAM;CACN,aAAa;CACbC,MAAM;CACNC,KAAK;CACG"}
1
+ {"version":3,"file":"package-manager.mjs","names":[],"sources":["../../src/types/package-manager.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport type PackageManager = \"npm\" | \"yarn\" | \"pnpm\" | \"deno\" | \"bun\";\n\nexport const PACKAGE_MANAGERS: readonly PackageManager[] = [\n \"npm\",\n \"yarn\",\n \"pnpm\",\n \"deno\",\n \"bun\"\n] as const;\n\nexport const PACKAGE_MANAGER_LOCKFILE_MAP: Record<string, PackageManager> = {\n \"package-lock\": \"npm\",\n yarn: \"yarn\",\n \"pnpm-lock\": \"pnpm\",\n deno: \"deno\",\n bun: \"bun\"\n} as const;\n"],"mappings":";AAoBA,MAAa,mBAA8C;CACzD;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,+BAA+D;CAC1E,gBAAgB;CAChB,MAAM;CACN,aAAa;CACb,MAAM;CACN,KAAK;CACN"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UAwBiB,oBAAA;;AAAjB;AAYA;AAOA;;;;;EAOY,SAAA,CAAA,EAAA,MAAA;;AAER,KAhBQ,uBAAA,GAA0B,UAgBlC,GAAA;EACQ;;;WAbD;;KAGC,2BAAA,GAA8B;;;;WAI/B,SAAS;;KAGR,6CACc,8BACtB,+BACA,QAAQ"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;UAwBiB,oBAAA;;AAAjB;;;;;AAYA;;EAHE,SAAA;AAAA;AAAA,KAGU,uBAAA,GAA0B,UAAA;EAIpC;;;EAAA,OAAA,EAAS,oBAAA;AAAA;AAAA,KAGC,2BAAA,GAA8B,cAAA;;;;EAIxC,OAAA,EAAS,QAAA,CAAS,oBAAA;AAAA;AAAA,KAGR,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,OAAA,CAAQ,eAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UAwBiB,oBAAA;;AAAjB;AAYA;AAOA;;;;;EAOY,SAAA,CAAA,EAAA,MAAA;;AAER,KAhBQ,uBAAA,GAA0B,UAgBlC,GAAA;EACQ;;;WAbD;;KAGC,2BAAA,GAA8B;;;;WAI/B,SAAS;;KAGR,6CACc,8BACtB,+BACA,QAAQ"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;UAwBiB,oBAAA;;AAAjB;;;;;AAYA;;EAHE,SAAA;AAAA;AAAA,KAGU,uBAAA,GAA0B,UAAA;EAIpC;;;EAAA,OAAA,EAAS,oBAAA;AAAA;AAAA,KAGC,2BAAA,GAA8B,cAAA;;;;EAIxC,OAAA,EAAS,QAAA,CAAS,oBAAA;AAAA;AAAA,KAGR,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,OAAA,CAAQ,eAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/plugin-upgrade",
3
- "version": "0.1.14",
3
+ "version": "0.1.18",
4
4
  "private": false,
5
5
  "description": "A package containing a Shell Shock plugin to manage upgrading the local application's version.",
6
6
  "keywords": [
@@ -60,7 +60,6 @@
60
60
  "default": "./dist/index.mjs"
61
61
  }
62
62
  },
63
- "./*": "./*",
64
63
  "./components": {
65
64
  "require": {
66
65
  "types": "./dist/components/index.d.cts",
@@ -103,6 +102,7 @@
103
102
  "default": "./dist/components/upgrade-command.mjs"
104
103
  }
105
104
  },
105
+ "./package.json": "./package.json",
106
106
  "./types": {
107
107
  "require": {
108
108
  "types": "./dist/types/index.d.cts",
@@ -168,17 +168,17 @@
168
168
  "dependencies": {
169
169
  "@alloy-js/core": "0.23.0-dev.8",
170
170
  "@alloy-js/typescript": "0.23.0-dev.4",
171
- "@powerlines/deepkit": "^0.6.90",
172
- "@powerlines/plugin-alloy": "^0.24.2",
173
- "@powerlines/plugin-plugin": "^0.12.262",
174
- "@shell-shock/core": "^0.12.0",
175
- "@stryke/path": "^0.26.12",
171
+ "@powerlines/deepkit": "^0.6.134",
172
+ "@powerlines/plugin-alloy": "^0.25.41",
173
+ "@powerlines/plugin-plugin": "^0.12.306",
174
+ "@shell-shock/core": "^0.13.1",
175
+ "@stryke/path": "^0.27.2",
176
176
  "defu": "^6.1.4",
177
- "powerlines": "^0.39.19"
177
+ "powerlines": "^0.41.20"
178
178
  },
179
179
  "devDependencies": {
180
- "@powerlines/plugin-deepkit": "^0.11.190",
181
- "@types/node": "^25.3.3"
180
+ "@powerlines/plugin-deepkit": "^0.11.234",
181
+ "@types/node": "^25.5.0"
182
182
  },
183
183
  "publishConfig": {
184
184
  "access": "public",
@@ -195,5 +195,5 @@
195
195
  "./package.json": "./package.json"
196
196
  }
197
197
  },
198
- "gitHead": "c38d304433a296936fb8ca58aa138a0039918931"
198
+ "gitHead": "86c55189ed02d126fb583cf6d2555266f00d0f3a"
199
199
  }