@toa.io/userland 1.0.0-alpha.251 → 1.0.0-alpha.253
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
async function computation (_, context) {
|
|
4
|
-
const response = await context.http.
|
|
4
|
+
const response = await context.fetch('http://api.example.com/path/to/resource')
|
|
5
5
|
const type = response.headers.get('content-type')
|
|
6
6
|
|
|
7
7
|
if (type !== 'application/json')
|
package/example/context.toa.yaml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/userland",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.253",
|
|
4
4
|
"description": "Toa development kit",
|
|
5
5
|
"homepage": "https://toa.io",
|
|
6
6
|
"author": {
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"types": "types/index.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@toa.io/boot": "1.0.0-alpha.
|
|
28
|
-
"@toa.io/core": "1.0.0-alpha.
|
|
27
|
+
"@toa.io/boot": "1.0.0-alpha.253",
|
|
28
|
+
"@toa.io/core": "1.0.0-alpha.252",
|
|
29
29
|
"@toa.io/filesystem": "1.0.0-alpha.225",
|
|
30
30
|
"@toa.io/generic": "1.0.0-alpha.225",
|
|
31
|
-
"@toa.io/norm": "1.0.0-alpha.
|
|
31
|
+
"@toa.io/norm": "1.0.0-alpha.253",
|
|
32
32
|
"@toa.io/schemas": "1.0.0-alpha.246",
|
|
33
33
|
"@toa.io/storages.null": "0.22.0",
|
|
34
34
|
"@toa.io/yaml": "1.0.0-alpha.246"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "ca97991a1c8a6e770a51e0899b0c5dbeacbb89ed"
|
|
37
37
|
}
|