isomorfeus-redux 4.2.0 → 22.9.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (236) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +176 -0
  3. data/lib/app_state.rb +25 -0
  4. data/lib/isomorfeus/browser_store_api.rb +0 -16
  5. data/lib/isomorfeus/redux/config.rb +97 -14
  6. data/lib/isomorfeus/redux/handler.rb +35 -0
  7. data/lib/isomorfeus/redux/version.rb +5 -0
  8. data/lib/isomorfeus/redux_imports.rb +14 -0
  9. data/lib/{redux/reducers.rb → isomorfeus/redux_reducers.rb} +15 -13
  10. data/lib/isomorfeus-redux.rb +18 -30
  11. data/lib/local_store.rb +27 -30
  12. data/lib/redux/store.rb +156 -120
  13. data/lib/session_store.rb +28 -30
  14. metadata +24 -247
  15. data/lib/app_store.rb +0 -42
  16. data/lib/isomorfeus/core_ext/hash/deep_merge.rb +0 -34
  17. data/lib/isomorfeus/core_ext/kernel.rb +0 -30
  18. data/lib/isomorfeus/execution_environment.rb +0 -67
  19. data/lib/isomorfeus/redux/imports.rb +0 -17
  20. data/lib/redux/version.rb +0 -3
  21. data/lib/redux.rb +0 -118
  22. data/node_modules/.package-lock.json +0 -31
  23. data/node_modules/@babel/runtime/LICENSE +0 -22
  24. data/node_modules/@babel/runtime/README.md +0 -19
  25. data/node_modules/@babel/runtime/helpers/AsyncGenerator.js +0 -99
  26. data/node_modules/@babel/runtime/helpers/AwaitValue.js +0 -6
  27. data/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +0 -31
  28. data/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +0 -12
  29. data/node_modules/@babel/runtime/helpers/arrayWithHoles.js +0 -6
  30. data/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +0 -8
  31. data/node_modules/@babel/runtime/helpers/assertThisInitialized.js +0 -10
  32. data/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +0 -57
  33. data/node_modules/@babel/runtime/helpers/asyncIterator.js +0 -16
  34. data/node_modules/@babel/runtime/helpers/asyncToGenerator.js +0 -38
  35. data/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +0 -8
  36. data/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +0 -8
  37. data/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +0 -23
  38. data/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +0 -10
  39. data/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +0 -14
  40. data/node_modules/@babel/runtime/helpers/classCallCheck.js +0 -8
  41. data/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +0 -8
  42. data/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +0 -8
  43. data/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +0 -10
  44. data/node_modules/@babel/runtime/helpers/classNameTDZError.js +0 -6
  45. data/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +0 -11
  46. data/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +0 -11
  47. data/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +0 -9
  48. data/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +0 -10
  49. data/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +0 -8
  50. data/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +0 -12
  51. data/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +0 -10
  52. data/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +0 -9
  53. data/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +0 -6
  54. data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +0 -14
  55. data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +0 -14
  56. data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +0 -15
  57. data/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +0 -9
  58. data/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +0 -6
  59. data/node_modules/@babel/runtime/helpers/construct.js +0 -26
  60. data/node_modules/@babel/runtime/helpers/createClass.js +0 -18
  61. data/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +0 -61
  62. data/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +0 -25
  63. data/node_modules/@babel/runtime/helpers/createSuper.js +0 -25
  64. data/node_modules/@babel/runtime/helpers/decorate.js +0 -401
  65. data/node_modules/@babel/runtime/helpers/defaults.js +0 -17
  66. data/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +0 -25
  67. data/node_modules/@babel/runtime/helpers/defineProperty.js +0 -17
  68. data/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js +0 -95
  69. data/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +0 -3
  70. data/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +0 -28
  71. data/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -9
  72. data/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -3
  73. data/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -4
  74. data/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -7
  75. data/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +0 -54
  76. data/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +0 -13
  77. data/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +0 -35
  78. data/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +0 -4
  79. data/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +0 -5
  80. data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +0 -20
  81. data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +0 -7
  82. data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +0 -11
  83. data/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -5
  84. data/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +0 -5
  85. data/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +0 -5
  86. data/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +0 -7
  87. data/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +0 -3
  88. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +0 -6
  89. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +0 -6
  90. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +0 -5
  91. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +0 -7
  92. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +0 -4
  93. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +0 -7
  94. data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +0 -7
  95. data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +0 -5
  96. data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +0 -3
  97. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +0 -8
  98. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +0 -8
  99. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +0 -9
  100. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +0 -5
  101. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +0 -3
  102. data/node_modules/@babel/runtime/helpers/esm/construct.js +0 -18
  103. data/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
  104. data/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +0 -57
  105. data/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +0 -21
  106. data/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -19
  107. data/node_modules/@babel/runtime/helpers/esm/decorate.js +0 -396
  108. data/node_modules/@babel/runtime/helpers/esm/defaults.js +0 -14
  109. data/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +0 -22
  110. data/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -14
  111. data/node_modules/@babel/runtime/helpers/esm/extends.js +0 -17
  112. data/node_modules/@babel/runtime/helpers/esm/get.js +0 -20
  113. data/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -6
  114. data/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -15
  115. data/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -6
  116. data/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +0 -9
  117. data/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +0 -3
  118. data/node_modules/@babel/runtime/helpers/esm/instanceof.js +0 -7
  119. data/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +0 -5
  120. data/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +0 -51
  121. data/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +0 -3
  122. data/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -12
  123. data/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -3
  124. data/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -29
  125. data/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +0 -14
  126. data/node_modules/@babel/runtime/helpers/esm/jsx.js +0 -46
  127. data/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +0 -9
  128. data/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +0 -5
  129. data/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -3
  130. data/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -3
  131. data/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +0 -3
  132. data/node_modules/@babel/runtime/helpers/esm/objectSpread.js +0 -19
  133. data/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -39
  134. data/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -19
  135. data/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -14
  136. data/node_modules/@babel/runtime/helpers/esm/package.json +0 -3
  137. data/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -11
  138. data/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +0 -3
  139. data/node_modules/@babel/runtime/helpers/esm/set.js +0 -51
  140. data/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -8
  141. data/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +0 -7
  142. data/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -7
  143. data/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js +0 -7
  144. data/node_modules/@babel/runtime/helpers/esm/superPropBase.js +0 -9
  145. data/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -11
  146. data/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +0 -8
  147. data/node_modules/@babel/runtime/helpers/esm/tdz.js +0 -3
  148. data/node_modules/@babel/runtime/helpers/esm/temporalRef.js +0 -5
  149. data/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +0 -1
  150. data/node_modules/@babel/runtime/helpers/esm/toArray.js +0 -7
  151. data/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -7
  152. data/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -13
  153. data/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -6
  154. data/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -15
  155. data/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -9
  156. data/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +0 -6
  157. data/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +0 -37
  158. data/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +0 -65
  159. data/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +0 -3
  160. data/node_modules/@babel/runtime/helpers/extends.js +0 -21
  161. data/node_modules/@babel/runtime/helpers/get.js +0 -27
  162. data/node_modules/@babel/runtime/helpers/getPrototypeOf.js +0 -10
  163. data/node_modules/@babel/runtime/helpers/inherits.js +0 -19
  164. data/node_modules/@babel/runtime/helpers/inheritsLoose.js +0 -10
  165. data/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +0 -12
  166. data/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +0 -6
  167. data/node_modules/@babel/runtime/helpers/instanceof.js +0 -10
  168. data/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -8
  169. data/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +0 -54
  170. data/node_modules/@babel/runtime/helpers/isNativeFunction.js +0 -6
  171. data/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +0 -15
  172. data/node_modules/@babel/runtime/helpers/iterableToArray.js +0 -6
  173. data/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +0 -32
  174. data/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js +0 -17
  175. data/node_modules/@babel/runtime/helpers/jsx.js +0 -50
  176. data/node_modules/@babel/runtime/helpers/maybeArrayLike.js +0 -13
  177. data/node_modules/@babel/runtime/helpers/newArrowCheck.js +0 -8
  178. data/node_modules/@babel/runtime/helpers/nonIterableRest.js +0 -6
  179. data/node_modules/@babel/runtime/helpers/nonIterableSpread.js +0 -6
  180. data/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +0 -6
  181. data/node_modules/@babel/runtime/helpers/objectSpread.js +0 -23
  182. data/node_modules/@babel/runtime/helpers/objectSpread2.js +0 -42
  183. data/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +0 -23
  184. data/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -17
  185. data/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +0 -16
  186. data/node_modules/@babel/runtime/helpers/readOnlyError.js +0 -6
  187. data/node_modules/@babel/runtime/helpers/set.js +0 -55
  188. data/node_modules/@babel/runtime/helpers/setPrototypeOf.js +0 -12
  189. data/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +0 -10
  190. data/node_modules/@babel/runtime/helpers/slicedToArray.js +0 -14
  191. data/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js +0 -14
  192. data/node_modules/@babel/runtime/helpers/superPropBase.js +0 -13
  193. data/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +0 -14
  194. data/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +0 -11
  195. data/node_modules/@babel/runtime/helpers/tdz.js +0 -6
  196. data/node_modules/@babel/runtime/helpers/temporalRef.js +0 -10
  197. data/node_modules/@babel/runtime/helpers/temporalUndefined.js +0 -4
  198. data/node_modules/@babel/runtime/helpers/toArray.js +0 -14
  199. data/node_modules/@babel/runtime/helpers/toConsumableArray.js +0 -14
  200. data/node_modules/@babel/runtime/helpers/toPrimitive.js +0 -17
  201. data/node_modules/@babel/runtime/helpers/toPropertyKey.js +0 -11
  202. data/node_modules/@babel/runtime/helpers/typeof.js +0 -22
  203. data/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -13
  204. data/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +0 -10
  205. data/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +0 -45
  206. data/node_modules/@babel/runtime/helpers/wrapRegExp.js +0 -72
  207. data/node_modules/@babel/runtime/helpers/writeOnlyError.js +0 -6
  208. data/node_modules/@babel/runtime/package.json +0 -848
  209. data/node_modules/@babel/runtime/regenerator/index.js +0 -1
  210. data/node_modules/redux/LICENSE.md +0 -21
  211. data/node_modules/redux/README.md +0 -322
  212. data/node_modules/redux/dist/redux.js +0 -768
  213. data/node_modules/redux/dist/redux.min.js +0 -1
  214. data/node_modules/redux/es/redux.js +0 -716
  215. data/node_modules/redux/es/redux.mjs +0 -1
  216. data/node_modules/redux/index.d.ts +0 -776
  217. data/node_modules/redux/lib/redux.js +0 -730
  218. data/node_modules/redux/package.json +0 -108
  219. data/node_modules/redux/src/applyMiddleware.js +0 -41
  220. data/node_modules/redux/src/bindActionCreators.js +0 -52
  221. data/node_modules/redux/src/combineReducers.js +0 -175
  222. data/node_modules/redux/src/compose.js +0 -22
  223. data/node_modules/redux/src/createStore.js +0 -347
  224. data/node_modules/redux/src/index.js +0 -37
  225. data/node_modules/redux/src/utils/actionTypes.js +0 -17
  226. data/node_modules/redux/src/utils/formatProdErrorMessage.js +0 -15
  227. data/node_modules/redux/src/utils/isPlainObject.js +0 -14
  228. data/node_modules/redux/src/utils/kindOf.js +0 -70
  229. data/node_modules/redux/src/utils/symbol-observable.js +0 -3
  230. data/node_modules/redux/src/utils/warning.js +0 -19
  231. data/node_modules/regenerator-runtime/LICENSE +0 -21
  232. data/node_modules/regenerator-runtime/README.md +0 -31
  233. data/node_modules/regenerator-runtime/package.json +0 -19
  234. data/node_modules/regenerator-runtime/path.js +0 -11
  235. data/node_modules/regenerator-runtime/runtime.js +0 -754
  236. data/package.json +0 -6
@@ -1,31 +0,0 @@
1
- {
2
- "name": "isomorfeus-redux",
3
- "lockfileVersion": 2,
4
- "requires": true,
5
- "packages": {
6
- "node_modules/@babel/runtime": {
7
- "version": "7.15.4",
8
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.15.4.tgz",
9
- "integrity": "sha512-99catp6bHCaxr4sJ/DbTGgHS4+Rs2RVd2g7iOap6SLGPDknRK9ztKNsE/Fg6QhSeh1FGE5f6gHGQmvvn3I3xhw==",
10
- "dependencies": {
11
- "regenerator-runtime": "^0.13.4"
12
- },
13
- "engines": {
14
- "node": ">=6.9.0"
15
- }
16
- },
17
- "node_modules/redux": {
18
- "version": "4.2.0",
19
- "resolved": "https://registry.npmjs.org/redux/-/redux-4.2.0.tgz",
20
- "integrity": "sha512-oSBmcKKIuIR4ME29/AeNUnl5L+hvBq7OaJWzaptTQJAntaPvxIJqfnjbaEiCzzaIz+XmVILfqAM3Ob0aXLPfjA==",
21
- "dependencies": {
22
- "@babel/runtime": "^7.9.2"
23
- }
24
- },
25
- "node_modules/regenerator-runtime": {
26
- "version": "0.13.9",
27
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
28
- "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA=="
29
- }
30
- }
31
- }
@@ -1,22 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,19 +0,0 @@
1
- # @babel/runtime
2
-
3
- > babel's modular runtime helpers
4
-
5
- See our website [@babel/runtime](https://babeljs.io/docs/en/babel-runtime) for more information.
6
-
7
- ## Install
8
-
9
- Using npm:
10
-
11
- ```sh
12
- npm install --save @babel/runtime
13
- ```
14
-
15
- or using yarn:
16
-
17
- ```sh
18
- yarn add @babel/runtime
19
- ```
@@ -1,99 +0,0 @@
1
- var AwaitValue = require("./AwaitValue.js");
2
-
3
- function AsyncGenerator(gen) {
4
- var front, back;
5
-
6
- function send(key, arg) {
7
- return new Promise(function (resolve, reject) {
8
- var request = {
9
- key: key,
10
- arg: arg,
11
- resolve: resolve,
12
- reject: reject,
13
- next: null
14
- };
15
-
16
- if (back) {
17
- back = back.next = request;
18
- } else {
19
- front = back = request;
20
- resume(key, arg);
21
- }
22
- });
23
- }
24
-
25
- function resume(key, arg) {
26
- try {
27
- var result = gen[key](arg);
28
- var value = result.value;
29
- var wrappedAwait = value instanceof AwaitValue;
30
- Promise.resolve(wrappedAwait ? value.wrapped : value).then(function (arg) {
31
- if (wrappedAwait) {
32
- resume(key === "return" ? "return" : "next", arg);
33
- return;
34
- }
35
-
36
- settle(result.done ? "return" : "normal", arg);
37
- }, function (err) {
38
- resume("throw", err);
39
- });
40
- } catch (err) {
41
- settle("throw", err);
42
- }
43
- }
44
-
45
- function settle(type, value) {
46
- switch (type) {
47
- case "return":
48
- front.resolve({
49
- value: value,
50
- done: true
51
- });
52
- break;
53
-
54
- case "throw":
55
- front.reject(value);
56
- break;
57
-
58
- default:
59
- front.resolve({
60
- value: value,
61
- done: false
62
- });
63
- break;
64
- }
65
-
66
- front = front.next;
67
-
68
- if (front) {
69
- resume(front.key, front.arg);
70
- } else {
71
- back = null;
72
- }
73
- }
74
-
75
- this._invoke = send;
76
-
77
- if (typeof gen["return"] !== "function") {
78
- this["return"] = undefined;
79
- }
80
- }
81
-
82
- AsyncGenerator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function () {
83
- return this;
84
- };
85
-
86
- AsyncGenerator.prototype.next = function (arg) {
87
- return this._invoke("next", arg);
88
- };
89
-
90
- AsyncGenerator.prototype["throw"] = function (arg) {
91
- return this._invoke("throw", arg);
92
- };
93
-
94
- AsyncGenerator.prototype["return"] = function (arg) {
95
- return this._invoke("return", arg);
96
- };
97
-
98
- module.exports = AsyncGenerator;
99
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,6 +0,0 @@
1
- function _AwaitValue(value) {
2
- this.wrapped = value;
3
- }
4
-
5
- module.exports = _AwaitValue;
6
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,31 +0,0 @@
1
- function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
2
- var desc = {};
3
- Object.keys(descriptor).forEach(function (key) {
4
- desc[key] = descriptor[key];
5
- });
6
- desc.enumerable = !!desc.enumerable;
7
- desc.configurable = !!desc.configurable;
8
-
9
- if ('value' in desc || desc.initializer) {
10
- desc.writable = true;
11
- }
12
-
13
- desc = decorators.slice().reverse().reduce(function (desc, decorator) {
14
- return decorator(target, property, desc) || desc;
15
- }, desc);
16
-
17
- if (context && desc.initializer !== void 0) {
18
- desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
19
- desc.initializer = undefined;
20
- }
21
-
22
- if (desc.initializer === void 0) {
23
- Object.defineProperty(target, property, desc);
24
- desc = null;
25
- }
26
-
27
- return desc;
28
- }
29
-
30
- module.exports = _applyDecoratedDescriptor;
31
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,12 +0,0 @@
1
- function _arrayLikeToArray(arr, len) {
2
- if (len == null || len > arr.length) len = arr.length;
3
-
4
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
5
- arr2[i] = arr[i];
6
- }
7
-
8
- return arr2;
9
- }
10
-
11
- module.exports = _arrayLikeToArray;
12
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,6 +0,0 @@
1
- function _arrayWithHoles(arr) {
2
- if (Array.isArray(arr)) return arr;
3
- }
4
-
5
- module.exports = _arrayWithHoles;
6
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,8 +0,0 @@
1
- var arrayLikeToArray = require("./arrayLikeToArray.js");
2
-
3
- function _arrayWithoutHoles(arr) {
4
- if (Array.isArray(arr)) return arrayLikeToArray(arr);
5
- }
6
-
7
- module.exports = _arrayWithoutHoles;
8
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,10 +0,0 @@
1
- function _assertThisInitialized(self) {
2
- if (self === void 0) {
3
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
4
- }
5
-
6
- return self;
7
- }
8
-
9
- module.exports = _assertThisInitialized;
10
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,57 +0,0 @@
1
- function _asyncGeneratorDelegate(inner, awaitWrap) {
2
- var iter = {},
3
- waiting = false;
4
-
5
- function pump(key, value) {
6
- waiting = true;
7
- value = new Promise(function (resolve) {
8
- resolve(inner[key](value));
9
- });
10
- return {
11
- done: false,
12
- value: awaitWrap(value)
13
- };
14
- }
15
-
16
- ;
17
-
18
- iter[typeof Symbol !== "undefined" && Symbol.iterator || "@@iterator"] = function () {
19
- return this;
20
- };
21
-
22
- iter.next = function (value) {
23
- if (waiting) {
24
- waiting = false;
25
- return value;
26
- }
27
-
28
- return pump("next", value);
29
- };
30
-
31
- if (typeof inner["throw"] === "function") {
32
- iter["throw"] = function (value) {
33
- if (waiting) {
34
- waiting = false;
35
- throw value;
36
- }
37
-
38
- return pump("throw", value);
39
- };
40
- }
41
-
42
- if (typeof inner["return"] === "function") {
43
- iter["return"] = function (value) {
44
- if (waiting) {
45
- waiting = false;
46
- return value;
47
- }
48
-
49
- return pump("return", value);
50
- };
51
- }
52
-
53
- return iter;
54
- }
55
-
56
- module.exports = _asyncGeneratorDelegate;
57
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,16 +0,0 @@
1
- function _asyncIterator(iterable) {
2
- var method;
3
-
4
- if (typeof Symbol !== "undefined") {
5
- if (Symbol.asyncIterator) method = iterable[Symbol.asyncIterator];
6
- if (method == null && Symbol.iterator) method = iterable[Symbol.iterator];
7
- }
8
-
9
- if (method == null) method = iterable["@@asyncIterator"];
10
- if (method == null) method = iterable["@@iterator"];
11
- if (method == null) throw new TypeError("Object is not async iterable");
12
- return method.call(iterable);
13
- }
14
-
15
- module.exports = _asyncIterator;
16
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,38 +0,0 @@
1
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
2
- try {
3
- var info = gen[key](arg);
4
- var value = info.value;
5
- } catch (error) {
6
- reject(error);
7
- return;
8
- }
9
-
10
- if (info.done) {
11
- resolve(value);
12
- } else {
13
- Promise.resolve(value).then(_next, _throw);
14
- }
15
- }
16
-
17
- function _asyncToGenerator(fn) {
18
- return function () {
19
- var self = this,
20
- args = arguments;
21
- return new Promise(function (resolve, reject) {
22
- var gen = fn.apply(self, args);
23
-
24
- function _next(value) {
25
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
26
- }
27
-
28
- function _throw(err) {
29
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
30
- }
31
-
32
- _next(undefined);
33
- });
34
- };
35
- }
36
-
37
- module.exports = _asyncToGenerator;
38
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,8 +0,0 @@
1
- var AwaitValue = require("./AwaitValue.js");
2
-
3
- function _awaitAsyncGenerator(value) {
4
- return new AwaitValue(value);
5
- }
6
-
7
- module.exports = _awaitAsyncGenerator;
8
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,8 +0,0 @@
1
- function _checkPrivateRedeclaration(obj, privateCollection) {
2
- if (privateCollection.has(obj)) {
3
- throw new TypeError("Cannot initialize the same private elements twice on an object");
4
- }
5
- }
6
-
7
- module.exports = _checkPrivateRedeclaration;
8
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,23 +0,0 @@
1
- function _classApplyDescriptorDestructureSet(receiver, descriptor) {
2
- if (descriptor.set) {
3
- if (!("__destrObj" in descriptor)) {
4
- descriptor.__destrObj = {
5
- set value(v) {
6
- descriptor.set.call(receiver, v);
7
- }
8
-
9
- };
10
- }
11
-
12
- return descriptor.__destrObj;
13
- } else {
14
- if (!descriptor.writable) {
15
- throw new TypeError("attempted to set read only private field");
16
- }
17
-
18
- return descriptor;
19
- }
20
- }
21
-
22
- module.exports = _classApplyDescriptorDestructureSet;
23
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,10 +0,0 @@
1
- function _classApplyDescriptorGet(receiver, descriptor) {
2
- if (descriptor.get) {
3
- return descriptor.get.call(receiver);
4
- }
5
-
6
- return descriptor.value;
7
- }
8
-
9
- module.exports = _classApplyDescriptorGet;
10
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,14 +0,0 @@
1
- function _classApplyDescriptorSet(receiver, descriptor, value) {
2
- if (descriptor.set) {
3
- descriptor.set.call(receiver, value);
4
- } else {
5
- if (!descriptor.writable) {
6
- throw new TypeError("attempted to set read only private field");
7
- }
8
-
9
- descriptor.value = value;
10
- }
11
- }
12
-
13
- module.exports = _classApplyDescriptorSet;
14
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,8 +0,0 @@
1
- function _classCallCheck(instance, Constructor) {
2
- if (!(instance instanceof Constructor)) {
3
- throw new TypeError("Cannot call a class as a function");
4
- }
5
- }
6
-
7
- module.exports = _classCallCheck;
8
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,8 +0,0 @@
1
- function _classCheckPrivateStaticAccess(receiver, classConstructor) {
2
- if (receiver !== classConstructor) {
3
- throw new TypeError("Private static access of wrong provenance");
4
- }
5
- }
6
-
7
- module.exports = _classCheckPrivateStaticAccess;
8
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,8 +0,0 @@
1
- function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
2
- if (descriptor === undefined) {
3
- throw new TypeError("attempted to " + action + " private static field before its declaration");
4
- }
5
- }
6
-
7
- module.exports = _classCheckPrivateStaticFieldDescriptor;
8
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,10 +0,0 @@
1
- function _classExtractFieldDescriptor(receiver, privateMap, action) {
2
- if (!privateMap.has(receiver)) {
3
- throw new TypeError("attempted to " + action + " private field on non-instance");
4
- }
5
-
6
- return privateMap.get(receiver);
7
- }
8
-
9
- module.exports = _classExtractFieldDescriptor;
10
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,6 +0,0 @@
1
- function _classNameTDZError(name) {
2
- throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
3
- }
4
-
5
- module.exports = _classNameTDZError;
6
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,11 +0,0 @@
1
- var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js");
2
-
3
- var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js");
4
-
5
- function _classPrivateFieldDestructureSet(receiver, privateMap) {
6
- var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
7
- return classApplyDescriptorDestructureSet(receiver, descriptor);
8
- }
9
-
10
- module.exports = _classPrivateFieldDestructureSet;
11
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,11 +0,0 @@
1
- var classApplyDescriptorGet = require("./classApplyDescriptorGet.js");
2
-
3
- var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js");
4
-
5
- function _classPrivateFieldGet(receiver, privateMap) {
6
- var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get");
7
- return classApplyDescriptorGet(receiver, descriptor);
8
- }
9
-
10
- module.exports = _classPrivateFieldGet;
11
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,9 +0,0 @@
1
- var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js");
2
-
3
- function _classPrivateFieldInitSpec(obj, privateMap, value) {
4
- checkPrivateRedeclaration(obj, privateMap);
5
- privateMap.set(obj, value);
6
- }
7
-
8
- module.exports = _classPrivateFieldInitSpec;
9
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,10 +0,0 @@
1
- function _classPrivateFieldBase(receiver, privateKey) {
2
- if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
3
- throw new TypeError("attempted to use private field on non-instance");
4
- }
5
-
6
- return receiver;
7
- }
8
-
9
- module.exports = _classPrivateFieldBase;
10
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,8 +0,0 @@
1
- var id = 0;
2
-
3
- function _classPrivateFieldKey(name) {
4
- return "__private_" + id++ + "_" + name;
5
- }
6
-
7
- module.exports = _classPrivateFieldKey;
8
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,12 +0,0 @@
1
- var classApplyDescriptorSet = require("./classApplyDescriptorSet.js");
2
-
3
- var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js");
4
-
5
- function _classPrivateFieldSet(receiver, privateMap, value) {
6
- var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
7
- classApplyDescriptorSet(receiver, descriptor, value);
8
- return value;
9
- }
10
-
11
- module.exports = _classPrivateFieldSet;
12
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,10 +0,0 @@
1
- function _classPrivateMethodGet(receiver, privateSet, fn) {
2
- if (!privateSet.has(receiver)) {
3
- throw new TypeError("attempted to get private field on non-instance");
4
- }
5
-
6
- return fn;
7
- }
8
-
9
- module.exports = _classPrivateMethodGet;
10
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,9 +0,0 @@
1
- var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js");
2
-
3
- function _classPrivateMethodInitSpec(obj, privateSet) {
4
- checkPrivateRedeclaration(obj, privateSet);
5
- privateSet.add(obj);
6
- }
7
-
8
- module.exports = _classPrivateMethodInitSpec;
9
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,6 +0,0 @@
1
- function _classPrivateMethodSet() {
2
- throw new TypeError("attempted to reassign private method");
3
- }
4
-
5
- module.exports = _classPrivateMethodSet;
6
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,14 +0,0 @@
1
- var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js");
2
-
3
- var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
4
-
5
- var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js");
6
-
7
- function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) {
8
- classCheckPrivateStaticAccess(receiver, classConstructor);
9
- classCheckPrivateStaticFieldDescriptor(descriptor, "set");
10
- return classApplyDescriptorDestructureSet(receiver, descriptor);
11
- }
12
-
13
- module.exports = _classStaticPrivateFieldDestructureSet;
14
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,14 +0,0 @@
1
- var classApplyDescriptorGet = require("./classApplyDescriptorGet.js");
2
-
3
- var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
4
-
5
- var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js");
6
-
7
- function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
8
- classCheckPrivateStaticAccess(receiver, classConstructor);
9
- classCheckPrivateStaticFieldDescriptor(descriptor, "get");
10
- return classApplyDescriptorGet(receiver, descriptor);
11
- }
12
-
13
- module.exports = _classStaticPrivateFieldSpecGet;
14
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,15 +0,0 @@
1
- var classApplyDescriptorSet = require("./classApplyDescriptorSet.js");
2
-
3
- var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
4
-
5
- var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js");
6
-
7
- function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
8
- classCheckPrivateStaticAccess(receiver, classConstructor);
9
- classCheckPrivateStaticFieldDescriptor(descriptor, "set");
10
- classApplyDescriptorSet(receiver, descriptor, value);
11
- return value;
12
- }
13
-
14
- module.exports = _classStaticPrivateFieldSpecSet;
15
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,9 +0,0 @@
1
- var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
2
-
3
- function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
4
- classCheckPrivateStaticAccess(receiver, classConstructor);
5
- return method;
6
- }
7
-
8
- module.exports = _classStaticPrivateMethodGet;
9
- module.exports["default"] = module.exports, module.exports.__esModule = true;
@@ -1,6 +0,0 @@
1
- function _classStaticPrivateMethodSet() {
2
- throw new TypeError("attempted to set read only static private field");
3
- }
4
-
5
- module.exports = _classStaticPrivateMethodSet;
6
- module.exports["default"] = module.exports, module.exports.__esModule = true;