@magnolia/cli-jumpstart-plugin 1.1.3 → 1.1.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/CHANGELOG.md +3 -0
- package/dist/lib/download.js +1 -7
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/lib/download.js
CHANGED
|
@@ -267,7 +267,6 @@ export const getDownloadUrl = (bundle, credentials, options, authProfiles) => __
|
|
|
267
267
|
var _a, _b, _c;
|
|
268
268
|
try {
|
|
269
269
|
const { item, modifiedBundle } = yield fetchMavenArtifact(bundle, options, credentials, true, authProfiles);
|
|
270
|
-
const params = new URLSearchParams(bundle.url.split('?')[1]);
|
|
271
270
|
bundle.version = modifiedBundle.version;
|
|
272
271
|
if (!item) {
|
|
273
272
|
throw new Error(i18nInstance.t('error-no-artifact-available', {
|
|
@@ -278,12 +277,7 @@ export const getDownloadUrl = (bundle, credentials, options, authProfiles) => __
|
|
|
278
277
|
if (isMagnoliaBundle(bundle) && ((_c = item === null || item === void 0 ? void 0 : item.maven2) === null || _c === void 0 ? void 0 : _c.version)) {
|
|
279
278
|
discoveredMagnoliaVersion = item.maven2.version;
|
|
280
279
|
}
|
|
281
|
-
|
|
282
|
-
downloadUrl = downloadUrl === null || downloadUrl === void 0 ? void 0 : downloadUrl.split('/magnolia.');
|
|
283
|
-
downloadUrl =
|
|
284
|
-
downloadUrl &&
|
|
285
|
-
`${downloadUrl[0]}/${params.get('repository')}${item.path}`;
|
|
286
|
-
return downloadUrl;
|
|
280
|
+
return item.downloadUrl;
|
|
287
281
|
}
|
|
288
282
|
catch (error) {
|
|
289
283
|
if (error.code === 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY') {
|
package/dist/package.json
CHANGED
package/package.json
CHANGED