@begin/api
Advanced tools
Comparing version 1.5.4 to 1.5.5
{ | ||
"name": "@begin/api", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"description": "Node.js client for api.begin.com", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -47,15 +47,15 @@ > Node client for api.begin.com | ||
// read app logs | ||
let logs = await app.logs() | ||
let logs = await App.logs() | ||
// read build logs | ||
let logs = await app.builds() | ||
let logs = await App.builds() | ||
// deploy a new version of the app | ||
await app.deploy({ zip }) | ||
await App.deploy({ zip }) | ||
// deploy a new version of the app using @begin/chunker | ||
await app.deploy({ chunk, zip }) | ||
await App.deploy({ chunk, zip }) | ||
// destroy an app | ||
await app.destroy() | ||
await App.destroy() | ||
``` | ||
@@ -68,9 +68,9 @@ | ||
// get the app env | ||
let { env } = await app.env.get() | ||
let { env } = await App.env.get() | ||
// write an env var | ||
await app.env.set({ key: "HENLO", value: "world" }) | ||
await App.env.set({ key: "HENLO", value: "world" }) | ||
// remove an env var | ||
await app.env.destroy({ key: "HENLO" }) | ||
await App.env.destroy({ key: "HENLO" }) | ||
``` | ||
@@ -83,10 +83,10 @@ | ||
// get the app env | ||
let { files } = await app.static.get() | ||
let { files } = await App.static.get() | ||
// write a file | ||
let body = Buffer.from('console.log("hi")').toString('base64') | ||
await app.static.set({ name: '/file.js', body }) | ||
await App.static.set({ name: '/file.js', body }) | ||
// remove the file | ||
await app.static.destroy({ name: '/file.js' }) | ||
await App.static.destroy({ name: '/file.js' }) | ||
``` | ||
@@ -93,0 +93,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
23758
301