@crustjs/extensions 0.3.1 → 0.3.2

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 (2) hide show
  1. package/dist/index.js +1 -10
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ import { CrustError, defineCommand, defineExtension, defineExtensionId } from "@
4
4
  import { buildCommandDocumentation, formatDescription, isListed, sectionsFor } from "@crustjs/core/tooling";
5
5
  import { stripVTControlCharacters } from "node:util";
6
6
  import { bold, cyan, dim, green, padEnd, stringWidth, yellow } from "@crustjs/style";
7
+ import { packageManagerFromUserAgent } from "@crustjs/utils/process";
7
8
  //#region src/completion/escape.ts
8
9
  /**
9
10
  * Per-shell quoting and validation helpers used by the completion
@@ -1537,16 +1538,6 @@ const noColor = defineExtension(NO_COLOR, () => ({
1537
1538
  }
1538
1539
  }));
1539
1540
  //#endregion
1540
- //#region ../utils/src/process.ts
1541
- /** Parse the package manager from npm's user-agent environment value. */
1542
- function packageManagerFromUserAgent(userAgent) {
1543
- if (userAgent?.startsWith("bun")) return "bun";
1544
- if (userAgent?.startsWith("pnpm")) return "pnpm";
1545
- if (userAgent?.startsWith("yarn")) return "yarn";
1546
- if (userAgent?.startsWith("npm")) return "npm";
1547
- return null;
1548
- }
1549
- //#endregion
1550
1541
  //#region src/update-notifier.ts
1551
1542
  const UPDATE_NOTIFIER = defineExtensionId("crust:update-notifier");
1552
1543
  /** Default check interval: 24 hours. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crustjs/extensions",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Official Extensions for the Crust CLI framework",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -46,17 +46,17 @@
46
46
  "postpack": "rm -f LICENSE"
47
47
  },
48
48
  "dependencies": {
49
- "@crustjs/store": "^0.4.0",
50
- "@crustjs/style": "^0.3.3"
49
+ "@crustjs/store": "^0.4.1",
50
+ "@crustjs/style": "^0.3.3",
51
+ "@crustjs/utils": "^0.1.0"
51
52
  },
52
53
  "devDependencies": {
53
54
  "@crustjs/config": "0.0.0",
54
- "@crustjs/core": "0.3.1",
55
- "@crustjs/utils": "0.0.0",
55
+ "@crustjs/core": "0.3.2",
56
56
  "tsdown": "^0.23.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@crustjs/core": "^0.3.1",
59
+ "@crustjs/core": "^0.3.2",
60
60
  "typescript": "^7.0.0"
61
61
  },
62
62
  "peerDependenciesMeta": {