ts-arc 1.3.0 → 1.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/dist/loader.js +1 -6
  2. package/package.json +1 -1
package/dist/loader.js CHANGED
@@ -309,12 +309,7 @@ async function resolve2(specifier, context, nextResolve) {
309
309
  if (parentUrl.protocol === "file:") {
310
310
  parentPath = path.dirname(url.fileURLToPath(parentUrl));
311
311
  } else if (parentUrl.protocol === "copycat:") {
312
- const as = parentUrl.searchParams.get("as");
313
- if (as && typeof as === "string") {
314
- parentPath = path.dirname(as);
315
- } else {
316
- parentPath = process.cwd();
317
- }
312
+ parentPath = path.dirname(parentUrl.pathname);
318
313
  } else {
319
314
  parentPath = process.cwd();
320
315
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-arc",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "type": "module",
5
5
  "description": "A simple typescript runtime.",
6
6
  "main": "dist/bin.js",