@toa.io/userland 0.8.2-dev.2 → 0.9.0-dev.0

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
- async function observation (input, none, context) {
3
+ async function computation (input, context) {
4
4
  return context.configuration.signal
5
5
  }
6
6
 
7
- exports.observation = observation
7
+ exports.computation = computation
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
- async function observation (input) {
3
+ async function computation (input) {
4
4
  return input.a + input.b
5
5
  }
6
6
 
7
- exports.observation = observation
7
+ exports.computation = computation
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- async function observation (input, none, context) {
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.observation = observation
15
+ exports.computation = computation
@@ -1,10 +1,10 @@
1
1
  'use strict'
2
2
 
3
- async function observation (input, none, context) {
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.observation = observation
10
+ exports.computation = computation
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- async function observation (input, none, context) {
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.observation = observation
13
+ exports.computation = computation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/userland",
3
- "version": "0.8.2-dev.2",
3
+ "version": "0.9.0-dev.0",
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.1",
28
- "@toa.io/core": "0.8.0-dev.1",
29
- "@toa.io/filesystem": "0.7.1-dev.1",
30
- "@toa.io/generic": "0.8.0-dev.1",
31
- "@toa.io/norm": "0.9.0-dev.1",
32
- "@toa.io/schemas": "0.8.0-dev.1",
33
- "@toa.io/yaml": "0.7.2-dev.2",
27
+ "@toa.io/boot": "0.8.0-dev.3",
28
+ "@toa.io/core": "0.8.0-dev.3",
29
+ "@toa.io/filesystem": "0.7.1-dev.3",
30
+ "@toa.io/generic": "0.8.0-dev.3",
31
+ "@toa.io/norm": "0.9.0-dev.3",
32
+ "@toa.io/schemas": "0.8.0-dev.3",
33
+ "@toa.io/yaml": "0.7.2-dev.4",
34
34
  "tap": "16.3.4"
35
35
  },
36
- "gitHead": "9bb2f372c556440ee3e2a42e10eb415220ba1cb0"
36
+ "gitHead": "d72b4c2362e928dba56f4743cc956aa5486f82a4"
37
37
  }