@stacksjs/utils 0.48.3 → 0.49.1

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/helpers.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { type CliOptions, type Manifest, type NpmScript } from '@stacksjs/types';
1
+ import type { CliOptions, Manifest, NpmScript } from '@stacksjs/types';
2
2
  export declare function isProjectCreated(): Promise<boolean>;
3
- export declare function readVersion(): Promise<any>;
3
+ export declare function frameworkVersion(): Promise<string>;
4
4
  export declare function isAppKeySet(): Promise<boolean>;
5
5
  /**
6
6
  * Determines the utilized reset preset.
package/dist/helpers.mjs CHANGED
@@ -9,7 +9,7 @@ export async function isProjectCreated() {
9
9
  await spawn("cp .env.example .env", { stdio: "inherit", cwd: projectPath() });
10
10
  return await isAppKeySet();
11
11
  }
12
- export async function readVersion() {
12
+ export async function frameworkVersion() {
13
13
  const packageJson = await storage.fs.readJson(frameworkPath("package.json"));
14
14
  return packageJson.version;
15
15
  }
@@ -54,6 +54,7 @@ export async function setEnvValue(key, value) {
54
54
  await storage.writeTextFile({
55
55
  path: projectPath(".env"),
56
56
  data: file.data.replace(/APP_KEY=/g, `APP_KEY=${value}`)
57
+ // todo: do not hardcode the APP_KEY here and instead use the key parameter
57
58
  });
58
59
  }
59
60
  export async function runNpmScript(script, options) {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/utils",
3
3
  "type": "module",
4
- "version": "0.48.3",
5
- "packageManager": "pnpm@7.21.0",
4
+ "version": "0.49.1",
5
+ "packageManager": "pnpm@7.25.0",
6
6
  "description": "The Stacks helper functions.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -37,14 +37,14 @@
37
37
  "README.md"
38
38
  ],
39
39
  "engines": {
40
- "node": ">=v18.12.1",
41
- "pnpm": ">=7.21.0"
40
+ "node": ">=v18.13.0",
41
+ "pnpm": ">=7.25.0"
42
42
  },
43
43
  "peerDependencies": {
44
- "@vueuse/core": "^9.9.0",
44
+ "@vueuse/core": "^9.10.0",
45
45
  "@vueuse/head": "^1.0.22",
46
- "@vueuse/math": "^9.9.0",
47
- "@vueuse/shared": "^9.9.0",
46
+ "@vueuse/math": "^9.10.0",
47
+ "@vueuse/shared": "^9.10.0",
48
48
  "defu": "^6.1.1",
49
49
  "detect-indent": "^7.0.1",
50
50
  "detect-newline": "^4.0.0",
@@ -53,21 +53,21 @@
53
53
  "fast-glob": "^3.2.12",
54
54
  "kolorist": "1.6.0",
55
55
  "p-limit": "^4.0.0",
56
- "rimraf": "^3.0.2",
56
+ "rimraf": "^4.0.5",
57
57
  "throttle-debounce": "^5.0.0",
58
- "@stacksjs/arrays": "0.48.3",
59
- "@stacksjs/cli": "0.48.3",
60
- "@stacksjs/lint": "0.48.3",
61
- "@stacksjs/config": "0.48.3",
62
- "@stacksjs/path": "0.48.3",
63
- "@stacksjs/storage": "0.48.3",
64
- "@stacksjs/types": "0.48.3"
58
+ "@stacksjs/arrays": "0.49.1",
59
+ "@stacksjs/cli": "0.49.1",
60
+ "@stacksjs/config": "0.49.1",
61
+ "@stacksjs/lint": "0.49.1",
62
+ "@stacksjs/path": "0.49.1",
63
+ "@stacksjs/storage": "0.49.1",
64
+ "@stacksjs/types": "0.49.1"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/throttle-debounce": "^5.0.0",
68
- "mkdist": "^1.0.0",
68
+ "mkdist": "^1.1.0",
69
69
  "typescript": "^4.9.4",
70
- "@stacksjs/testing": "0.48.3"
70
+ "@stacksjs/testing": "0.49.1"
71
71
  },
72
72
  "scripts": {
73
73
  "build": "mkdist -d",