@weapp-tailwindcss/shared 2.0.3 → 2.0.4
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/extractors.d.ts +5 -6
- package/dist/index.d.ts +15 -15
- package/dist/node.d.ts +3 -4
- package/package.json +3 -3
package/dist/extractors.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
//#region src/extractors/split.d.ts
|
|
2
|
-
declare const validateFilterRE: RegExp;
|
|
3
|
-
declare function isValidSelector(selector?: string): selector is string;
|
|
4
|
-
declare function splitCandidateTokens(code: string): string[];
|
|
5
|
-
declare function splitCode(code: string, _allowDoubleQuotes?: boolean): string[];
|
|
6
|
-
//#endregion
|
|
7
|
-
export { isValidSelector, splitCandidateTokens, splitCode, validateFilterRE };
|
|
2
|
+
export declare const validateFilterRE: RegExp;
|
|
3
|
+
export declare function isValidSelector(selector?: string): selector is string;
|
|
4
|
+
export declare function splitCandidateTokens(code: string): string[];
|
|
5
|
+
export declare function splitCode(code: string, _allowDoubleQuotes?: boolean): string[];
|
|
6
|
+
//#endregion
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
+
import { defu } from "defu";
|
|
1
2
|
import getValue from "get-value";
|
|
2
3
|
import setValue from "set-value";
|
|
3
|
-
import { defu } from "defu";
|
|
4
4
|
//#region src/index.d.ts
|
|
5
|
-
declare function isRegexp(value: unknown): value is RegExp;
|
|
6
|
-
declare function isMap<T = unknown, K = unknown>(value: unknown): value is Map<T, K>;
|
|
7
|
-
declare function isHttp(target: string): boolean;
|
|
8
|
-
declare function cleanUrl(url: string): string;
|
|
9
|
-
declare function toArray<T>(value: T | T[] | null | undefined): Array<NonNullable<T>>;
|
|
10
|
-
declare function ensurePosix(value: string): string;
|
|
11
|
-
declare function normalizeRoot(root: string): string;
|
|
12
|
-
declare function normalizeRelativeImport(target: string): string;
|
|
13
|
-
declare function regExpTest(arr: (string | RegExp)[], str: string, options?: {
|
|
5
|
+
export declare function isRegexp(value: unknown): value is RegExp;
|
|
6
|
+
export declare function isMap<T = unknown, K = unknown>(value: unknown): value is Map<T, K>;
|
|
7
|
+
export declare function isHttp(target: string): boolean;
|
|
8
|
+
export declare function cleanUrl(url: string): string;
|
|
9
|
+
export declare function toArray<T>(value: T | T[] | null | undefined): Array<NonNullable<T>>;
|
|
10
|
+
export declare function ensurePosix(value: string): string;
|
|
11
|
+
export declare function normalizeRoot(root: string): string;
|
|
12
|
+
export declare function normalizeRelativeImport(target: string): string;
|
|
13
|
+
export declare function regExpTest(arr: (string | RegExp)[], str: string, options?: {
|
|
14
14
|
exact?: boolean;
|
|
15
15
|
}): boolean;
|
|
16
|
-
declare function noop(): void;
|
|
17
|
-
declare function groupBy<T>(arr: T[], cb: (arg: T) => string): Record<string, T[]>;
|
|
18
|
-
declare function removeExt(file: string): string;
|
|
19
|
-
declare const defuOverrideArray: import("defu").DefuFn;
|
|
16
|
+
export declare function noop(): void;
|
|
17
|
+
export declare function groupBy<T>(arr: T[], cb: (arg: T) => string): Record<string, T[]>;
|
|
18
|
+
export declare function removeExt(file: string): string;
|
|
19
|
+
export declare const defuOverrideArray: import("defu").DefuFn;
|
|
20
20
|
//#endregion
|
|
21
|
-
export {
|
|
21
|
+
export { defu, getValue, setValue };
|
package/dist/node.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import crypto from "node:crypto";
|
|
2
2
|
//#region src/node.d.ts
|
|
3
|
-
declare function md5(input: crypto.BinaryLike): string;
|
|
4
|
-
declare function removeAllExtensions(filePath: string): string;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { md5, removeAllExtensions };
|
|
3
|
+
export declare function md5(input: crypto.BinaryLike): string;
|
|
4
|
+
export declare function removeAllExtensions(filePath: string): string;
|
|
5
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-tailwindcss/shared",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.4",
|
|
5
5
|
"description": "Shared utilities for the cross-platform weapp-tailwindcss toolchain. weapp-tailwindcss 跨端工具链的共享工具。",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://tw.weapp.dev",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/
|
|
11
|
+
"url": "git+https://github.com/weapp-tailwindcss/weapp-tailwindcss.git",
|
|
12
12
|
"directory": "packages/shared"
|
|
13
13
|
},
|
|
14
14
|
"bugs": {
|
|
15
|
-
"url": "https://github.com/
|
|
15
|
+
"url": "https://github.com/weapp-tailwindcss/weapp-tailwindcss/issues"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [],
|
|
18
18
|
"sideEffects": false,
|