@e-mc/core 0.11.5 → 0.11.8

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.
Files changed (3) hide show
  1. package/README.md +8 -8
  2. package/index.js +4 -4
  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.5/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.11.8/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.5/lib/squared.d.ts
236
- - https://www.unpkg.com/@e-mc/types@0.11.5/lib/core.d.ts
237
- - https://www.unpkg.com/@e-mc/types@0.11.5/lib/db.d.ts
238
- - https://www.unpkg.com/@e-mc/types@0.11.5/lib/dom.d.ts
239
- - https://www.unpkg.com/@e-mc/types@0.11.5/lib/logger.d.ts
240
- - https://www.unpkg.com/@e-mc/types@0.11.5/lib/node.d.ts
241
- - https://www.unpkg.com/@e-mc/types@0.11.5/lib/settings.d.ts
235
+ - https://www.unpkg.com/@e-mc/types@0.11.8/lib/squared.d.ts
236
+ - https://www.unpkg.com/@e-mc/types@0.11.8/lib/core.d.ts
237
+ - https://www.unpkg.com/@e-mc/types@0.11.8/lib/db.d.ts
238
+ - https://www.unpkg.com/@e-mc/types@0.11.8/lib/dom.d.ts
239
+ - https://www.unpkg.com/@e-mc/types@0.11.8/lib/logger.d.ts
240
+ - https://www.unpkg.com/@e-mc/types@0.11.8/lib/node.d.ts
241
+ - https://www.unpkg.com/@e-mc/types@0.11.8/lib/settings.d.ts
242
242
 
243
243
  ## LICENSE
244
244
 
package/index.js CHANGED
@@ -51,7 +51,7 @@ const HOST = {
51
51
  const HOST_USERNAME = new WeakMap();
52
52
  let STORE_RESULT_COUNT = 0;
53
53
  let PICOMATCH_OPTIONS = { nocase: module_1.PLATFORM_WIN32 };
54
- let MINIMATCH_OPTIONS = { matchBase: true, nocase: module_1.PLATFORM_WIN32 };
54
+ let MINIMATCH_OPTIONS = { nocase: module_1.PLATFORM_WIN32, matchBase: true };
55
55
  let MINIMATCH;
56
56
  let PERMISSION;
57
57
  function closeHostThread(host) {
@@ -175,7 +175,7 @@ function setPermission(name, pathname, enabled) {
175
175
  break;
176
176
  }
177
177
  }
178
- this[name] = Object.freeze({ enabled, value: enabled ? pathname : '' });
178
+ this[name] = Object.freeze({ enabled, value: enabled ? Object.freeze(pathname) : '' });
179
179
  }
180
180
  }
181
181
  function clearSourceResult(data) {
@@ -304,13 +304,13 @@ class Host extends module_1 {
304
304
  if (perm.settings) {
305
305
  const { picomatch: pico, minimatch: mini } = perm.settings;
306
306
  if ((0, types_1.isPlainObject)(pico)) {
307
- PICOMATCH_OPTIONS = { matchBase: true, nocase: module_1.PLATFORM_WIN32, ...pico };
307
+ PICOMATCH_OPTIONS = { nocase: module_1.PLATFORM_WIN32, matchBase: true, ...pico };
308
308
  }
309
309
  if ((0, types_1.isPlainObject)(mini)) {
310
310
  try {
311
311
  const pkg = require('minimatch');
312
312
  MINIMATCH = 'minimatch' in pkg ? pkg.minimatch : pkg;
313
- MINIMATCH_OPTIONS = { matchBase: true, nocase: module_1.PLATFORM_WIN32, ...mini };
313
+ MINIMATCH_OPTIONS = { nocase: module_1.PLATFORM_WIN32, matchBase: true, ...mini };
314
314
  }
315
315
  catch {
316
316
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/core",
3
- "version": "0.11.5",
3
+ "version": "0.11.8",
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.5",
24
- "@e-mc/types": "0.11.5",
23
+ "@e-mc/module": "0.11.8",
24
+ "@e-mc/types": "0.11.8",
25
25
  "ipaddr.js": "^2.2.0",
26
26
  "picomatch": "^4.0.2"
27
27
  }