Skip to content

Commit f91b98f

Browse files
authored
Merge pull request #303 from mikkelhegn/sample-updates
Updates to common-samples
2 parents cfdc2bb + 2b0d31e commit f91b98f

File tree

3 files changed

+52
-49
lines changed

3 files changed

+52
-49
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
{
2-
"name": "outbound-http",
3-
"version": "1.0.0",
4-
"description": "",
5-
"main": "index.js",
6-
"scripts": {
7-
"build": "npx webpack --mode=production && npx mkdirp target && npx j2w -i dist.js -n spin-http -o target/outbound-http.wasm",
8-
"test": "echo \"Error: no test specified\" && exit 1"
9-
},
10-
"keywords": [],
11-
"author": "",
12-
"license": "ISC",
13-
"devDependencies": {
14-
"mkdirp": "^3.0.1",
15-
"ts-loader": "^9.4.1",
16-
"typescript": "^4.8.4",
17-
"webpack": "^5.74.0",
18-
"webpack-cli": "^4.10.0"
19-
},
20-
"dependencies": {
21-
"@fermyon/spin-sdk": "^2.0.0"
22-
}
23-
}
2+
"name": "outbound-http",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"build": "npx webpack --mode=production && npx mkdirp target && npx j2w -i dist.js -d combined-wit -n combined -o target/outbound-http.wasm",
8+
"test": "echo \"Error: no test specified\" && exit 1",
9+
"postinstall": "knitwit"
10+
},
11+
"keywords": [],
12+
"author": "",
13+
"license": "ISC",
14+
"devDependencies": {
15+
"mkdirp": "^3.0.1",
16+
"ts-loader": "^9.4.1",
17+
"typescript": "^4.8.4",
18+
"webpack": "^5.74.0",
19+
"webpack-cli": "^4.10.0"
20+
},
21+
"dependencies": {
22+
"@fermyon/spin-sdk": "^2.3.0"
23+
}
24+
}
25+
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
{
2-
"name": "outbound-http",
3-
"version": "1.0.0",
4-
"description": "",
5-
"main": "index.js",
6-
"scripts": {
7-
"build": "npx webpack --mode=production && npx mkdirp target && npx j2w -i dist.js -n spin-http -o target/outbound-http.wasm",
8-
"test": "echo \"Error: no test specified\" && exit 1"
9-
},
10-
"keywords": [],
11-
"author": "",
12-
"license": "ISC",
13-
"devDependencies": {
14-
"mkdirp": "^3.0.1",
15-
"ts-loader": "^9.4.1",
16-
"typescript": "^4.8.4",
17-
"webpack": "^5.74.0",
18-
"webpack-cli": "^4.10.0"
19-
},
20-
"dependencies": {
21-
"@fermyon/spin-sdk": "^2.0.0"
22-
}
23-
}
2+
"name": "routing-requests",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"build": "npx webpack --mode=production && npx mkdirp target && npx j2w -i dist.js -d combined-wit -n combined -o target/routing-requests.wasm",
8+
"test": "echo \"Error: no test specified\" && exit 1",
9+
"postinstall": "knitwit"
10+
},
11+
"keywords": [],
12+
"author": "",
13+
"license": "ISC",
14+
"devDependencies": {
15+
"mkdirp": "^3.0.1",
16+
"ts-loader": "^9.4.1",
17+
"typescript": "^4.8.4",
18+
"webpack": "^5.74.0",
19+
"webpack-cli": "^4.10.0"
20+
},
21+
"dependencies": {
22+
"@fermyon/spin-sdk": "^2.3.0"
23+
}
24+
}

examples/common-patterns/routing-requests/spin.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ spin_manifest_version = 2
33
[application]
44
authors = ["karthik2804 <[email protected]>"]
55
description = ""
6-
name = "outbound-http"
6+
name = "routing-requests"
77
version = "0.1.0"
88

99
[[trigger.http]]
1010
route = "/..."
11-
component = "outbound-http"
11+
component = "routing-requests"
1212

13-
[component.outbound-http]
14-
source = "target/outbound-http.wasm"
13+
[component.routing-requests]
14+
source = "target/routing-requests.wasm"
1515
exclude_files = ["**/node_modules"]
16-
[component.outbound-http.build]
16+
[component.routing-requests.build]
1717
command = "npm run build"
1818
watch = ["src/**/*.ts", "package.json"]

0 commit comments

Comments
 (0)