@uipath/solution-tool 1.205.0-preview.277 → 1.206.0-preview.279
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/{archive-extract-x35t9ktj.js → archive-extract-136rn3ja.js} +13 -15
- package/dist/{cleanup-command-service-dwbrt6d9.js → cleanup-command-service-ejakyhea.js} +34 -31
- package/dist/deploy-delete-service-r7abfh28.js +23 -0
- package/dist/deploy-run-service-rnthz10q.js +23 -0
- package/dist/{deploy-status-service-xw2nzh7m.js → deploy-status-service-6my5vm61.js} +72 -62
- package/dist/deploy.js +35 -37
- package/dist/deployment-search-gfm907tx.js +54 -0
- package/dist/{embedded-file-reader-z4becc02.js → embedded-file-reader-0228j82a.js} +1 -4
- package/dist/feed-resolver-14crsx5y.js +27 -0
- package/dist/feed-scope-failure-67cyybn0.js +20 -0
- package/dist/feed-session-g94q2bjc.js +23 -0
- package/dist/first-party-service-n3vva2m4.js +8 -0
- package/dist/governance-options-t20vsznh.js +19 -0
- package/dist/index-aspmac9f.js +24 -0
- package/dist/index-ddk6v1ej.js +60 -0
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/index-qq4kre7a.js +93 -0
- package/dist/index-t262f2xv.js +16 -0
- package/dist/index.js +33 -34
- package/dist/init.js +18 -21
- package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
- package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{list-zckdhv0c.js → list-jntan9tx.js} +23 -23
- package/dist/models/pack-command-types.d.ts +3 -1
- package/dist/node-kwzcw5ex.js +25 -0
- package/dist/pack-command-service-pwaeha7y.js +29 -0
- package/dist/{pack-project-erd95bt1.js → pack-project-ztt1hfrs.js} +33 -40
- package/dist/pack.js +26 -30
- package/dist/package-id-4tsg5jsb.js +11 -0
- package/dist/{packager-tool-d3cmmbw1.js → packager-tool-1bz9h5ca.js} +11 -11
- package/dist/{packager-tool-gs3f3tf7.js → packager-tool-1ctvbx0h.js} +1 -1
- package/dist/{packager-tool-r1jvvm8y.js → packager-tool-55ztfccd.js} +176 -196
- package/dist/{packager-tool-wrg41m7t.js → packager-tool-95y24705.js} +37 -39
- package/dist/{packager-tool-bkjqza3a.js → packager-tool-9j8e5q1z.js} +184 -33
- package/dist/{packager-tool-tx834spe.js → packager-tool-9vrwpgt3.js} +757 -309
- package/dist/packager-tool-a6va4gc5.js +1178 -0
- package/dist/{packager-tool-pbmqk39a.js → packager-tool-a7s0gbxs.js} +33 -28
- package/dist/{packager-tool-47wzvqw0.js → packager-tool-aws5w512.js} +6 -6
- package/dist/{packager-tool-97rcgwvv.js → packager-tool-bs1jn1yn.js} +331 -55
- package/dist/packager-tool-c64hqa8n.js +106 -0
- package/dist/{packager-tool-5ddtwzva.js → packager-tool-ca5ngmqv.js} +12 -12
- package/dist/{packager-tool-6kz1pv9f.js → packager-tool-d1texmvn.js} +828 -338
- package/dist/{packager-tool-1de529jm.js → packager-tool-epsr41wx.js} +12 -3
- package/dist/packager-tool-f84z7nds.js +130 -0
- package/dist/{packager-tool-8ptbmmmp.js → packager-tool-fp46ebde.js} +147 -76
- package/dist/packager-tool-fqs6hdcy.js +290 -0
- package/dist/{packager-tool-3bwnkjdq.js → packager-tool-fx4ws49n.js} +12 -12
- package/dist/{packager-tool-6ybywxxn.js → packager-tool-m07vyk89.js} +371 -221
- package/dist/{packager-tool-hsya909c.js → packager-tool-nrhqgr4z.js} +273 -255
- package/dist/{packager-tool-61pwb567.js → packager-tool-ppj5f4y7.js} +6 -7
- package/dist/{packager-tool-qqbt4b44.js → packager-tool-pyt9fvty.js} +51 -48
- package/dist/packager-tool-q5d9df2q.js +74 -0
- package/dist/{packager-tool-ph7fg1aa.js → packager-tool-q8ryk6q9.js} +122 -89
- package/dist/{packager-tool-t8gh825q.js → packager-tool-qf8753ee.js} +53 -41
- package/dist/{packager-tool-60af1hw2.js → packager-tool-qzcd5c9s.js} +3 -3
- package/dist/packager-tool-resolver-td3bhccd.js +20 -0
- package/dist/{packager-tool-dfrk01gn.js → packager-tool-rj2d1g0w.js} +154 -154
- package/dist/{packager-tool-a4bs7wtm.js → packager-tool-snm6s7b5.js} +15 -15
- package/dist/{packager-tool-43ahv5mn.js → packager-tool-t39pjz7n.js} +35 -18
- package/dist/{packager-tool-f2hsb9ta.js → packager-tool-t3a48ys5.js} +305 -657
- package/dist/{packager-tool-cjjk2ek2.js → packager-tool-t3ahzjh1.js} +356 -298
- package/dist/{packager-tool-v1f5e8t9.js → packager-tool-vgrswa8p.js} +53 -8
- package/dist/packager-tool-vrtabg73.js +2307 -0
- package/dist/{packager-tool-gmwva4yv.js → packager-tool-vx2c68sb.js} +2 -2
- package/dist/{packager-tool-4pkzxkty.js → packager-tool-vx39dhvn.js} +65 -35
- package/dist/{packager-tool-zn76tbxc.js → packager-tool-w34wyhwf.js} +13 -15
- package/dist/packager-tool-w8bcwfd3.js +280 -0
- package/dist/{packager-tool-3gwrcgrc.js → packager-tool-wm0h0wa1.js} +18 -18
- package/dist/{packager-tool-b2nhscfk.js → packager-tool-wm8nj6e9.js} +18 -18
- package/dist/{packager-tool-amhyxzz6.js → packager-tool-x33sdw6n.js} +16 -16
- package/dist/{packager-tool-wy4fx250.js → packager-tool-yetmzme9.js} +89 -30
- package/dist/{packager-tool-6tyyvhh0.js → packager-tool-z5r49ky9.js} +75 -9
- package/dist/packager-tool.js +6 -7
- package/dist/prepare-solution-resources-pwnyvtza.js +26 -0
- package/dist/{project-command-utils-t6pmpvq3.js → project-command-utils-zcmbecfy.js} +23 -26
- package/dist/project-contributions-kh9yftvg.js +27 -0
- package/dist/publish.js +17 -17
- package/dist/resource-mutations-mfn5k1hb.js +27 -0
- package/dist/{resource-version-lookup-0e3e2j58.js → resource-version-lookup-6ejh1hwd.js} +20 -23
- package/dist/resource.js +13 -16
- package/dist/{restore-command-service-2g02d7s1.js → restore-command-service-n880dxre.js} +37 -34
- package/dist/{run-service-6necpy9s.js → run-service-4vhn6mtb.js} +144 -66
- package/dist/services/deploy-activate-service.d.ts +2 -1
- package/dist/services/deployment-search-client.d.ts +2 -1
- package/dist/services/deployment-search.d.ts +39 -0
- package/dist/services/feed-resolver.d.ts +13 -1
- package/dist/services/feed-selection.d.ts +8 -5
- package/dist/services/feed-session.d.ts +34 -0
- package/dist/services/install-run.d.ts +92 -0
- package/dist/services/prepare-solution-resources.d.ts +11 -2
- package/dist/services/project-contributions.d.ts +2 -0
- package/dist/services/project-identity-telemetry.d.ts +3 -0
- package/dist/services/publish-service.d.ts +20 -3
- package/dist/services/solution-identity.d.ts +18 -0
- package/dist/ship-telemetry-bkf3800w.js +16 -0
- package/dist/solution-auth-jxcgd2m0.js +10 -0
- package/dist/solution-identity-92h2fbpa.js +19 -0
- package/dist/templates/AGENTS.md +27 -29
- package/dist/tool.js +32 -33
- package/package.json +2 -2
- package/dist/deploy-delete-service-7py597ng.js +0 -25
- package/dist/deploy-run-service-446bssn0.js +0 -25
- package/dist/deployment-search-qyd6dv0m.js +0 -55
- package/dist/feed-resolver-va10c73n.js +0 -28
- package/dist/feed-scope-failure-3yxfg1x7.js +0 -19
- package/dist/feed-session-7xqphdrg.js +0 -17
- package/dist/first-party-service-sd8yaf73.js +0 -27
- package/dist/governance-options-8snbrbt1.js +0 -32
- package/dist/index-dqa169gp.js +0 -25
- package/dist/index-fcwmbjap.js +0 -667
- package/dist/index-prm27bvm.js +0 -138
- package/dist/node-9hdy9st1.js +0 -86
- package/dist/pack-command-service-tr3z33gz.js +0 -35
- package/dist/package-id-kdkapmn2.js +0 -13
- package/dist/packager-tool-53w8skv5.js +0 -262
- package/dist/packager-tool-5edvzz80.js +0 -543
- package/dist/packager-tool-6d3fx89p.js +0 -171
- package/dist/packager-tool-d8ng7mex.js +0 -68
- package/dist/packager-tool-gdtpsdn7.js +0 -342
- package/dist/packager-tool-mq5pc4zr.js +0 -418
- package/dist/packager-tool-qw47eyw7.js +0 -43
- package/dist/packager-tool-resolver-994z3jkj.js +0 -23
- package/dist/packager-tool-rg3xgn9a.js +0 -182
- package/dist/packager-tool-sxjehksx.js +0 -5367
- package/dist/packager-tool-yrdyppjd.js +0 -188
- package/dist/prepare-solution-resources-m1djfj62.js +0 -29
- package/dist/project-contributions-79ndycrx.js +0 -32
- package/dist/resource-mutations-c3krjqze.js +0 -36
- package/dist/ship-telemetry-myes7ak5.js +0 -21
- package/dist/solution-auth-aead70sw.js +0 -11
- /package/dist/{packager-tool-act5r386.js → packager-tool-2pxe2r4j.js} +0 -0
- /package/dist/{packager-tool-kkfb5kgn.js → packager-tool-vrqbbh01.js} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./packager-tool-tx834spe.js";
|
|
2
|
+
getFileSystem
|
|
3
|
+
} from "./packager-tool-vgrswa8p.js";
|
|
5
4
|
import {
|
|
6
5
|
ShipDimensions,
|
|
7
6
|
catchError
|
|
8
|
-
} from "./packager-tool-
|
|
7
|
+
} from "./packager-tool-m07vyk89.js";
|
|
9
8
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
logger,
|
|
10
|
+
trackShipSucceeded
|
|
11
|
+
} from "./packager-tool-9vrwpgt3.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./packager-tool-
|
|
13
|
+
unzip2
|
|
14
|
+
} from "./packager-tool-rj2d1g0w.js";
|
|
15
15
|
|
|
16
16
|
// src/services/ship-telemetry.ts
|
|
17
17
|
var PROJECT_TYPE_MAP = {
|
|
@@ -31,7 +31,7 @@ function isRecord(value) {
|
|
|
31
31
|
function normalizeShipProjectType(projectType) {
|
|
32
32
|
return PROJECT_TYPE_MAP[projectType] ?? projectType.trim().toLowerCase();
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function summarizeShipProjectTypes2(projectTypes) {
|
|
35
35
|
const normalized = [
|
|
36
36
|
...new Set(projectTypes.map((projectType) => projectType.trim()).filter(Boolean).map(normalizeShipProjectType))
|
|
37
37
|
];
|
|
@@ -66,7 +66,7 @@ function isProjectManifestEntry(name) {
|
|
|
66
66
|
}
|
|
67
67
|
function unzipProjectManifests(archive) {
|
|
68
68
|
return new Promise((resolve, reject) => {
|
|
69
|
-
|
|
69
|
+
unzip2(archive, { filter: (file) => isProjectManifestEntry(file.name) }, (error, entries) => {
|
|
70
70
|
if (error) {
|
|
71
71
|
reject(error);
|
|
72
72
|
return;
|
|
@@ -75,7 +75,7 @@ function unzipProjectManifests(archive) {
|
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
async function
|
|
78
|
+
async function inspectSolutionPackageProjectTypes2(packagePath) {
|
|
79
79
|
const fs = getFileSystem();
|
|
80
80
|
const [statError, stats] = await catchError(fs.stat(packagePath));
|
|
81
81
|
if (statError || !stats) {
|
|
@@ -109,17 +109,17 @@ async function inspectSolutionPackageProjectTypes(packagePath) {
|
|
|
109
109
|
}
|
|
110
110
|
projectTypes.push(...parsedTypes);
|
|
111
111
|
}
|
|
112
|
-
return
|
|
112
|
+
return summarizeShipProjectTypes2(projectTypes);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function trackSolutionShipSucceeded2(payload, capture) {
|
|
115
115
|
const { projectTypeSummary, ...rest } = payload;
|
|
116
116
|
return trackShipSucceeded({
|
|
117
117
|
...rest,
|
|
118
118
|
[ShipDimensions.ProjectType]: projectTypeSummary.projectType,
|
|
119
119
|
[ShipDimensions.ProjectTypes]: projectTypeSummary.projectTypes
|
|
120
|
-
});
|
|
120
|
+
}, capture);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
export {
|
|
123
|
+
export { summarizeShipProjectTypes2, inspectSolutionPackageProjectTypes2, trackSolutionShipSucceeded2 };
|
|
124
124
|
|
|
125
|
-
//# debugId=
|
|
125
|
+
//# debugId=7DA95614C728292C64756E2164756E21
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
4
|
-
import {
|
|
5
|
-
computeEntryPointSpec,
|
|
6
|
-
createResourceBuilderServices,
|
|
7
|
-
hasAnyTemplateRow,
|
|
8
|
-
hasBareTemplateRow,
|
|
9
|
-
readUipxProjects
|
|
10
|
-
} from "./packager-tool-6kz1pv9f.js";
|
|
2
|
+
getFileSystem
|
|
3
|
+
} from "./packager-tool-vgrswa8p.js";
|
|
11
4
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./packager-tool-
|
|
5
|
+
catchError
|
|
6
|
+
} from "./packager-tool-m07vyk89.js";
|
|
14
7
|
import {
|
|
15
8
|
logger
|
|
16
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-9vrwpgt3.js";
|
|
17
10
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./packager-tool-
|
|
11
|
+
toolsFactoryRepository
|
|
12
|
+
} from "./packager-tool-a7s0gbxs.js";
|
|
20
13
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
computeEntryPointSpec2,
|
|
15
|
+
createResourceBuilderServices2,
|
|
16
|
+
hasBareTemplateRow2,
|
|
17
|
+
hasAnyTemplateRow2,
|
|
18
|
+
readUipxProjects2
|
|
19
|
+
} from "./packager-tool-d1texmvn.js";
|
|
20
|
+
import {
|
|
21
|
+
toolVerbForProjectType2
|
|
22
|
+
} from "./packager-tool-qzcd5c9s.js";
|
|
23
23
|
|
|
24
24
|
// src/services/project-contributions.ts
|
|
25
25
|
var ENTRY_POINT_RESOURCE_KIND = "process";
|
|
@@ -41,16 +41,18 @@ class ProjectContributionsError extends Error {
|
|
|
41
41
|
this.contributionCode = everyCoded && new Set(codes).size === 1 ? codes[0] : undefined;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
async function
|
|
44
|
+
async function collectProjectContributions2(solutionDir, fs = getFileSystem(), onlyProjectId) {
|
|
45
45
|
const byProject = new Map;
|
|
46
|
-
const
|
|
46
|
+
const names = new Map;
|
|
47
|
+
const projects = (await readUipxProjects2(solutionDir)).filter((project) => onlyProjectId === undefined || project.id === onlyProjectId);
|
|
47
48
|
for (const project of projects) {
|
|
49
|
+
names.set(project.id, project.name);
|
|
48
50
|
if (!toolsFactoryRepository.canHandleProject(project.type))
|
|
49
51
|
continue;
|
|
50
52
|
const factory = toolsFactoryRepository.getProjectToolFactory(project.type);
|
|
51
53
|
if (typeof factory.describeResourcesAsync !== "function") {
|
|
52
|
-
if (!
|
|
53
|
-
const verb =
|
|
54
|
+
if (!hasBareTemplateRow2(project.type) && hasAnyTemplateRow2(project.type)) {
|
|
55
|
+
const verb = toolVerbForProjectType2(project.type);
|
|
54
56
|
const update = verb ? `update the tool that provides it ('uip tools install ${verb}')` : "update the tool that provides it";
|
|
55
57
|
byProject.set(project.id, {
|
|
56
58
|
errors: [
|
|
@@ -84,33 +86,43 @@ async function collectProjectContributions(solutionDir, fs = getFileSystem(), on
|
|
|
84
86
|
if (contribution)
|
|
85
87
|
byProject.set(project.id, contribution);
|
|
86
88
|
}
|
|
87
|
-
return { byProject };
|
|
89
|
+
return { byProject, names };
|
|
88
90
|
}
|
|
89
|
-
function
|
|
91
|
+
function assertNoContributionErrors2(contributions) {
|
|
90
92
|
const errors = [...contributions.byProject.values()].flatMap((c) => c.errors ?? []);
|
|
91
93
|
if (errors.length === 0)
|
|
92
94
|
return;
|
|
93
95
|
throw new ProjectContributionsError(errors);
|
|
94
96
|
}
|
|
95
|
-
function
|
|
97
|
+
function contributionErrorMessages2(contributions) {
|
|
96
98
|
return [...contributions.byProject.values()].flatMap((c) => c.errors ?? []).map((e) => e.instructions ? `${e.message} ${e.instructions}` : e.message);
|
|
97
99
|
}
|
|
98
|
-
async function
|
|
100
|
+
async function applyProjectContributions2(solutionDir, contributions, options, fs = getFileSystem()) {
|
|
99
101
|
const result = {
|
|
100
102
|
updated: 0,
|
|
101
103
|
warnings: []
|
|
102
104
|
};
|
|
103
|
-
const services = await
|
|
105
|
+
const services = await createResourceBuilderServices2();
|
|
104
106
|
const builder = await services.getSolutionBuilder(solutionDir);
|
|
105
107
|
try {
|
|
106
108
|
const solution = await builder.context.loadAsync();
|
|
107
109
|
const resources = solution?.resources ?? [];
|
|
108
110
|
const touched = new Set;
|
|
111
|
+
const conflicts = conflictingNamedPatches(contributions);
|
|
112
|
+
if (conflicts.size > 0 && options?.failOnUnmatchedPatch) {
|
|
113
|
+
throw new ProjectContributionsError([...conflicts.values()]);
|
|
114
|
+
}
|
|
115
|
+
for (const conflict of conflicts.values()) {
|
|
116
|
+
result.warnings.push(`${conflict.message} ${conflict.instructions}`);
|
|
117
|
+
}
|
|
109
118
|
for (const [projectKey, contribution] of contributions.byProject) {
|
|
110
119
|
for (const patch of contribution.specPatch ?? []) {
|
|
111
|
-
|
|
120
|
+
if (conflicts.has(namedPatchKey(patch)))
|
|
121
|
+
continue;
|
|
122
|
+
const matches = resources.filter((r) => patchTargets(r, projectKey, patch));
|
|
112
123
|
if (matches.length === 0) {
|
|
113
|
-
const
|
|
124
|
+
const target = patch.name === undefined ? `for project '${projectKey}'` : `named '${patch.name}' (contributed by project '${projectKey}')`;
|
|
125
|
+
const message = `No '${patch.kind}' resource found ${target} — nothing to apply the contributed spec to.`;
|
|
114
126
|
if (options?.failOnUnmatchedPatch) {
|
|
115
127
|
throw new Error(message);
|
|
116
128
|
}
|
|
@@ -118,6 +130,9 @@ async function applyProjectContributions(solutionDir, contributions, options, fs
|
|
|
118
130
|
continue;
|
|
119
131
|
}
|
|
120
132
|
for (const resource of matches) {
|
|
133
|
+
if (applyResourceType(resource, patch.type)) {
|
|
134
|
+
touched.add(resource);
|
|
135
|
+
}
|
|
121
136
|
if (applySpecValues(resource, patch.values)) {
|
|
122
137
|
touched.add(resource);
|
|
123
138
|
}
|
|
@@ -130,7 +145,7 @@ async function applyProjectContributions(solutionDir, contributions, options, fs
|
|
|
130
145
|
if (resource.kind?.toLowerCase() !== ENTRY_POINT_RESOURCE_KIND) {
|
|
131
146
|
continue;
|
|
132
147
|
}
|
|
133
|
-
const [computeError, computed] = await catchError(
|
|
148
|
+
const [computeError, computed] = await catchError(computeEntryPointSpec2(fs, solutionDir, resource.projectKey));
|
|
134
149
|
if (computeError) {
|
|
135
150
|
result.warnings.push(`Failed to read entry points for project '${resource.projectKey}': ${computeError.message}`);
|
|
136
151
|
continue;
|
|
@@ -155,6 +170,50 @@ async function applyProjectContributions(solutionDir, contributions, options, fs
|
|
|
155
170
|
}
|
|
156
171
|
}
|
|
157
172
|
}
|
|
173
|
+
function patchTargets(resource, projectKey, patch) {
|
|
174
|
+
if (resource.kind?.toLowerCase() !== patch.kind.toLowerCase()) {
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
return patch.name === undefined ? resource.projectKey === projectKey : (resource.name ?? "").toLowerCase() === patch.name.toLowerCase();
|
|
178
|
+
}
|
|
179
|
+
var namedPatchKey = (patch) => `${patch.kind.toLowerCase()}|${(patch.name ?? "").toLowerCase()}`;
|
|
180
|
+
function conflictingNamedPatches(contributions) {
|
|
181
|
+
const byTarget = new Map;
|
|
182
|
+
for (const [projectKey, contribution] of contributions.byProject) {
|
|
183
|
+
for (const patch of contribution.specPatch ?? []) {
|
|
184
|
+
if (patch.name === undefined)
|
|
185
|
+
continue;
|
|
186
|
+
const key = namedPatchKey(patch);
|
|
187
|
+
const list = byTarget.get(key) ?? [];
|
|
188
|
+
list.push({ projectKey, patch });
|
|
189
|
+
byTarget.set(key, list);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
const conflicts = new Map;
|
|
193
|
+
const nameOf = (projectKey) => contributions.names?.get(projectKey) ?? projectKey;
|
|
194
|
+
for (const [key, list] of byTarget) {
|
|
195
|
+
const [first, ...rest] = list;
|
|
196
|
+
const differing = rest.filter(({ patch }) => !isSameSpecValue(patch.values, first.patch.values) || patch.type !== first.patch.type);
|
|
197
|
+
if (differing.length === 0)
|
|
198
|
+
continue;
|
|
199
|
+
const projects = [...new Set(list.map((l) => nameOf(l.projectKey)))].map((p) => `'${p}'`).join(", ");
|
|
200
|
+
const keys = [
|
|
201
|
+
...new Set(differing.flatMap(({ patch }) => Object.keys(patch.values).filter((k) => !isSameSpecValue(patch.values[k], first.patch.values[k]))))
|
|
202
|
+
];
|
|
203
|
+
conflicts.set(key, {
|
|
204
|
+
code: "contribution_conflict",
|
|
205
|
+
message: `Projects ${projects} each contribute a '${first.patch.kind}' named '${first.patch.name}' with different ${keys.length > 0 ? keys.join(", ") : "type"}. A named '${first.patch.kind}' is one resource for the whole solution, so neither definition was written.`,
|
|
206
|
+
instructions: `Give '${first.patch.name}' one definition in every project that declares it, or different names, then re-run the command.`
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
return conflicts;
|
|
210
|
+
}
|
|
211
|
+
function applyResourceType(resource, type) {
|
|
212
|
+
if (type === undefined || resource.type === type)
|
|
213
|
+
return false;
|
|
214
|
+
resource.type = type;
|
|
215
|
+
return true;
|
|
216
|
+
}
|
|
158
217
|
function applySpecValues(resource, values) {
|
|
159
218
|
const spec = { ...resource.spec ?? {} };
|
|
160
219
|
let changed = false;
|
|
@@ -186,6 +245,6 @@ function isSameSpecValue(a, b) {
|
|
|
186
245
|
return JSON.stringify(a) === JSON.stringify(b);
|
|
187
246
|
}
|
|
188
247
|
|
|
189
|
-
export {
|
|
248
|
+
export { collectProjectContributions2, assertNoContributionErrors2, contributionErrorMessages2, applyProjectContributions2 };
|
|
190
249
|
|
|
191
|
-
//# debugId=
|
|
250
|
+
//# debugId=D688C8E22C9ACFE464756E2164756E21
|
|
@@ -1,16 +1,82 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
2
|
+
getFileSystem
|
|
3
|
+
} from "./packager-tool-vgrswa8p.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
CommandDimensions,
|
|
6
|
+
ProjectDimensions,
|
|
7
|
+
projectKey,
|
|
8
|
+
projectIdentityProperties,
|
|
9
|
+
PROJECT_IDENTITY_LOOKUP_BUDGET_MS,
|
|
10
|
+
withinProjectIdentityBudget,
|
|
11
|
+
catchError,
|
|
12
|
+
isProjectTelemetryDisabled
|
|
13
|
+
} from "./packager-tool-m07vyk89.js";
|
|
7
14
|
import {
|
|
8
15
|
logger,
|
|
16
|
+
CommonTelemetryEvents,
|
|
9
17
|
telemetry
|
|
10
|
-
} from "./packager-tool-
|
|
18
|
+
} from "./packager-tool-9vrwpgt3.js";
|
|
19
|
+
import {
|
|
20
|
+
toolsFactoryRepository
|
|
21
|
+
} from "./packager-tool-a7s0gbxs.js";
|
|
22
|
+
import {
|
|
23
|
+
getLoginStatusAsync
|
|
24
|
+
} from "./packager-tool-t39pjz7n.js";
|
|
11
25
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./packager-tool-
|
|
26
|
+
createNodeSolutionPackager
|
|
27
|
+
} from "./packager-tool-9j8e5q1z.js";
|
|
28
|
+
|
|
29
|
+
// src/services/project-identity-telemetry.ts
|
|
30
|
+
function createProjectActivityObserver(commandName) {
|
|
31
|
+
if (isProjectTelemetryDisabled())
|
|
32
|
+
return;
|
|
33
|
+
const properties = new Map;
|
|
34
|
+
const finished = new Set;
|
|
35
|
+
return async (project, phase, success, solutionId) => {
|
|
36
|
+
if (project.Type !== "Api")
|
|
37
|
+
return;
|
|
38
|
+
const member = project.Id;
|
|
39
|
+
if (phase === "before") {
|
|
40
|
+
if (properties.has(member))
|
|
41
|
+
return;
|
|
42
|
+
const membership = {
|
|
43
|
+
[ProjectDimensions.SolutionProjectKey]: projectKey(member),
|
|
44
|
+
...solutionId ? {
|
|
45
|
+
[ProjectDimensions.SolutionKey]: projectKey(solutionId)
|
|
46
|
+
} : {}
|
|
47
|
+
};
|
|
48
|
+
const row = (status, id) => ({
|
|
49
|
+
...projectIdentityProperties({
|
|
50
|
+
projectType: project.Type,
|
|
51
|
+
status,
|
|
52
|
+
...id ? { id } : {}
|
|
53
|
+
}),
|
|
54
|
+
...membership
|
|
55
|
+
});
|
|
56
|
+
const factory = toolsFactoryRepository.canHandleProject(project.Type) ? toolsFactoryRepository.getProjectToolFactory(project.Type) : undefined;
|
|
57
|
+
if (!factory?.readProjectIdentityAsync || !project.ProjectPath) {
|
|
58
|
+
properties.set(member, row("unsupported"));
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
properties.set(member, row("timeout"));
|
|
62
|
+
let descriptor;
|
|
63
|
+
try {
|
|
64
|
+
descriptor = await withinProjectIdentityBudget(factory.readProjectIdentityAsync(project.ProjectPath, getFileSystem()), () => logger.debug(`project activity identity skipped: no answer within ${PROJECT_IDENTITY_LOOKUP_BUDGET_MS} ms`));
|
|
65
|
+
} catch {
|
|
66
|
+
descriptor = { status: "invalid" };
|
|
67
|
+
}
|
|
68
|
+
if (descriptor && !finished.has(member))
|
|
69
|
+
properties.set(member, row(descriptor.status, descriptor.id));
|
|
70
|
+
} else if (!finished.has(member)) {
|
|
71
|
+
finished.add(member);
|
|
72
|
+
telemetry.trackEvent(CommonTelemetryEvents.ProjectActivity, {
|
|
73
|
+
...properties.get(member),
|
|
74
|
+
[CommandDimensions.CommandName]: commandName,
|
|
75
|
+
[CommandDimensions.TerminalOutcome]: success ? "success" : "failure"
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
14
80
|
|
|
15
81
|
// src/services/solution-packager-helpers.ts
|
|
16
82
|
async function createSolutionPackager() {
|
|
@@ -104,6 +170,6 @@ async function checkSolutionPathAsync(fs, solutionPath) {
|
|
|
104
170
|
return { ok: true, absoluteSolutionPath, isUisFile, stats };
|
|
105
171
|
}
|
|
106
172
|
|
|
107
|
-
export { createSolutionPackager, readSolutionFileAsUint8Array, resolveSdkLogLevel, applyAuthConnection, SOLUTION_PATH_INSTRUCTIONS, checkSolutionPathAsync };
|
|
173
|
+
export { createProjectActivityObserver, createSolutionPackager, readSolutionFileAsUint8Array, resolveSdkLogLevel, applyAuthConnection, SOLUTION_PATH_INSTRUCTIONS, checkSolutionPathAsync };
|
|
108
174
|
|
|
109
|
-
//# debugId=
|
|
175
|
+
//# debugId=ACC079943269204C64756E2164756E21
|
package/dist/packager-tool.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
4
|
-
import"./packager-tool-
|
|
5
|
-
import"./packager-tool-
|
|
6
|
-
import"./packager-tool-1de529jm.js";
|
|
2
|
+
registerPackagerFactories2
|
|
3
|
+
} from "./packager-tool-ca5ngmqv.js";
|
|
4
|
+
import"./packager-tool-a7s0gbxs.js";
|
|
5
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
7
6
|
export {
|
|
8
|
-
registerPackagerFactories
|
|
7
|
+
registerPackagerFactories2 as registerPackagerFactories
|
|
9
8
|
};
|
|
10
9
|
|
|
11
|
-
//# debugId=
|
|
10
|
+
//# debugId=33C93F0AD7E5F0BC64756E2164756E21
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
projectSubTypesFrom2,
|
|
3
|
+
projectBindingsFrom2,
|
|
4
|
+
prepareSolutionResources2
|
|
5
|
+
} from "./packager-tool-qf8753ee.js";
|
|
6
|
+
import"./packager-tool-yetmzme9.js";
|
|
7
|
+
import"./packager-tool-wm8nj6e9.js";
|
|
8
|
+
import"./packager-tool-qzcd5c9s.js";
|
|
9
|
+
import"./packager-tool-ca5ngmqv.js";
|
|
10
|
+
import"./packager-tool-d1texmvn.js";
|
|
11
|
+
import"./packager-tool-a7s0gbxs.js";
|
|
12
|
+
import"./packager-tool-fp46ebde.js";
|
|
13
|
+
import"./packager-tool-ppj5f4y7.js";
|
|
14
|
+
import"./packager-tool-c64hqa8n.js";
|
|
15
|
+
import"./packager-tool-t39pjz7n.js";
|
|
16
|
+
import"./packager-tool-9vrwpgt3.js";
|
|
17
|
+
import"./packager-tool-m07vyk89.js";
|
|
18
|
+
import"./packager-tool-vgrswa8p.js";
|
|
19
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
20
|
+
export {
|
|
21
|
+
prepareSolutionResources2 as prepareSolutionResources,
|
|
22
|
+
projectBindingsFrom2 as projectBindingsFrom,
|
|
23
|
+
projectSubTypesFrom2 as projectSubTypesFrom
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
//# debugId=2E02F1519E66639C64756E2164756E21
|
|
@@ -1,28 +1,25 @@
|
|
|
1
|
+
import"./packager-tool-vgrswa8p.js";
|
|
2
|
+
import"./packager-tool-m07vyk89.js";
|
|
1
3
|
import {
|
|
2
|
-
toolVerbForProjectType
|
|
3
|
-
} from "./packager-tool-60af1hw2.js";
|
|
4
|
-
import {
|
|
5
|
-
hasAnyTemplateRow,
|
|
6
|
-
hasBareTemplateRow,
|
|
7
|
-
isMissingProjectTypeError
|
|
8
|
-
} from "./packager-tool-6kz1pv9f.js";
|
|
9
|
-
import"./packager-tool-gdtpsdn7.js";
|
|
10
|
-
import"./packager-tool-53w8skv5.js";
|
|
11
|
-
import"./packager-tool-pbmqk39a.js";
|
|
12
|
-
import"./packager-tool-61pwb567.js";
|
|
13
|
-
import"./packager-tool-8ptbmmmp.js";
|
|
14
|
-
import"./packager-tool-5edvzz80.js";
|
|
15
|
-
import"./packager-tool-43ahv5mn.js";
|
|
16
|
-
import {
|
|
17
|
-
OutputFormatter,
|
|
18
4
|
RESULTS,
|
|
5
|
+
OutputFormatter,
|
|
19
6
|
processContext,
|
|
20
7
|
unsupportedSolutionProjectType
|
|
21
|
-
} from "./packager-tool-
|
|
22
|
-
import"./packager-tool-
|
|
23
|
-
import"./packager-tool-
|
|
24
|
-
import
|
|
25
|
-
|
|
8
|
+
} from "./packager-tool-9vrwpgt3.js";
|
|
9
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
10
|
+
import"./packager-tool-a7s0gbxs.js";
|
|
11
|
+
import {
|
|
12
|
+
isMissingProjectTypeError2,
|
|
13
|
+
hasBareTemplateRow2,
|
|
14
|
+
hasAnyTemplateRow2
|
|
15
|
+
} from "./packager-tool-d1texmvn.js";
|
|
16
|
+
import"./packager-tool-t39pjz7n.js";
|
|
17
|
+
import"./packager-tool-fp46ebde.js";
|
|
18
|
+
import"./packager-tool-ppj5f4y7.js";
|
|
19
|
+
import {
|
|
20
|
+
toolVerbForProjectType2
|
|
21
|
+
} from "./packager-tool-qzcd5c9s.js";
|
|
22
|
+
import"./packager-tool-c64hqa8n.js";
|
|
26
23
|
|
|
27
24
|
// src/commands/project-command-utils.ts
|
|
28
25
|
async function resolveSolutionSearchStart(fs, resolvedPath) {
|
|
@@ -61,19 +58,19 @@ function rejectUnsupportedProjectType(projectType, failureMessage) {
|
|
|
61
58
|
return true;
|
|
62
59
|
}
|
|
63
60
|
function projectManifestInstructions(fileName, readProjectError, verb) {
|
|
64
|
-
if (fileName !== "uipath.json" || !
|
|
61
|
+
if (fileName !== "uipath.json" || !isMissingProjectTypeError2(readProjectError)) {
|
|
65
62
|
return readProjectError.message;
|
|
66
63
|
}
|
|
67
64
|
return `${readProjectError.message} If this is a coded app, scaffold it with 'uip codedapp init <project-path>' — that writes the project.uiproj this command registers — then run 'uip solution projects ${verb} <project-path>' again.`;
|
|
68
65
|
}
|
|
69
66
|
function resourcesPendingForProjectType(projectType) {
|
|
70
|
-
return !
|
|
67
|
+
return !hasBareTemplateRow2(projectType) && hasAnyTemplateRow2(projectType);
|
|
71
68
|
}
|
|
72
69
|
function hostGeneratesResources(projectType) {
|
|
73
|
-
return
|
|
70
|
+
return hasBareTemplateRow2(projectType);
|
|
74
71
|
}
|
|
75
72
|
function resourcesPendingWarning(projectType) {
|
|
76
|
-
const verb =
|
|
73
|
+
const verb = toolVerbForProjectType2(projectType);
|
|
77
74
|
const needs = verb ? `that needs the '${verb}' tool installed ('uip tools install ${verb}')` : "that needs the tool that owns this project type installed";
|
|
78
75
|
return `No solution resources were generated for this project yet. Run 'uip solution resources refresh' to create them — ${needs}. 'uip solution pack' and 'uip solution upload' do it too.`;
|
|
79
76
|
}
|
|
@@ -87,4 +84,4 @@ export {
|
|
|
87
84
|
resourcesPendingWarning
|
|
88
85
|
};
|
|
89
86
|
|
|
90
|
-
//# debugId=
|
|
87
|
+
//# debugId=155D742EA0DA694264756E2164756E21
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
collectProjectContributions2,
|
|
3
|
+
assertNoContributionErrors2,
|
|
4
|
+
contributionErrorMessages2,
|
|
5
|
+
applyProjectContributions2
|
|
6
|
+
} from "./packager-tool-yetmzme9.js";
|
|
7
|
+
import"./packager-tool-wm8nj6e9.js";
|
|
8
|
+
import"./packager-tool-qzcd5c9s.js";
|
|
9
|
+
import"./packager-tool-ca5ngmqv.js";
|
|
10
|
+
import"./packager-tool-d1texmvn.js";
|
|
11
|
+
import"./packager-tool-a7s0gbxs.js";
|
|
12
|
+
import"./packager-tool-fp46ebde.js";
|
|
13
|
+
import"./packager-tool-ppj5f4y7.js";
|
|
14
|
+
import"./packager-tool-c64hqa8n.js";
|
|
15
|
+
import"./packager-tool-t39pjz7n.js";
|
|
16
|
+
import"./packager-tool-9vrwpgt3.js";
|
|
17
|
+
import"./packager-tool-m07vyk89.js";
|
|
18
|
+
import"./packager-tool-vgrswa8p.js";
|
|
19
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
20
|
+
export {
|
|
21
|
+
applyProjectContributions2 as applyProjectContributions,
|
|
22
|
+
assertNoContributionErrors2 as assertNoContributionErrors,
|
|
23
|
+
collectProjectContributions2 as collectProjectContributions,
|
|
24
|
+
contributionErrorMessages2 as contributionErrorMessages
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
//# debugId=461D8276A83DF88B64756E2164756E21
|
package/dist/publish.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
+
import"./packager-tool-vgrswa8p.js";
|
|
2
|
+
import"./packager-tool-m07vyk89.js";
|
|
3
|
+
import"./packager-tool-9vrwpgt3.js";
|
|
4
|
+
import"./packager-tool-bs1jn1yn.js";
|
|
5
|
+
import"./packager-tool-t39pjz7n.js";
|
|
6
|
+
import"./packager-tool-ppj5f4y7.js";
|
|
7
|
+
import"./packager-tool-a6va4gc5.js";
|
|
8
|
+
import"./packager-tool-fp46ebde.js";
|
|
9
|
+
import"./packager-tool-vrtabg73.js";
|
|
10
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
11
|
+
import"./packager-tool-fqs6hdcy.js";
|
|
12
|
+
import"./packager-tool-f84z7nds.js";
|
|
1
13
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
4
|
-
import"./packager-tool-
|
|
5
|
-
import"./packager-tool-97rcgwvv.js";
|
|
6
|
-
import"./packager-tool-sxjehksx.js";
|
|
7
|
-
import"./packager-tool-qw47eyw7.js";
|
|
8
|
-
import"./packager-tool-61pwb567.js";
|
|
9
|
-
import"./packager-tool-8ptbmmmp.js";
|
|
10
|
-
import"./packager-tool-5edvzz80.js";
|
|
11
|
-
import"./packager-tool-43ahv5mn.js";
|
|
12
|
-
import"./packager-tool-tx834spe.js";
|
|
13
|
-
import"./packager-tool-6ybywxxn.js";
|
|
14
|
-
import"./packager-tool-v1f5e8t9.js";
|
|
15
|
-
import"./packager-tool-dfrk01gn.js";
|
|
16
|
-
import"./packager-tool-1de529jm.js";
|
|
14
|
+
publishSolutionAsync2
|
|
15
|
+
} from "./packager-tool-vx39dhvn.js";
|
|
16
|
+
import"./packager-tool-c64hqa8n.js";
|
|
17
17
|
export {
|
|
18
|
-
publishSolutionAsync
|
|
18
|
+
publishSolutionAsync2 as publishSolutionAsync
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
//# debugId=
|
|
21
|
+
//# debugId=4219FE579399CF1D64756E2164756E21
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import"./packager-tool-vgrswa8p.js";
|
|
2
|
+
import"./packager-tool-m07vyk89.js";
|
|
3
|
+
import"./packager-tool-9vrwpgt3.js";
|
|
4
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
5
|
+
import"./packager-tool-a7s0gbxs.js";
|
|
6
|
+
import {
|
|
7
|
+
formatResourceSubtypes2,
|
|
8
|
+
sameResourceSubtype2,
|
|
9
|
+
findResourceByKeyInRcs2,
|
|
10
|
+
searchRcsResources2,
|
|
11
|
+
resolveResourceKindMetadata2,
|
|
12
|
+
createLocalResource2
|
|
13
|
+
} from "./packager-tool-d1texmvn.js";
|
|
14
|
+
import"./packager-tool-t39pjz7n.js";
|
|
15
|
+
import"./packager-tool-fp46ebde.js";
|
|
16
|
+
import"./packager-tool-ppj5f4y7.js";
|
|
17
|
+
import"./packager-tool-c64hqa8n.js";
|
|
18
|
+
export {
|
|
19
|
+
createLocalResource2 as createLocalResource,
|
|
20
|
+
findResourceByKeyInRcs2 as findResourceByKeyInRcs,
|
|
21
|
+
formatResourceSubtypes2 as formatResourceSubtypes,
|
|
22
|
+
resolveResourceKindMetadata2 as resolveResourceKindMetadata,
|
|
23
|
+
sameResourceSubtype2 as sameResourceSubtype,
|
|
24
|
+
searchRcsResources2 as searchRcsResources
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
//# debugId=D4588076343E9BCE64756E2164756E21
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
+
import"./packager-tool-vgrswa8p.js";
|
|
1
2
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
getRemoteResourceClients,
|
|
5
|
-
readSpecProperty
|
|
6
|
-
} from "./packager-tool-6kz1pv9f.js";
|
|
7
|
-
import"./packager-tool-gdtpsdn7.js";
|
|
8
|
-
import"./packager-tool-53w8skv5.js";
|
|
9
|
-
import"./packager-tool-pbmqk39a.js";
|
|
10
|
-
import"./packager-tool-61pwb567.js";
|
|
11
|
-
import"./packager-tool-8ptbmmmp.js";
|
|
12
|
-
import"./packager-tool-5edvzz80.js";
|
|
13
|
-
import"./packager-tool-43ahv5mn.js";
|
|
3
|
+
catchError
|
|
4
|
+
} from "./packager-tool-m07vyk89.js";
|
|
14
5
|
import {
|
|
15
6
|
logger
|
|
16
|
-
} from "./packager-tool-
|
|
7
|
+
} from "./packager-tool-9vrwpgt3.js";
|
|
8
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
9
|
+
import"./packager-tool-a7s0gbxs.js";
|
|
17
10
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
getRemoteResourceClients2,
|
|
12
|
+
exportResourceDefinitionAsync2,
|
|
13
|
+
readSpecProperty2,
|
|
14
|
+
createResourceKindMetadataResolver2
|
|
15
|
+
} from "./packager-tool-d1texmvn.js";
|
|
16
|
+
import"./packager-tool-t39pjz7n.js";
|
|
17
|
+
import"./packager-tool-fp46ebde.js";
|
|
18
|
+
import"./packager-tool-ppj5f4y7.js";
|
|
19
|
+
import"./packager-tool-c64hqa8n.js";
|
|
23
20
|
|
|
24
21
|
// src/services/resource-version-lookup.ts
|
|
25
22
|
var VERSION_PROPERTY = "version";
|
|
@@ -29,7 +26,7 @@ async function resolveResourceVersionsAsync(services, builder, targets) {
|
|
|
29
26
|
if (targets.length === 0) {
|
|
30
27
|
return versions;
|
|
31
28
|
}
|
|
32
|
-
const resolveKind = await
|
|
29
|
+
const resolveKind = await createResourceKindMetadataResolver2(services);
|
|
33
30
|
const versioned = [];
|
|
34
31
|
for (const target of targets) {
|
|
35
32
|
const metadata = await resolveKind(target.kind, target.type);
|
|
@@ -40,7 +37,7 @@ async function resolveResourceVersionsAsync(services, builder, targets) {
|
|
|
40
37
|
if (versioned.length === 0) {
|
|
41
38
|
return versions;
|
|
42
39
|
}
|
|
43
|
-
const { importer } =
|
|
40
|
+
const { importer } = getRemoteResourceClients2(services);
|
|
44
41
|
for (let i = 0;i < versioned.length; i += LOOKUP_CONCURRENCY) {
|
|
45
42
|
const batch = versioned.slice(i, i + LOOKUP_CONCURRENCY);
|
|
46
43
|
const resolved = await Promise.all(batch.map((target) => target.source === "Local" ? readLocalVersionAsync(builder, target) : readRemoteVersionAsync(importer, target)));
|
|
@@ -71,7 +68,7 @@ async function readRemoteVersionAsync(importer, target) {
|
|
|
71
68
|
folderKey: target.folderKey
|
|
72
69
|
} : undefined
|
|
73
70
|
};
|
|
74
|
-
const [error, primary] = await catchError(
|
|
71
|
+
const [error, primary] = await catchError(exportResourceDefinitionAsync2(importer, reference));
|
|
75
72
|
if (error) {
|
|
76
73
|
warnLookupFailed(target, error);
|
|
77
74
|
return [target.id, undefined];
|
|
@@ -83,7 +80,7 @@ async function readRemoteVersionAsync(importer, target) {
|
|
|
83
80
|
return [target.id, readVersion(primary.spec)];
|
|
84
81
|
}
|
|
85
82
|
function readVersion(spec) {
|
|
86
|
-
const value =
|
|
83
|
+
const value = readSpecProperty2(spec, VERSION_PROPERTY);
|
|
87
84
|
if (value === undefined || value === null || value === "") {
|
|
88
85
|
return;
|
|
89
86
|
}
|
|
@@ -96,4 +93,4 @@ export {
|
|
|
96
93
|
resolveResourceVersionsAsync
|
|
97
94
|
};
|
|
98
95
|
|
|
99
|
-
//# debugId=
|
|
96
|
+
//# debugId=7A8F177A8215683E64756E2164756E21
|