New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

senter-apps-service

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

senter-apps-service - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

18

appsService.js
const MongoRepository = require('senter-mongo-repository');
const appRepository = new MongoRepository(process.env.mongoConnectionString, process.env.mongoDatabase, MongoRepository.AppsCollectionName);
const settingsRepository = new MongoRepository(process.env.mongoConnectionString, process.env.mongoDatabase, MongoRepository.SettingsCollectionName);

@@ -13,2 +11,8 @@ module.exports = class AppsService {

constructor(client, dbName)
{
this._appRepository = new MongoRepository(client, dbName, MongoRepository.AppsCollectionName);
this._settingsRepository = new MongoRepository(client, dbName, MongoRepository.SettingsCollectionName);
}
async getApp(userId, appName){

@@ -27,3 +31,3 @@ var apps = await this.getUserAppsDocument(userId);

await appRepository.upsert(userId, userId, apps)
await this._appRepository.upsert(userId, userId, apps)
}

@@ -37,11 +41,11 @@

updateQuery.$set[`locations.$[].${appName}`] = null;
await settingsRepository.updateMany({}, userId, updateQuery)
await this._settingsRepository.updateMany({}, userId, updateQuery)
}
async searchApp(term){
return await appRepository.search(term);
return await this._appRepository.search(term);
}
async getUserAppsDocument(userId) {
const apps = await appRepository.getById(userId);
const apps = await this._appRepository.getById(userId);

@@ -59,4 +63,4 @@ if (!apps)

return await appRepository.create(userId, apps);
return await this._appRepository.create(userId, apps);
}
}
{
"name": "senter-apps-service",
"version": "1.0.10",
"version": "1.0.11",
"description": "Keep track of active integration apps",

@@ -12,3 +12,3 @@ "main": "appsService.js",

"dependencies": {
"senter-mongo-repository": "^1.3.0"
"senter-mongo-repository": "^2.1.0"
},

@@ -15,0 +15,0 @@ "devDependencies": {

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