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 CHANGED
@@ -100,7 +100,7 @@ const ComponentPrototype = {
100
100
 
101
101
  const ComponentBase = {
102
102
  prototype: ComponentPrototype,
103
- /* #INCLUDE-IF: allowStubs */ stubs: {}
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
- 'Flag "allowMethods" must be set to true in the config for this feature.'
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
- 'Flag "allowMethods" must be set to true in the config for this feature.'
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.stubs = Object.assign({}, BaseComponentFunction.stubs);
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
- 'Flag "allowBase" must be set to true in the config for this feature.'
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
- 'Flag "allowBase" must be set to true in the config for this feature.'
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
@@ -16,7 +16,7 @@ It is affected by:
16
16
  - initialIndex as passed into Detacher constructor.
17
17
  - offsetTracker's initial value.
18
18
 
19
- It take either:
19
+ It takes either:
20
20
  - an element, which starts attached.
21
21
  - a nester, whose element isn't attached to begin with.
22
22
 
package/lib/stubs.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Gets a stub by name.
3
3
  */
4
- export const getStub = (component, name) => component.constructor.stubs[name];
4
+ export const getStub = (component, name) => component.constructor.stub[name];