@certik/skynet 0.10.0 → 0.10.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.1
4
+
5
+ - Fixed a bug for the new api app type
6
+
3
7
  ## 0.10.0
4
8
 
5
9
  - Added a new application type `api` to the `app` library
package/app.js CHANGED
@@ -594,7 +594,7 @@ function api({ name, routes, serve, env = {}, region = "us-east-1" }) {
594
594
  func: async () => {
595
595
  const errors = [];
596
596
 
597
- const url = `${serve.prefix}/`;
597
+ const url = `http://localhost:9999${serve.prefix}/`;
598
598
  const res = await fetch(url);
599
599
 
600
600
  if (!res.ok) {
package/deploy.js CHANGED
@@ -84,6 +84,16 @@ const genConfig = ({
84
84
  unlimited = false
85
85
  }
86
86
 
87
+ ${
88
+ service
89
+ ? `# Setup Service Network
90
+ network {
91
+ port "http" {
92
+ static = ${service.port}
93
+ }
94
+ }` : ""
95
+ }
96
+
87
97
  task "log-shipper" {
88
98
  driver = "raw_exec"
89
99
 
@@ -127,12 +137,6 @@ const genConfig = ({
127
137
  ${
128
138
  service
129
139
  ? `# Setup API Routes
130
- network {
131
- port "http" {
132
- static = ${service.port}
133
- }
134
- }
135
-
136
140
  service {
137
141
  name = "${jobName}"
138
142
  port = "http"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@certik/skynet",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Skynet Shared JS library",
5
5
  "main": "index.js",
6
6
  "author": "CertiK Engineering",