@statezero/core 0.1.3 → 0.1.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.
@@ -159,7 +159,7 @@ const JS_MODEL_TEMPLATE = `/**
159
159
 
160
160
  import { Model, Manager, QuerySet, getModelClass } from '{{modulePath}}';
161
161
  import { wrapReactiveModel } from '{{modulePath}}';
162
- import schemaData from './{{className}}.schema.json';
162
+ import schemaData from './{{toLowerCase className}}.schema.json';
163
163
 
164
164
  /**
165
165
  * Model-specific QuerySet implementation
@@ -499,6 +499,9 @@ Handlebars.registerHelper("ifDefaultProvided", function (defaultValue, options)
499
499
  Handlebars.registerHelper("isRequired", function (required) {
500
500
  return required ? "" : "?";
501
501
  });
502
+ Handlebars.registerHelper("toLowerCase", function (str) {
503
+ return str.toLowerCase();
504
+ });
502
505
  const jsTemplate = Handlebars.compile(JS_MODEL_TEMPLATE);
503
506
  const dtsTemplate = Handlebars.compile(TS_DECLARATION_TEMPLATE);
504
507
  // --------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statezero/core",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "module": "ESNext",
6
6
  "description": "The type-safe frontend client for StateZero - connect directly to your backend models with zero boilerplate",