orchid-orm 1.9.3 → 1.9.4

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.js CHANGED
@@ -6,7 +6,7 @@ var node_async_hooks = require('node:async_hooks');
6
6
  var path = require('path');
7
7
  var fs = require('fs/promises');
8
8
  var typescript = require('typescript');
9
- var pluralize = require('pluralize');
9
+ var inflection = require('inflection');
10
10
 
11
11
  function _interopNamespaceDefault(e) {
12
12
  var n = Object.create(null);
@@ -2712,7 +2712,7 @@ const checkRelation = (rel) => {
2712
2712
  return rel.columns.length === 1 && rel.foreignColumns.length === 1;
2713
2713
  };
2714
2714
  const makeRelationName = (rel) => {
2715
- return pluralize.plural(
2715
+ return inflection.pluralize(
2716
2716
  rel.className[0].toLowerCase() + rel.className.slice(1).replace(/Table$/, "")
2717
2717
  );
2718
2718
  };