@tari-project/tari-permissions 0.12.0 → 0.12.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/helpers.js +0 -1
- package/dist/permissions.js +6 -12
- package/package.json +3 -2
package/dist/helpers.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TariPermissionAccountBalance, TariPermissionAccountInfo, TariPermissionAccountList, TariPermissionGetNft, TariPermissionKeyList, TariPermissionNftGetOwnershipProof, TariPermissionTransactionGet, TariPermissionTransactionSend, } from "./permissions";
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
2
|
export function createPermissionFromType(permission) {
|
|
4
3
|
if (Object.prototype.hasOwnProperty.call(permission, "AccountBalance")) {
|
|
5
4
|
return new TariPermissionAccountBalance(permission.AccountBalance);
|
package/dist/permissions.js
CHANGED
|
@@ -140,8 +140,7 @@ export class TariPermissionAccountBalance {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
export class TariPermissionAccountInfo {
|
|
143
|
-
constructor() {
|
|
144
|
-
}
|
|
143
|
+
constructor() { }
|
|
145
144
|
toJSON() {
|
|
146
145
|
return "AccountInfo";
|
|
147
146
|
}
|
|
@@ -167,15 +166,13 @@ export class TariPermissionAccountList {
|
|
|
167
166
|
}
|
|
168
167
|
}
|
|
169
168
|
export class TariPermissionKeyList {
|
|
170
|
-
constructor() {
|
|
171
|
-
}
|
|
169
|
+
constructor() { }
|
|
172
170
|
toJSON() {
|
|
173
171
|
return "KeyList";
|
|
174
172
|
}
|
|
175
173
|
}
|
|
176
174
|
export class TariPermissionTransactionGet {
|
|
177
|
-
constructor() {
|
|
178
|
-
}
|
|
175
|
+
constructor() { }
|
|
179
176
|
toJSON() {
|
|
180
177
|
return "TransactionGet";
|
|
181
178
|
}
|
|
@@ -216,22 +213,19 @@ export class TariPermissionNftGetOwnershipProof {
|
|
|
216
213
|
}
|
|
217
214
|
}
|
|
218
215
|
export class TariPermissionTransactionsGet {
|
|
219
|
-
constructor() {
|
|
220
|
-
}
|
|
216
|
+
constructor() { }
|
|
221
217
|
toJSON() {
|
|
222
218
|
return "TransactionGet";
|
|
223
219
|
}
|
|
224
220
|
}
|
|
225
221
|
export class TariPermissionSubstatesRead {
|
|
226
|
-
constructor() {
|
|
227
|
-
}
|
|
222
|
+
constructor() { }
|
|
228
223
|
toJSON() {
|
|
229
224
|
return "SubstatesRead";
|
|
230
225
|
}
|
|
231
226
|
}
|
|
232
227
|
export class TariPermissionTemplatesRead {
|
|
233
|
-
constructor() {
|
|
234
|
-
}
|
|
228
|
+
constructor() { }
|
|
235
229
|
toJSON() {
|
|
236
230
|
return "TemplatesRead";
|
|
237
231
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tari-project/tari-permissions",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"main": "dist/index.js",
|
|
21
21
|
"types": "dist/index.d.ts",
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "tsc -b"
|
|
23
|
+
"build": "tsc -b",
|
|
24
|
+
"lint": "eslint src/"
|
|
24
25
|
}
|
|
25
26
|
}
|