@dolthub/proto-resource-utils 0.1.0 → 0.1.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/dist/index.d.ts CHANGED
@@ -60,6 +60,8 @@ declare function comparatorsToSorters<T extends NamedResource$3>(cmps: Comparato
60
60
  declare function displayName<O extends NamedObjectable<NamedResource$3>>(r: O | NamedResource$3): string;
61
61
 
62
62
  declare function doNameValidation<T>(resourceName: string, resourceTypeName: string, converter: ResourceNameConverter<T>, o?: Partial<FromResourceOptions>): void;
63
+ declare class ResourceNameValidationError extends Error {
64
+ }
63
65
 
64
66
  declare function doParamValidation(obj: {
65
67
  [paramName: string]: string;
@@ -90,4 +92,7 @@ declare namespace validResourceSegmentPattern_d {
90
92
  export { validResourceSegmentPattern_d_validBackupIdPattern as validBackupIdPattern, validResourceSegmentPattern_d_validBranchNamePattern as validBranchNamePattern, validResourceSegmentPattern_d_validClientCredentialIdPattern as validClientCredentialIdPattern, validResourceSegmentPattern_d_validEmailOrResourcePattern as validEmailOrResourcePattern, validResourceSegmentPattern_d_validEmailPattern as validEmailPattern, validResourceSegmentPattern_d_validLongResourcePattern as validLongResourcePattern, validResourceSegmentPattern_d_validNumberPattern as validNumberPattern, validResourceSegmentPattern_d_validResourceSegmentPattern as validResourceSegmentPattern, validResourceSegmentPattern_d_validUuidPattern as validUuidPattern };
91
93
  }
92
94
 
93
- export { type Comparators, type NamedResource$3 as NamedResource, type ResourceNameConverter, ResourceParamValidationError, type ResourceUtils, type Sorter, type Sorters, type ToResourceOptions, byHash, byName, byResourceName, comparatorsToSorters, displayName, doNameValidation, doParamValidation, validResourceSegmentPattern_d as validResourceSegmentPattern };
95
+ declare const validBranchNames: string[];
96
+ declare const invalidBranchNames: string[];
97
+
98
+ export { type Comparators, type NamedResource$3 as NamedResource, type ResourceNameConverter, ResourceNameValidationError, ResourceParamValidationError, type ResourceUtils, type Sorter, type Sorters, type ToResourceOptions, byHash, byName, byResourceName, comparatorsToSorters, displayName, doNameValidation, doParamValidation, invalidBranchNames, validBranchNames, validResourceSegmentPattern_d as validResourceSegmentPattern };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dolthub/proto-resource-utils",
3
3
  "author": "DoltHub",
4
4
  "description": "Utilities for handling Google protobuf resources and names",
5
- "version": "0.1.0",
5
+ "version": "0.1.2",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",
8
8
  "types": "dist/index.d.ts",