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

nature

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nature - npm Package Compare versions

Comparing version 0.5.4 to 0.5.5

16

lib/Model.js
"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 @@ },

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