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

stockshark-data-access

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stockshark-data-access - npm Package Compare versions

Comparing version 1.0.44 to 1.0.45

2

package.json
{
"name": "stockshark-data-access",
"version": "1.0.44",
"version": "1.0.45",
"main": "./src/index.js",

@@ -5,0 +5,0 @@ "files": [

@@ -33,2 +33,7 @@ const MongoClient = require('mongodb').MongoClient;

const result = await coll.findOne({ _id: id }, { projection })
if (this._defined(field)) {
result = this._postProcess(result, field)
}
return result

@@ -233,3 +238,8 @@ }

if (typeof field === "string") {
result = result.map(p => util.getObjValueByPath(p, field))
if (Array.isArray(result)) {
result = result.map(p => util.getObjValueByPath(p, field))
}
else {
result = util.getObjValueByPath(result, field)
}
}

@@ -236,0 +246,0 @@ return result

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