@weapp-core/schematics 5.0.0 → 6.0.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/index.js +24 -24
- package/package.json +6 -4
- package/dist/index.cjs +0 -7232
- package/dist/index.d.cts +0 -421
package/dist/index.js
CHANGED
|
@@ -100,7 +100,7 @@ function generateWxss() {
|
|
|
100
100
|
return "";
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
103
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.js
|
|
104
104
|
var NEVER = Object.freeze({
|
|
105
105
|
status: "aborted"
|
|
106
106
|
});
|
|
@@ -174,7 +174,7 @@ function config(newConfig) {
|
|
|
174
174
|
return globalConfig;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
177
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.js
|
|
178
178
|
var util_exports = {};
|
|
179
179
|
__export(util_exports, {
|
|
180
180
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -853,7 +853,7 @@ var Class = class {
|
|
|
853
853
|
}
|
|
854
854
|
};
|
|
855
855
|
|
|
856
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
856
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.js
|
|
857
857
|
var initializer = (inst, def) => {
|
|
858
858
|
inst.name = "$ZodError";
|
|
859
859
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -919,7 +919,7 @@ function formatError(error2, mapper = (issue2) => issue2.message) {
|
|
|
919
919
|
return fieldErrors;
|
|
920
920
|
}
|
|
921
921
|
|
|
922
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
922
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.js
|
|
923
923
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
924
924
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
925
925
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -999,7 +999,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
999
999
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
1000
1000
|
};
|
|
1001
1001
|
|
|
1002
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1002
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/regexes.js
|
|
1003
1003
|
var regexes_exports = {};
|
|
1004
1004
|
__export(regexes_exports, {
|
|
1005
1005
|
base64: () => base64,
|
|
@@ -1156,7 +1156,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
1156
1156
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
1157
1157
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1158
1158
|
|
|
1159
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1159
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/checks.js
|
|
1160
1160
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1161
1161
|
var _a2;
|
|
1162
1162
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1704,7 +1704,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
1704
1704
|
};
|
|
1705
1705
|
});
|
|
1706
1706
|
|
|
1707
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1707
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/doc.js
|
|
1708
1708
|
var Doc = class {
|
|
1709
1709
|
constructor(args = []) {
|
|
1710
1710
|
this.content = [];
|
|
@@ -1740,14 +1740,14 @@ var Doc = class {
|
|
|
1740
1740
|
}
|
|
1741
1741
|
};
|
|
1742
1742
|
|
|
1743
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1743
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.js
|
|
1744
1744
|
var version = {
|
|
1745
1745
|
major: 4,
|
|
1746
1746
|
minor: 3,
|
|
1747
|
-
patch:
|
|
1747
|
+
patch: 5
|
|
1748
1748
|
};
|
|
1749
1749
|
|
|
1750
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
1750
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.js
|
|
1751
1751
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1752
1752
|
var _a2;
|
|
1753
1753
|
inst ?? (inst = {});
|
|
@@ -3718,7 +3718,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3718
3718
|
}
|
|
3719
3719
|
}
|
|
3720
3720
|
|
|
3721
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
3721
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/locales/en.js
|
|
3722
3722
|
var error = () => {
|
|
3723
3723
|
const Sizable = {
|
|
3724
3724
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -3827,7 +3827,7 @@ function en_default() {
|
|
|
3827
3827
|
};
|
|
3828
3828
|
}
|
|
3829
3829
|
|
|
3830
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
3830
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/registries.js
|
|
3831
3831
|
var _a;
|
|
3832
3832
|
var $ZodRegistry = class {
|
|
3833
3833
|
constructor() {
|
|
@@ -3875,7 +3875,7 @@ function registry() {
|
|
|
3875
3875
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
3876
3876
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
3877
3877
|
|
|
3878
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
3878
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.js
|
|
3879
3879
|
// @__NO_SIDE_EFFECTS__
|
|
3880
3880
|
function _string(Class2, params) {
|
|
3881
3881
|
return new Class2({
|
|
@@ -4679,7 +4679,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
4679
4679
|
return inst;
|
|
4680
4680
|
}
|
|
4681
4681
|
|
|
4682
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
4682
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/to-json-schema.js
|
|
4683
4683
|
function initializeContext(params) {
|
|
4684
4684
|
let target = params?.target ?? "draft-2020-12";
|
|
4685
4685
|
if (target === "draft-4")
|
|
@@ -5031,7 +5031,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
5031
5031
|
return finalize(ctx, schema);
|
|
5032
5032
|
};
|
|
5033
5033
|
|
|
5034
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5034
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/json-schema-processors.js
|
|
5035
5035
|
var formatMap = {
|
|
5036
5036
|
guid: "uuid",
|
|
5037
5037
|
url: "uri",
|
|
@@ -5582,7 +5582,7 @@ function toJSONSchema(input, params) {
|
|
|
5582
5582
|
return finalize(ctx, input);
|
|
5583
5583
|
}
|
|
5584
5584
|
|
|
5585
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5585
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/schemas.js
|
|
5586
5586
|
var schemas_exports2 = {};
|
|
5587
5587
|
__export(schemas_exports2, {
|
|
5588
5588
|
ZodAny: () => ZodAny,
|
|
@@ -5751,7 +5751,7 @@ __export(schemas_exports2, {
|
|
|
5751
5751
|
xor: () => xor
|
|
5752
5752
|
});
|
|
5753
5753
|
|
|
5754
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5754
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/checks.js
|
|
5755
5755
|
var checks_exports2 = {};
|
|
5756
5756
|
__export(checks_exports2, {
|
|
5757
5757
|
endsWith: () => _endsWith,
|
|
@@ -5785,7 +5785,7 @@ __export(checks_exports2, {
|
|
|
5785
5785
|
uppercase: () => _uppercase
|
|
5786
5786
|
});
|
|
5787
5787
|
|
|
5788
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5788
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/iso.js
|
|
5789
5789
|
var iso_exports = {};
|
|
5790
5790
|
__export(iso_exports, {
|
|
5791
5791
|
ZodISODate: () => ZodISODate,
|
|
@@ -5826,7 +5826,7 @@ function duration2(params) {
|
|
|
5826
5826
|
return _isoDuration(ZodISODuration, params);
|
|
5827
5827
|
}
|
|
5828
5828
|
|
|
5829
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5829
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/errors.js
|
|
5830
5830
|
var initializer2 = (inst, issues) => {
|
|
5831
5831
|
$ZodError.init(inst, issues);
|
|
5832
5832
|
inst.name = "ZodError";
|
|
@@ -5866,7 +5866,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
5866
5866
|
Parent: Error
|
|
5867
5867
|
});
|
|
5868
5868
|
|
|
5869
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5869
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/parse.js
|
|
5870
5870
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
5871
5871
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
5872
5872
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -5880,7 +5880,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
5880
5880
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
5881
5881
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
5882
5882
|
|
|
5883
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
5883
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/schemas.js
|
|
5884
5884
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
5885
5885
|
$ZodType.init(inst, def);
|
|
5886
5886
|
Object.assign(inst["~standard"], {
|
|
@@ -6959,19 +6959,19 @@ function preprocess(fn, schema) {
|
|
|
6959
6959
|
return pipe(transform(fn), schema);
|
|
6960
6960
|
}
|
|
6961
6961
|
|
|
6962
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6962
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/compat.js
|
|
6963
6963
|
var ZodFirstPartyTypeKind;
|
|
6964
6964
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
6965
6965
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
6966
6966
|
|
|
6967
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6967
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/from-json-schema.js
|
|
6968
6968
|
var z = {
|
|
6969
6969
|
...schemas_exports2,
|
|
6970
6970
|
...checks_exports2,
|
|
6971
6971
|
iso: iso_exports
|
|
6972
6972
|
};
|
|
6973
6973
|
|
|
6974
|
-
// ../../node_modules/.pnpm/zod@4.3.
|
|
6974
|
+
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/external.js
|
|
6975
6975
|
config(en_default());
|
|
6976
6976
|
|
|
6977
6977
|
// scripts/json.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-core/schematics",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.0",
|
|
5
5
|
"description": "@weapp-core/schematics",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -23,17 +23,19 @@
|
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
25
|
"types": "./dist/index.d.ts",
|
|
26
|
-
"import": "./dist/index.js"
|
|
27
|
-
"require": "./dist/index.cjs"
|
|
26
|
+
"import": "./dist/index.js"
|
|
28
27
|
}
|
|
29
28
|
},
|
|
30
|
-
"main": "./dist/index.
|
|
29
|
+
"main": "./dist/index.js",
|
|
31
30
|
"module": "./dist/index.js",
|
|
32
31
|
"types": "./dist/index.d.ts",
|
|
33
32
|
"files": [
|
|
34
33
|
"dist",
|
|
35
34
|
"schemas"
|
|
36
35
|
],
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
38
|
+
},
|
|
37
39
|
"dependencies": {},
|
|
38
40
|
"scripts": {
|
|
39
41
|
"dev": "tsup --watch --sourcemap",
|