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

@based/server

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@based/server - npm Package Compare versions

Comparing version 3.2.3 to 3.3.0

.turbo/turbo-build.log

2

dist/handlers/functions/call.d.ts

@@ -5,3 +5,3 @@ import { BasedServer } from '../..';

import { Params } from '../../Params';
declare const call: (server: BasedServer, client: Client, [, name, reqId, payload]: FunctionCallMessage, params?: Params) => Promise<void>;
declare const call: (server: BasedServer, client: Client, [, name, reqId, payload, path]: FunctionCallMessage, params?: Params) => Promise<void>;
export default call;

@@ -8,3 +8,3 @@ "use strict";

// start with call
const call = async (server, client, [, name, reqId, payload], params // in authorize this is a bit awkard
const call = async (server, client, [, name, reqId, payload, path], params // in authorize this is a bit awkard
) => {

@@ -15,2 +15,3 @@ const fn = await (0, getFromConfig_1.getFunction)(server, name);

params = new Params_1.Params(server, payload, client, [name]);
params.path = path;
}

@@ -17,0 +18,0 @@ try {

@@ -52,3 +52,7 @@ "use strict";

if (type === client_1.RequestTypes.Call) {
return [type, name[2], 0, payload];
let path = '';
for (let i = 3; i < name.length; i++) {
path += `/${name[i]}`;
}
return [type, name[2], 0, payload, path || '/'];
}

@@ -55,0 +59,0 @@ else if (type === client_1.RequestTypes.Set) {

@@ -6,3 +6,2 @@ "use strict";

// type GenericObject = { [key: string]: any }
console.info('xxx');
class Subscription {

@@ -9,0 +8,0 @@ constructor(server, id, query) {

@@ -18,3 +18,4 @@ /// <reference types="node" />

server: BasedServer;
path?: string;
get based(): BasedServerClient;
}
{
"name": "@based/server",
"version": "3.2.3",
"version": "3.3.0",
"license": "MIT",

@@ -21,3 +21,3 @@ "main": "dist/index.js",

"@saulx/hash": "^1.1.0",
"@saulx/utils": "^2.2.1",
"@saulx/utils": "^2.3.2",
"chalk": "^4.1.2",

@@ -24,0 +24,0 @@ "graphql": "^16.3.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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