silgi 0.9.33 → 0.9.35

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,4 +1,4 @@
1
- const version = "0.9.33";
1
+ const version = "0.9.35";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -11,57 +11,57 @@ const peerDependencies = {
11
11
  zod: "^3.24.1"
12
12
  };
13
13
  const dependencies = {
14
- "@clack/prompts": "^0.10.0",
15
- "@fastify/deepmerge": "^2.0.2",
16
- "@oxc-parser/wasm": "^0.53.0",
17
- "@standard-schema/spec": "^1.0.0",
18
- c12: "^3.0.2",
19
- chokidar: "^4.0.3",
20
- citty: "^0.1.6",
21
- compatx: "^0.1.8",
22
- consola: "^3.4.0",
23
- defu: "^6.1.4",
24
- destr: "^2.0.3",
25
- "dev-jiti": "^2.4.2",
26
- "dot-prop": "^9.0.0",
27
- dotenv: "^16.4.7",
28
- "escape-string-regexp": "^5.0.0",
29
- globby: "^14.1.0",
30
- hookable: "^5.5.3",
31
- ignore: "^7.0.3",
32
- klona: "^2.0.6",
33
- knitwork: "^1.2.0",
34
- mlly: "^1.7.4",
35
- ofetch: "^1.4.1",
36
- ohash: "^2.0.8",
37
- pathe: "^2.0.3",
38
- picocolors: "^1.1.1",
39
- "pkg-types": "^2.0.1",
40
- scule: "^1.3.0",
41
- semver: "^7.7.1",
42
- "std-env": "^3.8.0",
43
- ufo: "^1.5.4",
44
- unctx: "^2.4.1",
45
- unimport: "^4.1.2",
46
- unstorage: "^1.15.0",
47
- untyped: "^2.0.0"
14
+ "@clack/prompts": "catalog:",
15
+ "@fastify/deepmerge": "catalog:",
16
+ "@oxc-parser/wasm": "catalog:",
17
+ "@standard-schema/spec": "catalog:",
18
+ c12: "catalog:",
19
+ chokidar: "catalog:",
20
+ citty: "catalog:",
21
+ compatx: "catalog:",
22
+ consola: "catalog:",
23
+ defu: "catalog:",
24
+ destr: "catalog:",
25
+ "dev-jiti": "catalog:",
26
+ "dot-prop": "catalog:",
27
+ dotenv: "catalog:",
28
+ "escape-string-regexp": "catalog:",
29
+ globby: "catalog:",
30
+ hookable: "catalog:",
31
+ ignore: "catalog:",
32
+ klona: "catalog:",
33
+ knitwork: "catalog:",
34
+ mlly: "catalog:",
35
+ ofetch: "catalog:",
36
+ ohash: "catalog:",
37
+ pathe: "catalog:",
38
+ picocolors: "catalog:",
39
+ "pkg-types": "catalog:",
40
+ scule: "catalog:",
41
+ semver: "catalog:",
42
+ "std-env": "catalog:",
43
+ ufo: "catalog:",
44
+ unctx: "catalog:",
45
+ unimport: "catalog:",
46
+ unstorage: "catalog:",
47
+ untyped: "catalog:"
48
48
  };
49
49
  const devDependencies = {
50
- "@antfu/eslint-config": "^4.3.0",
51
- "@nuxt/kit": "^3.15.4",
52
- "@nuxt/schema": "^3.15.4",
53
- "@types/node": "^22.13.8",
54
- "@types/semver": "^7.5.8",
55
- "@vitest/coverage-v8": "3.0.5",
56
- eslint: "^9.21.0",
57
- h3: "^1.15.1",
58
- nitropack: "^2.10.4",
59
- nuxt: "^3.15.4",
60
- typescript: "^5.8.2",
61
- unbuild: "^3.5.0",
62
- vitest: "^3.0.7",
63
- vue: "^3.5.13",
64
- zod: "^3.24.2"
50
+ "@antfu/eslint-config": "catalog:",
51
+ "@nuxt/kit": "catalog:",
52
+ "@nuxt/schema": "catalog:",
53
+ "@types/node": "catalog:",
54
+ "@types/semver": "catalog:",
55
+ "@vitest/coverage-v8": "catalog:",
56
+ eslint: "catalog:",
57
+ h3: "catalog:",
58
+ nitropack: "catalog:",
59
+ nuxt: "catalog:",
60
+ typescript: "catalog:",
61
+ unbuild: "catalog:",
62
+ vitest: "catalog:",
63
+ vue: "catalog:",
64
+ zod: "catalog:"
65
65
  };
66
66
  const packageJson = {
67
67
  version: version};
@@ -14,11 +14,7 @@ declare function tryResolveModule(id: string, url?: string | string[]): Promise<
14
14
  declare function writeFile(file: string, contents: Buffer | string, log?: boolean): Promise<void>;
15
15
  declare function isDirectory(path: string): Promise<boolean>;
16
16
 
17
- declare function hash(data: any, type?: {
18
- camelCase?: boolean;
19
- snakeCase?: boolean;
20
- flatCase?: boolean;
21
- }): string;
17
+ declare function hash(data: any): string;
22
18
 
23
19
  declare function isNuxt(): boolean;
24
20
  declare function isNitro(): boolean;
@@ -14,11 +14,7 @@ declare function tryResolveModule(id: string, url?: string | string[]): Promise<
14
14
  declare function writeFile(file: string, contents: Buffer | string, log?: boolean): Promise<void>;
15
15
  declare function isDirectory(path: string): Promise<boolean>;
16
16
 
17
- declare function hash(data: any, type?: {
18
- camelCase?: boolean;
19
- snakeCase?: boolean;
20
- flatCase?: boolean;
21
- }): string;
17
+ declare function hash(data: any): string;
22
18
 
23
19
  declare function isNuxt(): boolean;
24
20
  declare function isNitro(): boolean;
@@ -5,7 +5,7 @@ import { relative, resolve, dirname, normalize, isAbsolute, join, parse, basenam
5
5
  import { colors } from 'consola/utils';
6
6
  import { getProperty } from 'dot-prop';
7
7
  import { hash as hash$1 } from 'ohash';
8
- import { camelCase, snakeCase, flatCase } from 'scule';
8
+ import { camelCase, snakeCase } from 'scule';
9
9
  import { useSilgi, tryUseSilgiCLI, useSilgiCLI, tryUseSilgi } from 'silgi/core';
10
10
  import { defu } from 'defu';
11
11
  import { c as checkSilgiCompatibility } from '../cli/compatibility.mjs';
@@ -72,17 +72,8 @@ async function isDirectory$1(path) {
72
72
  }
73
73
  }
74
74
 
75
- function hash(data, type) {
76
- if (type?.camelCase) {
77
- return camelCase(hash$1(data));
78
- }
79
- if (type?.snakeCase) {
80
- return snakeCase(hash$1(data));
81
- }
82
- if (type?.flatCase) {
83
- return flatCase(hash$1(data));
84
- }
85
- return flatCase(hash$1(data));
75
+ function hash(data) {
76
+ return camelCase(hash$1(data));
86
77
  }
87
78
 
88
79
  function isNuxt() {
@@ -1,4 +1,4 @@
1
- const version = "0.9.33";
1
+ const version = "0.9.35";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -11,57 +11,57 @@ const peerDependencies = {
11
11
  zod: "^3.24.1"
12
12
  };
13
13
  const dependencies = {
14
- "@clack/prompts": "^0.10.0",
15
- "@fastify/deepmerge": "^2.0.2",
16
- "@oxc-parser/wasm": "^0.53.0",
17
- "@standard-schema/spec": "^1.0.0",
18
- c12: "^3.0.2",
19
- chokidar: "^4.0.3",
20
- citty: "^0.1.6",
21
- compatx: "^0.1.8",
22
- consola: "^3.4.0",
23
- defu: "^6.1.4",
24
- destr: "^2.0.3",
25
- "dev-jiti": "^2.4.2",
26
- "dot-prop": "^9.0.0",
27
- dotenv: "^16.4.7",
28
- "escape-string-regexp": "^5.0.0",
29
- globby: "^14.1.0",
30
- hookable: "^5.5.3",
31
- ignore: "^7.0.3",
32
- klona: "^2.0.6",
33
- knitwork: "^1.2.0",
34
- mlly: "^1.7.4",
35
- ofetch: "^1.4.1",
36
- ohash: "^2.0.8",
37
- pathe: "^2.0.3",
38
- picocolors: "^1.1.1",
39
- "pkg-types": "^2.0.1",
40
- scule: "^1.3.0",
41
- semver: "^7.7.1",
42
- "std-env": "^3.8.0",
43
- ufo: "^1.5.4",
44
- unctx: "^2.4.1",
45
- unimport: "^4.1.2",
46
- unstorage: "^1.15.0",
47
- untyped: "^2.0.0"
14
+ "@clack/prompts": "catalog:",
15
+ "@fastify/deepmerge": "catalog:",
16
+ "@oxc-parser/wasm": "catalog:",
17
+ "@standard-schema/spec": "catalog:",
18
+ c12: "catalog:",
19
+ chokidar: "catalog:",
20
+ citty: "catalog:",
21
+ compatx: "catalog:",
22
+ consola: "catalog:",
23
+ defu: "catalog:",
24
+ destr: "catalog:",
25
+ "dev-jiti": "catalog:",
26
+ "dot-prop": "catalog:",
27
+ dotenv: "catalog:",
28
+ "escape-string-regexp": "catalog:",
29
+ globby: "catalog:",
30
+ hookable: "catalog:",
31
+ ignore: "catalog:",
32
+ klona: "catalog:",
33
+ knitwork: "catalog:",
34
+ mlly: "catalog:",
35
+ ofetch: "catalog:",
36
+ ohash: "catalog:",
37
+ pathe: "catalog:",
38
+ picocolors: "catalog:",
39
+ "pkg-types": "catalog:",
40
+ scule: "catalog:",
41
+ semver: "catalog:",
42
+ "std-env": "catalog:",
43
+ ufo: "catalog:",
44
+ unctx: "catalog:",
45
+ unimport: "catalog:",
46
+ unstorage: "catalog:",
47
+ untyped: "catalog:"
48
48
  };
49
49
  const devDependencies = {
50
- "@antfu/eslint-config": "^4.3.0",
51
- "@nuxt/kit": "^3.15.4",
52
- "@nuxt/schema": "^3.15.4",
53
- "@types/node": "^22.13.8",
54
- "@types/semver": "^7.5.8",
55
- "@vitest/coverage-v8": "3.0.5",
56
- eslint: "^9.21.0",
57
- h3: "^1.15.1",
58
- nitropack: "^2.10.4",
59
- nuxt: "^3.15.4",
60
- typescript: "^5.8.2",
61
- unbuild: "^3.5.0",
62
- vitest: "^3.0.7",
63
- vue: "^3.5.13",
64
- zod: "^3.24.2"
50
+ "@antfu/eslint-config": "catalog:",
51
+ "@nuxt/kit": "catalog:",
52
+ "@nuxt/schema": "catalog:",
53
+ "@types/node": "catalog:",
54
+ "@types/semver": "catalog:",
55
+ "@vitest/coverage-v8": "catalog:",
56
+ eslint: "catalog:",
57
+ h3: "catalog:",
58
+ nitropack: "catalog:",
59
+ nuxt: "catalog:",
60
+ typescript: "catalog:",
61
+ unbuild: "catalog:",
62
+ vitest: "catalog:",
63
+ vue: "catalog:",
64
+ zod: "catalog:"
65
65
  };
66
66
 
67
67
  export { dependencies, devDependencies, peerDependencies, version };
@@ -1,4 +1,4 @@
1
- const version = "0.9.33";
1
+ const version = "0.9.35";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -11,57 +11,57 @@ const peerDependencies = {
11
11
  zod: "^3.24.1"
12
12
  };
13
13
  const dependencies = {
14
- "@clack/prompts": "^0.10.0",
15
- "@fastify/deepmerge": "^2.0.2",
16
- "@oxc-parser/wasm": "^0.53.0",
17
- "@standard-schema/spec": "^1.0.0",
18
- c12: "^3.0.2",
19
- chokidar: "^4.0.3",
20
- citty: "^0.1.6",
21
- compatx: "^0.1.8",
22
- consola: "^3.4.0",
23
- defu: "^6.1.4",
24
- destr: "^2.0.3",
25
- "dev-jiti": "^2.4.2",
26
- "dot-prop": "^9.0.0",
27
- dotenv: "^16.4.7",
28
- "escape-string-regexp": "^5.0.0",
29
- globby: "^14.1.0",
30
- hookable: "^5.5.3",
31
- ignore: "^7.0.3",
32
- klona: "^2.0.6",
33
- knitwork: "^1.2.0",
34
- mlly: "^1.7.4",
35
- ofetch: "^1.4.1",
36
- ohash: "^2.0.8",
37
- pathe: "^2.0.3",
38
- picocolors: "^1.1.1",
39
- "pkg-types": "^2.0.1",
40
- scule: "^1.3.0",
41
- semver: "^7.7.1",
42
- "std-env": "^3.8.0",
43
- ufo: "^1.5.4",
44
- unctx: "^2.4.1",
45
- unimport: "^4.1.2",
46
- unstorage: "^1.15.0",
47
- untyped: "^2.0.0"
14
+ "@clack/prompts": "catalog:",
15
+ "@fastify/deepmerge": "catalog:",
16
+ "@oxc-parser/wasm": "catalog:",
17
+ "@standard-schema/spec": "catalog:",
18
+ c12: "catalog:",
19
+ chokidar: "catalog:",
20
+ citty: "catalog:",
21
+ compatx: "catalog:",
22
+ consola: "catalog:",
23
+ defu: "catalog:",
24
+ destr: "catalog:",
25
+ "dev-jiti": "catalog:",
26
+ "dot-prop": "catalog:",
27
+ dotenv: "catalog:",
28
+ "escape-string-regexp": "catalog:",
29
+ globby: "catalog:",
30
+ hookable: "catalog:",
31
+ ignore: "catalog:",
32
+ klona: "catalog:",
33
+ knitwork: "catalog:",
34
+ mlly: "catalog:",
35
+ ofetch: "catalog:",
36
+ ohash: "catalog:",
37
+ pathe: "catalog:",
38
+ picocolors: "catalog:",
39
+ "pkg-types": "catalog:",
40
+ scule: "catalog:",
41
+ semver: "catalog:",
42
+ "std-env": "catalog:",
43
+ ufo: "catalog:",
44
+ unctx: "catalog:",
45
+ unimport: "catalog:",
46
+ unstorage: "catalog:",
47
+ untyped: "catalog:"
48
48
  };
49
49
  const devDependencies = {
50
- "@antfu/eslint-config": "^4.3.0",
51
- "@nuxt/kit": "^3.15.4",
52
- "@nuxt/schema": "^3.15.4",
53
- "@types/node": "^22.13.8",
54
- "@types/semver": "^7.5.8",
55
- "@vitest/coverage-v8": "3.0.5",
56
- eslint: "^9.21.0",
57
- h3: "^1.15.1",
58
- nitropack: "^2.10.4",
59
- nuxt: "^3.15.4",
60
- typescript: "^5.8.2",
61
- unbuild: "^3.5.0",
62
- vitest: "^3.0.7",
63
- vue: "^3.5.13",
64
- zod: "^3.24.2"
50
+ "@antfu/eslint-config": "catalog:",
51
+ "@nuxt/kit": "catalog:",
52
+ "@nuxt/schema": "catalog:",
53
+ "@types/node": "catalog:",
54
+ "@types/semver": "catalog:",
55
+ "@vitest/coverage-v8": "catalog:",
56
+ eslint: "catalog:",
57
+ h3: "catalog:",
58
+ nitropack: "catalog:",
59
+ nuxt: "catalog:",
60
+ typescript: "catalog:",
61
+ unbuild: "catalog:",
62
+ vitest: "catalog:",
63
+ vue: "catalog:",
64
+ zod: "catalog:"
65
65
  };
66
66
 
67
67
  export { dependencies, devDependencies, peerDependencies, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.9.33",
4
+ "version": "0.9.35",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {