@e-mc/core 0.5.16 → 0.5.18
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/index.js +6 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -231,8 +231,11 @@ function updateHostQueue(host, position, priority, broadcast) {
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
function asPosix(value) {
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
if (PLATFORM_WIN32) {
|
|
235
|
+
value = path.normalize(value.trim());
|
|
236
|
+
return value.replace(/(?:^\\|\\+)/g, '/');
|
|
237
|
+
}
|
|
238
|
+
return path.normalize(value);
|
|
236
239
|
}
|
|
237
240
|
const readable = (value) => (0, types_1.isString)(value) || (0, types_1.isArray)(value);
|
|
238
241
|
const expireTime = (value) => Date.now() + value * 1000;
|
|
@@ -353,7 +356,7 @@ class Host extends module_1.default {
|
|
|
353
356
|
return permission;
|
|
354
357
|
}
|
|
355
358
|
static isPermission(value) {
|
|
356
|
-
return value instanceof Permission;
|
|
359
|
+
return value instanceof Permission || (0, types_1.isObject)(value) && !!value[kDiskRead] && !!value[kDiskWrite];
|
|
357
360
|
}
|
|
358
361
|
static kill(username, iv, pid) {
|
|
359
362
|
let result = 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.18",
|
|
4
4
|
"description": "Core modules for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/module": "0.5.
|
|
24
|
-
"@e-mc/types": "0.5.
|
|
23
|
+
"@e-mc/module": "0.5.18",
|
|
24
|
+
"@e-mc/types": "0.5.18",
|
|
25
25
|
"picomatch": "^2.3.1"
|
|
26
26
|
}
|
|
27
27
|
}
|