@inweb/client 27.1.1 → 27.1.3
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/client.js +4 -4
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +4 -4
- package/dist/client.module.js.map +1 -1
- package/lib/Api/Client.d.ts +2 -0
- package/lib/Api/File.d.ts +4 -4
- package/package.json +2 -2
- package/src/Api/Client.ts +2 -0
- package/src/Api/File.ts +9 -5
package/dist/client.js
CHANGED
|
@@ -1359,10 +1359,10 @@
|
|
|
1359
1359
|
.then((response) => response.json())
|
|
1360
1360
|
.then((data) => new Permission(data, this.id, this.httpClient));
|
|
1361
1361
|
}
|
|
1362
|
-
createPermission(actions, grantedTo, _public) {
|
|
1362
|
+
createPermission(actions, grantedTo, _public = false) {
|
|
1363
1363
|
return this.post("/permissions", {
|
|
1364
1364
|
actions: Array.isArray(actions) ? actions : [actions],
|
|
1365
|
-
grantedTo,
|
|
1365
|
+
grantedTo: Array.isArray(grantedTo) ? grantedTo : [grantedTo],
|
|
1366
1366
|
public: _public,
|
|
1367
1367
|
})
|
|
1368
1368
|
.then((response) => response.json())
|
|
@@ -2241,7 +2241,7 @@
|
|
|
2241
2241
|
.then((data) => ({
|
|
2242
2242
|
...data,
|
|
2243
2243
|
server: data.version,
|
|
2244
|
-
client: "27.1.
|
|
2244
|
+
client: "27.1.3",
|
|
2245
2245
|
}));
|
|
2246
2246
|
}
|
|
2247
2247
|
registerUser(email, password, userName) {
|
|
@@ -2725,7 +2725,7 @@
|
|
|
2725
2725
|
}
|
|
2726
2726
|
}
|
|
2727
2727
|
|
|
2728
|
-
const version = "27.1.
|
|
2728
|
+
const version = "27.1.3";
|
|
2729
2729
|
|
|
2730
2730
|
exports.Assembly = Assembly;
|
|
2731
2731
|
exports.ClashTest = ClashTest;
|