@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.
@@ -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
- // Return a gate object to "passthrough" all methods but filter out properties that should be private.
31
- return __assign(__assign({}, methods), { props: undefined, state: undefined });
19
+ return methods;
32
20
  };
33
21
  exports.useMethods = useMethods;
@@ -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
- // Return a gate object to "passthrough" all methods but filter out properties that should be private.
40
- return __assign(__assign({}, methods), { useHooks: undefined });
28
+ return methods;
41
29
  };
42
30
  exports.useLogic = useLogic;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleanweb/react",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "A suite of helpers for writing cleaner React function components.",
5
5
  "engines": {
6
6
  "node": ">=18"