@e-mc/core 0.10.7 → 0.10.9
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.10.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.10.9/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { DataSource, LogStatus } from "./squared";
|
|
@@ -230,13 +230,13 @@ NOTE: **@e-mc/core** is mostly a collection of abstract base classes which canno
|
|
|
230
230
|
|
|
231
231
|
## References
|
|
232
232
|
|
|
233
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
234
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
235
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
236
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
237
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
238
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
239
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
233
|
+
- https://www.unpkg.com/@e-mc/types@0.10.9/lib/squared.d.ts
|
|
234
|
+
- https://www.unpkg.com/@e-mc/types@0.10.9/lib/core.d.ts
|
|
235
|
+
- https://www.unpkg.com/@e-mc/types@0.10.9/lib/db.d.ts
|
|
236
|
+
- https://www.unpkg.com/@e-mc/types@0.10.9/lib/dom.d.ts
|
|
237
|
+
- https://www.unpkg.com/@e-mc/types@0.10.9/lib/logger.d.ts
|
|
238
|
+
- https://www.unpkg.com/@e-mc/types@0.10.9/lib/node.d.ts
|
|
239
|
+
- https://www.unpkg.com/@e-mc/types@0.10.9/lib/settings.d.ts
|
|
240
240
|
|
|
241
241
|
## LICENSE
|
|
242
242
|
|
package/index.js
CHANGED
|
@@ -238,8 +238,11 @@ function isInvalidRange(result, range) {
|
|
|
238
238
|
return result.length <= lower || upper > 0 && result.length > upper;
|
|
239
239
|
}
|
|
240
240
|
function asPosix(value) {
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
if (module_1.PLATFORM_WIN32) {
|
|
242
|
+
value = path.normalize(value.trim());
|
|
243
|
+
return value.replace(/(?:^\\|\\+)/g, '/');
|
|
244
|
+
}
|
|
245
|
+
return path.normalize(value);
|
|
243
246
|
}
|
|
244
247
|
const readable = (value) => (0, types_1.isString)(value) || (0, types_1.isArray)(value);
|
|
245
248
|
const expireTime = (value) => Date.now() + value * 1000;
|
|
@@ -361,7 +364,7 @@ class Host extends module_1 {
|
|
|
361
364
|
return permission;
|
|
362
365
|
}
|
|
363
366
|
static isPermission(value) {
|
|
364
|
-
return value instanceof Permission;
|
|
367
|
+
return value instanceof Permission || (0, types_1.isObject)(value) && !!value[kDiskRead] && !!value[kDiskWrite];
|
|
365
368
|
}
|
|
366
369
|
static kill(username, iv, pid) {
|
|
367
370
|
let result = 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/core",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.9",
|
|
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.10.
|
|
24
|
-
"@e-mc/types": "0.10.
|
|
23
|
+
"@e-mc/module": "0.10.9",
|
|
24
|
+
"@e-mc/types": "0.10.9",
|
|
25
25
|
"picomatch": "^4.0.2"
|
|
26
26
|
}
|
|
27
27
|
}
|