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.42 to 1.0.43

2

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

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

@@ -134,2 +134,17 @@ const MongoClient = require('mongodb').MongoClient;

async updateAll(collection, data) {
const coll = this.db.collection(collection);
await coll.updateMany({}, { $set: data }, { multi: true, upsert: false })
}
async updateMany(collection, filter, data) {
const coll = this.db.collection(collection);
if (this._defined(filter)) {
filter = this._compileFilter(filter)
}
await coll.updateMany(filter, { $set: data }, { multi: true, upsert: false })
}
async upsertOne(collection, id, data) {

@@ -136,0 +151,0 @@ const coll = this.db.collection(collection);

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