@kaspernj/api-maker 1.0.443 → 1.0.444
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
|
@@ -54,7 +54,7 @@ export default memo(shapeComponent(class ApiMakerInputsAttachment extends BaseCo
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
getContentType() {
|
|
57
|
-
const {attribute, model} =
|
|
57
|
+
const {attribute, model} = this.p
|
|
58
58
|
const attributeName = `${attribute}ContentType`
|
|
59
59
|
|
|
60
60
|
if (!(attributeName in model)) throw new Error(`No such method on ${model.modelClassData().name}: ${attributeName}`)
|
|
@@ -63,7 +63,7 @@ export default memo(shapeComponent(class ApiMakerInputsAttachment extends BaseCo
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
getPurgeInputId() {
|
|
66
|
-
const {inputProps} =
|
|
66
|
+
const {inputProps} = this.tt
|
|
67
67
|
|
|
68
68
|
return `${inputProps.id}_purge`
|
|
69
69
|
}
|
|
@@ -71,7 +71,7 @@ export default memo(shapeComponent(class ApiMakerInputsAttachment extends BaseCo
|
|
|
71
71
|
getPurgeInputName() {
|
|
72
72
|
if ("purgeName" in this.props) return this.props.purgeName
|
|
73
73
|
|
|
74
|
-
const {inputProps} =
|
|
74
|
+
const {inputProps} = this.tt
|
|
75
75
|
|
|
76
76
|
if (!inputProps.name) return null
|
|
77
77
|
|
|
@@ -82,7 +82,7 @@ export default memo(shapeComponent(class ApiMakerInputsAttachment extends BaseCo
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
getUrl() {
|
|
85
|
-
const {attribute, model} =
|
|
85
|
+
const {attribute, model} = this.p
|
|
86
86
|
const attributeName = `${attribute}Url`
|
|
87
87
|
|
|
88
88
|
if (!(attributeName in model)) throw new Error(`No such method on ${model.modelClassData().name}: ${attributeName}`)
|