@weapp-tailwindcss/shared 1.1.1 → 1.1.3-alpha.0
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/{chunk-RIMTTGFJ.mjs → chunk-3BVAEP2W.mjs} +2 -2
- package/dist/{chunk-RBJVYU7R.js → chunk-JBQISELA.js} +2 -2
- package/dist/extractors.js +22 -6
- package/dist/extractors.mjs +20 -4
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +53 -16
- package/dist/index.mjs +41 -4
- package/dist/node.js +2 -2
- package/dist/node.mjs +1 -1
- package/package.json +4 -1
|
@@ -27,11 +27,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.55.2_@types+node@24.12.0__@swc+core@1.15.18_@swc+_6ff00797e53d4229106048f969f94f55/node_modules/tsup/assets/esm_shims.js
|
|
31
31
|
import path from "path";
|
|
32
32
|
import { fileURLToPath } from "url";
|
|
33
33
|
var init_esm_shims = __esm({
|
|
34
|
-
"../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.
|
|
34
|
+
"../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.55.2_@types+node@24.12.0__@swc+core@1.15.18_@swc+_6ff00797e53d4229106048f969f94f55/node_modules/tsup/assets/esm_shims.js"() {
|
|
35
35
|
"use strict";
|
|
36
36
|
}
|
|
37
37
|
});
|
|
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.55.2_@types+node@24.12.0__@swc+core@1.15.18_@swc+_6ff00797e53d4229106048f969f94f55/node_modules/tsup/assets/cjs_shims.js
|
|
31
31
|
var init_cjs_shims = __esm({
|
|
32
|
-
"../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.
|
|
32
|
+
"../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.55.2_@types+node@24.12.0__@swc+core@1.15.18_@swc+_6ff00797e53d4229106048f969f94f55/node_modules/tsup/assets/cjs_shims.js"() {
|
|
33
33
|
"use strict";
|
|
34
34
|
}
|
|
35
35
|
});
|
package/dist/extractors.js
CHANGED
|
@@ -1,20 +1,36 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJBQISELAjs = require('./chunk-JBQISELA.js');
|
|
4
4
|
|
|
5
5
|
// src/extractors/index.ts
|
|
6
|
-
|
|
6
|
+
_chunkJBQISELAjs.init_cjs_shims.call(void 0, );
|
|
7
7
|
|
|
8
8
|
// src/extractors/split.ts
|
|
9
|
-
|
|
9
|
+
_chunkJBQISELAjs.init_cjs_shims.call(void 0, );
|
|
10
10
|
var validateFilterRE = /[\w\u00A0-\uFFFF%-?]/;
|
|
11
11
|
function isValidSelector(selector = "") {
|
|
12
12
|
return validateFilterRE.test(selector);
|
|
13
13
|
}
|
|
14
|
+
var splitCacheDefault = /* @__PURE__ */ new Map();
|
|
15
|
+
var splitCacheAllowQuotes = /* @__PURE__ */ new Map();
|
|
16
|
+
var SPLIT_CACHE_LIMIT = 8192;
|
|
17
|
+
var SPLITTER_DEFAULT = /\s+|"/;
|
|
18
|
+
var SPLITTER_ALLOW_QUOTES = /\s+/;
|
|
19
|
+
var ESCAPED_WHITESPACE_RE = /\\[nrt]/g;
|
|
14
20
|
function splitCode(code, allowDoubleQuotes = false) {
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
|
|
21
|
+
const cache = allowDoubleQuotes ? splitCacheAllowQuotes : splitCacheDefault;
|
|
22
|
+
const cached = cache.get(code);
|
|
23
|
+
if (cached) {
|
|
24
|
+
return cached;
|
|
25
|
+
}
|
|
26
|
+
const normalized = code.includes("\\") ? code.replace(ESCAPED_WHITESPACE_RE, " ") : code;
|
|
27
|
+
const splitter = allowDoubleQuotes ? SPLITTER_ALLOW_QUOTES : SPLITTER_DEFAULT;
|
|
28
|
+
const result = normalized.split(splitter).filter((element) => isValidSelector(element));
|
|
29
|
+
if (cache.size >= SPLIT_CACHE_LIMIT) {
|
|
30
|
+
cache.clear();
|
|
31
|
+
}
|
|
32
|
+
cache.set(code, result);
|
|
33
|
+
return result;
|
|
18
34
|
}
|
|
19
35
|
|
|
20
36
|
|
package/dist/extractors.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_esm_shims
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3BVAEP2W.mjs";
|
|
4
4
|
|
|
5
5
|
// src/extractors/index.ts
|
|
6
6
|
init_esm_shims();
|
|
@@ -11,10 +11,26 @@ var validateFilterRE = /[\w\u00A0-\uFFFF%-?]/;
|
|
|
11
11
|
function isValidSelector(selector = "") {
|
|
12
12
|
return validateFilterRE.test(selector);
|
|
13
13
|
}
|
|
14
|
+
var splitCacheDefault = /* @__PURE__ */ new Map();
|
|
15
|
+
var splitCacheAllowQuotes = /* @__PURE__ */ new Map();
|
|
16
|
+
var SPLIT_CACHE_LIMIT = 8192;
|
|
17
|
+
var SPLITTER_DEFAULT = /\s+|"/;
|
|
18
|
+
var SPLITTER_ALLOW_QUOTES = /\s+/;
|
|
19
|
+
var ESCAPED_WHITESPACE_RE = /\\[nrt]/g;
|
|
14
20
|
function splitCode(code, allowDoubleQuotes = false) {
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
|
|
21
|
+
const cache = allowDoubleQuotes ? splitCacheAllowQuotes : splitCacheDefault;
|
|
22
|
+
const cached = cache.get(code);
|
|
23
|
+
if (cached) {
|
|
24
|
+
return cached;
|
|
25
|
+
}
|
|
26
|
+
const normalized = code.includes("\\") ? code.replace(ESCAPED_WHITESPACE_RE, " ") : code;
|
|
27
|
+
const splitter = allowDoubleQuotes ? SPLITTER_ALLOW_QUOTES : SPLITTER_DEFAULT;
|
|
28
|
+
const result = normalized.split(splitter).filter((element) => isValidSelector(element));
|
|
29
|
+
if (cache.size >= SPLIT_CACHE_LIMIT) {
|
|
30
|
+
cache.clear();
|
|
31
|
+
}
|
|
32
|
+
cache.set(code, result);
|
|
33
|
+
return result;
|
|
18
34
|
}
|
|
19
35
|
export {
|
|
20
36
|
isValidSelector,
|
package/dist/index.d.mts
CHANGED
|
@@ -5,6 +5,12 @@ export { default as setValue } from 'set-value';
|
|
|
5
5
|
|
|
6
6
|
declare function isRegexp(value: unknown): value is RegExp;
|
|
7
7
|
declare function isMap<T = unknown, K = unknown>(value: unknown): value is Map<T, K>;
|
|
8
|
+
declare function isHttp(target: string): boolean;
|
|
9
|
+
declare function cleanUrl(url: string): string;
|
|
10
|
+
declare function toArray<T>(value: T | T[] | null | undefined): Array<NonNullable<T>>;
|
|
11
|
+
declare function ensurePosix(value: string): string;
|
|
12
|
+
declare function normalizeRoot(root: string): string;
|
|
13
|
+
declare function normalizeRelativeImport(target: string): string;
|
|
8
14
|
declare function regExpTest(arr: (string | RegExp)[], str: string, options?: {
|
|
9
15
|
exact?: boolean;
|
|
10
16
|
}): boolean;
|
|
@@ -21,4 +27,4 @@ declare const defuOverrideArray: <Source extends {
|
|
|
21
27
|
[x: symbol]: any;
|
|
22
28
|
} | (number | boolean | any[] | Record<never, any> | null | undefined)>>(source: Source, ...defaults: Defaults) => defu.Defu<Source, Defaults>;
|
|
23
29
|
|
|
24
|
-
export { defuOverrideArray, groupBy, isMap, isRegexp, noop, regExpTest, removeExt };
|
|
30
|
+
export { cleanUrl, defuOverrideArray, ensurePosix, groupBy, isHttp, isMap, isRegexp, noop, normalizeRelativeImport, normalizeRoot, regExpTest, removeExt, toArray };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,12 @@ export { default as setValue } from 'set-value';
|
|
|
5
5
|
|
|
6
6
|
declare function isRegexp(value: unknown): value is RegExp;
|
|
7
7
|
declare function isMap<T = unknown, K = unknown>(value: unknown): value is Map<T, K>;
|
|
8
|
+
declare function isHttp(target: string): boolean;
|
|
9
|
+
declare function cleanUrl(url: string): string;
|
|
10
|
+
declare function toArray<T>(value: T | T[] | null | undefined): Array<NonNullable<T>>;
|
|
11
|
+
declare function ensurePosix(value: string): string;
|
|
12
|
+
declare function normalizeRoot(root: string): string;
|
|
13
|
+
declare function normalizeRelativeImport(target: string): string;
|
|
8
14
|
declare function regExpTest(arr: (string | RegExp)[], str: string, options?: {
|
|
9
15
|
exact?: boolean;
|
|
10
16
|
}): boolean;
|
|
@@ -21,4 +27,4 @@ declare const defuOverrideArray: <Source extends {
|
|
|
21
27
|
[x: symbol]: any;
|
|
22
28
|
} | (number | boolean | any[] | Record<never, any> | null | undefined)>>(source: Source, ...defaults: Defaults) => defu.Defu<Source, Defaults>;
|
|
23
29
|
|
|
24
|
-
export { defuOverrideArray, groupBy, isMap, isRegexp, noop, regExpTest, removeExt };
|
|
30
|
+
export { cleanUrl, defuOverrideArray, ensurePosix, groupBy, isHttp, isMap, isRegexp, noop, normalizeRelativeImport, normalizeRoot, regExpTest, removeExt, toArray };
|
package/dist/index.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkJBQISELAjs = require('./chunk-JBQISELA.js');
|
|
6
6
|
|
|
7
7
|
// ../../node_modules/.pnpm/is-primitive@3.0.1/node_modules/is-primitive/index.js
|
|
8
|
-
var require_is_primitive =
|
|
8
|
+
var require_is_primitive = _chunkJBQISELAjs.__commonJS.call(void 0, {
|
|
9
9
|
"../../node_modules/.pnpm/is-primitive@3.0.1/node_modules/is-primitive/index.js"(exports, module) {
|
|
10
10
|
"use strict";
|
|
11
|
-
|
|
11
|
+
_chunkJBQISELAjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
module.exports = function isPrimitive(val) {
|
|
13
13
|
if (typeof val === "object") {
|
|
14
14
|
return val === null;
|
|
@@ -19,10 +19,10 @@ var require_is_primitive = _chunkRBJVYU7Rjs.__commonJS.call(void 0, {
|
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
// ../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js
|
|
22
|
-
var require_isobject =
|
|
22
|
+
var require_isobject = _chunkJBQISELAjs.__commonJS.call(void 0, {
|
|
23
23
|
"../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js"(exports, module) {
|
|
24
24
|
"use strict";
|
|
25
|
-
|
|
25
|
+
_chunkJBQISELAjs.init_cjs_shims.call(void 0, );
|
|
26
26
|
module.exports = function isObject2(val) {
|
|
27
27
|
return val != null && typeof val === "object" && Array.isArray(val) === false;
|
|
28
28
|
};
|
|
@@ -30,10 +30,10 @@ var require_isobject = _chunkRBJVYU7Rjs.__commonJS.call(void 0, {
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
// ../../node_modules/.pnpm/is-plain-object@2.0.4/node_modules/is-plain-object/index.js
|
|
33
|
-
var require_is_plain_object =
|
|
33
|
+
var require_is_plain_object = _chunkJBQISELAjs.__commonJS.call(void 0, {
|
|
34
34
|
"../../node_modules/.pnpm/is-plain-object@2.0.4/node_modules/is-plain-object/index.js"(exports, module) {
|
|
35
35
|
"use strict";
|
|
36
|
-
|
|
36
|
+
_chunkJBQISELAjs.init_cjs_shims.call(void 0, );
|
|
37
37
|
var isObject2 = require_isobject();
|
|
38
38
|
function isObjectObject(o) {
|
|
39
39
|
return isObject2(o) === true && Object.prototype.toString.call(o) === "[object Object]";
|
|
@@ -54,10 +54,10 @@ var require_is_plain_object = _chunkRBJVYU7Rjs.__commonJS.call(void 0, {
|
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
// ../../node_modules/.pnpm/set-value@4.1.0/node_modules/set-value/index.js
|
|
57
|
-
var require_set_value =
|
|
57
|
+
var require_set_value = _chunkJBQISELAjs.__commonJS.call(void 0, {
|
|
58
58
|
"../../node_modules/.pnpm/set-value@4.1.0/node_modules/set-value/index.js"(exports, module) {
|
|
59
59
|
"use strict";
|
|
60
|
-
|
|
60
|
+
_chunkJBQISELAjs.init_cjs_shims.call(void 0, );
|
|
61
61
|
var { deleteProperty } = Reflect;
|
|
62
62
|
var isPrimitive = require_is_primitive();
|
|
63
63
|
var isPlainObject2 = require_is_plain_object();
|
|
@@ -184,10 +184,10 @@ var require_set_value = _chunkRBJVYU7Rjs.__commonJS.call(void 0, {
|
|
|
184
184
|
});
|
|
185
185
|
|
|
186
186
|
// src/index.ts
|
|
187
|
-
|
|
187
|
+
_chunkJBQISELAjs.init_cjs_shims.call(void 0, );
|
|
188
188
|
|
|
189
189
|
// ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
|
190
|
-
|
|
190
|
+
_chunkJBQISELAjs.init_cjs_shims.call(void 0, );
|
|
191
191
|
function isPlainObject(value) {
|
|
192
192
|
if (value === null || typeof value !== "object") {
|
|
193
193
|
return false;
|
|
@@ -256,7 +256,7 @@ var defuArrayFn = createDefu((object, key, currentValue) => {
|
|
|
256
256
|
});
|
|
257
257
|
|
|
258
258
|
// ../../node_modules/.pnpm/get-value@4.0.1/node_modules/get-value/dist/index.mjs
|
|
259
|
-
|
|
259
|
+
_chunkJBQISELAjs.init_cjs_shims.call(void 0, );
|
|
260
260
|
var __defProp = Object.defineProperty;
|
|
261
261
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
262
262
|
var isObject = /* @__PURE__ */ __name((v) => v !== null && typeof v === "object", "isObject");
|
|
@@ -344,13 +344,44 @@ var getValue = /* @__PURE__ */ __name((target, path, options = {}) => {
|
|
|
344
344
|
var index_default = getValue;
|
|
345
345
|
|
|
346
346
|
// src/index.ts
|
|
347
|
-
var import_set_value =
|
|
347
|
+
var import_set_value = _chunkJBQISELAjs.__toESM.call(void 0, require_set_value());
|
|
348
|
+
var HTTP_PATTERN = /^https?:\/\//i;
|
|
349
|
+
var CLEAN_URL_REGEXP = /[?#].*$/;
|
|
350
|
+
var BACKSLASH_RE = /\\/g;
|
|
351
|
+
var LEADING_DOTS_SLASHES_RE = /^[./\\]+/;
|
|
352
|
+
var MULTI_BACKSLASH_RE = /\\+/g;
|
|
353
|
+
var REMOVE_EXT_RE = /\.[^./]*$/;
|
|
348
354
|
function isRegexp(value) {
|
|
349
355
|
return value instanceof RegExp;
|
|
350
356
|
}
|
|
351
357
|
function isMap(value) {
|
|
352
358
|
return value instanceof Map;
|
|
353
359
|
}
|
|
360
|
+
function isHttp(target) {
|
|
361
|
+
return HTTP_PATTERN.test(target);
|
|
362
|
+
}
|
|
363
|
+
function cleanUrl(url) {
|
|
364
|
+
return url.replace(CLEAN_URL_REGEXP, "");
|
|
365
|
+
}
|
|
366
|
+
function toArray(value) {
|
|
367
|
+
if (value == null) {
|
|
368
|
+
return [];
|
|
369
|
+
}
|
|
370
|
+
return Array.isArray(value) ? value : [value];
|
|
371
|
+
}
|
|
372
|
+
function ensurePosix(value) {
|
|
373
|
+
return value.replace(BACKSLASH_RE, "/");
|
|
374
|
+
}
|
|
375
|
+
function normalizeRoot(root) {
|
|
376
|
+
const trimmed = root.trim().replace(LEADING_DOTS_SLASHES_RE, "").replace(MULTI_BACKSLASH_RE, "/");
|
|
377
|
+
return trimmed.endsWith("/") ? trimmed.slice(0, -1) : trimmed;
|
|
378
|
+
}
|
|
379
|
+
function normalizeRelativeImport(target) {
|
|
380
|
+
if (target.startsWith(".") || target.startsWith("/")) {
|
|
381
|
+
return target;
|
|
382
|
+
}
|
|
383
|
+
return `./${target}`;
|
|
384
|
+
}
|
|
354
385
|
function regExpTest(arr, str, options) {
|
|
355
386
|
if (!Array.isArray(arr)) {
|
|
356
387
|
throw new TypeError("paramater 'arr' should be an Array of Regexp | String");
|
|
@@ -387,7 +418,7 @@ function groupBy(arr, cb) {
|
|
|
387
418
|
const bucketCategory = cb(item);
|
|
388
419
|
const bucket = result[bucketCategory];
|
|
389
420
|
if (Array.isArray(bucket)) {
|
|
390
|
-
|
|
421
|
+
bucket.push(item);
|
|
391
422
|
} else {
|
|
392
423
|
result[bucketCategory] = [item];
|
|
393
424
|
}
|
|
@@ -398,7 +429,7 @@ function removeExt(file) {
|
|
|
398
429
|
if (!file) {
|
|
399
430
|
return file;
|
|
400
431
|
}
|
|
401
|
-
return file.replace(
|
|
432
|
+
return file.replace(REMOVE_EXT_RE, "");
|
|
402
433
|
}
|
|
403
434
|
var defuOverrideArray = createDefu((obj, key, value) => {
|
|
404
435
|
if (Array.isArray(obj[key]) && Array.isArray(value)) {
|
|
@@ -418,7 +449,13 @@ var export_setValue = import_set_value.default;
|
|
|
418
449
|
|
|
419
450
|
|
|
420
451
|
|
|
421
|
-
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
exports.cleanUrl = cleanUrl; exports.defu = defu; exports.defuOverrideArray = defuOverrideArray; exports.ensurePosix = ensurePosix; exports.getValue = index_default; exports.groupBy = groupBy; exports.isHttp = isHttp; exports.isMap = isMap; exports.isRegexp = isRegexp; exports.noop = noop; exports.normalizeRelativeImport = normalizeRelativeImport; exports.normalizeRoot = normalizeRoot; exports.regExpTest = regExpTest; exports.removeExt = removeExt; exports.setValue = export_setValue; exports.toArray = toArray;
|
|
422
459
|
/*! Bundled license information:
|
|
423
460
|
|
|
424
461
|
is-primitive/index.js:
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__commonJS,
|
|
3
3
|
__toESM,
|
|
4
4
|
init_esm_shims
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3BVAEP2W.mjs";
|
|
6
6
|
|
|
7
7
|
// ../../node_modules/.pnpm/is-primitive@3.0.1/node_modules/is-primitive/index.js
|
|
8
8
|
var require_is_primitive = __commonJS({
|
|
@@ -345,12 +345,43 @@ var index_default = getValue;
|
|
|
345
345
|
|
|
346
346
|
// src/index.ts
|
|
347
347
|
var import_set_value = __toESM(require_set_value());
|
|
348
|
+
var HTTP_PATTERN = /^https?:\/\//i;
|
|
349
|
+
var CLEAN_URL_REGEXP = /[?#].*$/;
|
|
350
|
+
var BACKSLASH_RE = /\\/g;
|
|
351
|
+
var LEADING_DOTS_SLASHES_RE = /^[./\\]+/;
|
|
352
|
+
var MULTI_BACKSLASH_RE = /\\+/g;
|
|
353
|
+
var REMOVE_EXT_RE = /\.[^./]*$/;
|
|
348
354
|
function isRegexp(value) {
|
|
349
355
|
return value instanceof RegExp;
|
|
350
356
|
}
|
|
351
357
|
function isMap(value) {
|
|
352
358
|
return value instanceof Map;
|
|
353
359
|
}
|
|
360
|
+
function isHttp(target) {
|
|
361
|
+
return HTTP_PATTERN.test(target);
|
|
362
|
+
}
|
|
363
|
+
function cleanUrl(url) {
|
|
364
|
+
return url.replace(CLEAN_URL_REGEXP, "");
|
|
365
|
+
}
|
|
366
|
+
function toArray(value) {
|
|
367
|
+
if (value == null) {
|
|
368
|
+
return [];
|
|
369
|
+
}
|
|
370
|
+
return Array.isArray(value) ? value : [value];
|
|
371
|
+
}
|
|
372
|
+
function ensurePosix(value) {
|
|
373
|
+
return value.replace(BACKSLASH_RE, "/");
|
|
374
|
+
}
|
|
375
|
+
function normalizeRoot(root) {
|
|
376
|
+
const trimmed = root.trim().replace(LEADING_DOTS_SLASHES_RE, "").replace(MULTI_BACKSLASH_RE, "/");
|
|
377
|
+
return trimmed.endsWith("/") ? trimmed.slice(0, -1) : trimmed;
|
|
378
|
+
}
|
|
379
|
+
function normalizeRelativeImport(target) {
|
|
380
|
+
if (target.startsWith(".") || target.startsWith("/")) {
|
|
381
|
+
return target;
|
|
382
|
+
}
|
|
383
|
+
return `./${target}`;
|
|
384
|
+
}
|
|
354
385
|
function regExpTest(arr, str, options) {
|
|
355
386
|
if (!Array.isArray(arr)) {
|
|
356
387
|
throw new TypeError("paramater 'arr' should be an Array of Regexp | String");
|
|
@@ -387,7 +418,7 @@ function groupBy(arr, cb) {
|
|
|
387
418
|
const bucketCategory = cb(item);
|
|
388
419
|
const bucket = result[bucketCategory];
|
|
389
420
|
if (Array.isArray(bucket)) {
|
|
390
|
-
|
|
421
|
+
bucket.push(item);
|
|
391
422
|
} else {
|
|
392
423
|
result[bucketCategory] = [item];
|
|
393
424
|
}
|
|
@@ -398,7 +429,7 @@ function removeExt(file) {
|
|
|
398
429
|
if (!file) {
|
|
399
430
|
return file;
|
|
400
431
|
}
|
|
401
|
-
return file.replace(
|
|
432
|
+
return file.replace(REMOVE_EXT_RE, "");
|
|
402
433
|
}
|
|
403
434
|
var defuOverrideArray = createDefu((obj, key, value) => {
|
|
404
435
|
if (Array.isArray(obj[key]) && Array.isArray(value)) {
|
|
@@ -408,16 +439,22 @@ var defuOverrideArray = createDefu((obj, key, value) => {
|
|
|
408
439
|
});
|
|
409
440
|
var export_setValue = import_set_value.default;
|
|
410
441
|
export {
|
|
442
|
+
cleanUrl,
|
|
411
443
|
defu,
|
|
412
444
|
defuOverrideArray,
|
|
445
|
+
ensurePosix,
|
|
413
446
|
index_default as getValue,
|
|
414
447
|
groupBy,
|
|
448
|
+
isHttp,
|
|
415
449
|
isMap,
|
|
416
450
|
isRegexp,
|
|
417
451
|
noop,
|
|
452
|
+
normalizeRelativeImport,
|
|
453
|
+
normalizeRoot,
|
|
418
454
|
regExpTest,
|
|
419
455
|
removeExt,
|
|
420
|
-
export_setValue as setValue
|
|
456
|
+
export_setValue as setValue,
|
|
457
|
+
toArray
|
|
421
458
|
};
|
|
422
459
|
/*! Bundled license information:
|
|
423
460
|
|
package/dist/node.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJBQISELAjs = require('./chunk-JBQISELA.js');
|
|
4
4
|
|
|
5
5
|
// src/node.ts
|
|
6
|
-
|
|
6
|
+
_chunkJBQISELAjs.init_cjs_shims.call(void 0, );
|
|
7
7
|
var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);
|
|
8
8
|
var _pathe = require('pathe'); var _pathe2 = _interopRequireDefault(_pathe);
|
|
9
9
|
function md5(input) {
|
package/dist/node.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-tailwindcss/shared",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3-alpha.0",
|
|
4
4
|
"description": "@weapp-tailwindcss/shared",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,6 +37,9 @@
|
|
|
37
37
|
"files": [
|
|
38
38
|
"dist"
|
|
39
39
|
],
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
42
|
+
},
|
|
40
43
|
"dependencies": {
|
|
41
44
|
"pathe": "^2.0.3"
|
|
42
45
|
},
|