@e-mc/core 0.9.19 → 0.9.21
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 +9 -9
- package/index.js +3 -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.9.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.9.21/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { DataSource, LogStatus } from "./squared";
|
|
@@ -229,14 +229,14 @@ NOTE: **@e-mc/core** is mostly a collection of abstract base classes which canno
|
|
|
229
229
|
|
|
230
230
|
## References
|
|
231
231
|
|
|
232
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
233
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
234
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
235
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
236
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
237
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
238
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
232
|
+
- https://www.unpkg.com/@e-mc/types@0.9.21/lib/squared.d.ts
|
|
233
|
+
- https://www.unpkg.com/@e-mc/types@0.9.21/lib/core.d.ts
|
|
234
|
+
- https://www.unpkg.com/@e-mc/types@0.9.21/lib/db.d.ts
|
|
235
|
+
- https://www.unpkg.com/@e-mc/types@0.9.21/lib/dom.d.ts
|
|
236
|
+
- https://www.unpkg.com/@e-mc/types@0.9.21/lib/logger.d.ts
|
|
237
|
+
- https://www.unpkg.com/@e-mc/types@0.9.21/lib/node.d.ts
|
|
238
|
+
- https://www.unpkg.com/@e-mc/types@0.9.21/lib/settings.d.ts
|
|
239
239
|
|
|
240
240
|
## LICENSE
|
|
241
241
|
|
|
242
|
-
|
|
242
|
+
MIT
|
package/index.js
CHANGED
|
@@ -47,7 +47,7 @@ const PLATFORM_WIN32 = process.platform === 'win32';
|
|
|
47
47
|
const HOST_USERNAME = new WeakMap();
|
|
48
48
|
let STORE_RESULT_COUNT = 0;
|
|
49
49
|
let PICOMATCH_OPTIONS = { nocase: PLATFORM_WIN32 };
|
|
50
|
-
let MINIMATCH_OPTIONS = {
|
|
50
|
+
let MINIMATCH_OPTIONS = { nocase: PLATFORM_WIN32, matchBase: true };
|
|
51
51
|
let MINIMATCH;
|
|
52
52
|
let PERMISSION;
|
|
53
53
|
function getSettingsValue(options, name, component) {
|
|
@@ -257,13 +257,13 @@ class Host extends module_1 {
|
|
|
257
257
|
if ((0, types_1.isObject)(perm.settings)) {
|
|
258
258
|
const { picomatch: pico, minimatch: mini } = perm.settings;
|
|
259
259
|
if ((0, types_1.isPlainObject)(pico)) {
|
|
260
|
-
PICOMATCH_OPTIONS = {
|
|
260
|
+
PICOMATCH_OPTIONS = { nocase: PLATFORM_WIN32, matchBase: true, ...pico };
|
|
261
261
|
}
|
|
262
262
|
if ((0, types_1.isPlainObject)(mini)) {
|
|
263
263
|
try {
|
|
264
264
|
const pkg = require('minimatch');
|
|
265
265
|
MINIMATCH = 'minimatch' in pkg ? pkg.minimatch : pkg;
|
|
266
|
-
MINIMATCH_OPTIONS = {
|
|
266
|
+
MINIMATCH_OPTIONS = { nocase: PLATFORM_WIN32, matchBase: true, ...mini };
|
|
267
267
|
}
|
|
268
268
|
catch {
|
|
269
269
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.21",
|
|
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.9.
|
|
24
|
-
"@e-mc/types": "0.9.
|
|
23
|
+
"@e-mc/module": "0.9.21",
|
|
24
|
+
"@e-mc/types": "0.9.21",
|
|
25
25
|
"picomatch": "^4.0.2"
|
|
26
26
|
}
|
|
27
27
|
}
|