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.2.2 to 0.2.3

.travis.yml

4

lib/PropertyDefinition.js

@@ -127,3 +127,3 @@ var util = require("util");

if (properties.parent.throwOnInvalid && (!_validValue || !_validType)){
if (self.throwOnInvalid && (!_validValue || !_validType)){
console.log("Property: " + self.name);

@@ -204,2 +204,4 @@ console.log(_validationMessages.join("\n"));

this.value = properties.value || properties.default;
this.throwOnInvalid = properties.throwOnInvalid;

@@ -206,0 +208,0 @@ validate();

@@ -117,4 +117,4 @@ "use strict";

*/
function Thing(){
initInstanceVars.call(this);
function Thing(options){
initInstanceVars.call(this, options);
}

@@ -183,2 +183,4 @@ util.inherits(Thing, EventEmitter);

definition.parent = this;
definition.throwOnInvalid = this.throwOnInvalid;

@@ -613,3 +615,3 @@ if (!(definition instanceof PropertyDefinition)){

function initInstanceVars(){
function initInstanceVars(options){
if (!this._definitions){

@@ -621,4 +623,5 @@ Object.defineProperty(this, "_definitions", { enumerable: false, configurable: false, value: {} });

}
this.throwOnInvalid = options && options.throwOnInvalid;
}
module.exports = Thing;
{
"name": "nature",
"version": "0.2.2",
"version": "0.2.3",
"description": "Classify the things in your world and how they interact.",

@@ -5,0 +5,0 @@ "main": "lib/nature.js",

[![NPM version](https://badge.fury.io/js/nature.png)](http://badge.fury.io/js/nature)
[![Build Status](https://travis-ci.org/75lb/nature.png)](https://travis-ci.org/75lb/nature)
[![Dependency Status](https://david-dm.org/75lb/nature.png)](https://david-dm.org/75lb/nature)
![Analytics](https://ga-beacon.appspot.com/UA-27725889-9/nature/README.md?pixel)
***library under construction***

@@ -5,0 +7,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