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

diamond.js

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diamond.js - npm Package Compare versions

Comparing version 0.2.23 to 0.2.24

10

lib/model/property.js
// Generated by CoffeeScript 1.8.0
(function() {
var Property,
var Property, isPrimitive,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
isPrimitive = function(t) {
return t === Boolean || t === Number || t === String;
};
Property = (function(_super) {

@@ -33,3 +37,3 @@ __extends(Property, _super);

} else {
value = this.type.prototype ? new this.type : this.type();
value = this.type.prototype && !isPrimitive(this.type) ? new this.type : this.type();
}

@@ -39,3 +43,3 @@ } else if (value.properties != null) {

} else if (value.constructor !== this.type) {
value = this.type(value);
value = this.type.prototype && !isPrimitive(this.type) ? new this.type(value) : this.type(value);
}

@@ -42,0 +46,0 @@ return value;

{
"name": "diamond.js",
"description": "Generic MVC web framework",
"version": "0.2.23",
"version": "0.2.24",
"author": {

@@ -6,0 +6,0 @@ "name": "Arthur Xavier",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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