Comparing version 1.3.8 to 1.3.9
@@ -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 @@ } |
@@ -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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
300662
5833