mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
tweaking + npm update...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e9a3192335
commit
fd0edaf437
@ -267,6 +267,8 @@ var ExampleActions = actions.Actions({
|
||||
// XXX inner/outer action...
|
||||
|
||||
|
||||
// Tasks...
|
||||
//
|
||||
// NOTE: action name and task name should be the same to avoid
|
||||
// confusion...
|
||||
// XXX it would be quite complicated to support both and
|
||||
@ -276,22 +278,19 @@ var ExampleActions = actions.Actions({
|
||||
function(ticket, ...args){
|
||||
console.log('###', ticket.title+':', 'START:', ...args,
|
||||
'\n\t\t(supported messages: "stop", "break", "error", ...)')
|
||||
ticket.onmessage(function(msg, ...args){
|
||||
ticket.onmessage(function(msg){
|
||||
// stop...
|
||||
if(msg == 'stop'){
|
||||
console.log('###', ticket.title+':', 'STOP')
|
||||
console.log('###', ticket.title+':', 'STOP', ...args)
|
||||
ticket.resolve(...args)
|
||||
|
||||
// break...
|
||||
} else if(msg == 'break'){
|
||||
console.log('###', ticket.title+':', 'BREAK')
|
||||
console.log('###', ticket.title+':', 'BREAK', ...args)
|
||||
ticket.reject(...args)
|
||||
|
||||
// error...
|
||||
} else if(msg == 'error'){
|
||||
console.log('###', ticket.title+':', 'ERROR')
|
||||
console.log('###', ticket.title+':', 'ERROR', ...args)
|
||||
throw new Error('Task error')
|
||||
|
||||
// other...
|
||||
} else {
|
||||
console.log('###', ticket.title+':', 'Got message:', msg, ...args) } }) })],
|
||||
|
||||
6
Viewer/package-lock.json
generated
6
Viewer/package-lock.json
generated
@ -1073,9 +1073,9 @@
|
||||
"integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg=="
|
||||
},
|
||||
"ig-actions": {
|
||||
"version": "3.24.15",
|
||||
"resolved": "https://registry.npmjs.org/ig-actions/-/ig-actions-3.24.15.tgz",
|
||||
"integrity": "sha512-fhMZ1F34nPm/Hir1Is+3hKPJpshgwbxjnQRJb5M+/fs52FfoG7TMbDYWzbKKe6qtwfyrcVD2rPRidjCl6779zQ==",
|
||||
"version": "3.24.18",
|
||||
"resolved": "https://registry.npmjs.org/ig-actions/-/ig-actions-3.24.18.tgz",
|
||||
"integrity": "sha512-0cZYX56el81rOGcD/GwFsrD4pRg3ZwYu7ilSzkXhZTw+mvGQD7Vilj1faHrWTX2geMS3XugZ/294dP/Jl6VGDg==",
|
||||
"requires": {
|
||||
"ig-object": "^5.0.2"
|
||||
}
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
"generic-walk": "^1.4.0",
|
||||
"glob": "^7.1.6",
|
||||
"guarantee-events": "^1.0.0",
|
||||
"ig-actions": "^3.24.15",
|
||||
"ig-actions": "^3.24.18",
|
||||
"ig-argv": "^2.15.0",
|
||||
"ig-features": "^3.4.2",
|
||||
"ig-object": "^5.4.12",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user