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.
- checksums.yaml +4 -4
- data/README.md +176 -0
- data/lib/app_state.rb +25 -0
- data/lib/isomorfeus/browser_store_api.rb +0 -16
- data/lib/isomorfeus/redux/config.rb +97 -14
- data/lib/isomorfeus/redux/handler.rb +35 -0
- data/lib/isomorfeus/redux/version.rb +5 -0
- data/lib/isomorfeus/redux_imports.rb +14 -0
- data/lib/{redux/reducers.rb → isomorfeus/redux_reducers.rb} +15 -13
- data/lib/isomorfeus-redux.rb +18 -30
- data/lib/local_store.rb +27 -30
- data/lib/redux/store.rb +156 -120
- data/lib/session_store.rb +28 -30
- metadata +24 -247
- data/lib/app_store.rb +0 -42
- data/lib/isomorfeus/core_ext/hash/deep_merge.rb +0 -34
- data/lib/isomorfeus/core_ext/kernel.rb +0 -30
- data/lib/isomorfeus/execution_environment.rb +0 -67
- data/lib/isomorfeus/redux/imports.rb +0 -17
- data/lib/redux/version.rb +0 -3
- data/lib/redux.rb +0 -118
- data/node_modules/.package-lock.json +0 -31
- data/node_modules/@babel/runtime/LICENSE +0 -22
- data/node_modules/@babel/runtime/README.md +0 -19
- data/node_modules/@babel/runtime/helpers/AsyncGenerator.js +0 -99
- data/node_modules/@babel/runtime/helpers/AwaitValue.js +0 -6
- data/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +0 -31
- data/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +0 -12
- data/node_modules/@babel/runtime/helpers/arrayWithHoles.js +0 -6
- data/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +0 -8
- data/node_modules/@babel/runtime/helpers/assertThisInitialized.js +0 -10
- data/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +0 -57
- data/node_modules/@babel/runtime/helpers/asyncIterator.js +0 -16
- data/node_modules/@babel/runtime/helpers/asyncToGenerator.js +0 -38
- data/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +0 -8
- data/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +0 -8
- data/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +0 -23
- data/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +0 -10
- data/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +0 -14
- data/node_modules/@babel/runtime/helpers/classCallCheck.js +0 -8
- data/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +0 -8
- data/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +0 -8
- data/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +0 -10
- data/node_modules/@babel/runtime/helpers/classNameTDZError.js +0 -6
- data/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +0 -11
- data/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +0 -11
- data/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +0 -9
- data/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +0 -10
- data/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +0 -8
- data/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +0 -12
- data/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +0 -10
- data/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +0 -9
- data/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +0 -6
- data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +0 -14
- data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +0 -14
- data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +0 -15
- data/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +0 -9
- data/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +0 -6
- data/node_modules/@babel/runtime/helpers/construct.js +0 -26
- data/node_modules/@babel/runtime/helpers/createClass.js +0 -18
- data/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +0 -61
- data/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +0 -25
- data/node_modules/@babel/runtime/helpers/createSuper.js +0 -25
- data/node_modules/@babel/runtime/helpers/decorate.js +0 -401
- data/node_modules/@babel/runtime/helpers/defaults.js +0 -17
- data/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +0 -25
- data/node_modules/@babel/runtime/helpers/defineProperty.js +0 -17
- data/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js +0 -95
- data/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +0 -3
- data/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +0 -28
- data/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -9
- data/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -3
- data/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -4
- data/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -7
- data/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +0 -54
- data/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +0 -13
- data/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +0 -35
- data/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +0 -4
- data/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +0 -5
- data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +0 -20
- data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +0 -7
- data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +0 -11
- data/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -5
- data/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +0 -5
- data/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +0 -5
- data/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +0 -7
- data/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +0 -3
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +0 -6
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +0 -6
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +0 -5
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +0 -7
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +0 -4
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +0 -7
- data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +0 -7
- data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +0 -5
- data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +0 -3
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +0 -8
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +0 -8
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +0 -9
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +0 -5
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +0 -3
- data/node_modules/@babel/runtime/helpers/esm/construct.js +0 -18
- data/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
- data/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +0 -57
- data/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +0 -21
- data/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -19
- data/node_modules/@babel/runtime/helpers/esm/decorate.js +0 -396
- data/node_modules/@babel/runtime/helpers/esm/defaults.js +0 -14
- data/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +0 -22
- data/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -14
- data/node_modules/@babel/runtime/helpers/esm/extends.js +0 -17
- data/node_modules/@babel/runtime/helpers/esm/get.js +0 -20
- data/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -6
- data/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -15
- data/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -6
- data/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +0 -9
- data/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +0 -3
- data/node_modules/@babel/runtime/helpers/esm/instanceof.js +0 -7
- data/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +0 -5
- data/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +0 -51
- data/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +0 -3
- data/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -12
- data/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -3
- data/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -29
- data/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +0 -14
- data/node_modules/@babel/runtime/helpers/esm/jsx.js +0 -46
- data/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +0 -9
- data/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +0 -5
- data/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -3
- data/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -3
- data/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +0 -3
- data/node_modules/@babel/runtime/helpers/esm/objectSpread.js +0 -19
- data/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -39
- data/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -19
- data/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -14
- data/node_modules/@babel/runtime/helpers/esm/package.json +0 -3
- data/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -11
- data/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +0 -3
- data/node_modules/@babel/runtime/helpers/esm/set.js +0 -51
- data/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -8
- data/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +0 -7
- data/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -7
- data/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js +0 -7
- data/node_modules/@babel/runtime/helpers/esm/superPropBase.js +0 -9
- data/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -11
- data/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +0 -8
- data/node_modules/@babel/runtime/helpers/esm/tdz.js +0 -3
- data/node_modules/@babel/runtime/helpers/esm/temporalRef.js +0 -5
- data/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +0 -1
- data/node_modules/@babel/runtime/helpers/esm/toArray.js +0 -7
- data/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -7
- data/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -13
- data/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -6
- data/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -15
- data/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -9
- data/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +0 -6
- data/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +0 -37
- data/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +0 -65
- data/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +0 -3
- data/node_modules/@babel/runtime/helpers/extends.js +0 -21
- data/node_modules/@babel/runtime/helpers/get.js +0 -27
- data/node_modules/@babel/runtime/helpers/getPrototypeOf.js +0 -10
- data/node_modules/@babel/runtime/helpers/inherits.js +0 -19
- data/node_modules/@babel/runtime/helpers/inheritsLoose.js +0 -10
- data/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +0 -12
- data/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +0 -6
- data/node_modules/@babel/runtime/helpers/instanceof.js +0 -10
- data/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -8
- data/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +0 -54
- data/node_modules/@babel/runtime/helpers/isNativeFunction.js +0 -6
- data/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +0 -15
- data/node_modules/@babel/runtime/helpers/iterableToArray.js +0 -6
- data/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +0 -32
- data/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js +0 -17
- data/node_modules/@babel/runtime/helpers/jsx.js +0 -50
- data/node_modules/@babel/runtime/helpers/maybeArrayLike.js +0 -13
- data/node_modules/@babel/runtime/helpers/newArrowCheck.js +0 -8
- data/node_modules/@babel/runtime/helpers/nonIterableRest.js +0 -6
- data/node_modules/@babel/runtime/helpers/nonIterableSpread.js +0 -6
- data/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +0 -6
- data/node_modules/@babel/runtime/helpers/objectSpread.js +0 -23
- data/node_modules/@babel/runtime/helpers/objectSpread2.js +0 -42
- data/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +0 -23
- data/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -17
- data/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +0 -16
- data/node_modules/@babel/runtime/helpers/readOnlyError.js +0 -6
- data/node_modules/@babel/runtime/helpers/set.js +0 -55
- data/node_modules/@babel/runtime/helpers/setPrototypeOf.js +0 -12
- data/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +0 -10
- data/node_modules/@babel/runtime/helpers/slicedToArray.js +0 -14
- data/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js +0 -14
- data/node_modules/@babel/runtime/helpers/superPropBase.js +0 -13
- data/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +0 -14
- data/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +0 -11
- data/node_modules/@babel/runtime/helpers/tdz.js +0 -6
- data/node_modules/@babel/runtime/helpers/temporalRef.js +0 -10
- data/node_modules/@babel/runtime/helpers/temporalUndefined.js +0 -4
- data/node_modules/@babel/runtime/helpers/toArray.js +0 -14
- data/node_modules/@babel/runtime/helpers/toConsumableArray.js +0 -14
- data/node_modules/@babel/runtime/helpers/toPrimitive.js +0 -17
- data/node_modules/@babel/runtime/helpers/toPropertyKey.js +0 -11
- data/node_modules/@babel/runtime/helpers/typeof.js +0 -22
- data/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -13
- data/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +0 -10
- data/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +0 -45
- data/node_modules/@babel/runtime/helpers/wrapRegExp.js +0 -72
- data/node_modules/@babel/runtime/helpers/writeOnlyError.js +0 -6
- data/node_modules/@babel/runtime/package.json +0 -848
- data/node_modules/@babel/runtime/regenerator/index.js +0 -1
- data/node_modules/redux/LICENSE.md +0 -21
- data/node_modules/redux/README.md +0 -322
- data/node_modules/redux/dist/redux.js +0 -768
- data/node_modules/redux/dist/redux.min.js +0 -1
- data/node_modules/redux/es/redux.js +0 -716
- data/node_modules/redux/es/redux.mjs +0 -1
- data/node_modules/redux/index.d.ts +0 -776
- data/node_modules/redux/lib/redux.js +0 -730
- data/node_modules/redux/package.json +0 -108
- data/node_modules/redux/src/applyMiddleware.js +0 -41
- data/node_modules/redux/src/bindActionCreators.js +0 -52
- data/node_modules/redux/src/combineReducers.js +0 -175
- data/node_modules/redux/src/compose.js +0 -22
- data/node_modules/redux/src/createStore.js +0 -347
- data/node_modules/redux/src/index.js +0 -37
- data/node_modules/redux/src/utils/actionTypes.js +0 -17
- data/node_modules/redux/src/utils/formatProdErrorMessage.js +0 -15
- data/node_modules/redux/src/utils/isPlainObject.js +0 -14
- data/node_modules/redux/src/utils/kindOf.js +0 -70
- data/node_modules/redux/src/utils/symbol-observable.js +0 -3
- data/node_modules/redux/src/utils/warning.js +0 -19
- data/node_modules/regenerator-runtime/LICENSE +0 -21
- data/node_modules/regenerator-runtime/README.md +0 -31
- data/node_modules/regenerator-runtime/package.json +0 -19
- data/node_modules/regenerator-runtime/path.js +0 -11
- data/node_modules/regenerator-runtime/runtime.js +0 -754
- data/package.json +0 -6
@@ -1,26 +0,0 @@
|
|
1
|
-
var setPrototypeOf = require("./setPrototypeOf.js");
|
2
|
-
|
3
|
-
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
|
4
|
-
|
5
|
-
function _construct(Parent, args, Class) {
|
6
|
-
if (isNativeReflectConstruct()) {
|
7
|
-
module.exports = _construct = Reflect.construct;
|
8
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
9
|
-
} else {
|
10
|
-
module.exports = _construct = function _construct(Parent, args, Class) {
|
11
|
-
var a = [null];
|
12
|
-
a.push.apply(a, args);
|
13
|
-
var Constructor = Function.bind.apply(Parent, a);
|
14
|
-
var instance = new Constructor();
|
15
|
-
if (Class) setPrototypeOf(instance, Class.prototype);
|
16
|
-
return instance;
|
17
|
-
};
|
18
|
-
|
19
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
20
|
-
}
|
21
|
-
|
22
|
-
return _construct.apply(null, arguments);
|
23
|
-
}
|
24
|
-
|
25
|
-
module.exports = _construct;
|
26
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
function _defineProperties(target, props) {
|
2
|
-
for (var i = 0; i < props.length; i++) {
|
3
|
-
var descriptor = props[i];
|
4
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
5
|
-
descriptor.configurable = true;
|
6
|
-
if ("value" in descriptor) descriptor.writable = true;
|
7
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
8
|
-
}
|
9
|
-
}
|
10
|
-
|
11
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
12
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
13
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
14
|
-
return Constructor;
|
15
|
-
}
|
16
|
-
|
17
|
-
module.exports = _createClass;
|
18
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
@@ -1,61 +0,0 @@
|
|
1
|
-
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js");
|
2
|
-
|
3
|
-
function _createForOfIteratorHelper(o, allowArrayLike) {
|
4
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
5
|
-
|
6
|
-
if (!it) {
|
7
|
-
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
8
|
-
if (it) o = it;
|
9
|
-
var i = 0;
|
10
|
-
|
11
|
-
var F = function F() {};
|
12
|
-
|
13
|
-
return {
|
14
|
-
s: F,
|
15
|
-
n: function n() {
|
16
|
-
if (i >= o.length) return {
|
17
|
-
done: true
|
18
|
-
};
|
19
|
-
return {
|
20
|
-
done: false,
|
21
|
-
value: o[i++]
|
22
|
-
};
|
23
|
-
},
|
24
|
-
e: function e(_e) {
|
25
|
-
throw _e;
|
26
|
-
},
|
27
|
-
f: F
|
28
|
-
};
|
29
|
-
}
|
30
|
-
|
31
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
32
|
-
}
|
33
|
-
|
34
|
-
var normalCompletion = true,
|
35
|
-
didErr = false,
|
36
|
-
err;
|
37
|
-
return {
|
38
|
-
s: function s() {
|
39
|
-
it = it.call(o);
|
40
|
-
},
|
41
|
-
n: function n() {
|
42
|
-
var step = it.next();
|
43
|
-
normalCompletion = step.done;
|
44
|
-
return step;
|
45
|
-
},
|
46
|
-
e: function e(_e2) {
|
47
|
-
didErr = true;
|
48
|
-
err = _e2;
|
49
|
-
},
|
50
|
-
f: function f() {
|
51
|
-
try {
|
52
|
-
if (!normalCompletion && it["return"] != null) it["return"]();
|
53
|
-
} finally {
|
54
|
-
if (didErr) throw err;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
};
|
58
|
-
}
|
59
|
-
|
60
|
-
module.exports = _createForOfIteratorHelper;
|
61
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
@@ -1,25 +0,0 @@
|
|
1
|
-
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js");
|
2
|
-
|
3
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
4
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
5
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
6
|
-
|
7
|
-
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
8
|
-
if (it) o = it;
|
9
|
-
var i = 0;
|
10
|
-
return function () {
|
11
|
-
if (i >= o.length) return {
|
12
|
-
done: true
|
13
|
-
};
|
14
|
-
return {
|
15
|
-
done: false,
|
16
|
-
value: o[i++]
|
17
|
-
};
|
18
|
-
};
|
19
|
-
}
|
20
|
-
|
21
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
22
|
-
}
|
23
|
-
|
24
|
-
module.exports = _createForOfIteratorHelperLoose;
|
25
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
@@ -1,25 +0,0 @@
|
|
1
|
-
var getPrototypeOf = require("./getPrototypeOf.js");
|
2
|
-
|
3
|
-
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
|
4
|
-
|
5
|
-
var possibleConstructorReturn = require("./possibleConstructorReturn.js");
|
6
|
-
|
7
|
-
function _createSuper(Derived) {
|
8
|
-
var hasNativeReflectConstruct = isNativeReflectConstruct();
|
9
|
-
return function _createSuperInternal() {
|
10
|
-
var Super = getPrototypeOf(Derived),
|
11
|
-
result;
|
12
|
-
|
13
|
-
if (hasNativeReflectConstruct) {
|
14
|
-
var NewTarget = getPrototypeOf(this).constructor;
|
15
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
16
|
-
} else {
|
17
|
-
result = Super.apply(this, arguments);
|
18
|
-
}
|
19
|
-
|
20
|
-
return possibleConstructorReturn(this, result);
|
21
|
-
};
|
22
|
-
}
|
23
|
-
|
24
|
-
module.exports = _createSuper;
|
25
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
@@ -1,401 +0,0 @@
|
|
1
|
-
var toArray = require("./toArray.js");
|
2
|
-
|
3
|
-
var toPropertyKey = require("./toPropertyKey.js");
|
4
|
-
|
5
|
-
function _decorate(decorators, factory, superClass, mixins) {
|
6
|
-
var api = _getDecoratorsApi();
|
7
|
-
|
8
|
-
if (mixins) {
|
9
|
-
for (var i = 0; i < mixins.length; i++) {
|
10
|
-
api = mixins[i](api);
|
11
|
-
}
|
12
|
-
}
|
13
|
-
|
14
|
-
var r = factory(function initialize(O) {
|
15
|
-
api.initializeInstanceElements(O, decorated.elements);
|
16
|
-
}, superClass);
|
17
|
-
var decorated = api.decorateClass(_coalesceClassElements(r.d.map(_createElementDescriptor)), decorators);
|
18
|
-
api.initializeClassElements(r.F, decorated.elements);
|
19
|
-
return api.runClassFinishers(r.F, decorated.finishers);
|
20
|
-
}
|
21
|
-
|
22
|
-
function _getDecoratorsApi() {
|
23
|
-
_getDecoratorsApi = function _getDecoratorsApi() {
|
24
|
-
return api;
|
25
|
-
};
|
26
|
-
|
27
|
-
var api = {
|
28
|
-
elementsDefinitionOrder: [["method"], ["field"]],
|
29
|
-
initializeInstanceElements: function initializeInstanceElements(O, elements) {
|
30
|
-
["method", "field"].forEach(function (kind) {
|
31
|
-
elements.forEach(function (element) {
|
32
|
-
if (element.kind === kind && element.placement === "own") {
|
33
|
-
this.defineClassElement(O, element);
|
34
|
-
}
|
35
|
-
}, this);
|
36
|
-
}, this);
|
37
|
-
},
|
38
|
-
initializeClassElements: function initializeClassElements(F, elements) {
|
39
|
-
var proto = F.prototype;
|
40
|
-
["method", "field"].forEach(function (kind) {
|
41
|
-
elements.forEach(function (element) {
|
42
|
-
var placement = element.placement;
|
43
|
-
|
44
|
-
if (element.kind === kind && (placement === "static" || placement === "prototype")) {
|
45
|
-
var receiver = placement === "static" ? F : proto;
|
46
|
-
this.defineClassElement(receiver, element);
|
47
|
-
}
|
48
|
-
}, this);
|
49
|
-
}, this);
|
50
|
-
},
|
51
|
-
defineClassElement: function defineClassElement(receiver, element) {
|
52
|
-
var descriptor = element.descriptor;
|
53
|
-
|
54
|
-
if (element.kind === "field") {
|
55
|
-
var initializer = element.initializer;
|
56
|
-
descriptor = {
|
57
|
-
enumerable: descriptor.enumerable,
|
58
|
-
writable: descriptor.writable,
|
59
|
-
configurable: descriptor.configurable,
|
60
|
-
value: initializer === void 0 ? void 0 : initializer.call(receiver)
|
61
|
-
};
|
62
|
-
}
|
63
|
-
|
64
|
-
Object.defineProperty(receiver, element.key, descriptor);
|
65
|
-
},
|
66
|
-
decorateClass: function decorateClass(elements, decorators) {
|
67
|
-
var newElements = [];
|
68
|
-
var finishers = [];
|
69
|
-
var placements = {
|
70
|
-
"static": [],
|
71
|
-
prototype: [],
|
72
|
-
own: []
|
73
|
-
};
|
74
|
-
elements.forEach(function (element) {
|
75
|
-
this.addElementPlacement(element, placements);
|
76
|
-
}, this);
|
77
|
-
elements.forEach(function (element) {
|
78
|
-
if (!_hasDecorators(element)) return newElements.push(element);
|
79
|
-
var elementFinishersExtras = this.decorateElement(element, placements);
|
80
|
-
newElements.push(elementFinishersExtras.element);
|
81
|
-
newElements.push.apply(newElements, elementFinishersExtras.extras);
|
82
|
-
finishers.push.apply(finishers, elementFinishersExtras.finishers);
|
83
|
-
}, this);
|
84
|
-
|
85
|
-
if (!decorators) {
|
86
|
-
return {
|
87
|
-
elements: newElements,
|
88
|
-
finishers: finishers
|
89
|
-
};
|
90
|
-
}
|
91
|
-
|
92
|
-
var result = this.decorateConstructor(newElements, decorators);
|
93
|
-
finishers.push.apply(finishers, result.finishers);
|
94
|
-
result.finishers = finishers;
|
95
|
-
return result;
|
96
|
-
},
|
97
|
-
addElementPlacement: function addElementPlacement(element, placements, silent) {
|
98
|
-
var keys = placements[element.placement];
|
99
|
-
|
100
|
-
if (!silent && keys.indexOf(element.key) !== -1) {
|
101
|
-
throw new TypeError("Duplicated element (" + element.key + ")");
|
102
|
-
}
|
103
|
-
|
104
|
-
keys.push(element.key);
|
105
|
-
},
|
106
|
-
decorateElement: function decorateElement(element, placements) {
|
107
|
-
var extras = [];
|
108
|
-
var finishers = [];
|
109
|
-
|
110
|
-
for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) {
|
111
|
-
var keys = placements[element.placement];
|
112
|
-
keys.splice(keys.indexOf(element.key), 1);
|
113
|
-
var elementObject = this.fromElementDescriptor(element);
|
114
|
-
var elementFinisherExtras = this.toElementFinisherExtras((0, decorators[i])(elementObject) || elementObject);
|
115
|
-
element = elementFinisherExtras.element;
|
116
|
-
this.addElementPlacement(element, placements);
|
117
|
-
|
118
|
-
if (elementFinisherExtras.finisher) {
|
119
|
-
finishers.push(elementFinisherExtras.finisher);
|
120
|
-
}
|
121
|
-
|
122
|
-
var newExtras = elementFinisherExtras.extras;
|
123
|
-
|
124
|
-
if (newExtras) {
|
125
|
-
for (var j = 0; j < newExtras.length; j++) {
|
126
|
-
this.addElementPlacement(newExtras[j], placements);
|
127
|
-
}
|
128
|
-
|
129
|
-
extras.push.apply(extras, newExtras);
|
130
|
-
}
|
131
|
-
}
|
132
|
-
|
133
|
-
return {
|
134
|
-
element: element,
|
135
|
-
finishers: finishers,
|
136
|
-
extras: extras
|
137
|
-
};
|
138
|
-
},
|
139
|
-
decorateConstructor: function decorateConstructor(elements, decorators) {
|
140
|
-
var finishers = [];
|
141
|
-
|
142
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
143
|
-
var obj = this.fromClassDescriptor(elements);
|
144
|
-
var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj);
|
145
|
-
|
146
|
-
if (elementsAndFinisher.finisher !== undefined) {
|
147
|
-
finishers.push(elementsAndFinisher.finisher);
|
148
|
-
}
|
149
|
-
|
150
|
-
if (elementsAndFinisher.elements !== undefined) {
|
151
|
-
elements = elementsAndFinisher.elements;
|
152
|
-
|
153
|
-
for (var j = 0; j < elements.length - 1; j++) {
|
154
|
-
for (var k = j + 1; k < elements.length; k++) {
|
155
|
-
if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) {
|
156
|
-
throw new TypeError("Duplicated element (" + elements[j].key + ")");
|
157
|
-
}
|
158
|
-
}
|
159
|
-
}
|
160
|
-
}
|
161
|
-
}
|
162
|
-
|
163
|
-
return {
|
164
|
-
elements: elements,
|
165
|
-
finishers: finishers
|
166
|
-
};
|
167
|
-
},
|
168
|
-
fromElementDescriptor: function fromElementDescriptor(element) {
|
169
|
-
var obj = {
|
170
|
-
kind: element.kind,
|
171
|
-
key: element.key,
|
172
|
-
placement: element.placement,
|
173
|
-
descriptor: element.descriptor
|
174
|
-
};
|
175
|
-
var desc = {
|
176
|
-
value: "Descriptor",
|
177
|
-
configurable: true
|
178
|
-
};
|
179
|
-
Object.defineProperty(obj, Symbol.toStringTag, desc);
|
180
|
-
if (element.kind === "field") obj.initializer = element.initializer;
|
181
|
-
return obj;
|
182
|
-
},
|
183
|
-
toElementDescriptors: function toElementDescriptors(elementObjects) {
|
184
|
-
if (elementObjects === undefined) return;
|
185
|
-
return toArray(elementObjects).map(function (elementObject) {
|
186
|
-
var element = this.toElementDescriptor(elementObject);
|
187
|
-
this.disallowProperty(elementObject, "finisher", "An element descriptor");
|
188
|
-
this.disallowProperty(elementObject, "extras", "An element descriptor");
|
189
|
-
return element;
|
190
|
-
}, this);
|
191
|
-
},
|
192
|
-
toElementDescriptor: function toElementDescriptor(elementObject) {
|
193
|
-
var kind = String(elementObject.kind);
|
194
|
-
|
195
|
-
if (kind !== "method" && kind !== "field") {
|
196
|
-
throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"');
|
197
|
-
}
|
198
|
-
|
199
|
-
var key = toPropertyKey(elementObject.key);
|
200
|
-
var placement = String(elementObject.placement);
|
201
|
-
|
202
|
-
if (placement !== "static" && placement !== "prototype" && placement !== "own") {
|
203
|
-
throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"');
|
204
|
-
}
|
205
|
-
|
206
|
-
var descriptor = elementObject.descriptor;
|
207
|
-
this.disallowProperty(elementObject, "elements", "An element descriptor");
|
208
|
-
var element = {
|
209
|
-
kind: kind,
|
210
|
-
key: key,
|
211
|
-
placement: placement,
|
212
|
-
descriptor: Object.assign({}, descriptor)
|
213
|
-
};
|
214
|
-
|
215
|
-
if (kind !== "field") {
|
216
|
-
this.disallowProperty(elementObject, "initializer", "A method descriptor");
|
217
|
-
} else {
|
218
|
-
this.disallowProperty(descriptor, "get", "The property descriptor of a field descriptor");
|
219
|
-
this.disallowProperty(descriptor, "set", "The property descriptor of a field descriptor");
|
220
|
-
this.disallowProperty(descriptor, "value", "The property descriptor of a field descriptor");
|
221
|
-
element.initializer = elementObject.initializer;
|
222
|
-
}
|
223
|
-
|
224
|
-
return element;
|
225
|
-
},
|
226
|
-
toElementFinisherExtras: function toElementFinisherExtras(elementObject) {
|
227
|
-
var element = this.toElementDescriptor(elementObject);
|
228
|
-
|
229
|
-
var finisher = _optionalCallableProperty(elementObject, "finisher");
|
230
|
-
|
231
|
-
var extras = this.toElementDescriptors(elementObject.extras);
|
232
|
-
return {
|
233
|
-
element: element,
|
234
|
-
finisher: finisher,
|
235
|
-
extras: extras
|
236
|
-
};
|
237
|
-
},
|
238
|
-
fromClassDescriptor: function fromClassDescriptor(elements) {
|
239
|
-
var obj = {
|
240
|
-
kind: "class",
|
241
|
-
elements: elements.map(this.fromElementDescriptor, this)
|
242
|
-
};
|
243
|
-
var desc = {
|
244
|
-
value: "Descriptor",
|
245
|
-
configurable: true
|
246
|
-
};
|
247
|
-
Object.defineProperty(obj, Symbol.toStringTag, desc);
|
248
|
-
return obj;
|
249
|
-
},
|
250
|
-
toClassDescriptor: function toClassDescriptor(obj) {
|
251
|
-
var kind = String(obj.kind);
|
252
|
-
|
253
|
-
if (kind !== "class") {
|
254
|
-
throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"');
|
255
|
-
}
|
256
|
-
|
257
|
-
this.disallowProperty(obj, "key", "A class descriptor");
|
258
|
-
this.disallowProperty(obj, "placement", "A class descriptor");
|
259
|
-
this.disallowProperty(obj, "descriptor", "A class descriptor");
|
260
|
-
this.disallowProperty(obj, "initializer", "A class descriptor");
|
261
|
-
this.disallowProperty(obj, "extras", "A class descriptor");
|
262
|
-
|
263
|
-
var finisher = _optionalCallableProperty(obj, "finisher");
|
264
|
-
|
265
|
-
var elements = this.toElementDescriptors(obj.elements);
|
266
|
-
return {
|
267
|
-
elements: elements,
|
268
|
-
finisher: finisher
|
269
|
-
};
|
270
|
-
},
|
271
|
-
runClassFinishers: function runClassFinishers(constructor, finishers) {
|
272
|
-
for (var i = 0; i < finishers.length; i++) {
|
273
|
-
var newConstructor = (0, finishers[i])(constructor);
|
274
|
-
|
275
|
-
if (newConstructor !== undefined) {
|
276
|
-
if (typeof newConstructor !== "function") {
|
277
|
-
throw new TypeError("Finishers must return a constructor.");
|
278
|
-
}
|
279
|
-
|
280
|
-
constructor = newConstructor;
|
281
|
-
}
|
282
|
-
}
|
283
|
-
|
284
|
-
return constructor;
|
285
|
-
},
|
286
|
-
disallowProperty: function disallowProperty(obj, name, objectType) {
|
287
|
-
if (obj[name] !== undefined) {
|
288
|
-
throw new TypeError(objectType + " can't have a ." + name + " property.");
|
289
|
-
}
|
290
|
-
}
|
291
|
-
};
|
292
|
-
return api;
|
293
|
-
}
|
294
|
-
|
295
|
-
function _createElementDescriptor(def) {
|
296
|
-
var key = toPropertyKey(def.key);
|
297
|
-
var descriptor;
|
298
|
-
|
299
|
-
if (def.kind === "method") {
|
300
|
-
descriptor = {
|
301
|
-
value: def.value,
|
302
|
-
writable: true,
|
303
|
-
configurable: true,
|
304
|
-
enumerable: false
|
305
|
-
};
|
306
|
-
} else if (def.kind === "get") {
|
307
|
-
descriptor = {
|
308
|
-
get: def.value,
|
309
|
-
configurable: true,
|
310
|
-
enumerable: false
|
311
|
-
};
|
312
|
-
} else if (def.kind === "set") {
|
313
|
-
descriptor = {
|
314
|
-
set: def.value,
|
315
|
-
configurable: true,
|
316
|
-
enumerable: false
|
317
|
-
};
|
318
|
-
} else if (def.kind === "field") {
|
319
|
-
descriptor = {
|
320
|
-
configurable: true,
|
321
|
-
writable: true,
|
322
|
-
enumerable: true
|
323
|
-
};
|
324
|
-
}
|
325
|
-
|
326
|
-
var element = {
|
327
|
-
kind: def.kind === "field" ? "field" : "method",
|
328
|
-
key: key,
|
329
|
-
placement: def["static"] ? "static" : def.kind === "field" ? "own" : "prototype",
|
330
|
-
descriptor: descriptor
|
331
|
-
};
|
332
|
-
if (def.decorators) element.decorators = def.decorators;
|
333
|
-
if (def.kind === "field") element.initializer = def.value;
|
334
|
-
return element;
|
335
|
-
}
|
336
|
-
|
337
|
-
function _coalesceGetterSetter(element, other) {
|
338
|
-
if (element.descriptor.get !== undefined) {
|
339
|
-
other.descriptor.get = element.descriptor.get;
|
340
|
-
} else {
|
341
|
-
other.descriptor.set = element.descriptor.set;
|
342
|
-
}
|
343
|
-
}
|
344
|
-
|
345
|
-
function _coalesceClassElements(elements) {
|
346
|
-
var newElements = [];
|
347
|
-
|
348
|
-
var isSameElement = function isSameElement(other) {
|
349
|
-
return other.kind === "method" && other.key === element.key && other.placement === element.placement;
|
350
|
-
};
|
351
|
-
|
352
|
-
for (var i = 0; i < elements.length; i++) {
|
353
|
-
var element = elements[i];
|
354
|
-
var other;
|
355
|
-
|
356
|
-
if (element.kind === "method" && (other = newElements.find(isSameElement))) {
|
357
|
-
if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) {
|
358
|
-
if (_hasDecorators(element) || _hasDecorators(other)) {
|
359
|
-
throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated.");
|
360
|
-
}
|
361
|
-
|
362
|
-
other.descriptor = element.descriptor;
|
363
|
-
} else {
|
364
|
-
if (_hasDecorators(element)) {
|
365
|
-
if (_hasDecorators(other)) {
|
366
|
-
throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ").");
|
367
|
-
}
|
368
|
-
|
369
|
-
other.decorators = element.decorators;
|
370
|
-
}
|
371
|
-
|
372
|
-
_coalesceGetterSetter(element, other);
|
373
|
-
}
|
374
|
-
} else {
|
375
|
-
newElements.push(element);
|
376
|
-
}
|
377
|
-
}
|
378
|
-
|
379
|
-
return newElements;
|
380
|
-
}
|
381
|
-
|
382
|
-
function _hasDecorators(element) {
|
383
|
-
return element.decorators && element.decorators.length;
|
384
|
-
}
|
385
|
-
|
386
|
-
function _isDataDescriptor(desc) {
|
387
|
-
return desc !== undefined && !(desc.value === undefined && desc.writable === undefined);
|
388
|
-
}
|
389
|
-
|
390
|
-
function _optionalCallableProperty(obj, name) {
|
391
|
-
var value = obj[name];
|
392
|
-
|
393
|
-
if (value !== undefined && typeof value !== "function") {
|
394
|
-
throw new TypeError("Expected '" + name + "' to be a function");
|
395
|
-
}
|
396
|
-
|
397
|
-
return value;
|
398
|
-
}
|
399
|
-
|
400
|
-
module.exports = _decorate;
|
401
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
function _defaults(obj, defaults) {
|
2
|
-
var keys = Object.getOwnPropertyNames(defaults);
|
3
|
-
|
4
|
-
for (var i = 0; i < keys.length; i++) {
|
5
|
-
var key = keys[i];
|
6
|
-
var value = Object.getOwnPropertyDescriptor(defaults, key);
|
7
|
-
|
8
|
-
if (value && value.configurable && obj[key] === undefined) {
|
9
|
-
Object.defineProperty(obj, key, value);
|
10
|
-
}
|
11
|
-
}
|
12
|
-
|
13
|
-
return obj;
|
14
|
-
}
|
15
|
-
|
16
|
-
module.exports = _defaults;
|
17
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
@@ -1,25 +0,0 @@
|
|
1
|
-
function _defineEnumerableProperties(obj, descs) {
|
2
|
-
for (var key in descs) {
|
3
|
-
var desc = descs[key];
|
4
|
-
desc.configurable = desc.enumerable = true;
|
5
|
-
if ("value" in desc) desc.writable = true;
|
6
|
-
Object.defineProperty(obj, key, desc);
|
7
|
-
}
|
8
|
-
|
9
|
-
if (Object.getOwnPropertySymbols) {
|
10
|
-
var objectSymbols = Object.getOwnPropertySymbols(descs);
|
11
|
-
|
12
|
-
for (var i = 0; i < objectSymbols.length; i++) {
|
13
|
-
var sym = objectSymbols[i];
|
14
|
-
var desc = descs[sym];
|
15
|
-
desc.configurable = desc.enumerable = true;
|
16
|
-
if ("value" in desc) desc.writable = true;
|
17
|
-
Object.defineProperty(obj, sym, desc);
|
18
|
-
}
|
19
|
-
}
|
20
|
-
|
21
|
-
return obj;
|
22
|
-
}
|
23
|
-
|
24
|
-
module.exports = _defineEnumerableProperties;
|
25
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
function _defineProperty(obj, key, value) {
|
2
|
-
if (key in obj) {
|
3
|
-
Object.defineProperty(obj, key, {
|
4
|
-
value: value,
|
5
|
-
enumerable: true,
|
6
|
-
configurable: true,
|
7
|
-
writable: true
|
8
|
-
});
|
9
|
-
} else {
|
10
|
-
obj[key] = value;
|
11
|
-
}
|
12
|
-
|
13
|
-
return obj;
|
14
|
-
}
|
15
|
-
|
16
|
-
module.exports = _defineProperty;
|
17
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|