wallace 0.15.0 → 0.16.0
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/lib/component.js +6 -6
- package/lib/detacher.js +1 -1
- package/lib/stubs.js +1 -1
- package/lib/types.d.ts +1120 -1116
- package/package.json +3 -3
package/lib/component.js
CHANGED
|
@@ -100,7 +100,7 @@ const ComponentPrototype = {
|
|
|
100
100
|
|
|
101
101
|
const ComponentBase = {
|
|
102
102
|
prototype: ComponentPrototype,
|
|
103
|
-
/* #INCLUDE-IF: allowStubs */
|
|
103
|
+
/* #INCLUDE-IF: allowStubs */ stub: {}
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
/**
|
|
@@ -129,12 +129,12 @@ export const initConstructor = (ComponentFunction, BaseComponentFunction) => {
|
|
|
129
129
|
Object.defineProperty(ComponentFunction, "methods", {
|
|
130
130
|
set: function (value) {
|
|
131
131
|
throw new Error(
|
|
132
|
-
|
|
132
|
+
"Flag `allowMethods` must be set to true in the config for this feature."
|
|
133
133
|
);
|
|
134
134
|
},
|
|
135
135
|
get: function () {
|
|
136
136
|
throw new Error(
|
|
137
|
-
|
|
137
|
+
"Flag `allowMethods` must be set to true in the config for this feature."
|
|
138
138
|
);
|
|
139
139
|
}
|
|
140
140
|
});
|
|
@@ -142,7 +142,7 @@ export const initConstructor = (ComponentFunction, BaseComponentFunction) => {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
/* #INCLUDE-IF: allowStubs */
|
|
145
|
-
ComponentFunction.
|
|
145
|
+
ComponentFunction.stub = Object.assign({}, BaseComponentFunction.stub);
|
|
146
146
|
|
|
147
147
|
return ComponentFunction;
|
|
148
148
|
};
|
|
@@ -172,12 +172,12 @@ export const defineComponent = (
|
|
|
172
172
|
Object.defineProperty(proto, "base", {
|
|
173
173
|
set: function (value) {
|
|
174
174
|
throw new Error(
|
|
175
|
-
|
|
175
|
+
"Flag `allowBase` must be set to true in the config for this feature."
|
|
176
176
|
);
|
|
177
177
|
},
|
|
178
178
|
get: function () {
|
|
179
179
|
throw new Error(
|
|
180
|
-
|
|
180
|
+
"Flag `allowBase` must be set to true in the config for this feature."
|
|
181
181
|
);
|
|
182
182
|
}
|
|
183
183
|
});
|
package/lib/detacher.js
CHANGED
package/lib/stubs.js
CHANGED