@toa.io/extensions.cadence 1.0.0-alpha.303 → 1.0.0-alpha.305
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/package.json +7 -7
- package/readme.md +7 -0
- package/transpiled/Aspect.js +5 -0
- package/transpiled/Aspect.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/extensions.cadence",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.305",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Toa Schedule",
|
|
6
6
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"!**/.env*"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@toa.io/core": "1.0.0-alpha.
|
|
30
|
-
"@toa.io/definitions": "1.0.0-alpha.
|
|
31
|
-
"@toa.io/generic": "1.0.0-alpha.
|
|
32
|
-
"@toa.io/schemas": "1.0.0-alpha.
|
|
33
|
-
"openspan": "1.0.0-alpha.
|
|
29
|
+
"@toa.io/core": "1.0.0-alpha.305",
|
|
30
|
+
"@toa.io/definitions": "1.0.0-alpha.305",
|
|
31
|
+
"@toa.io/generic": "1.0.0-alpha.304",
|
|
32
|
+
"@toa.io/schemas": "1.0.0-alpha.304",
|
|
33
|
+
"openspan": "1.0.0-alpha.305"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"transpile": "tsc"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "6a28476303826e2484cc2ea6306efee6f19fb594"
|
|
39
39
|
}
|
package/readme.md
CHANGED
|
@@ -101,6 +101,13 @@ await context.delay.cancel(id)
|
|
|
101
101
|
The call is made once the delay has passed, and waits for the target where it is not there to
|
|
102
102
|
take it. The id it answers cancels it, and `cancel` raises where the id was never issued.
|
|
103
103
|
|
|
104
|
+
### Arming is a write
|
|
105
|
+
|
|
106
|
+
Handing a call over stores a row, so `context.delay` raises where it is called from a chain that
|
|
107
|
+
[may only read](/documentation/readonly.md) — whatever the delayed call itself would have been. Over
|
|
108
|
+
HTTP that chain begins with a `GET` or a `HEAD`, so an operation reached by one arms nothing: the
|
|
109
|
+
row is not stored and no id is answered, and the exception is thrown where the call was made.
|
|
110
|
+
|
|
104
111
|
### A delay is a hop
|
|
105
112
|
|
|
106
113
|
The call is made by the chain that asked for it, so an operation that delays a call to itself is
|
package/transpiled/Aspect.js
CHANGED
|
@@ -55,6 +55,11 @@ export class Aspect extends Connector {
|
|
|
55
55
|
const hops = options.detached === true ? undefined : trail.current()?.hops;
|
|
56
56
|
if (hops !== undefined)
|
|
57
57
|
input.trail = hops;
|
|
58
|
+
/*
|
|
59
|
+
* Raises where this is called from a chain that may only read: the row is a write, whatever the
|
|
60
|
+
* delayed call would have been, and `cadence.metronome.delay` is a transition like any other.
|
|
61
|
+
* Nothing is stored and no id is answered. See `documentation/readonly.md`.
|
|
62
|
+
*/
|
|
58
63
|
return await this.metronome.invoke('delay', { input });
|
|
59
64
|
}
|
|
60
65
|
/**
|
package/transpiled/Aspect.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Aspect.js","sourceRoot":"","sources":["../source/Aspect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAG3D,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAA;AAU5C;;;;;;;;GAQG;AACH,MAAM,OAAO,MAAO,SAAQ,SAAS;IACnB,IAAI,GAAG,OAAO,CAAA;IAEb,SAAS,CAAO;IAEjC,YAAmB,SAAgB;QACjC,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAE1B,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IAC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