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

openwhisk

Package Overview
Dependencies
Maintainers
3
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openwhisk - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

lib/base_operation_error.js

13

lib/base_operation.js
'use strict'
const messages = require('./messages')
const BaseOperationError = require('./base_operation_error')
const rp = require('request-promise')

@@ -76,6 +77,12 @@ const url = require('url')

let error = 'Missing error message.'
if (reason.error && reason.error.response && reason.error.response.result && reason.error.response.result.error) {
error = reason.error.response.result.error
if (reason.error) {
if (reason.error.response && reason.error.response.result && reason.error.response.result.error) {
error = reason.error.response.result.error
}
throw new BaseOperationError(`${messages.API_SYSTEM_ERROR} ${error}`, reason.error);
}
throw new Error(`${messages.API_SYSTEM_ERROR} ${error}`)
else {
throw new Error(`${messages.API_SYSTEM_ERROR} ${error}`)
}
}

@@ -82,0 +89,0 @@ }

{
"name": "openwhisk",
"version": "2.2.1",
"version": "2.2.2",
"description": "JavaScript client library for the OpenWhisk platform",

@@ -5,0 +5,0 @@ "main": "lib/main.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