@webda/async 2.0.0 → 2.1.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/lib/models.d.ts +4 -0
- package/lib/models.js.map +1 -1
- package/lib/services/asyncjobservice.js +1 -1
- package/lib/services/asyncjobservice.js.map +1 -1
- package/package.json +4 -5
- package/webda.module.json +31 -172
package/lib/models.d.ts
CHANGED
package/lib/models.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAyBxC;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAyBxC;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAS;CA2DjD;AAED;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;CAShD;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -188,7 +188,7 @@ export default class AsyncJobService extends Service {
|
|
|
188
188
|
JOB_HOOK: this.getWebda().getApiUrl(this.parameters.url),
|
|
189
189
|
JOB_ORCHESTRATOR: this.getName()
|
|
190
190
|
};
|
|
191
|
-
await action.
|
|
191
|
+
await action.patch({
|
|
192
192
|
job: await selectedRunner.launchAction(action, info)
|
|
193
193
|
});
|
|
194
194
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncjobservice.js","sourceRoot":"","sources":["../../src/services/asyncjobservice.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,OAAO,EAAE,iBAAiB,EAAS,MAAM,aAAa,CAAC;AAC5G,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC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C,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webda/async",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Async System",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -19,13 +19,12 @@
|
|
|
19
19
|
"package.json"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@
|
|
23
|
-
"@webda/core": "^2.0.0",
|
|
22
|
+
"@webda/core": "^2.1.1",
|
|
24
23
|
"axios": "^0.27.2"
|
|
25
24
|
},
|
|
26
25
|
"devDependencies": {
|
|
27
26
|
"@types/node": "14.6.0",
|
|
28
|
-
"@webda/tsc-esm": "^1.0.
|
|
27
|
+
"@webda/tsc-esm": "^1.0.1",
|
|
29
28
|
"mocha": "^10.0.0",
|
|
30
29
|
"sinon": "^14.0.0",
|
|
31
30
|
"source-map-support": "^0.5.19",
|
|
@@ -62,5 +61,5 @@
|
|
|
62
61
|
"engines": {
|
|
63
62
|
"node": ">=14.6.0"
|
|
64
63
|
},
|
|
65
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "83193e0454661bfb7883c972f49ccfc4a1163154"
|
|
66
65
|
}
|
package/webda.module.json
CHANGED
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
"description": "Last update date",
|
|
25
25
|
"readOnly": true
|
|
26
26
|
},
|
|
27
|
+
"uuid": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Action uuid"
|
|
30
|
+
},
|
|
27
31
|
"status": {
|
|
28
32
|
"type": "string",
|
|
29
33
|
"enum": [
|
|
@@ -75,6 +79,7 @@
|
|
|
75
79
|
}
|
|
76
80
|
},
|
|
77
81
|
"required": [
|
|
82
|
+
"uuid",
|
|
78
83
|
"status",
|
|
79
84
|
"job",
|
|
80
85
|
"results",
|
|
@@ -182,50 +187,11 @@
|
|
|
182
187
|
"options": {
|
|
183
188
|
"type": "object",
|
|
184
189
|
"properties": {
|
|
185
|
-
"signal": {
|
|
186
|
-
"type": "object",
|
|
187
|
-
"properties": {
|
|
188
|
-
"aborted": {
|
|
189
|
-
"type": "boolean"
|
|
190
|
-
},
|
|
191
|
-
"onabort": {
|
|
192
|
-
"anyOf": [
|
|
193
|
-
{},
|
|
194
|
-
{
|
|
195
|
-
"type": "null"
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
},
|
|
199
|
-
"reason": {}
|
|
200
|
-
},
|
|
201
|
-
"required": [
|
|
202
|
-
"aborted",
|
|
203
|
-
"onabort",
|
|
204
|
-
"reason"
|
|
205
|
-
],
|
|
206
|
-
"description": "When provided the corresponding `AbortController` can be used to cancel an asynchronous action."
|
|
207
|
-
},
|
|
208
190
|
"serialization": {
|
|
209
191
|
"$ref": "#/definitions/SerializationType",
|
|
210
192
|
"description": "Specify the kind of serialization used for sending messages between processes.",
|
|
211
193
|
"default": "json"
|
|
212
194
|
},
|
|
213
|
-
"killSignal": {
|
|
214
|
-
"anyOf": [
|
|
215
|
-
{
|
|
216
|
-
"$ref": "#/definitions/global.NodeJS.Signals"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"type": "number"
|
|
220
|
-
}
|
|
221
|
-
],
|
|
222
|
-
"description": "The signal value to be used when the spawned process will be killed by the abort signal.",
|
|
223
|
-
"default": "SIGTERM"
|
|
224
|
-
},
|
|
225
|
-
"timeout": {
|
|
226
|
-
"type": "number",
|
|
227
|
-
"default": 0
|
|
228
|
-
},
|
|
229
195
|
"uid": {
|
|
230
196
|
"type": "number"
|
|
231
197
|
},
|
|
@@ -233,94 +199,20 @@
|
|
|
233
199
|
"type": "number"
|
|
234
200
|
},
|
|
235
201
|
"cwd": {
|
|
236
|
-
"
|
|
237
|
-
{
|
|
238
|
-
"type": "string"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"type": "object",
|
|
242
|
-
"properties": {
|
|
243
|
-
"hash": {
|
|
244
|
-
"type": "string",
|
|
245
|
-
"description": "Gets and sets the fragment portion of the URL.\n\n```js const myURL = new URL('https://example.org/foo#bar'); console.log(myURL.hash); // Prints #bar\n\nmyURL.hash = 'baz'; console.log(myURL.href); // Prints https://example.org/foo#baz ```\n\nInvalid URL characters included in the value assigned to the `hash` property are `percent-encoded`. The selection of which characters to percent-encode may vary somewhat from what the {@link parse } and {@link format } methods would produce."
|
|
246
|
-
},
|
|
247
|
-
"host": {
|
|
248
|
-
"type": "string",
|
|
249
|
-
"description": "Gets and sets the host portion of the URL.\n\n```js const myURL = new URL('https://example.org:81/foo'); console.log(myURL.host); // Prints example.org:81\n\nmyURL.host = 'example.com:82'; console.log(myURL.href); // Prints https://example.com:82/foo ```\n\nInvalid host values assigned to the `host` property are ignored."
|
|
250
|
-
},
|
|
251
|
-
"hostname": {
|
|
252
|
-
"type": "string",
|
|
253
|
-
"description": "Gets and sets the host name portion of the URL. The key difference between`url.host` and `url.hostname` is that `url.hostname` does _not_ include the port.\n\n```js const myURL = new URL('https://example.org:81/foo'); console.log(myURL.hostname); // Prints example.org\n\n// Setting the hostname does not change the port myURL.hostname = 'example.com:82'; console.log(myURL.href); // Prints https://example.com:81/foo\n\n// Use myURL.host to change the hostname and port myURL.host = 'example.org:82'; console.log(myURL.href); // Prints https://example.org:82/foo ```\n\nInvalid host name values assigned to the `hostname` property are ignored."
|
|
254
|
-
},
|
|
255
|
-
"href": {
|
|
256
|
-
"type": "string",
|
|
257
|
-
"description": "Gets and sets the serialized URL.\n\n```js const myURL = new URL('https://example.org/foo'); console.log(myURL.href); // Prints https://example.org/foo\n\nmyURL.href = 'https://example.com/bar'; console.log(myURL.href); // Prints https://example.com/bar ```\n\nGetting the value of the `href` property is equivalent to calling {@link toString } .\n\nSetting the value of this property to a new value is equivalent to creating a new `URL` object using `new URL(value)`. Each of the `URL`object's properties will be modified.\n\nIf the value assigned to the `href` property is not a valid URL, a `TypeError`will be thrown."
|
|
258
|
-
},
|
|
259
|
-
"origin": {
|
|
260
|
-
"type": "string",
|
|
261
|
-
"description": "Gets the read-only serialization of the URL's origin.\n\n```js const myURL = new URL('https://example.org/foo/bar?baz'); console.log(myURL.origin); // Prints https://example.org ```\n\n```js const idnURL = new URL('https://測試'); console.log(idnURL.origin); // Prints https://xn--g6w251d\n\nconsole.log(idnURL.hostname); // Prints xn--g6w251d ```"
|
|
262
|
-
},
|
|
263
|
-
"password": {
|
|
264
|
-
"type": "string",
|
|
265
|
-
"description": "Gets and sets the password portion of the URL.\n\n```js const myURL = new URL('https://abc:xyz@example.com'); console.log(myURL.password); // Prints xyz\n\nmyURL.password = '123'; console.log(myURL.href); // Prints https://abc:123@example.com ```\n\nInvalid URL characters included in the value assigned to the `password` property are `percent-encoded`. The selection of which characters to percent-encode may vary somewhat from what the {@link parse } and {@link format } methods would produce."
|
|
266
|
-
},
|
|
267
|
-
"pathname": {
|
|
268
|
-
"type": "string",
|
|
269
|
-
"description": "Gets and sets the path portion of the URL.\n\n```js const myURL = new URL('https://example.org/abc/xyz?123'); console.log(myURL.pathname); // Prints /abc/xyz\n\nmyURL.pathname = '/abcdef'; console.log(myURL.href); // Prints https://example.org/abcdef?123 ```\n\nInvalid URL characters included in the value assigned to the `pathname`property are `percent-encoded`. The selection of which characters to percent-encode may vary somewhat from what the {@link parse } and {@link format } methods would produce."
|
|
270
|
-
},
|
|
271
|
-
"port": {
|
|
272
|
-
"type": "string",
|
|
273
|
-
"description": "Gets and sets the port portion of the URL.\n\nThe port value may be a number or a string containing a number in the range`0` to `65535` (inclusive). Setting the value to the default port of the`URL` objects given `protocol` will result in the `port` value becoming the empty string (`''`).\n\nThe port value can be an empty string in which case the port depends on the protocol/scheme:\n\n<omitted>\n\nUpon assigning a value to the port, the value will first be converted to a string using `.toString()`.\n\nIf that string is invalid but it begins with a number, the leading number is assigned to `port`. If the number lies outside the range denoted above, it is ignored.\n\n```js const myURL = new URL('https://example.org:8888'); console.log(myURL.port); // Prints 8888\n\n// Default ports are automatically transformed to the empty string // (HTTPS protocol's default port is 443) myURL.port = '443'; console.log(myURL.port); // Prints the empty string console.log(myURL.href); // Prints https://example.org/\n\nmyURL.port = 1234; console.log(myURL.port); // Prints 1234 console.log(myURL.href); // Prints https://example.org:1234/\n\n// Completely invalid port strings are ignored myURL.port = 'abcd'; console.log(myURL.port); // Prints 1234\n\n// Leading numbers are treated as a port number myURL.port = '5678abcd'; console.log(myURL.port); // Prints 5678\n\n// Non-integers are truncated myURL.port = 1234.5678; console.log(myURL.port); // Prints 1234\n\n// Out-of-range numbers which are not represented in scientific notation // will be ignored. myURL.port = 1e10; // 10000000000, will be range-checked as described below console.log(myURL.port); // Prints 1234 ```\n\nNumbers which contain a decimal point, such as floating-point numbers or numbers in scientific notation, are not an exception to this rule. Leading numbers up to the decimal point will be set as the URL's port, assuming they are valid:\n\n```js myURL.port = 4.567e21; console.log(myURL.port); // Prints 4 (because it is the leading number in the string '4.567e21') ```"
|
|
274
|
-
},
|
|
275
|
-
"protocol": {
|
|
276
|
-
"type": "string",
|
|
277
|
-
"description": "Gets and sets the protocol portion of the URL.\n\n```js const myURL = new URL('https://example.org'); console.log(myURL.protocol); // Prints https:\n\nmyURL.protocol = 'ftp'; console.log(myURL.href); // Prints ftp://example.org/ ```\n\nInvalid URL protocol values assigned to the `protocol` property are ignored."
|
|
278
|
-
},
|
|
279
|
-
"search": {
|
|
280
|
-
"type": "string",
|
|
281
|
-
"description": "Gets and sets the serialized query portion of the URL.\n\n```js const myURL = new URL('https://example.org/abc?123'); console.log(myURL.search); // Prints ?123\n\nmyURL.search = 'abc=xyz'; console.log(myURL.href); // Prints https://example.org/abc?abc=xyz ```\n\nAny invalid URL characters appearing in the value assigned the `search`property will be `percent-encoded`. The selection of which characters to percent-encode may vary somewhat from what the {@link parse } and {@link format } methods would produce."
|
|
282
|
-
},
|
|
283
|
-
"searchParams": {
|
|
284
|
-
"type": "object",
|
|
285
|
-
"properties": {},
|
|
286
|
-
"description": "Gets the `URLSearchParams` object representing the query parameters of the URL. This property is read-only but the `URLSearchParams` object it provides can be used to mutate the URL instance; to replace the entirety of query parameters of the URL, use the {@link search } setter. See `URLSearchParams` documentation for details.\n\nUse care when using `.searchParams` to modify the `URL` because, per the WHATWG specification, the `URLSearchParams` object uses different rules to determine which characters to percent-encode. For instance, the `URL` object will not percent encode the ASCII tilde (`~`) character, while `URLSearchParams` will always encode it:\n\n```js const myUrl = new URL('https://example.org/abc?foo=~bar');\n\nconsole.log(myUrl.search); // prints ?foo=~bar\n\n// Modify the URL via searchParams... myUrl.searchParams.sort();\n\nconsole.log(myUrl.search); // prints ?foo=%7Ebar ```"
|
|
287
|
-
},
|
|
288
|
-
"username": {
|
|
289
|
-
"type": "string",
|
|
290
|
-
"description": "Gets and sets the username portion of the URL.\n\n```js const myURL = new URL('https://abc:xyz@example.com'); console.log(myURL.username); // Prints abc\n\nmyURL.username = '123'; console.log(myURL.href); // Prints https://123:xyz@example.com/ ```\n\nAny invalid URL characters appearing in the value assigned the `username`property will be `percent-encoded`. The selection of which characters to percent-encode may vary somewhat from what the {@link parse } and {@link format } methods would produce."
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
"required": [
|
|
294
|
-
"hash",
|
|
295
|
-
"host",
|
|
296
|
-
"hostname",
|
|
297
|
-
"href",
|
|
298
|
-
"origin",
|
|
299
|
-
"password",
|
|
300
|
-
"pathname",
|
|
301
|
-
"port",
|
|
302
|
-
"protocol",
|
|
303
|
-
"search",
|
|
304
|
-
"searchParams",
|
|
305
|
-
"username"
|
|
306
|
-
],
|
|
307
|
-
"description": "Browser-compatible `URL` class, implemented by following the WHATWG URL Standard. [Examples of parsed URLs](https://url.spec.whatwg.org/#example-url-parsing) may be found in the Standard itself. The `URL` class is also available on the global object.\n\nIn accordance with browser conventions, all properties of `URL` objects are implemented as getters and setters on the class prototype, rather than as data properties on the object itself. Thus, unlike `legacy urlObject` s, using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still return `true`."
|
|
308
|
-
}
|
|
309
|
-
]
|
|
202
|
+
"type": "string"
|
|
310
203
|
},
|
|
311
204
|
"env": {
|
|
312
205
|
"type": "object",
|
|
313
|
-
"properties": {
|
|
314
|
-
"TZ": {
|
|
315
|
-
"type": "string",
|
|
316
|
-
"description": "Can be used to change the default timezone at runtime"
|
|
317
|
-
}
|
|
318
|
-
}
|
|
206
|
+
"properties": {}
|
|
319
207
|
},
|
|
320
208
|
"windowsHide": {
|
|
321
209
|
"type": "boolean",
|
|
322
210
|
"default": true
|
|
323
211
|
},
|
|
212
|
+
"timeout": {
|
|
213
|
+
"type": "number",
|
|
214
|
+
"default": 0
|
|
215
|
+
},
|
|
324
216
|
"argv0": {
|
|
325
217
|
"type": "string"
|
|
326
218
|
},
|
|
@@ -364,64 +256,40 @@
|
|
|
364
256
|
"advanced"
|
|
365
257
|
]
|
|
366
258
|
},
|
|
367
|
-
"global.NodeJS.Signals": {
|
|
368
|
-
"type": "string",
|
|
369
|
-
"enum": [
|
|
370
|
-
"SIGABRT",
|
|
371
|
-
"SIGALRM",
|
|
372
|
-
"SIGBUS",
|
|
373
|
-
"SIGCHLD",
|
|
374
|
-
"SIGCONT",
|
|
375
|
-
"SIGFPE",
|
|
376
|
-
"SIGHUP",
|
|
377
|
-
"SIGILL",
|
|
378
|
-
"SIGINT",
|
|
379
|
-
"SIGIO",
|
|
380
|
-
"SIGIOT",
|
|
381
|
-
"SIGKILL",
|
|
382
|
-
"SIGPIPE",
|
|
383
|
-
"SIGPOLL",
|
|
384
|
-
"SIGPROF",
|
|
385
|
-
"SIGPWR",
|
|
386
|
-
"SIGQUIT",
|
|
387
|
-
"SIGSEGV",
|
|
388
|
-
"SIGSTKFLT",
|
|
389
|
-
"SIGSTOP",
|
|
390
|
-
"SIGSYS",
|
|
391
|
-
"SIGTERM",
|
|
392
|
-
"SIGTRAP",
|
|
393
|
-
"SIGTSTP",
|
|
394
|
-
"SIGTTIN",
|
|
395
|
-
"SIGTTOU",
|
|
396
|
-
"SIGUNUSED",
|
|
397
|
-
"SIGURG",
|
|
398
|
-
"SIGUSR1",
|
|
399
|
-
"SIGUSR2",
|
|
400
|
-
"SIGVTALRM",
|
|
401
|
-
"SIGWINCH",
|
|
402
|
-
"SIGXCPU",
|
|
403
|
-
"SIGXFSZ",
|
|
404
|
-
"SIGBREAK",
|
|
405
|
-
"SIGLOST",
|
|
406
|
-
"SIGINFO"
|
|
407
|
-
]
|
|
408
|
-
},
|
|
409
259
|
"StdioOptions": {
|
|
410
260
|
"anyOf": [
|
|
411
261
|
{
|
|
412
|
-
"
|
|
262
|
+
"type": "string",
|
|
263
|
+
"const": "pipe"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"type": "string",
|
|
267
|
+
"const": "ignore"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"type": "string",
|
|
271
|
+
"const": "inherit"
|
|
413
272
|
},
|
|
414
273
|
{
|
|
415
274
|
"type": "array",
|
|
416
275
|
"items": {
|
|
417
276
|
"anyOf": [
|
|
418
277
|
{
|
|
419
|
-
"
|
|
278
|
+
"type": "string",
|
|
279
|
+
"const": "pipe"
|
|
420
280
|
},
|
|
421
281
|
{
|
|
422
282
|
"type": "string",
|
|
423
283
|
"const": "ipc"
|
|
424
284
|
},
|
|
285
|
+
{
|
|
286
|
+
"type": "string",
|
|
287
|
+
"const": "ignore"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "string",
|
|
291
|
+
"const": "inherit"
|
|
292
|
+
},
|
|
425
293
|
{
|
|
426
294
|
"type": "object",
|
|
427
295
|
"properties": {}
|
|
@@ -439,15 +307,6 @@
|
|
|
439
307
|
}
|
|
440
308
|
}
|
|
441
309
|
]
|
|
442
|
-
},
|
|
443
|
-
"IOType": {
|
|
444
|
-
"type": "string",
|
|
445
|
-
"enum": [
|
|
446
|
-
"overlapped",
|
|
447
|
-
"pipe",
|
|
448
|
-
"ignore",
|
|
449
|
-
"inherit"
|
|
450
|
-
]
|
|
451
310
|
}
|
|
452
311
|
},
|
|
453
312
|
"title": "LocalRunner"
|