@3plus/redux-api 1.0.3 → 1.0.5

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/PubSub.js CHANGED
@@ -39,4 +39,5 @@ var PubSub = exports["default"] = /*#__PURE__*/function () {
39
39
  });
40
40
  }
41
41
  }]);
42
- }();
42
+ }();
43
+ module.exports = exports.default;
package/lib/actionFn.js CHANGED
@@ -415,4 +415,5 @@ function actionFn(url, name, options) {
415
415
  return Object.keys(helpers).reduce(function (memo, key) {
416
416
  return fnHelperCallback(memo, helpers[key], key, helpers);
417
417
  }, fn);
418
- }
418
+ }
419
+ module.exports = exports.default;
@@ -42,4 +42,5 @@ function _default(fetch) {
42
42
  }
43
43
  });
44
44
  };
45
- }
45
+ }
46
+ module.exports = exports.default;
package/lib/async.js CHANGED
@@ -35,4 +35,5 @@ function async(dispatch) {
35
35
  return data;
36
36
  }
37
37
  });
38
- }
38
+ }
39
+ module.exports = exports.default;
@@ -28,4 +28,5 @@ function _default() {
28
28
  }
29
29
  }
30
30
  };
31
- }
31
+ }
32
+ module.exports = exports.default;
@@ -16,4 +16,5 @@ function fetchResolver() {
16
16
  return err ? cb(err) : fetchResolver(index + 1, opts, cb);
17
17
  });
18
18
  }
19
- }
19
+ }
20
+ module.exports = exports.default;
package/lib/index.js CHANGED
@@ -178,4 +178,5 @@ function reduxApi(config, baseConfig) {
178
178
  }, cfg);
179
179
  }
180
180
  reduxApi.transformers = _transformers["default"];
181
- reduxApi.async = _async["default"];
181
+ reduxApi.async = _async["default"];
182
+ module.exports = exports.default;
package/lib/reducerFn.js CHANGED
@@ -84,4 +84,5 @@ function reducerFn(initialState) {
84
84
  return reducer ? reducer(state, action) : state;
85
85
  }
86
86
  };
87
- }
87
+ }
88
+ module.exports = exports.default;
@@ -22,4 +22,5 @@ var _default = exports["default"] = {
22
22
  data: data
23
23
  };
24
24
  }
25
- };
25
+ };
26
+ module.exports = exports.default;
@@ -68,4 +68,5 @@ function urlTransform(url, params, options) {
68
68
  return "".concat(urlObject[0], "?").concat(urlStringParams);
69
69
  }
70
70
  return cleanURL;
71
- }
71
+ }
72
+ module.exports = exports.default;
package/lib/utils/get.js CHANGED
@@ -22,4 +22,5 @@ function get(obj) {
22
22
  return Array.isArray(name) ? get.apply(void 0, [memo].concat(_toConsumableArray(name))) : isEmpty(name) ? memo : memo && memo[name];
23
23
  }, obj);
24
24
  }
25
- var _default = exports["default"] = get;
25
+ var _default = exports["default"] = get;
26
+ module.exports = exports.default;
package/lib/utils/omit.js CHANGED
@@ -20,4 +20,5 @@ function _default(object, props) {
20
20
  }
21
21
  return memo;
22
22
  }, {});
23
- }
23
+ }
24
+ module.exports = exports.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3plus/redux-api",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "author": {
5
5
  "name": "Efremov Alex",
6
6
  "email": "lexich121@gmail.com",
@@ -18,7 +18,7 @@
18
18
  "lint:fix": "npm run lint -- --fix",
19
19
  "prettier:fix": "prettier --write './src/**/*.js'",
20
20
  "prettier:check": "prettier --check './src/**/*.js'",
21
- "postinstall": "husky install"
21
+ "prepare": "husky"
22
22
  },
23
23
  "dependencies": {
24
24
  "fast-apply": "0.0.3",
@@ -30,6 +30,7 @@
30
30
  "@babel/core": "^7.8.4",
31
31
  "@babel/eslint-parser": "^7.24.7",
32
32
  "@babel/preset-env": "^7.8.4",
33
+ "babel-plugin-add-module-exports": "^1.0.4",
33
34
  "chai": "4.2.0",
34
35
  "eslint": "^8.2.0",
35
36
  "eslint-config-airbnb": "19.0.4",