freestyle-sandboxes 0.1.3 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (6) hide show
  1. package/README.md +2 -2
  2. package/index.cjs +1485 -916
  3. package/index.d.cts +2316 -866
  4. package/index.d.mts +2316 -866
  5. package/index.mjs +1485 -916
  6. package/package.json +1 -1
package/README.md CHANGED
@@ -20,7 +20,7 @@ const { vm } = await freestyle.vms.create({
20
20
  await vm.fs.writeTextFile("/repo/api/hello.js", "...");
21
21
 
22
22
  // Deploy your code to the internet.
23
- const { deploymentId } = await freestyle.edge.deployments.create({
23
+ const { deploymentId } = await freestyle.serverless.deployments.create({
24
24
  repo: repoId,
25
25
  });
26
26
 
@@ -42,7 +42,7 @@ await freestyle.domains.mappings.create({
42
42
 
43
43
  // test your app with lightweight JS workers
44
44
  for (let i = 0; i < 10; i++) {
45
- freestyle.edge.runs.create({
45
+ freestyle.serverless.runs.create({
46
46
  code: `export default () => {
47
47
  fetch("https://example.com/api/hello")
48
48
  .then(res => res.json())