Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

iterama

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iterama - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

native/slice-async.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc