Socket
Socket
Sign inDemoInstall

@luvio/command-aura-network

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luvio/command-aura-network - npm Package Compare versions

Comparing version 5.3.1 to 5.4.0

dist/types/v1/convert-response.d.ts

19

dist/v1/index.js

@@ -8,4 +8,21 @@ /**

import { NetworkCommand } from '@luvio/command-network/v1';
import { convertAuraResponseToData } from '@luvio/runtime';
import { ok, err, toError } from '@luvio/utils';
function convertAuraResponseToData(responsePromise) {
return responsePromise
.then((response) => {
return ok(response.getReturnValue());
})
.catch((error) => {
if (!error || !error.getError) {
return err(toError('Failed to get error from response'));
}
const actionErrors = error.getError();
if (actionErrors.length > 0) {
return err(toError(actionErrors[0]));
}
return err(toError('Error fetching component'));
});
}
/**

@@ -12,0 +29,0 @@ * An implementation of BaseCommand that makes network requests but does not try to

11

package.json
{
"name": "@luvio/command-aura-network",
"version": "5.3.1",
"version": "5.4.0",
"private": false,

@@ -34,6 +34,9 @@ "description": "Luvio Aura Network Command",

"dependencies": {
"@luvio/command-network": "^5.3.1",
"@luvio/runtime": "^5.3.1",
"@luvio/utils": "^5.3.1"
"@luvio/command-network": "^5.4.0",
"@luvio/runtime": "^5.4.0",
"@luvio/utils": "^5.4.0"
},
"volta": {
"extends": "../../../../package.json"
},
"bundlesize": [

@@ -40,0 +43,0 @@ {

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