Socket
Socket
Sign inDemoInstall

iridium

Package Overview
Dependencies
Maintainers
1
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iridium - npm Package Compare versions

Comparing version 5.7.4 to 5.7.5

CONTRIBUTING.md

2

dist/lib/utils/Omnom.js

@@ -47,3 +47,3 @@ /// <reference path="../../_references.d.ts" />

_.each(original, function (value, key) {
if (modified[key] === undefined || modified[key] === null)
if (modified[key] === undefined)
return this.unset(this.resolve(changePath, key));

@@ -50,0 +50,0 @@ }, this);

@@ -90,3 +90,3 @@ /// <reference path="../../_references.d.ts" />

_.each(original, function (value, key) {
if (modified[key] === undefined || modified[key] === null) return this.unset(this.resolve(changePath, key));
if (modified[key] === undefined) return this.unset(this.resolve(changePath, key));
}, this);

@@ -93,0 +93,0 @@ }

{
"name": "iridium",
"version": "5.7.4",
"version": "5.7.5",
"author": "Benjamin Pannell <admin@sierrasoftworks.com>",

@@ -5,0 +5,0 @@ "description": "A custom lightweight ORM for MongoDB designed for power-users",

# Iridium
**A High Performance, IDE Friendly ODM for MongoDB**
[![NPM Module](https://badge.fury.io/js/iridium.png)](https://npmjs.org/package/iridium)
[![Build Status](https://travis-ci.org/SierraSoftworks/Iridium.png?branch=master)](https://travis-ci.org/SierraSoftworks/Iridium)
[![Coverage Status](https://coveralls.io/repos/SierraSoftworks/Iridium/badge.svg?branch=master)](https://coveralls.io/r/SierraSoftworks/Iridium?branch=typescript)
[![NPM Module](https://badge.fury.io/js/iridium.svg)](https://npmjs.org/package/iridium)
[![Build Status](https://travis-ci.org/SierraSoftworks/Iridium.svg?branch=release)](https://travis-ci.org/SierraSoftworks/Iridium)
[![Coverage Status](https://coveralls.io/repos/SierraSoftworks/Iridium/badge.svg?branch=release)](https://coveralls.io/r/SierraSoftworks/Iridium?branch=release)
[![Code Climate](https://codeclimate.com/github/SierraSoftworks/Iridium/badges/gpa.svg)](https://codeclimate.com/github/SierraSoftworks/Iridium)

@@ -68,3 +68,3 @@ [![Test Coverage](https://codeclimate.com/github/SierraSoftworks/Iridium/badges/coverage.svg)](https://codeclimate.com/github/SierraSoftworks/Iridium)

name: string;
cars?: Car[];

@@ -79,3 +79,3 @@ }

name: string;
@Property([{

@@ -91,7 +91,7 @@ make: String,

cars: Car[];
static onCreating(doc: HouseDocument) {
doc.cars = doc.cars || [];
}
addCar(make: string, model: string, colour: Colour) {

@@ -104,3 +104,3 @@ this.cars.push({

}
get numberOfCars() {

@@ -176,11 +176,11 @@ return this.cars.length;

constructor(model: Model<Document, Instance>, document: Document, isNew: boolean = true, isPartial: boolean = false) {
}
_id: string;
static schema: Iridium.Schema = {
_id: false
};
static collection = 'myCollection';

@@ -193,3 +193,3 @@ }

module.exports = function(model, document, isNew, isPartial) {
}

@@ -199,3 +199,3 @@

module.exports.schema = {
_id: false
_id: false
};

@@ -221,3 +221,3 @@ ```

email: string;
static schema: Iridium.Schema = {

@@ -257,3 +257,3 @@ _id: false,

**JavaScript**
**JavaScript**
```javascript

@@ -277,2 +277,2 @@ function InstanceType() {

### Custom Instances
If you decide to implement your own instance constructor then this is the part you'll be interested in.
If you decide to implement your own instance constructor then this is the part you'll be interested in.

Sorry, the diff of this file is too big to display

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