@toa.io/userland 0.8.2-dev.3 → 0.9.0-dev.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/example/components/echo/beacon/operations/signal.js +2 -2
- package/example/components/math/calculations/operations/add.js +2 -2
- package/example/components/math/calculations/operations/increment.js +2 -2
- package/example/components/math/proxy/operations/add.js +2 -2
- package/example/components/tea/pots/operations/same.js +2 -2
- package/package.json +9 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
async function
|
|
3
|
+
async function computation (input, context) {
|
|
4
4
|
let value = input.value
|
|
5
5
|
|
|
6
6
|
for (let i = 0; i < input.times; i++) {
|
|
@@ -12,4 +12,4 @@ async function observation (input, none, context) {
|
|
|
12
12
|
return value
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
exports.
|
|
15
|
+
exports.computation = computation
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
async function
|
|
3
|
+
async function computation (input, context) {
|
|
4
4
|
const request = { input }
|
|
5
5
|
|
|
6
6
|
// noinspection JSUnresolvedVariable
|
|
7
7
|
return context.remote.math.calculations.add(request)
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
exports.
|
|
10
|
+
exports.computation = computation
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
async function
|
|
3
|
+
async function computation (input, context) {
|
|
4
4
|
const criteria = `material==${input}`
|
|
5
5
|
const query = { criteria, limit }
|
|
6
6
|
|
|
@@ -10,4 +10,4 @@ async function observation (input, none, context) {
|
|
|
10
10
|
|
|
11
11
|
const limit = 10
|
|
12
12
|
|
|
13
|
-
exports.
|
|
13
|
+
exports.computation = computation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/userland",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0-dev.1",
|
|
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": "0.8.0-dev.
|
|
28
|
-
"@toa.io/core": "0.8.0-dev.
|
|
29
|
-
"@toa.io/filesystem": "0.7.1-dev.
|
|
30
|
-
"@toa.io/generic": "0.8.0-dev.
|
|
31
|
-
"@toa.io/norm": "0.9.0-dev.
|
|
32
|
-
"@toa.io/schemas": "0.8.0-dev.
|
|
33
|
-
"@toa.io/yaml": "0.7.2-dev.
|
|
27
|
+
"@toa.io/boot": "0.8.0-dev.4",
|
|
28
|
+
"@toa.io/core": "0.8.0-dev.4",
|
|
29
|
+
"@toa.io/filesystem": "0.7.1-dev.4",
|
|
30
|
+
"@toa.io/generic": "0.8.0-dev.4",
|
|
31
|
+
"@toa.io/norm": "0.9.0-dev.4",
|
|
32
|
+
"@toa.io/schemas": "0.8.0-dev.4",
|
|
33
|
+
"@toa.io/yaml": "0.7.2-dev.5",
|
|
34
34
|
"tap": "16.3.4"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "3de648988a0bfb4b0217da0527db312f22ef7c54"
|
|
37
37
|
}
|