@t007/utils 0.0.10 → 0.0.11
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/index.cjs +1 -2
- package/dist/index.js +1 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -146,8 +146,7 @@ function onAllMethods(owner, callback) {
|
|
|
146
146
|
while (proto && proto !== Object.prototype) {
|
|
147
147
|
for (const method of Object.getOwnPropertyNames(proto)) {
|
|
148
148
|
if (method === "constructor") continue;
|
|
149
|
-
if (isFunc(Object.getOwnPropertyDescriptor(proto, method)?.value))
|
|
150
|
-
callback(method, owner);
|
|
149
|
+
if (isFunc(Object.getOwnPropertyDescriptor(proto, method)?.value)) callback(method, owner);
|
|
151
150
|
}
|
|
152
151
|
proto = Object.getPrototypeOf(proto);
|
|
153
152
|
}
|
package/dist/index.js
CHANGED
|
@@ -96,8 +96,7 @@ function onAllMethods(owner, callback) {
|
|
|
96
96
|
while (proto && proto !== Object.prototype) {
|
|
97
97
|
for (const method of Object.getOwnPropertyNames(proto)) {
|
|
98
98
|
if (method === "constructor") continue;
|
|
99
|
-
if (isFunc(Object.getOwnPropertyDescriptor(proto, method)?.value))
|
|
100
|
-
callback(method, owner);
|
|
99
|
+
if (isFunc(Object.getOwnPropertyDescriptor(proto, method)?.value)) callback(method, owner);
|
|
101
100
|
}
|
|
102
101
|
proto = Object.getPrototypeOf(proto);
|
|
103
102
|
}
|
package/package.json
CHANGED