@mearl/preset 3.0.12 → 3.1.1
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/profileSource.js +2 -2
- package/package.json +1 -1
package/dist/profileSource.js
CHANGED
|
@@ -17,10 +17,10 @@ export function parseProfileSource(input) {
|
|
|
17
17
|
url = new URL(input);
|
|
18
18
|
}
|
|
19
19
|
catch {
|
|
20
|
-
throw new BundleError('BUNDLE_INVALID', 'Use a GitHub owner/repo or an HTTPS
|
|
20
|
+
throw new BundleError('BUNDLE_INVALID', 'Use a GitHub owner/repo or an HTTPS Profile manifest URL');
|
|
21
21
|
}
|
|
22
22
|
if (url.protocol !== 'https:' || url.username || url.password || url.hash) {
|
|
23
|
-
throw new BundleError('BUNDLE_INVALID', '
|
|
23
|
+
throw new BundleError('BUNDLE_INVALID', 'Profile URLs require HTTPS without credentials or a fragment');
|
|
24
24
|
}
|
|
25
25
|
return { origin: url.origin, url: url.href };
|
|
26
26
|
}
|