Comparing version 0.2.1 to 0.2.2
@@ -6,3 +6,3 @@ Object.defineProperty(exports, "__esModule", { | ||
var _compose = require("@psxcode/compose"); | ||
var _funcom = require("funcom"); | ||
@@ -17,3 +17,3 @@ var _takeAsync = require("./take-async"); | ||
return function (iterable) { | ||
return (0, _compose.pipe)(from < 0 ? (0, _takeAsync.takeAsync)(from) : (0, _skipAsync.skipAsync)(from), to < 0 ? (0, _skipAsync.skipAsync)(to) : (0, _takeAsync.takeAsync)(to))(iterable); | ||
return (0, _funcom.pipe)(from < 0 ? (0, _takeAsync.takeAsync)(from) : (0, _skipAsync.skipAsync)(from), to < 0 ? (0, _skipAsync.skipAsync)(to) : (0, _takeAsync.takeAsync)(to))(iterable); | ||
}; | ||
@@ -20,0 +20,0 @@ }; |
@@ -6,3 +6,3 @@ Object.defineProperty(exports, "__esModule", { | ||
var _compose = require("@psxcode/compose"); | ||
var _funcom = require("funcom"); | ||
@@ -17,3 +17,3 @@ var _skip = require("./skip"); | ||
return function (iterable) { | ||
return (0, _compose.pipe)(from < 0 ? (0, _take.take)(from) : (0, _skip.skip)(from), to < 0 ? (0, _skip.skip)(to) : (0, _take.take)(to))(iterable); | ||
return (0, _funcom.pipe)(from < 0 ? (0, _take.take)(from) : (0, _skip.skip)(from), to < 0 ? (0, _skip.skip)(to) : (0, _take.take)(to))(iterable); | ||
}; | ||
@@ -20,0 +20,0 @@ }; |
@@ -8,3 +8,3 @@ "use strict"; | ||
var _compose = require("@psxcode/compose"); | ||
var _funcom = require("funcom"); | ||
@@ -15,4 +15,4 @@ var _takeAsync = require("./take-async"); | ||
const sliceAsync = (from = 0, to = Number.MAX_SAFE_INTEGER) => iterable => (0, _compose.pipe)(from < 0 ? (0, _takeAsync.takeAsync)(from) : (0, _skipAsync.skipAsync)(from), to < 0 ? (0, _skipAsync.skipAsync)(to) : (0, _takeAsync.takeAsync)(to))(iterable); | ||
const sliceAsync = (from = 0, to = Number.MAX_SAFE_INTEGER) => iterable => (0, _funcom.pipe)(from < 0 ? (0, _takeAsync.takeAsync)(from) : (0, _skipAsync.skipAsync)(from), to < 0 ? (0, _skipAsync.skipAsync)(to) : (0, _takeAsync.takeAsync)(to))(iterable); | ||
exports.sliceAsync = sliceAsync; |
@@ -8,3 +8,3 @@ "use strict"; | ||
var _compose = require("@psxcode/compose"); | ||
var _funcom = require("funcom"); | ||
@@ -15,4 +15,4 @@ var _skip = require("./skip"); | ||
const slice = (from = 0, to = Number.MAX_SAFE_INTEGER) => iterable => (0, _compose.pipe)(from < 0 ? (0, _take.take)(from) : (0, _skip.skip)(from), to < 0 ? (0, _skip.skip)(to) : (0, _take.take)(to))(iterable); | ||
const slice = (from = 0, to = Number.MAX_SAFE_INTEGER) => iterable => (0, _funcom.pipe)(from < 0 ? (0, _take.take)(from) : (0, _skip.skip)(from), to < 0 ? (0, _skip.skip)(to) : (0, _take.take)(to))(iterable); | ||
exports.slice = slice; |
{ | ||
"name": "iterama", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Composable functional (async) iterable helpers", | ||
@@ -27,5 +27,5 @@ "keywords": [ | ||
"@babel/runtime": "^7.3.1", | ||
"@psxcode/compose": "^0.1.2", | ||
"circularr": "^0.2.2" | ||
"circularr": "^0.2.2", | ||
"funcom": "^0.1.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { pipe } from '@psxcode/compose'; | ||
import { pipe } from 'funcom'; | ||
import { takeAsync } from './take-async'; | ||
@@ -3,0 +3,0 @@ import { skipAsync } from './skip-async'; |
@@ -1,2 +0,2 @@ | ||
import { pipe } from '@psxcode/compose'; | ||
import { pipe } from 'funcom'; | ||
import { skip } from './skip'; | ||
@@ -3,0 +3,0 @@ import { take } from './take'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
306590
+ Addedfuncom@^0.1.0
+ Addedfuncom@0.1.0(transitive)
- Removed@psxcode/compose@^0.1.2
- Removed@psxcode/compose@0.1.4(transitive)