clavarium 0.2.35-next.1 → 0.2.35-next.2
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/deploy/updater.mjs +4 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/deploy/updater.mjs
CHANGED
|
@@ -468,9 +468,11 @@ export class Updater {
|
|
|
468
468
|
const repository = statement.predicate?.buildDefinition?.externalParameters?.workflow?.repository;
|
|
469
469
|
if (repository !== REPOS[name]) throw new Error(`${name}@${version} was built from ${repository ?? 'an unknown place'}, not ${REPOS[name]}`);
|
|
470
470
|
/* And from the branch its kind of version comes from (publish.yml): a version for everybody
|
|
471
|
-
from main only;
|
|
471
|
+
from main only; a -beta.N from beta; any other version to try from next (or main). */
|
|
472
472
|
const ref = statement.predicate?.buildDefinition?.externalParameters?.workflow?.ref;
|
|
473
|
-
const branches = version
|
|
473
|
+
const branches = /-beta\.\d/.test(version) ? ['refs/heads/beta', 'refs/heads/main']
|
|
474
|
+
: version.includes('-') ? ['refs/heads/next', 'refs/heads/main']
|
|
475
|
+
: ['refs/heads/main'];
|
|
474
476
|
if (!branches.includes(ref)) throw new Error(`${name}@${version} was built from ${ref ?? 'an unknown branch'}: a version ${version.includes('-') ? 'to try' : 'for everybody'} comes from ${branches.join(' or ')}`);
|
|
475
477
|
}
|
|
476
478
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.35-next.
|
|
3
|
+
"version": "0.2.35-next.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.35-next.
|
|
9
|
+
"version": "0.2.35-next.2",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|