@cleanweb/react 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/build/base/methods.js +1 -13
- package/build/classy/logic.js +1 -13
- package/package.json +1 -1
package/build/base/methods.js
CHANGED
@@ -1,15 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
3
|
-
__assign = Object.assign || function(t) {
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
-
s = arguments[i];
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
-
t[p] = s[p];
|
8
|
-
}
|
9
|
-
return t;
|
10
|
-
};
|
11
|
-
return __assign.apply(this, arguments);
|
12
|
-
};
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
14
3
|
exports.useMethods = exports.ComponentMethods = void 0;
|
15
4
|
var react_1 = require("react");
|
@@ -27,7 +16,6 @@ var useMethods = function (Methods, state, props) {
|
|
27
16
|
}, []);
|
28
17
|
methods.state = state;
|
29
18
|
methods.props = props;
|
30
|
-
|
31
|
-
return __assign(__assign({}, methods), { props: undefined, state: undefined });
|
19
|
+
return methods;
|
32
20
|
};
|
33
21
|
exports.useMethods = useMethods;
|
package/build/classy/logic.js
CHANGED
@@ -1,15 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
3
|
-
__assign = Object.assign || function(t) {
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
-
s = arguments[i];
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
-
t[p] = s[p];
|
8
|
-
}
|
9
|
-
return t;
|
10
|
-
};
|
11
|
-
return __assign.apply(this, arguments);
|
12
|
-
};
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
14
3
|
exports.useLogic = exports.ComponentLogic = void 0;
|
15
4
|
var react_1 = require("react");
|
@@ -36,7 +25,6 @@ var useLogic = function (Methods, props) {
|
|
36
25
|
methods.state = state;
|
37
26
|
methods.props = props;
|
38
27
|
methods.hooks = ((_a = methods.useHooks) === null || _a === void 0 ? void 0 : _a.call(methods)) || {};
|
39
|
-
|
40
|
-
return __assign(__assign({}, methods), { useHooks: undefined });
|
28
|
+
return methods;
|
41
29
|
};
|
42
30
|
exports.useLogic = useLogic;
|