0.4.0 • Published 1 year ago

wayscript v0.4.0

Weekly downloads
521
License
MIT
Repository
github
Last release
1 year ago

wayscript-js

Triggers

HTTP Trigger

Send an http trigger response:

const wayscript = require("wayscript")
let data = {"hello": "world"}
let headers = {"x-my-custom-header": "hello"}
let status_code = 200
response = wayscript.http_trigger.sendResponse(data, headers, status_code)
console.log(response)

Context

Access the event which triggered an execution:

const wayscript = require("wayscript")
event = wayscript.context.getEvent();
console.log(event);

Secrets

To create a new secret, or update an existing one:

const wayscript = require("wayscript");
wayscript.secret_manager.setSecret("my_key", "my_secret_value");

More use cases in can be found here

Contributing guide here

0.4.0

1 year ago

0.3.0

1 year ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago