orchid-orm 1.5.7 → 1.5.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # orchid-orm
2
2
 
3
+ ## 1.5.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - pqb@0.9.7
9
+
10
+ ## 1.5.8
11
+
12
+ ### Patch Changes
13
+
14
+ - Fix import path on windows in generated code
15
+
3
16
  ## 1.5.7
4
17
 
5
18
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1586,12 +1586,10 @@ const ts = {
1586
1586
  }
1587
1587
  };
1588
1588
 
1589
- const getRelativePath = (from, to) => {
1590
- const rel = path__default["default"].relative(path__default["default"].dirname(from), to);
1591
- return rel.startsWith("./") || rel.startsWith("../") ? rel : `./${rel}`;
1592
- };
1593
1589
  const getImportPath = (from, to) => {
1594
- return getRelativePath(from, to).replace(/\.[tj]s$/, "");
1590
+ const rel = path__default["default"].posix.relative(path__default["default"].dirname(from), to);
1591
+ const importPath = rel.startsWith("./") || rel.startsWith("../") ? rel : `./${rel}`;
1592
+ return importPath.replace(/\.[tj]s$/, "");
1595
1593
  };
1596
1594
 
1597
1595
  const libraryName = "orchid-orm";