@ronin/compiler 0.17.5-leo-ron-1099-experimental-387 → 0.17.5

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 +3 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2004,11 +2004,10 @@ var transformMetaQuery = (models, dependencyStatements, statementParams, query,
2004
2004
  let json;
2005
2005
  switch (action) {
2006
2006
  case "create": {
2007
- const { slug: slug2, ...entityValue } = jsonValue;
2008
- const value = prepareStatementValue(statementParams, entityValue);
2009
- json = `json_insert(${field}, '$.${slug2}', ${value})`;
2007
+ const value = prepareStatementValue(statementParams, jsonValue);
2008
+ json = `json_insert(${field}, '$.${slug}', ${value})`;
2010
2009
  if (!existingModel[pluralType]) existingModel[pluralType] = {};
2011
- existingModel[pluralType][slug2] = jsonValue;
2010
+ existingModel[pluralType][slug] = jsonValue;
2012
2011
  break;
2013
2012
  }
2014
2013
  case "alter": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.17.5-leo-ron-1099-experimental-387",
3
+ "version": "0.17.5",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {