@twinfinity/permission 6.0.1 → 6.0.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/BuildInfo.js +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/BuildInfo.ts +28 -28
- package/src/PermissionClient.ts +421 -421
- package/src/errors.ts +55 -55
- package/src/index.ts +3 -3
- package/src/types.ts +87 -87
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twinfinity/permission",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "Twinfinity Permission Service client",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"docs"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@twinfinity/authentication": "6.0.
|
|
42
|
+
"@twinfinity/authentication": "6.0.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@vitest/coverage-v8": "^3.2.3",
|
package/src/BuildInfo.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export type BuildType = 'Dev' | 'Prod';
|
|
2
|
-
|
|
3
|
-
export interface BuildInfo {
|
|
4
|
-
readonly major: number;
|
|
5
|
-
readonly minor: number;
|
|
6
|
-
readonly patch: number;
|
|
7
|
-
readonly id: number;
|
|
8
|
-
readonly commit: string;
|
|
9
|
-
readonly version: string;
|
|
10
|
-
readonly buildType: BuildType;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const gBi: BuildInfo = {
|
|
14
|
-
major: 111111,
|
|
15
|
-
minor: 222222,
|
|
16
|
-
patch: 333333,
|
|
17
|
-
id: 444444,
|
|
18
|
-
commit: 'unknownCommit',
|
|
19
|
-
version: '',
|
|
20
|
-
buildType: 'Prod'
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
(gBi.version as string) = `${gBi.major}.${gBi.minor}.${gBi.patch}.${gBi.id}-[${gBi.commit}]`;
|
|
24
|
-
if (gBi.commit === 'unknownCommit') {
|
|
25
|
-
(gBi.buildType as BuildType) = 'Dev';
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export const BUILD_INFO = Object.freeze(gBi);
|
|
1
|
+
export type BuildType = 'Dev' | 'Prod';
|
|
2
|
+
|
|
3
|
+
export interface BuildInfo {
|
|
4
|
+
readonly major: number;
|
|
5
|
+
readonly minor: number;
|
|
6
|
+
readonly patch: number;
|
|
7
|
+
readonly id: number;
|
|
8
|
+
readonly commit: string;
|
|
9
|
+
readonly version: string;
|
|
10
|
+
readonly buildType: BuildType;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const gBi: BuildInfo = {
|
|
14
|
+
major: 111111,
|
|
15
|
+
minor: 222222,
|
|
16
|
+
patch: 333333,
|
|
17
|
+
id: 444444,
|
|
18
|
+
commit: 'unknownCommit',
|
|
19
|
+
version: '',
|
|
20
|
+
buildType: 'Prod'
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
(gBi.version as string) = `${gBi.major}.${gBi.minor}.${gBi.patch}.${gBi.id}-[${gBi.commit}]`;
|
|
24
|
+
if (gBi.commit === 'unknownCommit') {
|
|
25
|
+
(gBi.buildType as BuildType) = 'Dev';
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const BUILD_INFO = Object.freeze(gBi);
|