@ronin/compiler 0.14.10 → 0.14.11-leo-ron-1099-1-experimental-348

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/index.js +5 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -988,15 +988,16 @@ var WITH_CONDITIONS = {
988
988
  lessOrEqual: (value) => ["<=", value]
989
989
  };
990
990
  var handleWith = (models, model, statementParams, instruction, parentModel) => {
991
- const subStatement = composeConditions(
991
+ return composeConditions(
992
992
  models,
993
993
  model,
994
994
  statementParams,
995
995
  "with",
996
996
  instruction,
997
- { parentModel }
997
+ {
998
+ parentModel
999
+ }
998
1000
  );
999
- return `(${subStatement})`;
1000
1001
  };
1001
1002
 
1002
1003
  // node_modules/title/dist/esm/lower-case.js
@@ -1213,7 +1214,7 @@ var modelAttributes = [
1213
1214
  ["pluralSlug", "slug", pluralize],
1214
1215
  ["name", "slug", slugToName],
1215
1216
  ["pluralName", "pluralSlug", slugToName],
1216
- ["idPrefix", "slug", (slug) => slug.slice(0, 3)],
1217
+ ["idPrefix", "slug", (slug) => slug.slice(0, 3).toLowerCase()],
1217
1218
  ["table", "pluralSlug", convertToSnakeCase]
1218
1219
  ];
1219
1220
  var getModelIdentifier = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.14.10",
3
+ "version": "0.14.11-leo-ron-1099-1-experimental-348",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {