Comparing version 0.5.4 to 0.5.5
"use strict"; | ||
var util = require("util"), | ||
path = require("path"), | ||
w = require("wodge"), | ||
o = require("object-ting"), | ||
a = require("array-ting"), | ||
t = require("typical"), | ||
Attribute = require("./Attribute"), | ||
@@ -307,3 +309,3 @@ EventEmitter = require("events").EventEmitter; | ||
if (defaultValues.length > 0){ | ||
w.each(target._definitions, function(definition, propertyName){ | ||
o.each(target._definitions, function(definition, propertyName){ | ||
if (definition.defaultOption){ | ||
@@ -340,3 +342,3 @@ if (definition.type === Array || definition.type.name === "Array" || Array.isArray(definition.value) ){ | ||
} else if (w.isPlainObject(property)){ | ||
} else if (t.isPlainObject(property)){ | ||
setPlainObject(property, this); | ||
@@ -376,3 +378,3 @@ | ||
initInstanceVars(this); | ||
return this._errors.length === 0 && w.every(this._definitionList, function(def, name){ | ||
return this._errors.length === 0 && o.every(this._definitionList, function(def, name){ | ||
return def.valid; | ||
@@ -467,3 +469,3 @@ }); | ||
if (definition){ | ||
definition.groups = w.without(definition.groups, groupName); | ||
definition.groups = a.without(definition.groups, groupName); | ||
} else { | ||
@@ -476,3 +478,3 @@ error(this, new Error("property does not exist: " + propertyName)); | ||
var definition = this._definitionList[property]; | ||
definition.groups = w.without(definition.groups, groupName); | ||
definition.groups = a.without(definition.groups, groupName); | ||
} | ||
@@ -550,3 +552,3 @@ } | ||
var output = {}; | ||
w.each(this._definitionList, function(def, key){ | ||
o.each(this._definitionList, function(def, key){ | ||
if (def.value !== undefined){ | ||
@@ -553,0 +555,0 @@ output[key] = def.value; |
{ | ||
"name": "nature", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "Classify the things in your world and how they interact.", | ||
"main": "lib/nature.js", | ||
"scripts": { | ||
"test": "tap test/*.js" | ||
"test": "tape test/*.js" | ||
}, | ||
@@ -14,2 +14,3 @@ "repository": "https://github.com/75lb/nature.git", | ||
"array-ting": "^1.0.0", | ||
"object-ting": "^1.0.1", | ||
"typical": "^1.0.0" | ||
@@ -16,0 +17,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
88515
2155
3
+ Addedobject-ting@^1.0.1