syncpack 9.3.2 → 9.8.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/bin-fix-mismatches/fix-mismatches-cli.js +4 -4
- package/dist/bin-fix-mismatches/fix-mismatches.js +17 -15
- package/dist/bin-fix-mismatches/index.js +50 -48
- package/dist/bin-format/format-cli.js +4 -4
- package/dist/bin-format/format.js +20 -18
- package/dist/bin-format/index.js +43 -46
- package/dist/bin-lint-semver-ranges/index.js +59 -48
- package/dist/bin-lint-semver-ranges/lint-semver-ranges-cli.js +4 -4
- package/dist/bin-lint-semver-ranges/lint-semver-ranges.js +13 -35
- package/dist/bin-list/index.js +43 -46
- package/dist/bin-list/list-cli.js +4 -4
- package/dist/bin-list/list.js +26 -29
- package/dist/bin-list-mismatches/index.js +46 -47
- package/dist/bin-list-mismatches/list-mismatches-cli.js +4 -4
- package/dist/bin-list-mismatches/list-mismatches.js +55 -40
- package/dist/bin-set-semver-ranges/index.js +62 -49
- package/dist/bin-set-semver-ranges/set-semver-ranges-cli.js +4 -4
- package/dist/bin-set-semver-ranges/set-semver-ranges.js +4 -4
- package/dist/bin.js +8 -8
- package/dist/constants.d.ts +2 -1
- package/dist/constants.js +6 -5
- package/dist/get-context/$R.js +14 -36
- package/dist/get-context/get-config/get-core-types.js +11 -41
- package/dist/get-context/get-config/get-custom-types.js +7 -19
- package/dist/get-context/get-config/get-enabled-types.js +9 -11
- package/dist/get-context/get-config/index.d.ts +3 -1
- package/dist/get-context/get-config/index.js +37 -61
- package/dist/get-context/get-config/path-strategy/index.js +8 -8
- package/dist/get-context/get-config/path-strategy/lib/get-non-empty-string-prop.js +6 -6
- package/dist/get-context/get-config/path-strategy/name-and-version-props.js +23 -49
- package/dist/get-context/get-config/path-strategy/name-and-version-string.js +26 -42
- package/dist/get-context/get-config/path-strategy/types.js +1 -1
- package/dist/get-context/get-config/path-strategy/version-string.js +25 -41
- package/dist/get-context/get-config/path-strategy/versions-by-name.js +14 -30
- package/dist/get-context/get-config/schema/base-group.d.ts +2 -2
- package/dist/get-context/get-config/schema/base-group.js +5 -5
- package/dist/get-context/get-config/schema/index.d.ts +292 -164
- package/dist/get-context/get-config/schema/index.js +40 -63
- package/dist/get-context/get-config/schema/lib/non-empty-string.d.ts +2 -0
- package/dist/get-context/get-config/schema/lib/non-empty-string.js +5 -0
- package/dist/get-context/get-config/schema/paths.js +12 -12
- package/dist/get-context/get-config/schema/semver-group.d.ts +24 -24
- package/dist/get-context/get-config/schema/semver-group.js +11 -18
- package/dist/get-context/get-config/schema/semver-range.js +4 -4
- package/dist/get-context/get-config/schema/version-group.d.ts +90 -41
- package/dist/get-context/get-config/schema/version-group.js +28 -23
- package/dist/get-context/get-groups/base-group.d.ts +4 -1
- package/dist/get-context/get-groups/base-group.js +18 -19
- package/dist/get-context/get-groups/index.d.ts +7 -3
- package/dist/get-context/get-groups/index.js +42 -38
- package/dist/get-context/get-groups/semver-group.d.ts +0 -1
- package/dist/get-context/get-groups/semver-group.js +23 -66
- package/dist/get-context/get-groups/version-group/index.d.ts +7 -4
- package/dist/get-context/get-groups/version-group/index.js +31 -70
- package/dist/get-context/get-groups/version-group/instance-group/get-highest-version.d.ts +3 -1
- package/dist/get-context/get-groups/version-group/instance-group/get-highest-version.js +36 -45
- package/dist/get-context/get-groups/version-group/instance-group/get-lowest-version.d.ts +3 -0
- package/dist/get-context/get-groups/version-group/instance-group/get-lowest-version.js +44 -0
- package/dist/get-context/get-groups/version-group/instance-group/index.d.ts +16 -5
- package/dist/get-context/get-groups/version-group/instance-group/index.js +66 -54
- package/dist/get-context/get-groups/version-group/instance-group/lib/clean.d.ts +2 -0
- package/dist/get-context/get-groups/version-group/instance-group/lib/clean.js +13 -0
- package/dist/get-context/get-groups/version-group/instance-group/lib/compare-semver.d.ts +4 -0
- package/dist/get-context/get-groups/version-group/instance-group/lib/compare-semver.js +38 -0
- package/dist/get-context/get-groups/version-group/instance-group/lib/get-range-score.d.ts +2 -0
- package/dist/get-context/get-groups/version-group/instance-group/lib/get-range-score.js +23 -0
- package/dist/get-context/get-package-json-files/get-file-paths.js +18 -19
- package/dist/get-context/get-package-json-files/get-patterns/get-lerna-patterns.js +9 -12
- package/dist/get-context/get-package-json-files/get-patterns/get-pnpm-patterns.js +9 -11
- package/dist/get-context/get-package-json-files/get-patterns/get-yarn-patterns.js +10 -13
- package/dist/get-context/get-package-json-files/get-patterns/index.js +15 -42
- package/dist/get-context/get-package-json-files/get-patterns/lib/get-array-of-strings.js +4 -6
- package/dist/get-context/get-package-json-files/get-patterns/props.js +9 -33
- package/dist/get-context/get-package-json-files/get-patterns/read-json-safe.js +6 -9
- package/dist/get-context/get-package-json-files/get-patterns/read-yaml-safe.js +4 -4
- package/dist/get-context/get-package-json-files/index.d.ts +3 -1
- package/dist/get-context/get-package-json-files/index.js +8 -8
- package/dist/get-context/get-package-json-files/package-json-file/index.js +32 -55
- package/dist/get-context/get-package-json-files/package-json-file/instance.d.ts +2 -1
- package/dist/get-context/get-package-json-files/package-json-file/instance.js +15 -15
- package/dist/get-context/index.d.ts +3 -2
- package/dist/get-context/index.js +28 -24
- package/dist/lib/disk.js +28 -29
- package/dist/lib/error.js +13 -31
- package/dist/lib/exit-if-invalid.js +1 -1
- package/dist/lib/is-semver.d.ts +1 -1
- package/dist/lib/is-semver.js +15 -7
- package/dist/lib/log.js +38 -58
- package/dist/lib/newlines.js +11 -11
- package/dist/lib/print-strings.js +2 -2
- package/dist/lib/set-semver-range.js +8 -8
- package/dist/lib/show-help-on-error.js +31 -8
- package/dist/lib/sort-by-name.js +1 -1
- package/dist/lib/write-if-changed.js +3 -3
- package/dist/option.js +8 -13
- package/dist/types.d.ts +3 -1
- package/dist/types.js +1 -1
- package/package.json +20 -16
- package/dist/get-context/get-all-instances.d.ts +0 -3
- package/dist/get-context/get-all-instances.js +0 -8
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
3
|
if (k2 === undefined) k2 = k;
|
|
15
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -33,72 +22,60 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
33
22
|
__setModuleDefault(result, mod);
|
|
34
23
|
return result;
|
|
35
24
|
};
|
|
36
|
-
|
|
37
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
38
|
-
if (!m) return o;
|
|
39
|
-
var i = m.call(o), r, ar = [], e;
|
|
40
|
-
try {
|
|
41
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
42
|
-
}
|
|
43
|
-
catch (error) { e = { error: error }; }
|
|
44
|
-
finally {
|
|
45
|
-
try {
|
|
46
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
47
|
-
}
|
|
48
|
-
finally { if (e) throw e.error; }
|
|
49
|
-
}
|
|
50
|
-
return ar;
|
|
51
|
-
};
|
|
52
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
53
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
54
|
-
if (ar || !(i in from)) {
|
|
55
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
56
|
-
ar[i] = from[i];
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
60
|
-
};
|
|
61
|
-
exports.__esModule = true;
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
26
|
exports.Public = exports.Cli = exports.SyncpackRc = exports.Private = void 0;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
27
|
+
const zod_1 = require("zod");
|
|
28
|
+
const constants_1 = require("../../../constants");
|
|
29
|
+
const non_empty_string_1 = require("./lib/non-empty-string");
|
|
30
|
+
const paths = __importStar(require("./paths"));
|
|
31
|
+
const semverGroup = __importStar(require("./semver-group"));
|
|
32
|
+
const semverRange = __importStar(require("./semver-range"));
|
|
33
|
+
const versionGroup = __importStar(require("./version-group"));
|
|
34
|
+
const cliOnly = {
|
|
71
35
|
configPath: zod_1.z.string().optional(),
|
|
72
|
-
types: zod_1.z.string()
|
|
36
|
+
types: zod_1.z.string().default(''),
|
|
73
37
|
};
|
|
74
|
-
|
|
38
|
+
const syncpackRcOnly = {
|
|
75
39
|
customTypes: paths.pathConfigByName.optional(),
|
|
76
|
-
dependencyTypes: zod_1.z.array(nonEmptyString)
|
|
40
|
+
dependencyTypes: zod_1.z.array(non_empty_string_1.nonEmptyString).default([]),
|
|
77
41
|
semverGroups: zod_1.z
|
|
78
|
-
.array(semverGroup.any)
|
|
79
|
-
|
|
80
|
-
|
|
42
|
+
.array(semverGroup.any)
|
|
43
|
+
.default([...constants_1.DEFAULT_CONFIG.semverGroups]),
|
|
44
|
+
sortAz: zod_1.z.array(non_empty_string_1.nonEmptyString).default([...constants_1.DEFAULT_CONFIG.sortAz]),
|
|
45
|
+
sortFirst: zod_1.z.array(non_empty_string_1.nonEmptyString).default([...constants_1.DEFAULT_CONFIG.sortFirst]),
|
|
81
46
|
versionGroups: zod_1.z
|
|
82
|
-
.array(versionGroup.any)
|
|
47
|
+
.array(versionGroup.any)
|
|
48
|
+
.default([...constants_1.DEFAULT_CONFIG.versionGroups]),
|
|
83
49
|
};
|
|
84
|
-
|
|
85
|
-
filter: nonEmptyString
|
|
86
|
-
indent: zod_1.z.string()
|
|
87
|
-
semverRange: semverRange.value
|
|
88
|
-
source: zod_1.z.array(nonEmptyString)
|
|
50
|
+
const cliAndRcFile = {
|
|
51
|
+
filter: non_empty_string_1.nonEmptyString.default(constants_1.DEFAULT_CONFIG.filter),
|
|
52
|
+
indent: zod_1.z.string().default(constants_1.DEFAULT_CONFIG.indent),
|
|
53
|
+
semverRange: semverRange.value.default(constants_1.DEFAULT_CONFIG.semverRange),
|
|
54
|
+
source: zod_1.z.array(non_empty_string_1.nonEmptyString).default([...constants_1.DEFAULT_CONFIG.source]),
|
|
89
55
|
};
|
|
90
|
-
|
|
56
|
+
const privateOnly = {
|
|
91
57
|
allTypes: zod_1.z.array(paths.pathDefinition),
|
|
92
58
|
enabledTypes: zod_1.z.array(paths.pathDefinition),
|
|
93
59
|
defaultSemverGroup: semverGroup.base,
|
|
94
|
-
defaultVersionGroup: versionGroup.
|
|
60
|
+
defaultVersionGroup: versionGroup.defaultGroup,
|
|
95
61
|
};
|
|
96
|
-
exports.Private = zod_1.z.object(
|
|
97
|
-
|
|
98
|
-
|
|
62
|
+
exports.Private = zod_1.z.object({
|
|
63
|
+
...privateOnly,
|
|
64
|
+
...cliOnly,
|
|
65
|
+
...syncpackRcOnly,
|
|
66
|
+
...cliAndRcFile,
|
|
67
|
+
});
|
|
68
|
+
exports.SyncpackRc = zod_1.z.object({
|
|
69
|
+
...syncpackRcOnly,
|
|
70
|
+
...cliAndRcFile,
|
|
71
|
+
});
|
|
72
|
+
exports.Cli = zod_1.z.object({
|
|
73
|
+
...cliOnly,
|
|
74
|
+
...cliAndRcFile,
|
|
75
|
+
});
|
|
99
76
|
exports.Public = exports.Private.omit({
|
|
100
77
|
allTypes: true,
|
|
101
78
|
enabledTypes: true,
|
|
102
79
|
defaultSemverGroup: true,
|
|
103
|
-
defaultVersionGroup: true
|
|
80
|
+
defaultVersionGroup: true,
|
|
104
81
|
});
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.pathDefinition = exports.pathConfigByName = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const namedVersionString = zod_1.z.object({
|
|
6
6
|
path: zod_1.z.string(),
|
|
7
|
-
strategy: zod_1.z.literal('name@version')
|
|
7
|
+
strategy: zod_1.z.literal('name@version'),
|
|
8
8
|
});
|
|
9
|
-
|
|
9
|
+
const nameAndVersionStrings = zod_1.z.object({
|
|
10
10
|
namePath: zod_1.z.string(),
|
|
11
11
|
path: zod_1.z.string(),
|
|
12
|
-
strategy: zod_1.z.literal('name~version')
|
|
12
|
+
strategy: zod_1.z.literal('name~version'),
|
|
13
13
|
});
|
|
14
|
-
|
|
14
|
+
const unnamedVersionString = zod_1.z.object({
|
|
15
15
|
path: zod_1.z.string(),
|
|
16
|
-
strategy: zod_1.z.literal('version')
|
|
16
|
+
strategy: zod_1.z.literal('version'),
|
|
17
17
|
});
|
|
18
|
-
|
|
18
|
+
const versionsByName = zod_1.z.object({
|
|
19
19
|
path: zod_1.z.string(),
|
|
20
|
-
strategy: zod_1.z.literal('versionsByName')
|
|
20
|
+
strategy: zod_1.z.literal('versionsByName'),
|
|
21
21
|
});
|
|
22
|
-
|
|
22
|
+
const pathConfig = zod_1.z.discriminatedUnion('strategy', [
|
|
23
23
|
nameAndVersionStrings,
|
|
24
24
|
namedVersionString,
|
|
25
25
|
unnamedVersionString,
|
|
@@ -29,5 +29,5 @@ var pathConfig = zod_1.z.discriminatedUnion('strategy', [
|
|
|
29
29
|
exports.pathConfigByName = zod_1.z.record(pathConfig);
|
|
30
30
|
/** private */
|
|
31
31
|
exports.pathDefinition = pathConfig.and(zod_1.z.object({
|
|
32
|
-
name: zod_1.z.string().trim().min(1)
|
|
32
|
+
name: zod_1.z.string().trim().min(1),
|
|
33
33
|
}));
|
|
@@ -2,13 +2,13 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const ignored: z.ZodObject<{
|
|
3
3
|
isIgnored: z.ZodLiteral<true>;
|
|
4
4
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
5
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
6
|
-
label: z.ZodDefault<z.ZodString
|
|
5
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
6
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
7
7
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
8
8
|
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
dependencyTypes?: string[] | undefined;
|
|
10
|
+
label?: string | undefined;
|
|
9
11
|
dependencies: string[];
|
|
10
|
-
dependencyTypes: string[];
|
|
11
|
-
label: string;
|
|
12
12
|
packages: string[];
|
|
13
13
|
isIgnored: true;
|
|
14
14
|
}, {
|
|
@@ -21,14 +21,14 @@ export declare const ignored: z.ZodObject<{
|
|
|
21
21
|
export declare const withRange: z.ZodObject<{
|
|
22
22
|
range: z.ZodEnum<["*", "", ">", ">=", ".x", "<", "<=", "^", "~"]>;
|
|
23
23
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
24
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
25
|
-
label: z.ZodDefault<z.ZodString
|
|
24
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
25
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
26
26
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
27
27
|
}, "strict", z.ZodTypeAny, {
|
|
28
|
+
dependencyTypes?: string[] | undefined;
|
|
29
|
+
label?: string | undefined;
|
|
28
30
|
dependencies: string[];
|
|
29
31
|
range: "" | "*" | ">" | ">=" | ".x" | "<" | "<=" | "^" | "~";
|
|
30
|
-
dependencyTypes: string[];
|
|
31
|
-
label: string;
|
|
32
32
|
packages: string[];
|
|
33
33
|
}, {
|
|
34
34
|
dependencyTypes?: string[] | undefined;
|
|
@@ -41,15 +41,15 @@ export declare const base: z.ZodObject<{
|
|
|
41
41
|
range: z.ZodEnum<["*", "", ">", ">=", ".x", "<", "<=", "^", "~"]>;
|
|
42
42
|
isDefault: z.ZodLiteral<true>;
|
|
43
43
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
44
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
45
|
-
label: z.ZodDefault<z.ZodString
|
|
44
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
45
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
46
46
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
47
47
|
}, "strict", z.ZodTypeAny, {
|
|
48
|
+
dependencyTypes?: string[] | undefined;
|
|
49
|
+
label?: string | undefined;
|
|
48
50
|
isDefault: true;
|
|
49
51
|
dependencies: string[];
|
|
50
52
|
range: "" | "*" | ">" | ">=" | ".x" | "<" | "<=" | "^" | "~";
|
|
51
|
-
dependencyTypes: string[];
|
|
52
|
-
label: string;
|
|
53
53
|
packages: string[];
|
|
54
54
|
}, {
|
|
55
55
|
dependencyTypes?: string[] | undefined;
|
|
@@ -62,13 +62,13 @@ export declare const base: z.ZodObject<{
|
|
|
62
62
|
export declare const any: z.ZodUnion<[z.ZodObject<{
|
|
63
63
|
isIgnored: z.ZodLiteral<true>;
|
|
64
64
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
65
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
66
|
-
label: z.ZodDefault<z.ZodString
|
|
65
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
66
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
67
67
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
68
68
|
}, "strict", z.ZodTypeAny, {
|
|
69
|
+
dependencyTypes?: string[] | undefined;
|
|
70
|
+
label?: string | undefined;
|
|
69
71
|
dependencies: string[];
|
|
70
|
-
dependencyTypes: string[];
|
|
71
|
-
label: string;
|
|
72
72
|
packages: string[];
|
|
73
73
|
isIgnored: true;
|
|
74
74
|
}, {
|
|
@@ -80,14 +80,14 @@ export declare const any: z.ZodUnion<[z.ZodObject<{
|
|
|
80
80
|
}>, z.ZodObject<{
|
|
81
81
|
range: z.ZodEnum<["*", "", ">", ">=", ".x", "<", "<=", "^", "~"]>;
|
|
82
82
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
83
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
84
|
-
label: z.ZodDefault<z.ZodString
|
|
83
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
84
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
85
85
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
86
86
|
}, "strict", z.ZodTypeAny, {
|
|
87
|
+
dependencyTypes?: string[] | undefined;
|
|
88
|
+
label?: string | undefined;
|
|
87
89
|
dependencies: string[];
|
|
88
90
|
range: "" | "*" | ">" | ">=" | ".x" | "<" | "<=" | "^" | "~";
|
|
89
|
-
dependencyTypes: string[];
|
|
90
|
-
label: string;
|
|
91
91
|
packages: string[];
|
|
92
92
|
}, {
|
|
93
93
|
dependencyTypes?: string[] | undefined;
|
|
@@ -99,15 +99,15 @@ export declare const any: z.ZodUnion<[z.ZodObject<{
|
|
|
99
99
|
range: z.ZodEnum<["*", "", ">", ">=", ".x", "<", "<=", "^", "~"]>;
|
|
100
100
|
isDefault: z.ZodLiteral<true>;
|
|
101
101
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
102
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
103
|
-
label: z.ZodDefault<z.ZodString
|
|
102
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
103
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
104
104
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
105
105
|
}, "strict", z.ZodTypeAny, {
|
|
106
|
+
dependencyTypes?: string[] | undefined;
|
|
107
|
+
label?: string | undefined;
|
|
106
108
|
isDefault: true;
|
|
107
109
|
dependencies: string[];
|
|
108
110
|
range: "" | "*" | ">" | ">=" | ".x" | "<" | "<=" | "^" | "~";
|
|
109
|
-
dependencyTypes: string[];
|
|
110
|
-
label: string;
|
|
111
111
|
packages: string[];
|
|
112
112
|
}, {
|
|
113
113
|
dependencyTypes?: string[] | undefined;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
3
|
if (k2 === undefined) k2 = k;
|
|
15
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -33,18 +22,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
33
22
|
__setModuleDefault(result, mod);
|
|
34
23
|
return result;
|
|
35
24
|
};
|
|
36
|
-
exports
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
26
|
exports.any = exports.base = exports.withRange = exports.ignored = void 0;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
27
|
+
const zod_1 = require("zod");
|
|
28
|
+
const base_group_1 = require("./base-group");
|
|
29
|
+
const SemverRangeSchema = __importStar(require("./semver-range"));
|
|
41
30
|
exports.ignored = zod_1.z
|
|
42
|
-
.object(
|
|
31
|
+
.object({ ...base_group_1.baseGroupFields, isIgnored: zod_1.z.literal(true) })
|
|
43
32
|
.strict();
|
|
44
33
|
exports.withRange = zod_1.z
|
|
45
|
-
.object(
|
|
34
|
+
.object({ ...base_group_1.baseGroupFields, range: SemverRangeSchema.value })
|
|
46
35
|
.strict();
|
|
47
36
|
exports.base = zod_1.z
|
|
48
|
-
.object(
|
|
37
|
+
.object({
|
|
38
|
+
...base_group_1.baseGroupFields,
|
|
39
|
+
range: SemverRangeSchema.value,
|
|
40
|
+
isDefault: zod_1.z.literal(true),
|
|
41
|
+
})
|
|
49
42
|
.strict();
|
|
50
43
|
exports.any = zod_1.z.union([exports.ignored, exports.withRange, exports.base]);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.value = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.value = zod_1.z
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
exports.value = zod_1.z.enum([
|
|
7
7
|
constants_1.RANGE.ANY,
|
|
8
8
|
constants_1.RANGE.EXACT,
|
|
9
9
|
constants_1.RANGE.GT,
|
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const standard: z.ZodObject<{
|
|
3
|
+
preferVersion: z.ZodDefault<z.ZodOptional<z.ZodEnum<["highestSemver", "lowestSemver"]>>>;
|
|
3
4
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
4
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
5
|
-
label: z.ZodDefault<z.ZodString
|
|
5
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
6
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
6
7
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
7
8
|
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
dependencyTypes?: string[] | undefined;
|
|
10
|
+
label?: string | undefined;
|
|
8
11
|
dependencies: string[];
|
|
9
|
-
dependencyTypes: string[];
|
|
10
|
-
label: string;
|
|
11
12
|
packages: string[];
|
|
13
|
+
preferVersion: "highestSemver" | "lowestSemver";
|
|
12
14
|
}, {
|
|
13
15
|
dependencyTypes?: string[] | undefined;
|
|
14
16
|
label?: string | undefined;
|
|
17
|
+
preferVersion?: "highestSemver" | "lowestSemver" | undefined;
|
|
15
18
|
dependencies: string[];
|
|
16
19
|
packages: string[];
|
|
17
20
|
}>;
|
|
18
21
|
export declare const banned: z.ZodObject<{
|
|
19
22
|
isBanned: z.ZodLiteral<true>;
|
|
20
23
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
21
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
22
|
-
label: z.ZodDefault<z.ZodString
|
|
24
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
25
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
23
26
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
24
27
|
}, "strict", z.ZodTypeAny, {
|
|
28
|
+
dependencyTypes?: string[] | undefined;
|
|
29
|
+
label?: string | undefined;
|
|
25
30
|
dependencies: string[];
|
|
26
|
-
dependencyTypes: string[];
|
|
27
|
-
label: string;
|
|
28
31
|
packages: string[];
|
|
29
32
|
isBanned: true;
|
|
30
33
|
}, {
|
|
@@ -37,13 +40,13 @@ export declare const banned: z.ZodObject<{
|
|
|
37
40
|
export declare const ignored: z.ZodObject<{
|
|
38
41
|
isIgnored: z.ZodLiteral<true>;
|
|
39
42
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
40
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
41
|
-
label: z.ZodDefault<z.ZodString
|
|
43
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
44
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
42
45
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
43
46
|
}, "strict", z.ZodTypeAny, {
|
|
47
|
+
dependencyTypes?: string[] | undefined;
|
|
48
|
+
label?: string | undefined;
|
|
44
49
|
dependencies: string[];
|
|
45
|
-
dependencyTypes: string[];
|
|
46
|
-
label: string;
|
|
47
50
|
packages: string[];
|
|
48
51
|
isIgnored: true;
|
|
49
52
|
}, {
|
|
@@ -56,13 +59,13 @@ export declare const ignored: z.ZodObject<{
|
|
|
56
59
|
export declare const pinned: z.ZodObject<{
|
|
57
60
|
pinVersion: z.ZodString;
|
|
58
61
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
59
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
60
|
-
label: z.ZodDefault<z.ZodString
|
|
62
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
63
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
61
64
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
62
65
|
}, "strict", z.ZodTypeAny, {
|
|
66
|
+
dependencyTypes?: string[] | undefined;
|
|
67
|
+
label?: string | undefined;
|
|
63
68
|
dependencies: string[];
|
|
64
|
-
dependencyTypes: string[];
|
|
65
|
-
label: string;
|
|
66
69
|
packages: string[];
|
|
67
70
|
pinVersion: string;
|
|
68
71
|
}, {
|
|
@@ -72,50 +75,75 @@ export declare const pinned: z.ZodObject<{
|
|
|
72
75
|
packages: string[];
|
|
73
76
|
pinVersion: string;
|
|
74
77
|
}>;
|
|
75
|
-
export declare const
|
|
78
|
+
export declare const snappedTo: z.ZodObject<{
|
|
79
|
+
snapTo: z.ZodArray<z.ZodString, "many">;
|
|
80
|
+
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
81
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
82
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
83
|
+
packages: z.ZodArray<z.ZodString, "many">;
|
|
84
|
+
}, "strict", z.ZodTypeAny, {
|
|
85
|
+
dependencyTypes?: string[] | undefined;
|
|
86
|
+
label?: string | undefined;
|
|
87
|
+
dependencies: string[];
|
|
88
|
+
packages: string[];
|
|
89
|
+
snapTo: string[];
|
|
90
|
+
}, {
|
|
91
|
+
dependencyTypes?: string[] | undefined;
|
|
92
|
+
label?: string | undefined;
|
|
93
|
+
dependencies: string[];
|
|
94
|
+
packages: string[];
|
|
95
|
+
snapTo: string[];
|
|
96
|
+
}>;
|
|
97
|
+
export declare const defaultGroup: z.ZodObject<{
|
|
76
98
|
isDefault: z.ZodLiteral<true>;
|
|
99
|
+
preferVersion: z.ZodDefault<z.ZodOptional<z.ZodEnum<["highestSemver", "lowestSemver"]>>>;
|
|
77
100
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
78
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
79
|
-
label: z.ZodDefault<z.ZodString
|
|
101
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
102
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
80
103
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
81
104
|
}, "strict", z.ZodTypeAny, {
|
|
105
|
+
dependencyTypes?: string[] | undefined;
|
|
106
|
+
label?: string | undefined;
|
|
82
107
|
isDefault: true;
|
|
83
108
|
dependencies: string[];
|
|
84
|
-
dependencyTypes: string[];
|
|
85
|
-
label: string;
|
|
86
109
|
packages: string[];
|
|
110
|
+
preferVersion: "highestSemver" | "lowestSemver";
|
|
87
111
|
}, {
|
|
88
112
|
dependencyTypes?: string[] | undefined;
|
|
89
113
|
label?: string | undefined;
|
|
114
|
+
preferVersion?: "highestSemver" | "lowestSemver" | undefined;
|
|
90
115
|
isDefault: true;
|
|
91
116
|
dependencies: string[];
|
|
92
117
|
packages: string[];
|
|
93
118
|
}>;
|
|
94
119
|
export declare const any: z.ZodUnion<[z.ZodObject<{
|
|
120
|
+
preferVersion: z.ZodDefault<z.ZodOptional<z.ZodEnum<["highestSemver", "lowestSemver"]>>>;
|
|
95
121
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
96
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
97
|
-
label: z.ZodDefault<z.ZodString
|
|
122
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
123
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
98
124
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
99
125
|
}, "strict", z.ZodTypeAny, {
|
|
126
|
+
dependencyTypes?: string[] | undefined;
|
|
127
|
+
label?: string | undefined;
|
|
100
128
|
dependencies: string[];
|
|
101
|
-
dependencyTypes: string[];
|
|
102
|
-
label: string;
|
|
103
129
|
packages: string[];
|
|
130
|
+
preferVersion: "highestSemver" | "lowestSemver";
|
|
104
131
|
}, {
|
|
105
132
|
dependencyTypes?: string[] | undefined;
|
|
106
133
|
label?: string | undefined;
|
|
134
|
+
preferVersion?: "highestSemver" | "lowestSemver" | undefined;
|
|
107
135
|
dependencies: string[];
|
|
108
136
|
packages: string[];
|
|
109
137
|
}>, z.ZodObject<{
|
|
110
138
|
isBanned: z.ZodLiteral<true>;
|
|
111
139
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
112
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
113
|
-
label: z.ZodDefault<z.ZodString
|
|
140
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
141
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
114
142
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
115
143
|
}, "strict", z.ZodTypeAny, {
|
|
144
|
+
dependencyTypes?: string[] | undefined;
|
|
145
|
+
label?: string | undefined;
|
|
116
146
|
dependencies: string[];
|
|
117
|
-
dependencyTypes: string[];
|
|
118
|
-
label: string;
|
|
119
147
|
packages: string[];
|
|
120
148
|
isBanned: true;
|
|
121
149
|
}, {
|
|
@@ -127,13 +155,13 @@ export declare const any: z.ZodUnion<[z.ZodObject<{
|
|
|
127
155
|
}>, z.ZodObject<{
|
|
128
156
|
isIgnored: z.ZodLiteral<true>;
|
|
129
157
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
130
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
131
|
-
label: z.ZodDefault<z.ZodString
|
|
158
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
159
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
132
160
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
133
161
|
}, "strict", z.ZodTypeAny, {
|
|
162
|
+
dependencyTypes?: string[] | undefined;
|
|
163
|
+
label?: string | undefined;
|
|
134
164
|
dependencies: string[];
|
|
135
|
-
dependencyTypes: string[];
|
|
136
|
-
label: string;
|
|
137
165
|
packages: string[];
|
|
138
166
|
isIgnored: true;
|
|
139
167
|
}, {
|
|
@@ -145,13 +173,13 @@ export declare const any: z.ZodUnion<[z.ZodObject<{
|
|
|
145
173
|
}>, z.ZodObject<{
|
|
146
174
|
pinVersion: z.ZodString;
|
|
147
175
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
148
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
149
|
-
label: z.ZodDefault<z.ZodString
|
|
176
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
177
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
150
178
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
151
179
|
}, "strict", z.ZodTypeAny, {
|
|
180
|
+
dependencyTypes?: string[] | undefined;
|
|
181
|
+
label?: string | undefined;
|
|
152
182
|
dependencies: string[];
|
|
153
|
-
dependencyTypes: string[];
|
|
154
|
-
label: string;
|
|
155
183
|
packages: string[];
|
|
156
184
|
pinVersion: string;
|
|
157
185
|
}, {
|
|
@@ -160,21 +188,42 @@ export declare const any: z.ZodUnion<[z.ZodObject<{
|
|
|
160
188
|
dependencies: string[];
|
|
161
189
|
packages: string[];
|
|
162
190
|
pinVersion: string;
|
|
191
|
+
}>, z.ZodObject<{
|
|
192
|
+
snapTo: z.ZodArray<z.ZodString, "many">;
|
|
193
|
+
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
194
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
195
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
196
|
+
packages: z.ZodArray<z.ZodString, "many">;
|
|
197
|
+
}, "strict", z.ZodTypeAny, {
|
|
198
|
+
dependencyTypes?: string[] | undefined;
|
|
199
|
+
label?: string | undefined;
|
|
200
|
+
dependencies: string[];
|
|
201
|
+
packages: string[];
|
|
202
|
+
snapTo: string[];
|
|
203
|
+
}, {
|
|
204
|
+
dependencyTypes?: string[] | undefined;
|
|
205
|
+
label?: string | undefined;
|
|
206
|
+
dependencies: string[];
|
|
207
|
+
packages: string[];
|
|
208
|
+
snapTo: string[];
|
|
163
209
|
}>, z.ZodObject<{
|
|
164
210
|
isDefault: z.ZodLiteral<true>;
|
|
211
|
+
preferVersion: z.ZodDefault<z.ZodOptional<z.ZodEnum<["highestSemver", "lowestSemver"]>>>;
|
|
165
212
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
166
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
167
|
-
label: z.ZodDefault<z.ZodString
|
|
213
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
214
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
168
215
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
169
216
|
}, "strict", z.ZodTypeAny, {
|
|
217
|
+
dependencyTypes?: string[] | undefined;
|
|
218
|
+
label?: string | undefined;
|
|
170
219
|
isDefault: true;
|
|
171
220
|
dependencies: string[];
|
|
172
|
-
dependencyTypes: string[];
|
|
173
|
-
label: string;
|
|
174
221
|
packages: string[];
|
|
222
|
+
preferVersion: "highestSemver" | "lowestSemver";
|
|
175
223
|
}, {
|
|
176
224
|
dependencyTypes?: string[] | undefined;
|
|
177
225
|
label?: string | undefined;
|
|
226
|
+
preferVersion?: "highestSemver" | "lowestSemver" | undefined;
|
|
178
227
|
isDefault: true;
|
|
179
228
|
dependencies: string[];
|
|
180
229
|
packages: string[];
|