orchid-orm 1.5.5 → 1.5.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.
package/dist/index.mjs CHANGED
@@ -1558,12 +1558,10 @@ const ts = {
1558
1558
  }
1559
1559
  };
1560
1560
 
1561
- const getRelativePath = (from, to) => {
1562
- const rel = path__default.relative(path__default.dirname(from), to);
1563
- return rel.startsWith("./") || rel.startsWith("../") ? rel : `./${rel}`;
1564
- };
1565
1561
  const getImportPath = (from, to) => {
1566
- return getRelativePath(from, to).replace(/\.[tj]s$/, "");
1562
+ const rel = path__default.posix.relative(path__default.dirname(from), to);
1563
+ const importPath = rel.startsWith("./") || rel.startsWith("../") ? rel : `./${rel}`;
1564
+ return importPath.replace(/\.[tj]s$/, "");
1567
1565
  };
1568
1566
 
1569
1567
  const libraryName = "orchid-orm";