Skip to content

Commit

Permalink
Updating turtle.io server & iterate() signature
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Jan 2, 2017
1 parent 0a240d7 commit 623a994
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions lib/iterate.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const array = require("retsu");
"use strict";

const each = require("retsu").each;

function iterate (obj, fn) {
if (obj instanceof Object) {
array.each(Object.keys(obj), i => {
fn.call(obj, obj[i], i);
});
if (obj instanceof Array) {
each(obj, (i, idx) => fn(i, idx));
} else {
array.each(obj, fn);
each(Reflect.ownKeys(obj), i => fn(obj[i], i));
}
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tenso",
"description": "Tensō is an elastic REST API gateway for node.js",
"version": "4.3.1",
"version": "4.3.2",
"homepage": "http://avoidwork.github.io/tenso",
"author": "Jason Mulligan <[email protected]>",
"repository": {
Expand Down Expand Up @@ -45,7 +45,7 @@
"tiny-merge": "~1.0.0",
"tiny-uuid4": "~1.0.1",
"tiny-xml": "~1.0.6",
"turtle.io": "~7.3.7",
"turtle.io": "~7.3.8",
"uws": "~0.7.0",
"yamljs": "~0.2.8"
},
Expand Down

0 comments on commit 623a994

Please sign in to comment.