@kaspernj/api-maker 1.0.299 → 1.0.301

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/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  ]
17
17
  },
18
18
  "name": "@kaspernj/api-maker",
19
- "version": "1.0.299",
19
+ "version": "1.0.301",
20
20
  "type": "module",
21
21
  "description": "",
22
22
  "main": "index.js",
@@ -13,7 +13,7 @@ export default (WrappedComponent, modelClassArg, argsArg = {}) => {
13
13
 
14
14
  modelClass = this.resolveModelClass(modelClassArg)
15
15
  args = this.resolveArgs()
16
- camelizedLower = this.modelClass.modelName().camelizedLower()
16
+ paramKey = this.modelClass.modelName().paramKey()
17
17
  paramsVariableName = `${this.modelClass.modelName().paramKey()}_id`
18
18
 
19
19
  state = {
@@ -115,9 +115,9 @@ export default (WrappedComponent, modelClassArg, argsArg = {}) => {
115
115
  const {model, modelId, notFound} = digs(this.state, "model", "modelId", "notFound")
116
116
  const wrappedComponentProps = {}
117
117
 
118
- wrappedComponentProps[this.camelizedLower] = model
119
- wrappedComponentProps[`${this.camelizedLower}Id`] = modelId
120
- wrappedComponentProps[`${this.camelizedLower}NotFound`] = notFound
118
+ wrappedComponentProps[this.paramKey] = model
119
+ wrappedComponentProps[`${this.paramKey}Id`] = modelId
120
+ wrappedComponentProps[`${this.paramKey}NotFound`] = notFound
121
121
 
122
122
  return (
123
123
  <>