sygnal 2.3.0 → 2.4.0

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/.babelrc CHANGED
@@ -1,3 +1,6 @@
1
1
  {
2
- "presets": ["@babel/preset-env"]
2
+ "presets": [["@babel/preset-env", {
3
+ "modules": false
4
+ }]],
5
+ "sourceMaps": true
3
6
  }
@@ -1,16 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = collection;
7
-
8
- var _isolate = _interopRequireDefault(require("@cycle/isolate"));
9
-
10
- var _state = require("@cycle/state");
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
3
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
4
 
16
5
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -25,7 +14,9 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
25
14
 
26
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
16
 
28
- function collection(component, stateLense) {
17
+ import isolate from '@cycle/isolate';
18
+ import { makeCollection } from '@cycle/state';
19
+ export default function collection(component, stateLense) {
29
20
  var opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
30
21
  var _opts$combineList = opts.combineList,
31
22
  combineList = _opts$combineList === void 0 ? ['DOM'] : _opts$combineList,
@@ -108,7 +99,6 @@ function collection(component, stateLense) {
108
99
  * @return {Object} collection of component sinks
109
100
  */
110
101
 
111
-
112
102
  function makeIsolatedCollection(collectionOpts, isolateOpts, sources) {
113
- return (0, _isolate["default"])((0, _state.makeCollection)(collectionOpts), isolateOpts)(sources);
103
+ return isolate(makeCollection(collectionOpts), isolateOpts)(sources);
114
104
  }