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

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 1.3.8 to 1.3.9

10

lib/Instance.js

@@ -57,6 +57,14 @@ /// <reference path="../nodelib/node.js"/>

var schema = {};
var renamed = [];
for (k in doc) {
schema[k] = false;
if(options.rename[k]) {
schema[k] = options.schema[options.rename[k]];
renamed.push(options.rename[k]);
}
else
schema[k] = false;
}
for (k in options.schema) {
if(renamed.indexOf(k) != -1) continue;
schema[k] = options.schema[k];

@@ -63,0 +71,0 @@ }

24

lib/Model.js

@@ -94,4 +94,4 @@ /// <reference path="../nodelib/node.js"/>

// Handle any renames
for(var upstream in this.options.renames) {
var downstream = this.options.renames[upstream];
for(var upstream in this.options.rename) {
var downstream = this.options.rename[upstream];

@@ -140,4 +140,4 @@ if(conditions.hasOwnProperty(upstream)) {

// Handle any renames
for(var upstream in this.options.renames) {
var downstream = this.options.renames[upstream];
for(var upstream in this.options.rename) {
var downstream = this.options.rename[upstream];

@@ -226,4 +226,4 @@ if(conditions.hasOwnProperty(upstream)) {

// Handle any renames
for(var upstream in $.options.renames) {
var downstream = $.options.renames[upstream];
for(var upstream in $.options.rename) {
var downstream = $.options.rename[upstream];

@@ -274,4 +274,4 @@ if(obj.hasOwnProperty(upstream)) {

// Handle any renames
for(var upstream in this.options.renames) {
var downstream = this.options.renames[upstream];
for(var upstream in this.options.rename) {
var downstream = this.options.rename[upstream];

@@ -308,4 +308,4 @@ if(conditions.hasOwnProperty(upstream)) {

// Handle any renames
for(var upstream in this.options.renames) {
var downstream = this.options.renames[upstream];
for(var upstream in this.options.rename) {
var downstream = this.options.rename[upstream];

@@ -349,4 +349,4 @@ if(conditions.hasOwnProperty(upstream)) {

// Handle any renames
for(var upstream in this.options.renames) {
var downstream = this.options.renames[upstream];
for(var upstream in this.options.rename) {
var downstream = this.options.rename[upstream];

@@ -353,0 +353,0 @@ if(conditions.hasOwnProperty(upstream)) {

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

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

@@ -40,3 +40,3 @@ /// <reference path="../nodelib/node.js"/>

}, {
renames: {
rename: {
_id: 'name'

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