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

@startup-booster/move-server-raven

Package Overview
Dependencies
Maintainers
4
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@startup-booster/move-server-raven - npm Package Compare versions

Comparing version 0.1.38 to 0.1.39

12

methods/query.js

@@ -11,3 +11,3 @@ const { registerRpc } = require('../rpcUtils');

) => {
registerRpc(socket, 'query', async (query, aggregate) => {
registerRpc(socket, 'query', async (query, options = {}) => {
const authorized = await authorize?.(socket.data.user, 'query', query);

@@ -19,4 +19,10 @@ if (authorize && !authorized) {

const session = store.openSession();
const q = session.advanced.rawQuery(query);
if (aggregate) {
let q = session.advanced.rawQuery(query);
if (options.take) {
q = q.take(options.take);
}
if (options.skip) {
q = q.skip(options.skip);
}
if (options.aggregate) {
return q.executeAggregation();

@@ -23,0 +29,0 @@ }

{
"name": "@startup-booster/move-server-raven",
"version": "0.1.38",
"version": "0.1.39",
"main": "server.js",

@@ -5,0 +5,0 @@ "license": "MIT",

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