@minnovate/shadow-publisher 0.12.2 → 0.12.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.12.2",
4
+ "version": "0.12.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"]
@@ -3094,29 +3094,28 @@ var RepositoryFilesResponse = object({
3094
3094
  tooLarge: boolean2()
3095
3095
  });
3096
3096
  var FileShown = _enum(["text", "binary", "too-large"]);
3097
+ var ListedEntry = object({
3098
+ path: FilePath,
3099
+ /** bytes; null for a submodule */
3100
+ bytes: nullable(int()),
3101
+ kind: _enum(["file", "symlink", "submodule"]),
3102
+ /** null for a symlink or a submodule */
3103
+ shown: nullable(FileShown)
3104
+ });
3105
+ var FileListing = object({ commit: nullable(Oid), entries: array(ListedEntry) });
3097
3106
  var RepositoryFileListResponse = object({
3098
3107
  commit: nullable(Oid),
3099
- entries: array(
3100
- object({
3101
- path: FilePath,
3102
- /** bytes; null for a submodule */
3103
- bytes: nullable(int()),
3104
- kind: _enum(["file", "symlink", "submodule"]),
3105
- /** null for a symlink or a submodule */
3106
- shown: nullable(FileShown)
3107
- })
3108
- )
3108
+ entries: array(extend2(ListedEntry, { url: nullable(string2()) })),
3109
+ linksExpireAt: nullable(string2())
3109
3110
  });
3110
- var RepositoryFileResponse = object({ path: FilePath, bytes: int(), shown: FileShown, text: nullable(string2()) });
3111
3111
  var FileReadJob = object({
3112
3112
  repoId: RepoId,
3113
3113
  at: nullable(Oid),
3114
- read: union([object({ kind: literal("files") }), object({ kind: literal("list") }), object({ kind: literal("file"), path: FilePath })])
3114
+ read: union([object({ kind: literal("files") }), object({ kind: literal("list") })])
3115
3115
  });
3116
3116
  var FileReadResult = union([
3117
3117
  object({ kind: literal("files"), answer: RepositoryFilesResponse }),
3118
- object({ kind: literal("list"), answer: RepositoryFileListResponse }),
3119
- object({ kind: literal("file"), answer: RepositoryFileResponse }),
3118
+ object({ kind: literal("list"), answer: FileListing }),
3120
3119
  object({ kind: literal("refused"), code: _enum(ERROR_CODES), message: string2() })
3121
3120
  ]);
3122
3121
  var DownloadDescriptor = object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minnovate/shadow-publisher",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
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",