syncpack 9.1.2 → 9.7.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 +14 -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 +19 -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 +15 -37
- 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 +51 -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-all-instances.js +3 -3
- 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.js +29 -59
- 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 -1
- package/dist/get-context/get-config/schema/base-group.js +5 -4
- package/dist/get-context/get-config/schema/index.d.ts +374 -148
- package/dist/get-context/get-config/schema/index.js +40 -63
- package/dist/get-context/get-config/schema/paths.js +12 -12
- package/dist/get-context/get-config/schema/semver-group.d.ts +42 -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 +91 -24
- package/dist/get-context/get-config/schema/version-group.js +20 -21
- 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 +2 -1
- package/dist/get-context/get-groups/index.js +31 -37
- 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 +2 -1
- package/dist/get-context/get-groups/version-group/index.js +29 -68
- 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/index.d.ts +2 -1
- package/dist/get-context/get-groups/version-group/instance-group/index.js +55 -47
- 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 +2 -0
- package/dist/get-context/get-groups/version-group/instance-group/lib/compare-semver.js +22 -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.js +7 -7
- 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.js +14 -15
- package/dist/get-context/index.js +19 -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.d.ts +4 -2
- package/dist/lib/log.js +44 -60
- 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 +2 -0
- package/dist/types.js +1 -1
- package/package.json +20 -16
|
@@ -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 paths = __importStar(require("./paths"));
|
|
30
|
+
const semverGroup = __importStar(require("./semver-group"));
|
|
31
|
+
const semverRange = __importStar(require("./semver-range"));
|
|
32
|
+
const versionGroup = __importStar(require("./version-group"));
|
|
33
|
+
const nonEmptyString = zod_1.z.string().trim().min(1);
|
|
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(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(nonEmptyString).default([...constants_1.DEFAULT_CONFIG.sortAz]),
|
|
45
|
+
sortFirst: zod_1.z.array(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: 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(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.base
|
|
60
|
+
defaultVersionGroup: versionGroup.base,
|
|
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,100 +2,118 @@ 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"
|
|
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
|
-
isIgnored: true;
|
|
10
|
-
dependencyTypes: string[];
|
|
11
12
|
packages: string[];
|
|
13
|
+
isIgnored: true;
|
|
12
14
|
}, {
|
|
13
15
|
dependencyTypes?: string[] | undefined;
|
|
16
|
+
label?: string | undefined;
|
|
14
17
|
dependencies: string[];
|
|
15
|
-
isIgnored: true;
|
|
16
18
|
packages: string[];
|
|
19
|
+
isIgnored: true;
|
|
17
20
|
}>;
|
|
18
21
|
export declare const withRange: z.ZodObject<{
|
|
19
22
|
range: z.ZodEnum<["*", "", ">", ">=", ".x", "<", "<=", "^", "~"]>;
|
|
20
23
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
21
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
24
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
25
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
22
26
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
23
27
|
}, "strict", z.ZodTypeAny, {
|
|
28
|
+
dependencyTypes?: string[] | undefined;
|
|
29
|
+
label?: string | undefined;
|
|
24
30
|
dependencies: string[];
|
|
25
|
-
dependencyTypes: string[];
|
|
26
|
-
packages: string[];
|
|
27
31
|
range: "" | "*" | ">" | ">=" | ".x" | "<" | "<=" | "^" | "~";
|
|
32
|
+
packages: string[];
|
|
28
33
|
}, {
|
|
29
34
|
dependencyTypes?: string[] | undefined;
|
|
35
|
+
label?: string | undefined;
|
|
30
36
|
dependencies: string[];
|
|
31
|
-
packages: string[];
|
|
32
37
|
range: "" | "*" | ">" | ">=" | ".x" | "<" | "<=" | "^" | "~";
|
|
38
|
+
packages: string[];
|
|
33
39
|
}>;
|
|
34
40
|
export declare const base: z.ZodObject<{
|
|
35
41
|
range: z.ZodEnum<["*", "", ">", ">=", ".x", "<", "<=", "^", "~"]>;
|
|
36
42
|
isDefault: z.ZodLiteral<true>;
|
|
37
43
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
38
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
44
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
45
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
39
46
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
40
47
|
}, "strict", z.ZodTypeAny, {
|
|
48
|
+
dependencyTypes?: string[] | undefined;
|
|
49
|
+
label?: string | undefined;
|
|
41
50
|
isDefault: true;
|
|
42
51
|
dependencies: string[];
|
|
43
|
-
dependencyTypes: string[];
|
|
44
|
-
packages: string[];
|
|
45
52
|
range: "" | "*" | ">" | ">=" | ".x" | "<" | "<=" | "^" | "~";
|
|
53
|
+
packages: string[];
|
|
46
54
|
}, {
|
|
47
55
|
dependencyTypes?: string[] | undefined;
|
|
56
|
+
label?: string | undefined;
|
|
48
57
|
isDefault: true;
|
|
49
58
|
dependencies: string[];
|
|
50
|
-
packages: string[];
|
|
51
59
|
range: "" | "*" | ">" | ">=" | ".x" | "<" | "<=" | "^" | "~";
|
|
60
|
+
packages: string[];
|
|
52
61
|
}>;
|
|
53
62
|
export declare const any: z.ZodUnion<[z.ZodObject<{
|
|
54
63
|
isIgnored: z.ZodLiteral<true>;
|
|
55
64
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
56
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
65
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
66
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
57
67
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
58
68
|
}, "strict", z.ZodTypeAny, {
|
|
69
|
+
dependencyTypes?: string[] | undefined;
|
|
70
|
+
label?: string | undefined;
|
|
59
71
|
dependencies: string[];
|
|
60
|
-
isIgnored: true;
|
|
61
|
-
dependencyTypes: string[];
|
|
62
72
|
packages: string[];
|
|
73
|
+
isIgnored: true;
|
|
63
74
|
}, {
|
|
64
75
|
dependencyTypes?: string[] | undefined;
|
|
76
|
+
label?: string | undefined;
|
|
65
77
|
dependencies: string[];
|
|
66
|
-
isIgnored: true;
|
|
67
78
|
packages: string[];
|
|
79
|
+
isIgnored: true;
|
|
68
80
|
}>, z.ZodObject<{
|
|
69
81
|
range: z.ZodEnum<["*", "", ">", ">=", ".x", "<", "<=", "^", "~"]>;
|
|
70
82
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
71
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
83
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
84
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
72
85
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
73
86
|
}, "strict", z.ZodTypeAny, {
|
|
87
|
+
dependencyTypes?: string[] | undefined;
|
|
88
|
+
label?: string | undefined;
|
|
74
89
|
dependencies: string[];
|
|
75
|
-
dependencyTypes: string[];
|
|
76
|
-
packages: string[];
|
|
77
90
|
range: "" | "*" | ">" | ">=" | ".x" | "<" | "<=" | "^" | "~";
|
|
91
|
+
packages: string[];
|
|
78
92
|
}, {
|
|
79
93
|
dependencyTypes?: string[] | undefined;
|
|
94
|
+
label?: string | undefined;
|
|
80
95
|
dependencies: string[];
|
|
81
|
-
packages: string[];
|
|
82
96
|
range: "" | "*" | ">" | ">=" | ".x" | "<" | "<=" | "^" | "~";
|
|
97
|
+
packages: string[];
|
|
83
98
|
}>, z.ZodObject<{
|
|
84
99
|
range: z.ZodEnum<["*", "", ">", ">=", ".x", "<", "<=", "^", "~"]>;
|
|
85
100
|
isDefault: z.ZodLiteral<true>;
|
|
86
101
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
87
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
102
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
103
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
88
104
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
89
105
|
}, "strict", z.ZodTypeAny, {
|
|
106
|
+
dependencyTypes?: string[] | undefined;
|
|
107
|
+
label?: string | undefined;
|
|
90
108
|
isDefault: true;
|
|
91
109
|
dependencies: string[];
|
|
92
|
-
dependencyTypes: string[];
|
|
93
|
-
packages: string[];
|
|
94
110
|
range: "" | "*" | ">" | ">=" | ".x" | "<" | "<=" | "^" | "~";
|
|
111
|
+
packages: string[];
|
|
95
112
|
}, {
|
|
96
113
|
dependencyTypes?: string[] | undefined;
|
|
114
|
+
label?: string | undefined;
|
|
97
115
|
isDefault: true;
|
|
98
116
|
dependencies: string[];
|
|
99
|
-
packages: string[];
|
|
100
117
|
range: "" | "*" | ">" | ">=" | ".x" | "<" | "<=" | "^" | "~";
|
|
118
|
+
packages: string[];
|
|
101
119
|
}>]>;
|
|
@@ -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,29 +1,35 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const standard: z.ZodObject<{
|
|
3
3
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
4
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
4
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
5
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
5
6
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
6
7
|
}, "strict", z.ZodTypeAny, {
|
|
8
|
+
dependencyTypes?: string[] | undefined;
|
|
9
|
+
label?: string | undefined;
|
|
7
10
|
dependencies: string[];
|
|
8
|
-
dependencyTypes: string[];
|
|
9
11
|
packages: string[];
|
|
10
12
|
}, {
|
|
11
13
|
dependencyTypes?: string[] | undefined;
|
|
14
|
+
label?: string | undefined;
|
|
12
15
|
dependencies: string[];
|
|
13
16
|
packages: string[];
|
|
14
17
|
}>;
|
|
15
18
|
export declare const banned: z.ZodObject<{
|
|
16
19
|
isBanned: z.ZodLiteral<true>;
|
|
17
20
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
18
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
21
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
22
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
19
23
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
20
24
|
}, "strict", z.ZodTypeAny, {
|
|
25
|
+
dependencyTypes?: string[] | undefined;
|
|
26
|
+
label?: string | undefined;
|
|
21
27
|
dependencies: string[];
|
|
22
|
-
dependencyTypes: string[];
|
|
23
28
|
packages: string[];
|
|
24
29
|
isBanned: true;
|
|
25
30
|
}, {
|
|
26
31
|
dependencyTypes?: string[] | undefined;
|
|
32
|
+
label?: string | undefined;
|
|
27
33
|
dependencies: string[];
|
|
28
34
|
packages: string[];
|
|
29
35
|
isBanned: true;
|
|
@@ -31,120 +37,181 @@ export declare const banned: z.ZodObject<{
|
|
|
31
37
|
export declare const ignored: z.ZodObject<{
|
|
32
38
|
isIgnored: z.ZodLiteral<true>;
|
|
33
39
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
34
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
40
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
41
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
35
42
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
36
43
|
}, "strict", z.ZodTypeAny, {
|
|
44
|
+
dependencyTypes?: string[] | undefined;
|
|
45
|
+
label?: string | undefined;
|
|
37
46
|
dependencies: string[];
|
|
38
|
-
isIgnored: true;
|
|
39
|
-
dependencyTypes: string[];
|
|
40
47
|
packages: string[];
|
|
48
|
+
isIgnored: true;
|
|
41
49
|
}, {
|
|
42
50
|
dependencyTypes?: string[] | undefined;
|
|
51
|
+
label?: string | undefined;
|
|
43
52
|
dependencies: string[];
|
|
44
|
-
isIgnored: true;
|
|
45
53
|
packages: string[];
|
|
54
|
+
isIgnored: true;
|
|
46
55
|
}>;
|
|
47
56
|
export declare const pinned: z.ZodObject<{
|
|
48
57
|
pinVersion: z.ZodString;
|
|
49
58
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
50
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
59
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
60
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
51
61
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
52
62
|
}, "strict", z.ZodTypeAny, {
|
|
63
|
+
dependencyTypes?: string[] | undefined;
|
|
64
|
+
label?: string | undefined;
|
|
53
65
|
dependencies: string[];
|
|
54
|
-
dependencyTypes: string[];
|
|
55
66
|
packages: string[];
|
|
56
67
|
pinVersion: string;
|
|
57
68
|
}, {
|
|
58
69
|
dependencyTypes?: string[] | undefined;
|
|
70
|
+
label?: string | undefined;
|
|
59
71
|
dependencies: string[];
|
|
60
72
|
packages: string[];
|
|
61
73
|
pinVersion: string;
|
|
62
74
|
}>;
|
|
75
|
+
export declare const snappedTo: z.ZodObject<{
|
|
76
|
+
snapTo: z.ZodArray<z.ZodString, "many">;
|
|
77
|
+
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
78
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
79
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
80
|
+
packages: z.ZodArray<z.ZodString, "many">;
|
|
81
|
+
}, "strict", z.ZodTypeAny, {
|
|
82
|
+
dependencyTypes?: string[] | undefined;
|
|
83
|
+
label?: string | undefined;
|
|
84
|
+
dependencies: string[];
|
|
85
|
+
packages: string[];
|
|
86
|
+
snapTo: string[];
|
|
87
|
+
}, {
|
|
88
|
+
dependencyTypes?: string[] | undefined;
|
|
89
|
+
label?: string | undefined;
|
|
90
|
+
dependencies: string[];
|
|
91
|
+
packages: string[];
|
|
92
|
+
snapTo: string[];
|
|
93
|
+
}>;
|
|
63
94
|
export declare const base: z.ZodObject<{
|
|
64
95
|
isDefault: z.ZodLiteral<true>;
|
|
65
96
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
66
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
97
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
98
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
67
99
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
68
100
|
}, "strict", z.ZodTypeAny, {
|
|
101
|
+
dependencyTypes?: string[] | undefined;
|
|
102
|
+
label?: string | undefined;
|
|
69
103
|
isDefault: true;
|
|
70
104
|
dependencies: string[];
|
|
71
|
-
dependencyTypes: string[];
|
|
72
105
|
packages: string[];
|
|
73
106
|
}, {
|
|
74
107
|
dependencyTypes?: string[] | undefined;
|
|
108
|
+
label?: string | undefined;
|
|
75
109
|
isDefault: true;
|
|
76
110
|
dependencies: string[];
|
|
77
111
|
packages: string[];
|
|
78
112
|
}>;
|
|
79
113
|
export declare const any: z.ZodUnion<[z.ZodObject<{
|
|
80
114
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
81
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
115
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
116
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
82
117
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
83
118
|
}, "strict", z.ZodTypeAny, {
|
|
119
|
+
dependencyTypes?: string[] | undefined;
|
|
120
|
+
label?: string | undefined;
|
|
84
121
|
dependencies: string[];
|
|
85
|
-
dependencyTypes: string[];
|
|
86
122
|
packages: string[];
|
|
87
123
|
}, {
|
|
88
124
|
dependencyTypes?: string[] | undefined;
|
|
125
|
+
label?: string | undefined;
|
|
89
126
|
dependencies: string[];
|
|
90
127
|
packages: string[];
|
|
91
128
|
}>, z.ZodObject<{
|
|
92
129
|
isBanned: z.ZodLiteral<true>;
|
|
93
130
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
94
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
131
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
132
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
95
133
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
96
134
|
}, "strict", z.ZodTypeAny, {
|
|
135
|
+
dependencyTypes?: string[] | undefined;
|
|
136
|
+
label?: string | undefined;
|
|
97
137
|
dependencies: string[];
|
|
98
|
-
dependencyTypes: string[];
|
|
99
138
|
packages: string[];
|
|
100
139
|
isBanned: true;
|
|
101
140
|
}, {
|
|
102
141
|
dependencyTypes?: string[] | undefined;
|
|
142
|
+
label?: string | undefined;
|
|
103
143
|
dependencies: string[];
|
|
104
144
|
packages: string[];
|
|
105
145
|
isBanned: true;
|
|
106
146
|
}>, z.ZodObject<{
|
|
107
147
|
isIgnored: z.ZodLiteral<true>;
|
|
108
148
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
109
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
149
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
150
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
110
151
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
111
152
|
}, "strict", z.ZodTypeAny, {
|
|
153
|
+
dependencyTypes?: string[] | undefined;
|
|
154
|
+
label?: string | undefined;
|
|
112
155
|
dependencies: string[];
|
|
113
|
-
isIgnored: true;
|
|
114
|
-
dependencyTypes: string[];
|
|
115
156
|
packages: string[];
|
|
157
|
+
isIgnored: true;
|
|
116
158
|
}, {
|
|
117
159
|
dependencyTypes?: string[] | undefined;
|
|
160
|
+
label?: string | undefined;
|
|
118
161
|
dependencies: string[];
|
|
119
|
-
isIgnored: true;
|
|
120
162
|
packages: string[];
|
|
163
|
+
isIgnored: true;
|
|
121
164
|
}>, z.ZodObject<{
|
|
122
165
|
pinVersion: z.ZodString;
|
|
123
166
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
124
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
167
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
168
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
125
169
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
126
170
|
}, "strict", z.ZodTypeAny, {
|
|
171
|
+
dependencyTypes?: string[] | undefined;
|
|
172
|
+
label?: string | undefined;
|
|
127
173
|
dependencies: string[];
|
|
128
|
-
dependencyTypes: string[];
|
|
129
174
|
packages: string[];
|
|
130
175
|
pinVersion: string;
|
|
131
176
|
}, {
|
|
132
177
|
dependencyTypes?: string[] | undefined;
|
|
178
|
+
label?: string | undefined;
|
|
133
179
|
dependencies: string[];
|
|
134
180
|
packages: string[];
|
|
135
181
|
pinVersion: string;
|
|
182
|
+
}>, z.ZodObject<{
|
|
183
|
+
snapTo: z.ZodArray<z.ZodString, "many">;
|
|
184
|
+
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
185
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
186
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
187
|
+
packages: z.ZodArray<z.ZodString, "many">;
|
|
188
|
+
}, "strict", z.ZodTypeAny, {
|
|
189
|
+
dependencyTypes?: string[] | undefined;
|
|
190
|
+
label?: string | undefined;
|
|
191
|
+
dependencies: string[];
|
|
192
|
+
packages: string[];
|
|
193
|
+
snapTo: string[];
|
|
194
|
+
}, {
|
|
195
|
+
dependencyTypes?: string[] | undefined;
|
|
196
|
+
label?: string | undefined;
|
|
197
|
+
dependencies: string[];
|
|
198
|
+
packages: string[];
|
|
199
|
+
snapTo: string[];
|
|
136
200
|
}>, z.ZodObject<{
|
|
137
201
|
isDefault: z.ZodLiteral<true>;
|
|
138
202
|
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
139
|
-
dependencyTypes: z.ZodDefault<z.ZodArray<z.ZodString, "many"
|
|
203
|
+
dependencyTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
204
|
+
label: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
140
205
|
packages: z.ZodArray<z.ZodString, "many">;
|
|
141
206
|
}, "strict", z.ZodTypeAny, {
|
|
207
|
+
dependencyTypes?: string[] | undefined;
|
|
208
|
+
label?: string | undefined;
|
|
142
209
|
isDefault: true;
|
|
143
210
|
dependencies: string[];
|
|
144
|
-
dependencyTypes: string[];
|
|
145
211
|
packages: string[];
|
|
146
212
|
}, {
|
|
147
213
|
dependencyTypes?: string[] | undefined;
|
|
214
|
+
label?: string | undefined;
|
|
148
215
|
isDefault: true;
|
|
149
216
|
dependencies: string[];
|
|
150
217
|
packages: string[];
|