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

apr-engine-iterator

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apr-engine-iterator - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

36

index.js

@@ -8,6 +8,6 @@ const buildArray = require('build-array');

const wrap = (fn) => {
const wrap = fn => {
let i = 0;
const group = (size) => {
const group = size => {
if (isFinite(size)) {

@@ -17,8 +17,6 @@ return buildArray(size).map(next);

return until(() => {
return next();
});
return until(() => next());
};
const next = (size) => {
const next = size => {
if (size) {

@@ -36,14 +34,11 @@ return group(size);

const arr = (input) => {
return wrap((i) => {
return {
value: input[i],
done: input.length === i,
key: i
};
});
};
const arr = input =>
wrap(i => ({
value: input[i],
done: input.length === i,
key: i
}));
const ittr = (input) => {
return wrap((i) => {
const ittr = input =>
wrap(i => {
const item = input.next();

@@ -57,8 +52,7 @@

});
};
const obj = (input) => {
const obj = input => {
const okeys = keys(input);
return wrap((i) => {
return wrap(i => {
const key = okeys[i];

@@ -74,3 +68,3 @@

module.exports = (input) => {
module.exports = input => {
if (isArray(input)) {

@@ -77,0 +71,0 @@ return arr(input);

{
"name": "apr-engine-iterator",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.com/ramitos/apr/tree/master/packages/engine-iterator",

@@ -11,3 +11,3 @@ "license": "MIT",

"dependencies": {
"apr-engine-until": "^1.0.1",
"apr-engine-until": "^1.0.2",
"build-array": "^1.0.0",

@@ -14,0 +14,0 @@ "lodash.isarraylike": "^4.2.0",

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