Comparing version 0.2.5-alpha-3 to 0.2.5
import React, { useReducer, useLayoutEffect, useEffect, useDebugValue, useContext, useRef, memo, useMemo, createElement } from 'react'; | ||
import invariant from 'invariant'; | ||
import _typeof from '@babel/runtime/helpers/esm/typeof'; | ||
import isPlainObject from 'is-plain-object'; | ||
import _regeneratorRuntime from '@babel/runtime/regenerator'; | ||
import _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray'; | ||
import _asyncToGenerator from '@babel/runtime/helpers/esm/asyncToGenerator'; | ||
function _typeof(obj) { | ||
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { | ||
_typeof = function (obj) { | ||
return typeof obj; | ||
}; | ||
} else { | ||
_typeof = function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
} | ||
return _typeof(obj); | ||
} | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
try { | ||
var info = gen[key](arg); | ||
var value = info.value; | ||
} catch (error) { | ||
reject(error); | ||
return; | ||
} | ||
if (info.done) { | ||
resolve(value); | ||
} else { | ||
Promise.resolve(value).then(_next, _throw); | ||
} | ||
} | ||
function _asyncToGenerator(fn) { | ||
return function () { | ||
var self = this, | ||
args = arguments; | ||
return new Promise(function (resolve, reject) { | ||
var gen = fn.apply(self, args); | ||
function _next(value) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | ||
} | ||
function _throw(err) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | ||
} | ||
_next(undefined); | ||
}); | ||
}; | ||
} | ||
function _slicedToArray(arr, i) { | ||
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); | ||
} | ||
function _arrayWithHoles(arr) { | ||
if (Array.isArray(arr)) return arr; | ||
} | ||
function _iterableToArrayLimit(arr, i) { | ||
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { | ||
return; | ||
} | ||
var _arr = []; | ||
var _n = true; | ||
var _d = false; | ||
var _e = undefined; | ||
try { | ||
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { | ||
_arr.push(_s.value); | ||
if (i && _arr.length === i) break; | ||
} | ||
} catch (err) { | ||
_d = true; | ||
_e = err; | ||
} finally { | ||
try { | ||
if (!_n && _i["return"] != null) _i["return"](); | ||
} finally { | ||
if (_d) throw _e; | ||
} | ||
} | ||
return _arr; | ||
} | ||
function _nonIterableRest() { | ||
throw new TypeError("Invalid attempt to destructure non-iterable instance"); | ||
} | ||
var isString = function isString(str) { | ||
@@ -224,6 +312,6 @@ return typeof str === 'string'; | ||
/*#__PURE__*/ | ||
_regeneratorRuntime.mark(function _callee(ctx, args) { | ||
regeneratorRuntime.mark(function _callee(ctx, args) { | ||
var actionWithName, _getStore$1, _getStore2, prevStatus, actions, ret, setStatus; | ||
return _regeneratorRuntime.wrap(function _callee$(_context) { | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
while (1) { | ||
@@ -307,3 +395,3 @@ switch (_context.prev = _context.next) { | ||
/*#__PURE__*/ | ||
_regeneratorRuntime.mark(function _callee2() { | ||
regeneratorRuntime.mark(function _callee2() { | ||
var ctx, | ||
@@ -317,3 +405,3 @@ middlewares, | ||
return _regeneratorRuntime.wrap(function _callee2$(_context2) { | ||
return regeneratorRuntime.wrap(function _callee2$(_context2) { | ||
while (1) { | ||
@@ -320,0 +408,0 @@ switch (_context2.prev = _context2.next) { |
{ | ||
"name": "hookstore", | ||
"version": "0.2.5-alpha-3", | ||
"description": "React Hook based and lightweight state manage library.", | ||
"version": "0.2.5", | ||
"description": "Hook based and lightweight centralized state management for React.", | ||
"main": "dist/index.js", | ||
@@ -28,3 +28,2 @@ "module": "dist/index.esm.js", | ||
"dependencies": { | ||
"@babel/runtime": "^7.0.0", | ||
"invariant": "^2.2.4", | ||
@@ -44,3 +43,4 @@ "is-plain-object": "^3.0.0" | ||
"lodash.isequal": "^4.5.0" | ||
} | ||
}, | ||
"gitHead": "18618729bd5b17228b1c7e1ee1180e18198365d8" | ||
} |
78218
4
16
1717
- Removed@babel/runtime@^7.0.0
- Removed@babel/runtime@7.26.7(transitive)
- Removedregenerator-runtime@0.14.1(transitive)