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

simple-odata-server

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-odata-server - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

10

lib/odataServer.js

@@ -272,8 +272,14 @@ /*!

if (propDef.type === "Edm.Binary") {
if (doc[prop] !== 'Buffer' && !doc[prop].length) {
//nedb returns object instead of buffer on node 4
//nedb returns object instead of buffer on node 4
if (!Buffer.isBuffer(doc[prop]) && !doc[prop].length) {
var obj = doc[prop];
obj = obj.data || obj;
doc[prop] = Object.keys(obj).map(function (key) {return obj[key]; });
}
//unwrap mongo style buffers
if (doc[prop]._bsontype === "Binary") {
doc[prop] = doc[prop].buffer;
}
doc[prop] = new Buffer(doc[prop]).toString("base64");

@@ -280,0 +286,0 @@ }

2

package.json
{
"name": "simple-odata-server",
"version": "0.1.7",
"version": "0.1.8",
"description": "OData server with adapter for mongodb and nedb",

@@ -5,0 +5,0 @@ "main": "index.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