silgi 0.9.34 → 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.
- package/dist/_chunks/index.mjs +1 -1
- package/dist/kit/index.d.mts +1 -5
- package/dist/kit/index.d.ts +1 -5
- package/dist/kit/index.mjs +3 -12
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/kit/index.d.mts
CHANGED
|
@@ -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
|
|
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;
|
package/dist/kit/index.d.ts
CHANGED
|
@@ -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
|
|
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;
|
package/dist/kit/index.mjs
CHANGED
|
@@ -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
|
|
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
|
|
76
|
-
|
|
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() {
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED