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

@begin/api

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@begin/api - npm Package Compare versions

Comparing version 1.5.4 to 1.5.5

2

package.json
{
"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

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