@foss.global/gitmanager 2.8.0 → 2.10.0

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.
@@ -12,6 +12,7 @@ const gitManagerErrorCodes: ReadonlySet<string> = new Set<TGitManagerErrorCode>(
12
12
  'remoteLimitExceeded',
13
13
  'transferAborted',
14
14
  'repositoryBusy',
15
+ 'lfsScanLimitExceeded',
15
16
  ]);
16
17
 
17
18
  export const isGitManagerErrorCode = (valueArg: unknown): valueArg is TGitManagerErrorCode =>
package/ts/models.ts CHANGED
@@ -177,6 +177,9 @@ export interface IGitManagerArchiveInspection {
177
177
  * remote; read its refs again.
178
178
  * - `repositoryBusy`: a mirror transfer holds the repository, or a write to
179
179
  * it is in progress when a mirror transfer starts; nothing was changed.
180
+ * - `lfsScanLimitExceeded`: the Git LFS pointer scan of
181
+ * `listRepositoryLfsPointers()` exceeded one of its bounds; the message
182
+ * names the bound. The pointer set is unknown, never empty.
180
183
  */
181
184
  export type TGitManagerErrorCode =
182
185
  | 'invalidObjectId'
@@ -189,7 +192,8 @@ export type TGitManagerErrorCode =
189
192
  | 'atomicPushUnsupported'
190
193
  | 'remoteLimitExceeded'
191
194
  | 'transferAborted'
192
- | 'repositoryBusy';
195
+ | 'repositoryBusy'
196
+ | 'lfsScanLimitExceeded';
193
197
 
194
198
  export interface IGitManagerRepositoryLfsPointer {
195
199
  oid: string;
@@ -450,7 +450,7 @@ export class RustGitManagerBridge extends plugins.EventEmitter {
450
450
  public async listRepositoryLfsPointers(
451
451
  requestArg: IGitManagerRepositorySelector,
452
452
  ): Promise<IGitManagerRepositoryLfsPointer[]> {
453
- return this.bridge.sendCommand('listRepositoryLfsPointers', requestArg);
453
+ return this.bridge.sendCommand('listRepositoryLfsPointers', requestArg).catch(rethrowCodedError);
454
454
  }
455
455
 
456
456
  public async mergeRepository(
@@ -1,3 +0,0 @@
1
- This project is dual-licensed under the Unlicense and MIT licenses.
2
-
3
- You may use this code under the terms of either license.
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 Andrew Gallant
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,24 +0,0 @@
1
- This is free and unencumbered software released into the public domain.
2
-
3
- Anyone is free to copy, modify, publish, use, compile, sell, or
4
- distribute this software, either in source code form or as a compiled
5
- binary, for any purpose, commercial or non-commercial, and by any
6
- means.
7
-
8
- In jurisdictions that recognize copyright laws, the author or authors
9
- of this software dedicate any and all copyright interest in the
10
- software to the public domain. We make this dedication for the benefit
11
- of the public at large and to the detriment of our heirs and
12
- successors. We intend this dedication to be an overt act of
13
- relinquishment in perpetuity of all present and future rights to this
14
- software under copyright law.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
- IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
- OTHER DEALINGS IN THE SOFTWARE.
23
-
24
- For more information, please refer to <http://unlicense.org/>