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 5.6.0 to 5.6.3

.ntvs_analysis.dat

2

build/coverage.js

@@ -22,3 +22,3 @@ var gulp = require('gulp'),

dir: paths.coverageFolder,
reporters: ['lcovonly', 'json', 'html'],
reporters: ['lcov', 'json', 'html'],
reportOpts: { dir: paths.coverageFolder }

@@ -25,0 +25,0 @@ }))

var gulp = require('gulp'),
runSequence = require('run-sequence'),
replace = require('gulp-replace'),
spawn = require('child_process').spawn;
replace = require('gulp-replace');
gulp.task('publish', function () {
return runSequence('publish-prep', 'publish-action', 'publish-clean');
});
gulp.task('publish-prep', function () {
return gulp.src('_references.d.ts')
.pipe(replace(/^\/{3}.*tsd\.d\.ts.*$/, '//$0'))
gulp.task('prepublish', function () {
return gulp.src(['_references.d.ts'])
.pipe(replace(/^(\/{3}\s*<[^>]*tsd\.d\.ts[^>]*\/>)/g, '//$1'))
.pipe(gulp.dest('.'));
});
gulp.task('publish-action', function (done) {
spawn('npm', ['publish'], { stdio: 'inherit' }).on('close', done);
});
gulp.task('publish-clean', function () {
gulp.task('postpublish', function () {
return gulp.src('_references.d.ts')
.pipe(replace(/^\/{2}(\/{3}.*tsd\.d\.ts.*)$/, '$1'))
.pipe(replace(/^\/{2}(\/{3}\s*<[^>]*tsd\.d\.ts[^>]*\/>)/ig, '$1'))
.pipe(gulp.dest('.'));
});

@@ -39,10 +39,9 @@ var gulp = require('gulp'),

var version = getPackageJsonVersion();
git.tag(version, 'Version ' + version, function (error) {
if (error) {
return cb(error);
}
git.push('origin', 'master', { args: '--tags' }, cb);
});
git.tag('v' + version, 'Version ' + version, cb);
});
gulp.task('version-push-tags', function (cb) {
git.push('origin', 'master', { args: '--tags' }, cb);
});
gulp.task('version', function (callback) {

@@ -52,4 +51,7 @@ runSequence(

'version-commit',
'version-tag',
'changelog',
'changelog-commit',
'version-push',
'version-tag',
'version-push-tags',
function (error) {

@@ -56,0 +58,0 @@ if (error) {

@@ -0,0 +0,0 @@ function __export(m) {

//# sourceMappingURL=../lib/Cache.js.map

@@ -0,0 +0,0 @@ var MongoDB = require('mongodb');

/// <reference path="../_references.d.ts" />
//# sourceMappingURL=../lib/CacheDirector.js.map

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

@@ -0,0 +0,0 @@ var Bluebird = require('bluebird');

/// <reference path="../_references.d.ts" />
//# sourceMappingURL=../lib/Configuration.js.map

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

@@ -0,0 +0,0 @@ var Bluebird = require('bluebird');

@@ -60,6 +60,2 @@ /// <reference path="../_references.d.ts" />

target.constructor.schema[name] = MongoDB.ObjectID;
target.constructor.transforms[name] = {
fromDB: function (value) { return value._bsontype == 'ObjectID' ? new MongoDB.ObjectID(value.id).toHexString() : value; },
toDB: function (value) { return value && typeof value === 'string' ? new MongoDB.ObjectID(value) : value; }
};
}

@@ -66,0 +62,0 @@ exports.ObjectID = ObjectID;

/// <reference path="../_references.d.ts" />
//# sourceMappingURL=../lib/General.js.map
//# sourceMappingURL=../lib/Hooks.js.map
//# sourceMappingURL=../lib/Index.js.map

@@ -241,3 +241,3 @@ var _ = require('lodash');

Instance.schema = {
_id: false
_id: MongoDB.ObjectID
};

@@ -249,3 +249,8 @@ Instance.validators = [

];
Instance.transforms = {};
Instance.transforms = {
_id: {
fromDB: function (value) { return value._bsontype == 'ObjectID' ? new MongoDB.ObjectID(value.id).toHexString() : value; },
toDB: function (value) { return value && typeof value === 'string' ? new MongoDB.ObjectID(value) : value; }
}
};
Instance.indexes = [];

@@ -252,0 +257,0 @@ return Instance;

//# sourceMappingURL=../lib/InstanceInterface.js.map
//# sourceMappingURL=../lib/Middleware.js.map

@@ -0,0 +0,0 @@ function ExpressMiddlewareFactory(core) {

@@ -1,3 +0,1 @@

/// <reference path="../_references.d.ts" />
var MongoDB = require('mongodb');
var Bluebird = require('bluebird');

@@ -47,9 +45,2 @@ var _ = require('lodash');

this._indexes = instanceType.indexes || [];
if (!this._schema._id)
this._schema._id = MongoDB.ObjectID;
if (this._schema._id === MongoDB.ObjectID && !this._transforms['_id'])
this._transforms['_id'] = {
fromDB: function (value) { return value._bsontype == 'ObjectID' ? new MongoDB.ObjectID(value.id).toHexString() : value; },
toDB: function (value) { return value && typeof value === 'string' ? new MongoDB.ObjectID(value) : value; }
};
if (instanceType.prototype instanceof Instance_1.default)

@@ -56,0 +47,0 @@ this._Instance = ModelSpecificInstance_1.default(this, instanceType);

@@ -0,0 +0,0 @@ var Bluebird = require('bluebird');

@@ -0,0 +0,0 @@ var _ = require('lodash');

@@ -0,0 +0,0 @@ var skmatc = require('skmatc');

/// <reference path="../_references.d.ts" />
//# sourceMappingURL=../lib/ModelInterfaces.js.map
//# sourceMappingURL=../lib/ModelOptions.js.map

@@ -12,6 +12,6 @@ var util = require('util');

get: function () {
return model.transforms[property].fromDB(this._modified[property]);
return model.transforms[property].fromDB(this._modified._id);
},
set: function (value) {
this._modified[property] = model.transforms[property].toDB(value);
this._modified._id = model.transforms[property].toDB(value);
},

@@ -18,0 +18,0 @@ enumerable: true,

//# sourceMappingURL=../lib/Plugins.js.map
/// <reference path="../_references.d.ts" />
//# sourceMappingURL=../lib/Schema.js.map

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

@@ -65,6 +65,2 @@ /// <reference path="../_references.d.ts" />

target.constructor.schema[name] = MongoDB.ObjectID;
target.constructor.transforms[name] = {
fromDB: value => value._bsontype == 'ObjectID' ? new MongoDB.ObjectID(value.id).toHexString() : value,
toDB: value => value && typeof value === 'string' ? new MongoDB.ObjectID(value) : value
};
}

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

static schema: Schema = {
_id: false
_id: MongoDB.ObjectID
};

@@ -76,3 +76,6 @@

static transforms: { [property: string]: { fromDB: (value: any) => any; toDB: (value: any) => any; } } = {
_id: {
fromDB: value => value._bsontype == 'ObjectID' ? new MongoDB.ObjectID(value.id).toHexString() : value,
toDB: value => value && typeof value === 'string' ? new MongoDB.ObjectID(value) : value
}
};

@@ -79,0 +82,0 @@

@@ -64,10 +64,2 @@ /// <reference path="../_references.d.ts" />

this._indexes = instanceType.indexes || [];
if(!this._schema._id) this._schema._id = MongoDB.ObjectID;
if(this._schema._id === MongoDB.ObjectID && !this._transforms['_id'])
this._transforms['_id'] = {
fromDB: value => value._bsontype == 'ObjectID' ? new MongoDB.ObjectID(value.id).toHexString() : value,
toDB: value => value && typeof value === 'string' ? new MongoDB.ObjectID(value) : value
};

@@ -74,0 +66,0 @@ if ((<Function>instanceType).prototype instanceof Instance)

@@ -18,6 +18,6 @@ /// <reference path="../_references.d.ts" />

get: function () {
return model.transforms[property].fromDB(this._modified[property]);
return model.transforms[property].fromDB(this._modified._id);
},
set: function (value) {
this._modified[property] = model.transforms[property].toDB(value);
this._modified._id = model.transforms[property].toDB(value);
},

@@ -24,0 +24,0 @@ enumerable: true,

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

@@ -21,7 +21,9 @@ "description": "A custom lightweight ORM for MongoDB designed for power-users",

"scripts": {
"test": "grunt test",
"coverage": "grunt coverage",
"prepublish": "gulp prepublish",
"postpublish": "gulp postpublish",
"test": "gulp build && gulp ci",
"coverage": "gulp coverage",
"lint": "jshint lib/",
"benchmark": "node ./benchmarks/mongodb.js",
"build": "grunt build"
"build": "gulp build"
},

@@ -28,0 +30,0 @@ "typescript": {

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

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

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

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

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

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

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

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

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

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

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

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

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