@e-mc/module 0.3.0 → 0.3.1

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 (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1003,7 +1003,7 @@ class Module extends EventEmitter {
1003
1003
  }
1004
1004
  }
1005
1005
  }
1006
- if (external && !pathname && VALUES["node.require.npm" /* KEY_NAME.NODE_REQUIRE_NPM */] && location.length <= 214 && /^(?:@(?:[a-z\d-][a-z\d-._]*\/)+)?[a-z\d-][a-z\d-._]*$/.test(location)) {
1006
+ if (external && !pathname && VALUES["node.require.npm" /* KEY_NAME.NODE_REQUIRE_NPM */] && location.length <= 214 && /^(?:@(?:[a-z\d-*~][a-z\d-*._~]*\/)+)?[a-z\d-~][a-z\d-._~]*$/.test(location)) {
1007
1007
  try {
1008
1008
  // @ts-ignore
1009
1009
  result = checkFunction(require(types_1.IMPORT_MAP[location] || location));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/module",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Module base class for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -20,7 +20,7 @@
20
20
  "license": "BSD 3-Clause",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/types": "0.3.0",
23
+ "@e-mc/types": "0.3.1",
24
24
  "abort-controller": "^3.0.0",
25
25
  "chalk": "4.1.2",
26
26
  "event-target-shim": "^5.0.1",