bakit 1.0.0-beta.8 → 1.0.0-beta.9
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/dist/command/index.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/command/index.js
CHANGED
|
@@ -137,8 +137,8 @@ var BaseEntry = class {
|
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
addHook(state, target, descriptor) {
|
|
140
|
-
if (target.
|
|
141
|
-
throw new Error("Hook is used at
|
|
140
|
+
if (this.target && this.target !== target.constructor) {
|
|
141
|
+
throw new Error("Hook is used at wrong constructor.");
|
|
142
142
|
}
|
|
143
143
|
const { value: method } = descriptor;
|
|
144
144
|
if (typeof method !== "function") {
|
package/dist/index.js
CHANGED
|
@@ -54,8 +54,8 @@ var BaseEntry = class {
|
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
addHook(state, target, descriptor) {
|
|
57
|
-
if (target.
|
|
58
|
-
throw new Error("Hook is used at
|
|
57
|
+
if (this.target && this.target !== target.constructor) {
|
|
58
|
+
throw new Error("Hook is used at wrong constructor.");
|
|
59
59
|
}
|
|
60
60
|
const { value: method } = descriptor;
|
|
61
61
|
if (typeof method !== "function") {
|