Package Exports
- saasify-faas-sdk
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (saasify-faas-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
saasify-faas-sdk
HTTP client for invoking Saasify FaaS.
Install
npm install --save saasify-faas-sdkUsage
const SaasifySDK = require('saasify-faas-sdk')
const sdk = new SaasifySDK()
const helloWorldUrl = 'https://ssfy.sh/dev/hello-world'
const res = await sdk.post(helloWorldUrl, {
data: { name: 'Nala' }
})
{
"body": "Hello Nala!",
"contentType": "application/json",
"response": { /* raw axios response */ }
}TODO
- use
nockin unit tests to ensure robustness and enable offline testing - change stateful way the auth
tokenis currently handled
License
MIT © Saasify