dochub-sdk 0.1.125 → 0.1.127
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/interfaces/datalake.ts +2 -2
- package/interfaces/objects.ts +2 -2
- package/package.json +1 -1
package/interfaces/datalake.ts
CHANGED
@@ -8,7 +8,7 @@ export enum DataLakeChange {
|
|
8
8
|
/**
|
9
9
|
* RegExp для указания пути в DataLake в DocHub
|
10
10
|
*/
|
11
|
-
export const DataLakePathRegExp = '^(
|
11
|
+
export const DataLakePathRegExp = '^(\\/[a-zA-Z0-9_$\\.]{1,}){1,}$';
|
12
12
|
|
13
13
|
/**
|
14
14
|
* Путь к объекту в DataLake.
|
@@ -21,7 +21,7 @@ export class DataLakePath extends String {
|
|
21
21
|
constructor(...args:any) {
|
22
22
|
for (const value of args) {
|
23
23
|
if (!(new RegExp(DataLakePathRegExp)).test(value))
|
24
|
-
throw new Error(`Incorrect DataLakePath
|
24
|
+
throw new Error(`Incorrect DataLakePath [${value}] The string must be in the following format ${DataLakePathRegExp}`);
|
25
25
|
}
|
26
26
|
super(...args);
|
27
27
|
return this;
|
package/interfaces/objects.ts
CHANGED
@@ -18,7 +18,7 @@ export interface IDocHubObjectMeta {
|
|
18
18
|
/**
|
19
19
|
* RegExp для указания URL объекта в DocHub
|
20
20
|
*/
|
21
|
-
export const DocHubObjectURLRegExp = '
|
21
|
+
export const DocHubObjectURLRegExp = '^\\@[a-zA-Z0-9_$\\.]{1,}(\\/[a-zA-Z0-9_$\\.]{1,}){1,}(\\?[^(#|\\/)]*){0,1}(\\#[^(#|\\/|\\?)]*){0,1}$';
|
22
22
|
|
23
23
|
/**
|
24
24
|
* Специальный формат адресации к объектам DocHub
|
@@ -29,7 +29,7 @@ export class DocHubObjectURL extends String {
|
|
29
29
|
constructor(...args:any) {
|
30
30
|
for (const value of args) {
|
31
31
|
if (!(new RegExp(DocHubObjectURLRegExp)).test(value))
|
32
|
-
throw new Error(`Incorrect
|
32
|
+
throw new Error(`Incorrect DocHubObjectURL [${value}] The string must be in the following format ${DocHubObjectURLRegExp}`, );
|
33
33
|
}
|
34
34
|
super(...args);
|
35
35
|
return this;
|