@ronin/compiler 0.18.5-json-experimental-444 → 0.18.6

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 +9 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1597,7 +1597,16 @@ var getSystemFields = (idPrefix) => ({
1597
1597
  }
1598
1598
  });
1599
1599
  var ROOT_MODEL = {
1600
+ // Provide the ID ahead of time, because certain runtime environments (e.g. Cloudflare
1601
+ // Workers) do not support the `crypto` module running in global scope, which would
1602
+ // happen when generating the default attributes of the root model.
1603
+ id: "mod_26cedf5fc602c3ba",
1604
+ // While the `slug` is required, we are providing the other attributes in order to
1605
+ // avoid needing to generate them at runtime.
1600
1606
  slug: "roninModel",
1607
+ pluralSlug: "roninModels",
1608
+ name: "Ronin Model",
1609
+ pluralName: "Ronin Models",
1601
1610
  identifiers: {
1602
1611
  name: "name",
1603
1612
  slug: "slug"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.18.5-json-experimental-444",
3
+ "version": "0.18.6",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {