@jfvilas/kwirth-common 0.4.3 → 0.4.4
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/AccessKey.d.ts +1 -1
- package/dist/AccessKey.js +4 -4
- package/package.json +1 -1
package/dist/AccessKey.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare class AccessKey {
|
|
2
2
|
id: string;
|
|
3
3
|
type: string;
|
|
4
|
-
|
|
4
|
+
resources: string;
|
|
5
5
|
}
|
|
6
6
|
declare function accessKeyCreate(type: string, resources: string): AccessKey;
|
|
7
7
|
declare function accessKeyBuild(id: string, type: string, resources: string): AccessKey;
|
package/dist/AccessKey.js
CHANGED
|
@@ -21,7 +21,7 @@ class AccessKey {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
this.id = '';
|
|
23
23
|
this.type = 'volatile';
|
|
24
|
-
this.
|
|
24
|
+
this.resources = '';
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
exports.AccessKey = AccessKey;
|
|
@@ -29,7 +29,7 @@ function accessKeyCreate(type, resources) {
|
|
|
29
29
|
let accessKey = new AccessKey();
|
|
30
30
|
accessKey.id = guid_1.default.create().toString();
|
|
31
31
|
accessKey.type = type;
|
|
32
|
-
accessKey.
|
|
32
|
+
accessKey.resources = resources;
|
|
33
33
|
return accessKey;
|
|
34
34
|
}
|
|
35
35
|
exports.accessKeyCreate = accessKeyCreate;
|
|
@@ -37,12 +37,12 @@ function accessKeyBuild(id, type, resources) {
|
|
|
37
37
|
let accessKey = new AccessKey();
|
|
38
38
|
accessKey.id = id;
|
|
39
39
|
accessKey.type = type;
|
|
40
|
-
accessKey.
|
|
40
|
+
accessKey.resources = resources;
|
|
41
41
|
return accessKey;
|
|
42
42
|
}
|
|
43
43
|
exports.accessKeyBuild = accessKeyBuild;
|
|
44
44
|
function accessKeySerialize(accessKey) {
|
|
45
|
-
return `${accessKey.id}|${accessKey.type}|${accessKey.
|
|
45
|
+
return `${accessKey.id}|${accessKey.type}|${accessKey.resources}`;
|
|
46
46
|
}
|
|
47
47
|
exports.accessKeySerialize = accessKeySerialize;
|
|
48
48
|
function accessKeyDeserialize(key) {
|