@minnovate/shadow-publisher 0.11.3 → 0.11.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "git-publisher",
3
3
  "displayName": "Git Publisher",
4
- "version": "0.11.3",
4
+ "version": "0.11.4",
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"]
@@ -6713,10 +6713,47 @@ function replacedLine(t) {
6713
6713
  }
6714
6714
 
6715
6715
  // src/exit-code.ts
6716
+ var EXIT_CODE = {
6717
+ UNAUTHORIZED: 4,
6718
+ FORBIDDEN: 4,
6719
+ ADMIN_REQUIRED: 4,
6720
+ OUTCOME_UNKNOWN: 3,
6721
+ NETWORK: 3,
6722
+ UNAVAILABLE: 3,
6723
+ INVALID_REQUEST: 1,
6724
+ UNSUPPORTED_PROTOCOL_VERSION: 1,
6725
+ UNSUPPORTED_SCHEMA_VERSION: 1,
6726
+ NOT_FOUND: 1,
6727
+ METHOD_NOT_ALLOWED: 1,
6728
+ REF_FORBIDDEN: 1,
6729
+ ORGANISATION_REQUIRED: 1,
6730
+ APPLICATION_REQUIRED: 1,
6731
+ REPOSITORY_NOT_FOUND: 1,
6732
+ REPOSITORY_CONFLICT: 1,
6733
+ REPOSITORY_ARCHIVED: 1,
6734
+ ACCESS_CONFLICT: 1,
6735
+ PUBLICATION_NOT_FOUND: 1,
6736
+ PUBLICATION_CONFLICT: 1,
6737
+ PUBLICATION_EXPIRED: 1,
6738
+ UPLOAD_MISSING: 1,
6739
+ LIMIT_EXCEEDED: 1,
6740
+ STALE_GENERATION: 1,
6741
+ NON_FAST_FORWARD: 1,
6742
+ EXPECTED_OLD_MISMATCH: 1,
6743
+ INVALID_REF_NAME: 1,
6744
+ REF_CONFLICT: 1,
6745
+ PACK_INVALID: 1,
6746
+ MISSING_OBJECTS: 1,
6747
+ UPLOAD_MISMATCH: 1,
6748
+ INVALID_TARGET: 1,
6749
+ EXPIRED: 1,
6750
+ INTERNAL: 1,
6751
+ CANCELLED: 1,
6752
+ LOCAL_STATE: 1,
6753
+ GIT: 1
6754
+ };
6716
6755
  function exitCodeFor(code) {
6717
- if (code === "UNAUTHORIZED" || code === "FORBIDDEN" || code === "ADMIN_REQUIRED") return 4;
6718
- if (code === "OUTCOME_UNKNOWN" || code === "NETWORK" || code === "UNAVAILABLE") return 3;
6719
- return 1;
6756
+ return EXIT_CODE[code];
6720
6757
  }
6721
6758
 
6722
6759
  // src/main.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minnovate/shadow-publisher",
3
- "version": "0.11.3",
3
+ "version": "0.11.4",
4
4
  "description": "publisher: publish an app's Git history to the serverless Git backend",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",