@luvio/command-aura-network
Advanced tools
Comparing version 5.3.1 to 5.4.0
@@ -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 |
{ | ||
"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 @@ { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11370
9
105
0
Updated@luvio/runtime@^5.4.0
Updated@luvio/utils@^5.4.0