Comparing version 0.5.1 to 0.5.2
@@ -43,3 +43,7 @@ var Model = require("./Model2"), | ||
Design.prototype.groups = function(){ | ||
return w.unique(w.pluck(this._attributes, "groups")); | ||
var groups = w.pluck(this._attributes, "groups"); | ||
var flattened = groups.reduce(function(prev, curr){ | ||
return prev.concat(curr); | ||
}, []); | ||
return w.unique(flattened); | ||
}; | ||
@@ -46,0 +50,0 @@ Design.prototype.where = function(expression, model){ |
{ | ||
"name": "nature", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Classify the things in your world and how they interact.", | ||
@@ -16,5 +16,4 @@ "main": "lib/nature.js", | ||
"devDependencies": { | ||
"tap": "^0.4.9", | ||
"tape": "^2.13.1" | ||
"tap": "^0.4.9" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
var test = require("tape"); | ||
var test = require("tap").test; | ||
var Design = require("../lib/Design"); | ||
@@ -3,0 +3,0 @@ var Model = require("../lib/Model2"); |
@@ -1,2 +0,2 @@ | ||
var test = require("tape"); | ||
var test = require("tap").test; | ||
var Design = require("../lib/Design"); | ||
@@ -3,0 +3,0 @@ var Model = require("../lib/Model2"); |
@@ -1,2 +0,2 @@ | ||
var test = require("tape"); | ||
var test = require("tap").test; | ||
var Design = require("../lib/Design"); | ||
@@ -3,0 +3,0 @@ var Model = require("../lib/Model2"); |
@@ -1,2 +0,2 @@ | ||
var test = require("tape"); | ||
var test = require("tap").test; | ||
var Design = require("../lib/Design"); | ||
@@ -3,0 +3,0 @@ var Model = require("../lib/Model2"); |
@@ -1,2 +0,2 @@ | ||
var test = require("tape"); | ||
var test = require("tap").test; | ||
var Design = require("../lib/Design"); | ||
@@ -3,0 +3,0 @@ |
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
87324
1
26
2107