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

sinaps-odm

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinaps-odm - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

1

lib/Client.js

@@ -6,2 +6,3 @@ "use strict";

// TODO Oplog events : https://github.com/hiddentao/robe/blob/master/src/oplog.js

@@ -8,0 +9,0 @@ class Client {

@@ -328,3 +328,17 @@ "use strict";

if (value && typeof value.toObject === 'function') {
if (_.isArray(value)) {
return value.map(value => {
if (value && typeof value.toObject === 'function') {
return value.toObject.call(value, includeSubDocument, depth + 1);
}
else if (value && typeof value.toString === 'function') {
var str = value.toString();
if (str !== '[object Object]') {
return str;
}
}
return value;
});
}
else if (value && typeof value.toObject === 'function') {
return value.toObject.call(value, includeSubDocument, depth + 1);

@@ -533,3 +547,17 @@ }

return this.map((item) => {
if (item && typeof item.toObject === 'function') {
if (_.isArray(item)) {
return value.map(value => {
if (item && typeof item.toObject === 'function') {
return item.toObject.call(item, includeSubDocument, depth + 1);
}
else if (item && typeof item.toString === 'function') {
var str = item.toString();
if (str !== '[object Object]') {
return item.toString();
}
}
return item;
});
}
else if (item && typeof item.toObject === 'function') {
return item.toObject.call(item, includeSubDocument, depth + 1);

@@ -536,0 +564,0 @@ }

2

package.json
{
"name": "sinaps-odm",
"version": "0.1.1",
"version": "0.1.2",
"description": "Sinaps ODM is a object document model for MongoDB-like databases.",

@@ -5,0 +5,0 @@ "main": "main.js",

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