@e-mc/core 0.11.2 → 0.11.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/README.md +8 -8
- package/index.js +6 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
* [View Source](https://www.unpkg.com/@e-mc/types@0.11.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.11.4/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { DataSource, LogStatus } from "./squared";
|
|
@@ -232,13 +232,13 @@ NOTE: **@e-mc/core** is mostly a collection of abstract base classes which canno
|
|
|
232
232
|
|
|
233
233
|
## References
|
|
234
234
|
|
|
235
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
236
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
237
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
238
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
239
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
240
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
241
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
235
|
+
- https://www.unpkg.com/@e-mc/types@0.11.4/lib/squared.d.ts
|
|
236
|
+
- https://www.unpkg.com/@e-mc/types@0.11.4/lib/core.d.ts
|
|
237
|
+
- https://www.unpkg.com/@e-mc/types@0.11.4/lib/db.d.ts
|
|
238
|
+
- https://www.unpkg.com/@e-mc/types@0.11.4/lib/dom.d.ts
|
|
239
|
+
- https://www.unpkg.com/@e-mc/types@0.11.4/lib/logger.d.ts
|
|
240
|
+
- https://www.unpkg.com/@e-mc/types@0.11.4/lib/node.d.ts
|
|
241
|
+
- https://www.unpkg.com/@e-mc/types@0.11.4/lib/settings.d.ts
|
|
242
242
|
|
|
243
243
|
## LICENSE
|
|
244
244
|
|
package/index.js
CHANGED
|
@@ -239,8 +239,11 @@ function isInvalidRange(result, range) {
|
|
|
239
239
|
return result.length <= lower || upper > 0 && result.length > upper;
|
|
240
240
|
}
|
|
241
241
|
function asPosix(value) {
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
if (module_1.PLATFORM_WIN32) {
|
|
243
|
+
value = path.normalize(value.trim());
|
|
244
|
+
return value.replace(/(?:^\\|\\+)/g, '/');
|
|
245
|
+
}
|
|
246
|
+
return path.normalize(value);
|
|
244
247
|
}
|
|
245
248
|
function parseIp(value, kind) {
|
|
246
249
|
if (!value) {
|
|
@@ -387,7 +390,7 @@ class Host extends module_1 {
|
|
|
387
390
|
return permission;
|
|
388
391
|
}
|
|
389
392
|
static isPermission(value) {
|
|
390
|
-
return value instanceof Permission;
|
|
393
|
+
return value instanceof Permission || (0, types_1.isObject)(value) && !!value[kDiskRead] && !!value[kDiskWrite];
|
|
391
394
|
}
|
|
392
395
|
static kill(username, iv, pid) {
|
|
393
396
|
let result = 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/core",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
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": "BSD-3-Clause",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/module": "0.11.
|
|
24
|
-
"@e-mc/types": "0.11.
|
|
23
|
+
"@e-mc/module": "0.11.4",
|
|
24
|
+
"@e-mc/types": "0.11.4",
|
|
25
25
|
"ipaddr.js": "^2.2.0",
|
|
26
26
|
"picomatch": "^4.0.2"
|
|
27
27
|
}
|