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.6.3 to 5.7.0

coverage/lcov-report/base.css

1

build/changelog.js
var gulp = require('gulp'),
util = require('gulp-util'),
cat = require('gulp-cat'),
git = require('gulp-git'),

@@ -5,0 +4,0 @@ replace = require('gulp-replace'),

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

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

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

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

## [Working Changes](https://github.com/sierrasoftworks/iridium)
- [70337bf](https://github.com/sierrasoftworks/iridium/commit/70337bf) Updated CHANGELOG
## [Working Changes](https://github.com/sierrasoftworks/iridium)
## [v5.7.0](https://github.com/sierrasoftworks/iridium/tree/v5.7.0)
- [3c25d1c](https://github.com/sierrasoftworks/iridium/commit/3c25d1c) Version 5.7.0
- [ca5b130](https://github.com/sierrasoftworks/iridium/commit/ca5b130) Merge remote-tracking branch 'origin/release' into release
- [709d145](https://github.com/sierrasoftworks/iridium/commit/709d145) (origin/release) Removed old changelog
- [453b6d1](https://github.com/sierrasoftworks/iridium/commit/453b6d1) Updated CHANGELOG
## [v5.6.3](https://github.com/sierrasoftworks/iridium/tree/v5.6.3)
- [9a30b5c](https://github.com/sierrasoftworks/iridium/commit/9a30b5c) Version 5.6.3

@@ -17,4 +25,20 @@ - [e1825cb](https://github.com/sierrasoftworks/iridium/commit/e1825cb) Fix changelog commit step

- [6de8a3f](https://github.com/sierrasoftworks/iridium/commit/6de8a3f) Merge branch 'master' into release
- [a98752e](https://github.com/sierrasoftworks/iridium/commit/a98752e) (origin/master, master) Automatically prep _references.d.ts during publish (Fixes [#11](https://github.com/sierrasoftworks/iridium/issues/11))
- [a98752e](https://github.com/sierrasoftworks/iridium/commit/a98752e) (origin/master, origin/HEAD) Automatically prep _references.d.ts during publish (Fixes [#11](https://github.com/sierrasoftworks/iridium/issues/11))
## [v5.6.0](https://github.com/sierrasoftworks/iridium/tree/5.6.0)
- [95dec95](https://github.com/sierrasoftworks/iridium/commit/95dec95) Version 5.6.0
- [c86d3a7](https://github.com/sierrasoftworks/iridium/commit/c86d3a7) Emit lcovonly coverate
- [51ef60f](https://github.com/sierrasoftworks/iridium/commit/51ef60f) Added tests for decorator ObjectID transform
- [aafaf55](https://github.com/sierrasoftworks/iridium/commit/aafaf55) Added tests for default ObjectID transform
- [aca976d](https://github.com/sierrasoftworks/iridium/commit/aca976d) Added tests for transforms within instances
- [10543ce](https://github.com/sierrasoftworks/iridium/commit/10543ce) Renamed a couple of transform tests
- [5dd56ae](https://github.com/sierrasoftworks/iridium/commit/5dd56ae) Added tests for the transforms system during inserts
- [3a77819](https://github.com/sierrasoftworks/iridium/commit/3a77819) Test default _id schema type
- [3df6c88](https://github.com/sierrasoftworks/iridium/commit/3df6c88) Evade the new default schema type when testing the model
- [f28acf7](https://github.com/sierrasoftworks/iridium/commit/f28acf7) Added some new tests for the ObjectID decorator
- [939193e](https://github.com/sierrasoftworks/iridium/commit/939193e) Model will provide a default _id type if one is not specified
- [a77716b](https://github.com/sierrasoftworks/iridium/commit/a77716b) Instance no longer includes a default _id type
- [fcddf13](https://github.com/sierrasoftworks/iridium/commit/fcddf13) ObjectID decorator now populates a transform
- [e091734](https://github.com/sierrasoftworks/iridium/commit/e091734) Fixed an issue where transforms always applied to the _id field
## [v5.5.4](https://github.com/sierrasoftworks/iridium/tree/5.5.4)

@@ -238,3 +262,3 @@ - [87bcce4](https://github.com/sierrasoftworks/iridium/commit/87bcce4) Version 5.5.4

- [858b766](https://github.com/sierrasoftworks/iridium/commit/858b766) Return nModified from update() on MongoDB 2.4
- [caf864a](https://github.com/sierrasoftworks/iridium/commit/caf864a) Make some test failures output more useful informatio
- [caf864a](https://github.com/sierrasoftworks/iridium/commit/caf864a) (sierrasoftworks/master) Make some test failures output more useful informatio
- [86b494f](https://github.com/sierrasoftworks/iridium/commit/86b494f) Travis is still broken, more logging and possible fixes

@@ -259,3 +283,3 @@ - [2448a4f](https://github.com/sierrasoftworks/iridium/commit/2448a4f) Support MongoDB 2.4 responses in update()

- [fdb0746](https://github.com/sierrasoftworks/iridium/commit/fdb0746) Merge pull request #7 from SierraSoftworks/typescript
- [cab9a81](https://github.com/sierrasoftworks/iridium/commit/cab9a81) (sierrasoftworks/typescript) Renamed Promise to Bluebird to avoid confusion and possible conflicts
- [cab9a81](https://github.com/sierrasoftworks/iridium/commit/cab9a81) Renamed Promise to Bluebird to avoid confusion and possible conflicts
- [a029c1e](https://github.com/sierrasoftworks/iridium/commit/a029c1e) Removed unused variable in Omnom

@@ -270,3 +294,3 @@ - [b4fb151](https://github.com/sierrasoftworks/iridium/commit/b4fb151) Removed unnecessary semicolons in module index

- [2e48949](https://github.com/sierrasoftworks/iridium/commit/2e48949) Fixed Travis code climate configuration
- [c91116d](https://github.com/sierrasoftworks/iridium/commit/c91116d) Added more badges to the README
- [c91116d](https://github.com/sierrasoftworks/iridium/commit/c91116d) (sierrasoftworks/typescript) Added more badges to the README
- [65ffea9](https://github.com/sierrasoftworks/iridium/commit/65ffea9) Updated code coverage submissions for CodeClimate

@@ -273,0 +297,0 @@ - [8949641](https://github.com/sierrasoftworks/iridium/commit/8949641) Added coveralls coverage badge to README

@@ -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,2 +60,6 @@ /// <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; }
};
}

@@ -62,0 +66,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: MongoDB.ObjectID
_id: false
};

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

];
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.transforms = {};
Instance.indexes = [];

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

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

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

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

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

@@ -45,2 +47,9 @@ 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)

@@ -47,0 +56,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._id);
return model.transforms[property].fromDB(this._modified[property]);
},
set: function (value) {
this._modified._id = model.transforms[property].toDB(value);
this._modified[property] = 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,2 +65,6 @@ /// <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: MongoDB.ObjectID
_id: false
};

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

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
}
};

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

@@ -64,2 +64,10 @@ /// <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
};

@@ -66,0 +74,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._id);
return model.transforms[property].fromDB(this._modified[property]);
},
set: function (value) {
this._modified._id = model.transforms[property].toDB(value);
this._modified[property] = model.transforms[property].toDB(value);
},

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

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

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

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