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

@serverless/platform-client

Package Overview
Dependencies
Maintainers
4
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serverless/platform-client - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

Connection.js

@@ -60,3 +60,3 @@ /**

data = typeof data === 'string' ? JSON.parse(data) : data
return reject(`Serverless Streaming: ${data.message}`)
return reject(`Unexpected Serverless Platform Streaming Error: ${data.message}`)
})

@@ -63,0 +63,0 @@ })

@@ -40,9 +40,7 @@ /**

*/
async connect(options) {
async connect(options = {}) {
// Validate org
if (
(!options.orgName && !this.context.orgName) &&
(!options.orgUid && !this.context.orgUid)
)
{
options.orgName = options.orgName || this.context.orgName
options.orgUid = options.orgUid || this.context.orgUid
if (!options.orgName && !options.orgUid) {
throw new Error(`You must specify an "orgName" or "orgUid" to connect`)

@@ -107,7 +105,5 @@ }

}
if (
(!event.orgName && !this.context.orgName) &&
(!event.orgUid && !this.context.orgUid)
)
{
event.orgUid = event.orgUid || this.context.orgUid
event.orgName = event.orgName || this.context.orgName
if (!event.orgName && !event.orgUid) {
throw new Error(`event must have an "orgName" or "orgUid"`)

@@ -114,0 +110,0 @@ }

{
"name": "@serverless/platform-client",
"version": "0.1.2",
"version": "0.1.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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