@minnovate/shadow-publisher 0.8.0 → 0.8.3
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "git-publisher",
|
|
3
3
|
"displayName": "Git Publisher",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.3",
|
|
5
5
|
"description": "Publish an app folder's Git history to the serverless Git publishing backend and keep it updated (\"publish my app\", \"update my app\", \"fetch the engineered version\").",
|
|
6
6
|
"author": { "name": "git-publisher project" },
|
|
7
7
|
"keywords": ["git", "publish", "deploy", "serverless"]
|
package/dist/publisher.cjs
CHANGED
|
@@ -2672,6 +2672,11 @@ var OwnerMarker = object({
|
|
|
2672
2672
|
repoId: RepoId,
|
|
2673
2673
|
createdAt: IsoDate
|
|
2674
2674
|
});
|
|
2675
|
+
var RepositoryOrganisation = object({
|
|
2676
|
+
schemaVersion: SchemaVersion,
|
|
2677
|
+
repoId: RepoId,
|
|
2678
|
+
org: OrgId
|
|
2679
|
+
});
|
|
2675
2680
|
var MetaRecord = object({
|
|
2676
2681
|
schemaVersion: SchemaVersion,
|
|
2677
2682
|
repoId: RepoId,
|
|
@@ -2830,13 +2835,9 @@ var CapabilitiesResponse = object({
|
|
|
2830
2835
|
storageSchemaVersion: int(),
|
|
2831
2836
|
server: object({ name: string2(), version: string2(), git: string2() }),
|
|
2832
2837
|
/**
|
|
2833
|
-
* Either may be EMPTY, and the schema says so because the server can send it
|
|
2834
|
-
*
|
|
2835
|
-
* `url()`
|
|
2836
|
-
* deliberately empty when a deployment cannot determine its own public address — a client
|
|
2837
|
-
* reads that as "it did not say", which is the answer, and is why it must parse rather than
|
|
2838
|
-
* fail. Whoever publishes a value states its type; a schema that refuses what the producer
|
|
2839
|
-
* emits is a mismatch waiting to be found by a consumer.
|
|
2838
|
+
* Either may be EMPTY, and the schema says so because the server can send it: `control` is empty
|
|
2839
|
+
* when a deployment cannot determine its own public address, which a client reads as "it did not
|
|
2840
|
+
* say", so it must parse rather than fail. `url()` was rejected for that reason (#40).
|
|
2840
2841
|
*/
|
|
2841
2842
|
endpoints: object({
|
|
2842
2843
|
control: string2(),
|
|
@@ -2946,6 +2947,7 @@ var BundleBootstrapResponse = object({
|
|
|
2946
2947
|
// ../protocol/src/keys.ts
|
|
2947
2948
|
var PENDING_KEY_RE = new RegExp(`^pending/(${REPO_ID_RE.source.slice(1, -1)})/(${PUBLICATION_ID_RE.source.slice(1, -1)})$`);
|
|
2948
2949
|
var OWNER_KEY_RE = new RegExp(`^owners/(${PRINCIPAL_ID_RE.source.slice(1, -1)})/(${REPO_ID_RE.source.slice(1, -1)})$`);
|
|
2950
|
+
var REPOSITORY_ORGANISATION_KEY_RE = new RegExp(`^repository-organisations/(${REPO_ID_RE.source.slice(1, -1)})\\.json$`);
|
|
2949
2951
|
|
|
2950
2952
|
// ../protocol/src/index.ts
|
|
2951
2953
|
var MAX_WAIT_SECONDS = 5;
|
|
@@ -5551,11 +5553,6 @@ var Publisher = class {
|
|
|
5551
5553
|
fetch: this.fetchImpl
|
|
5552
5554
|
});
|
|
5553
5555
|
}
|
|
5554
|
-
/**
|
|
5555
|
-
* The question the repository's current preparation waits on, and its answer, at the portal that
|
|
5556
|
-
* serves this endpoint — with this publisher's credential and its one refresh, as `followRun`.
|
|
5557
|
-
* The caller confirms the portal's `/config` lists `PREPARATION` first.
|
|
5558
|
-
*/
|
|
5559
5556
|
/**
|
|
5560
5557
|
* A new application and its repository, made by the portal that serves this endpoint — the only
|
|
5561
5558
|
* way a repository is created on a deployed stage (ADR-0016 A1). The caller confirms the portal's
|
|
@@ -5564,6 +5561,11 @@ var Publisher = class {
|
|
|
5564
5561
|
async createApplication(input) {
|
|
5565
5562
|
return createApplication(input, this.portalCall());
|
|
5566
5563
|
}
|
|
5564
|
+
/**
|
|
5565
|
+
* The question the repository's current preparation waits on, and its answer, at the portal that
|
|
5566
|
+
* serves this endpoint — with this publisher's credential and its one refresh, as `followRun`.
|
|
5567
|
+
* The caller confirms the portal's `/config` lists `PREPARATION` first.
|
|
5568
|
+
*/
|
|
5567
5569
|
async readPreparation(input) {
|
|
5568
5570
|
return readPreparation(input, this.portalCall());
|
|
5569
5571
|
}
|
|
@@ -6553,8 +6555,8 @@ Waiting (it expires in ${Math.round(expiresInSeconds / 60)} minutes)...
|
|
|
6553
6555
|
}
|
|
6554
6556
|
/**
|
|
6555
6557
|
* The creator's one verb: record the folder's changes, bring in what the service has, publish.
|
|
6556
|
-
* `--apply` is
|
|
6557
|
-
*
|
|
6558
|
+
* `--apply` is still accepted, so a `sync --apply` written down anywhere does the whole round
|
|
6559
|
+
* trip rather than failing.
|
|
6558
6560
|
*/
|
|
6559
6561
|
case "sync": {
|
|
6560
6562
|
const dir = dirArg(1);
|