@node-red/editor-client 3.1.8 → 4.0.0-beta.2
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/locales/de/editor.json +2 -0
- package/locales/en-US/editor.json +10 -1
- package/locales/fr/editor.json +8 -1
- package/locales/ja/editor.json +10 -3
- package/package.json +1 -1
- package/public/red/about +52 -0
- package/public/red/red.js +1433 -263
- package/public/red/red.min.js +3 -3
- package/public/red/style.min.css +2 -2
- package/public/red/tours/3.1/welcome.js +231 -0
- package/public/red/tours/images/nr4-auto-complete.png +0 -0
- package/public/red/tours/images/nr4-config-select.png +0 -0
- package/public/red/tours/images/nr4-multiplayer.png +0 -0
- package/public/red/tours/images/nr4-plugins.png +0 -0
- package/public/red/tours/images/nr4-sf-config.png +0 -0
- package/public/red/tours/images/nr4-timestamp-formatting.png +0 -0
- package/public/red/tours/welcome.js +105 -161
- package/public/types/node/assert/strict.d.ts +1 -1
- package/public/types/node/assert.d.ts +8 -9
- package/public/types/node/async_hooks.d.ts +9 -5
- package/public/types/node/buffer.d.ts +43 -18
- package/public/types/node/child_process.d.ts +8 -5
- package/public/types/node/cluster.d.ts +15 -19
- package/public/types/node/console.d.ts +2 -2
- package/public/types/node/crypto.d.ts +165 -70
- package/public/types/node/dgram.d.ts +4 -4
- package/public/types/node/diagnostics_channel.d.ts +8 -7
- package/public/types/node/dns/promises.d.ts +11 -9
- package/public/types/node/dns.d.ts +18 -13
- package/public/types/node/dom-events.d.ts +129 -0
- package/public/types/node/domain.d.ts +2 -2
- package/public/types/node/events.d.ts +49 -12
- package/public/types/node/fs/promises.d.ts +68 -24
- package/public/types/node/fs.d.ts +132 -59
- package/public/types/node/globals.d.ts +31 -17
- package/public/types/node/http.d.ts +138 -27
- package/public/types/node/http2.d.ts +38 -5
- package/public/types/node/https.d.ts +12 -3
- package/public/types/node/module.d.ts +1 -2
- package/public/types/node/net.d.ts +69 -28
- package/public/types/node/os.d.ts +16 -5
- package/public/types/node/path.d.ts +5 -5
- package/public/types/node/perf_hooks.d.ts +48 -9
- package/public/types/node/process.d.ts +18 -17
- package/public/types/node/querystring.d.ts +2 -2
- package/public/types/node/readline/promises.d.ts +146 -0
- package/public/types/node/readline.d.ts +141 -31
- package/public/types/node/stream/consumers.d.ts +2 -2
- package/public/types/node/stream/promises.d.ts +1 -1
- package/public/types/node/stream/web.d.ts +4 -66
- package/public/types/node/stream.d.ts +96 -118
- package/public/types/node/string_decoder.d.ts +2 -2
- package/public/types/node/test.d.ts +200 -16
- package/public/types/node/timers/promises.d.ts +1 -26
- package/public/types/node/timers.d.ts +2 -2
- package/public/types/node/tls.d.ts +21 -12
- package/public/types/node/trace_events.d.ts +12 -2
- package/public/types/node/ts4.8/assert/strict.d.ts +11 -0
- package/public/types/node/ts4.8/assert.d.ts +964 -0
- package/public/types/node/ts4.8/async_hooks.d.ts +504 -0
- package/public/types/node/ts4.8/buffer.d.ts +2262 -0
- package/public/types/node/ts4.8/child_process.d.ts +1372 -0
- package/public/types/node/ts4.8/cluster.d.ts +413 -0
- package/public/types/node/ts4.8/console.d.ts +415 -0
- package/public/types/node/ts4.8/crypto.d.ts +3967 -0
- package/public/types/node/ts4.8/dgram.d.ts +548 -0
- package/public/types/node/ts4.8/diagnostics_channel.d.ts +156 -0
- package/public/types/node/ts4.8/dns/promises.d.ts +373 -0
- package/public/types/node/ts4.8/dns.d.ts +662 -0
- package/public/types/node/ts4.8/dom-events.d.ts +129 -0
- package/public/types/node/ts4.8/domain.d.ts +173 -0
- package/public/types/node/ts4.8/events.d.ts +681 -0
- package/public/types/node/ts4.8/fs/promises.d.ts +1141 -0
- package/public/types/node/ts4.8/fs.d.ts +3875 -0
- package/public/types/node/ts4.8/globals.d.ts +297 -0
- package/public/types/node/ts4.8/http.d.ts +1617 -0
- package/public/types/node/ts4.8/http2.d.ts +2137 -0
- package/public/types/node/ts4.8/https.d.ts +544 -0
- package/public/types/node/ts4.8/module.d.ts +117 -0
- package/public/types/node/ts4.8/net.d.ts +872 -0
- package/public/types/node/ts4.8/os.d.ts +469 -0
- package/public/types/node/ts4.8/path.d.ts +194 -0
- package/public/types/node/ts4.8/perf_hooks.d.ts +628 -0
- package/public/types/node/ts4.8/process.d.ts +1485 -0
- package/public/types/node/ts4.8/querystring.d.ts +134 -0
- package/public/types/node/ts4.8/readline/promises.d.ts +146 -0
- package/public/types/node/ts4.8/readline.d.ts +656 -0
- package/public/types/node/ts4.8/stream/consumers.d.ts +15 -0
- package/public/types/node/ts4.8/stream/promises.d.ts +45 -0
- package/public/types/node/ts4.8/stream/web.d.ts +333 -0
- package/public/types/node/ts4.8/stream.d.ts +1343 -0
- package/public/types/node/ts4.8/string_decoder.d.ts +70 -0
- package/public/types/node/ts4.8/test.d.ts +377 -0
- package/public/types/node/ts4.8/timers/promises.d.ts +71 -0
- package/public/types/node/ts4.8/timers.d.ts +97 -0
- package/public/types/node/ts4.8/tls.d.ts +1031 -0
- package/public/types/node/ts4.8/trace_events.d.ts +174 -0
- package/public/types/node/ts4.8/tty.d.ts +209 -0
- package/public/types/node/ts4.8/url.d.ts +900 -0
- package/public/types/node/ts4.8/util.d.ts +1853 -0
- package/public/types/node/ts4.8/v8.d.ts +399 -0
- package/public/types/node/ts4.8/vm.d.ts +512 -0
- package/public/types/node/ts4.8/wasi.d.ts +161 -0
- package/public/types/node/ts4.8/worker_threads.d.ts +692 -0
- package/public/types/node/ts4.8/zlib.d.ts +520 -0
- package/public/types/node/tty.d.ts +5 -3
- package/public/types/node/url.d.ts +81 -39
- package/public/types/node/util.d.ts +269 -13
- package/public/types/node/v8.d.ts +22 -4
- package/public/types/node/vm.d.ts +7 -5
- package/public/types/node/wasi.d.ts +2 -2
- package/public/types/node/worker_threads.d.ts +51 -11
- package/public/types/node/zlib.d.ts +2 -2
- package/public/types/node-red/func.d.ts +26 -17
- package/public/vendor/ace/worker-jsonata.js +1 -1
- package/public/vendor/monaco/dist/{fa2cc0ab9f0bec2b3365.ttf → 0c718f5b7d2bce997c5f.ttf} +0 -0
- package/public/vendor/monaco/dist/css.worker.js +1 -1
- package/public/vendor/monaco/dist/css.worker.js.LICENSE.txt +1 -1
- package/public/vendor/monaco/dist/editor.js +1 -29
- package/public/vendor/monaco/dist/editor.js.LICENSE.txt +2 -2
- package/public/vendor/monaco/dist/editor.worker.js +1 -1
- package/public/vendor/monaco/dist/html.worker.js +1 -1
- package/public/vendor/monaco/dist/html.worker.js.LICENSE.txt +1 -1
- package/public/vendor/monaco/dist/json.worker.js +1 -1
- package/public/vendor/monaco/dist/json.worker.js.LICENSE.txt +1 -1
- package/public/vendor/monaco/dist/locale/cs.js +324 -106
- package/public/vendor/monaco/dist/locale/de.js +336 -118
- package/public/vendor/monaco/dist/locale/es.js +329 -111
- package/public/vendor/monaco/dist/locale/fr.js +334 -116
- package/public/vendor/monaco/dist/locale/it.js +327 -109
- package/public/vendor/monaco/dist/locale/ja.js +329 -111
- package/public/vendor/monaco/dist/locale/ko.js +330 -112
- package/public/vendor/monaco/dist/locale/pl.js +329 -111
- package/public/vendor/monaco/dist/locale/pt-br.js +329 -111
- package/public/vendor/monaco/dist/locale/qps-ploc.js +330 -112
- package/public/vendor/monaco/dist/locale/ru.js +331 -113
- package/public/vendor/monaco/dist/locale/tr.js +329 -111
- package/public/vendor/monaco/dist/locale/zh-hans.js +331 -113
- package/public/vendor/monaco/dist/locale/zh-hant.js +331 -113
- package/public/vendor/monaco/dist/ts.worker.js +2 -2
- package/public/vendor/vendor.js +1 -1
- package/public/vendor/monaco/dist/7064e66c3890a12c47b4.ttf +0 -0
- /package/public/red/tours/{images → 3.1/images}/context-menu.png +0 -0
- /package/public/red/tours/{images → 3.1/images}/global-env-vars.png +0 -0
- /package/public/red/tours/{images → 3.1/images}/hiding-flows.png +0 -0
- /package/public/red/tours/{images → 3.1/images}/locking-flows.png +0 -0
- /package/public/red/tours/{images → 3.1/images}/mermaid.png +0 -0
- /package/public/red/tours/{images → 3.1/images}/node-help.png +0 -0
- /package/public/red/tours/{images → 3.1/images}/tab-changes.png +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/
|
|
2
|
+
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The `worker_threads` module enables the use of threads that execute JavaScript
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* }
|
|
43
43
|
* ```
|
|
44
44
|
*
|
|
45
|
-
* The above example spawns a Worker thread for each `
|
|
45
|
+
* The above example spawns a Worker thread for each `parseJSAsync()` call. In
|
|
46
46
|
* practice, use a pool of Workers for these kinds of tasks. Otherwise, the
|
|
47
47
|
* overhead of creating Workers would likely exceed their benefit.
|
|
48
48
|
*
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
*
|
|
53
53
|
* Worker threads inherit non-process-specific options by default. Refer to `Worker constructor options` to know how to customize worker thread options,
|
|
54
54
|
* specifically `argv` and `execArgv` options.
|
|
55
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
55
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/worker_threads.js)
|
|
56
56
|
*/
|
|
57
57
|
declare module 'worker_threads' {
|
|
58
58
|
import { Blob } from 'node:buffer';
|
|
@@ -178,7 +178,7 @@ declare module 'worker_threads' {
|
|
|
178
178
|
*/
|
|
179
179
|
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
|
|
180
180
|
/**
|
|
181
|
-
* Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port
|
|
181
|
+
* Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does _not_ let the program exit if it's the only active handle left (the default
|
|
182
182
|
* behavior). If the port is `ref()`ed, calling `ref()` again has no effect.
|
|
183
183
|
*
|
|
184
184
|
* If listeners are attached or removed using `.on('message')`, the port
|
|
@@ -387,7 +387,7 @@ declare module 'worker_threads' {
|
|
|
387
387
|
/**
|
|
388
388
|
* An object that can be used to query performance information from a worker
|
|
389
389
|
* instance. Similar to `perf_hooks.performance`.
|
|
390
|
-
* @since v15.1.0, v12.22.0
|
|
390
|
+
* @since v15.1.0, v14.17.0, v12.22.0
|
|
391
391
|
*/
|
|
392
392
|
readonly performance: WorkerPerformance;
|
|
393
393
|
/**
|
|
@@ -403,7 +403,7 @@ declare module 'worker_threads' {
|
|
|
403
403
|
*/
|
|
404
404
|
postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
|
|
405
405
|
/**
|
|
406
|
-
* Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker
|
|
406
|
+
* Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does _not_ let the program exit if it's the only active handle left (the default
|
|
407
407
|
* behavior). If the worker is `ref()`ed, calling `ref()` again has
|
|
408
408
|
* no effect.
|
|
409
409
|
* @since v10.5.0
|
|
@@ -510,7 +510,6 @@ declare module 'worker_threads' {
|
|
|
510
510
|
* }
|
|
511
511
|
* ```
|
|
512
512
|
* @since v15.4.0
|
|
513
|
-
* @experimental
|
|
514
513
|
*/
|
|
515
514
|
class BroadcastChannel {
|
|
516
515
|
readonly name: string;
|
|
@@ -632,20 +631,61 @@ declare module 'worker_threads' {
|
|
|
632
631
|
* console.log(getEnvironmentData('Hello')); // Prints 'World!'.
|
|
633
632
|
* }
|
|
634
633
|
* ```
|
|
635
|
-
* @since v15.12.0
|
|
636
|
-
* @experimental
|
|
634
|
+
* @since v15.12.0, v14.18.0
|
|
637
635
|
* @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
|
|
638
636
|
*/
|
|
639
637
|
function getEnvironmentData(key: Serializable): Serializable;
|
|
640
638
|
/**
|
|
641
639
|
* The `worker.setEnvironmentData()` API sets the content of`worker.getEnvironmentData()` in the current thread and all new `Worker`instances spawned from the current context.
|
|
642
|
-
* @since v15.12.0
|
|
643
|
-
* @experimental
|
|
640
|
+
* @since v15.12.0, v14.18.0
|
|
644
641
|
* @param key Any arbitrary, cloneable JavaScript value that can be used as a {Map} key.
|
|
645
642
|
* @param value Any arbitrary, cloneable JavaScript value that will be cloned and passed automatically to all new `Worker` instances. If `value` is passed as `undefined`, any previously set value
|
|
646
643
|
* for the `key` will be deleted.
|
|
647
644
|
*/
|
|
648
645
|
function setEnvironmentData(key: Serializable, value: Serializable): void;
|
|
646
|
+
|
|
647
|
+
import {
|
|
648
|
+
BroadcastChannel as _BroadcastChannel,
|
|
649
|
+
MessageChannel as _MessageChannel,
|
|
650
|
+
MessagePort as _MessagePort,
|
|
651
|
+
} from 'worker_threads';
|
|
652
|
+
global {
|
|
653
|
+
/**
|
|
654
|
+
* `BroadcastChannel` class is a global reference for `require('worker_threads').BroadcastChannel`
|
|
655
|
+
* https://nodejs.org/api/globals.html#broadcastchannel
|
|
656
|
+
* @since v18.0.0
|
|
657
|
+
*/
|
|
658
|
+
var BroadcastChannel: typeof globalThis extends {
|
|
659
|
+
onmessage: any;
|
|
660
|
+
BroadcastChannel: infer T;
|
|
661
|
+
}
|
|
662
|
+
? T
|
|
663
|
+
: typeof _BroadcastChannel;
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* `MessageChannel` class is a global reference for `require('worker_threads').MessageChannel`
|
|
667
|
+
* https://nodejs.org/api/globals.html#messagechannel
|
|
668
|
+
* @since v15.0.0
|
|
669
|
+
*/
|
|
670
|
+
var MessageChannel: typeof globalThis extends {
|
|
671
|
+
onmessage: any;
|
|
672
|
+
MessageChannel: infer T;
|
|
673
|
+
}
|
|
674
|
+
? T
|
|
675
|
+
: typeof _MessageChannel;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* `MessagePort` class is a global reference for `require('worker_threads').MessagePort`
|
|
679
|
+
* https://nodejs.org/api/globals.html#messageport
|
|
680
|
+
* @since v15.0.0
|
|
681
|
+
*/
|
|
682
|
+
var MessagePort: typeof globalThis extends {
|
|
683
|
+
onmessage: any;
|
|
684
|
+
MessagePort: infer T;
|
|
685
|
+
}
|
|
686
|
+
? T
|
|
687
|
+
: typeof _MessagePort;
|
|
688
|
+
}
|
|
649
689
|
}
|
|
650
690
|
declare module 'node:worker_threads' {
|
|
651
691
|
export * from 'worker_threads';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/
|
|
2
|
+
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The `zlib` module provides compression functionality implemented using Gzip,
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
* });
|
|
92
92
|
* ```
|
|
93
93
|
* @since v0.5.8
|
|
94
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
94
|
+
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/zlib.js)
|
|
95
95
|
*/
|
|
96
96
|
declare module 'zlib' {
|
|
97
97
|
import * as stream from 'node:stream';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/
|
|
2
|
+
/* NOTE: Do not edit directly! This file is generated using `npm run update-types` in https://github.com/node-red/nr-monaco-build */
|
|
3
3
|
|
|
4
4
|
interface NodeMessage {
|
|
5
5
|
topic?: string;
|
|
6
6
|
payload?: any;
|
|
7
|
-
_msgid?: string;
|
|
7
|
+
/** `_msgid` is generated internally. It not something you typically need to set or modify. */ _msgid?: string;
|
|
8
8
|
[other: string]: any; //permit other properties
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -19,15 +19,15 @@ declare const promisify:typeof import('util').promisify
|
|
|
19
19
|
/**
|
|
20
20
|
* @typedef NodeStatus
|
|
21
21
|
* @type {object}
|
|
22
|
-
* @property {string} [fill] The fill property can be: red, green, yellow, blue or grey.
|
|
23
|
-
* @property {string} [shape] The shape property can be: ring or dot.
|
|
24
|
-
* @property {string} [text] The text to display
|
|
22
|
+
* @property {'red'|'green'|'yellow'|'blue'|'grey'|string} [fill] - The fill property can be: red, green, yellow, blue or grey.
|
|
23
|
+
* @property {'ring'|'dot'|string} [shape] The shape property can be: ring or dot.
|
|
24
|
+
* @property {string|boolean|number} [text] The text to display
|
|
25
25
|
*/
|
|
26
26
|
interface NodeStatus {
|
|
27
27
|
/** The fill property can be: red, green, yellow, blue or grey */
|
|
28
|
-
fill?: string,
|
|
28
|
+
fill?: 'red'|'green'|'yellow'|'blue'|'grey'|string,
|
|
29
29
|
/** The shape property can be: ring or dot */
|
|
30
|
-
shape?: string,
|
|
30
|
+
shape?: 'ring'|'dot'|string,
|
|
31
31
|
/** The text to display */
|
|
32
32
|
text?: string|boolean|number
|
|
33
33
|
}
|
|
@@ -37,25 +37,24 @@ declare class node {
|
|
|
37
37
|
* Send 1 or more messages asynchronously
|
|
38
38
|
* @param {object | object[]} msg The msg object
|
|
39
39
|
* @param {Boolean} [clone=true] Flag to indicate the `msg` should be cloned. Default = `true`
|
|
40
|
-
* @see
|
|
40
|
+
* @see Node-RED documentation [writing-functions: sending messages asynchronously](https://nodered.org/docs/user-guide/writing-functions#sending-messages-asynchronously)
|
|
41
41
|
*/
|
|
42
|
-
static send(msg:
|
|
42
|
+
static send(msg:NodeMessage|NodeMessage[], clone?:Boolean): void;
|
|
43
43
|
/** Inform runtime this instance has completed its operation */
|
|
44
44
|
static done();
|
|
45
45
|
/** Send an error to the console and debug side bar. Include `msg` in the 2nd parameter to trigger the catch node. */
|
|
46
|
-
static error(err:string|Error, msg?:
|
|
46
|
+
static error(err:string|Error, msg?:NodeMessage);
|
|
47
47
|
/** Log a warn message to the console and debug sidebar */
|
|
48
48
|
static warn(warning:string|object);
|
|
49
49
|
/** Log an info message to the console (not sent to sidebar)' */
|
|
50
50
|
static log(info:string|object);
|
|
51
51
|
/** Sets the status icon and text underneath the node.
|
|
52
52
|
* @param {NodeStatus} status - The status object `{fill, shape, text}`
|
|
53
|
-
* @see
|
|
53
|
+
* @see Node-RED documentation [writing-functions: adding-status](https://nodered.org/docs/user-guide/writing-functions#adding-status)
|
|
54
54
|
*/
|
|
55
55
|
static status(status:NodeStatus);
|
|
56
56
|
/** Sets the status text underneath the node.
|
|
57
|
-
* @
|
|
58
|
-
* @see node-red documentation [writing-functions: adding-status](https://nodered.org/docs/user-guide/writing-functions#adding-status)
|
|
57
|
+
* @see Node-RED documentation [writing-functions: adding-status](https://nodered.org/docs/user-guide/writing-functions#adding-status)
|
|
59
58
|
*/
|
|
60
59
|
static status(status:string|boolean|number);
|
|
61
60
|
/** the id of this node */
|
|
@@ -264,9 +263,12 @@ declare class global {
|
|
|
264
263
|
/** Get an array of the keys in the context store */
|
|
265
264
|
static keys(store: string, callback: Function);
|
|
266
265
|
}
|
|
266
|
+
|
|
267
|
+
// (string & {}) is a workaround for offering string type completion without enforcing it. See https://github.com/microsoft/TypeScript/issues/29729#issuecomment-567871939
|
|
268
|
+
type NR_ENV_NAME_STRING = 'NR_NODE_ID'|'NR_NODE_NAME'|'NR_NODE_PATH'|'NR_GROUP_ID'|'NR_GROUP_NAME'|'NR_FLOW_ID'|'NR_FLOW_NAME'|'NR_SUBFLOW_ID'|'NR_SUBFLOW_NAME'|'NR_SUBFLOW_PATH' | (string & {})
|
|
267
269
|
declare class env {
|
|
268
270
|
/**
|
|
269
|
-
* Get an environment variable value
|
|
271
|
+
* Get an environment variable value defined in the OS, or in the global/flow/subflow/group environment variables.
|
|
270
272
|
*
|
|
271
273
|
* Predefined node-red variables...
|
|
272
274
|
* * `NR_NODE_ID` - the ID of the node
|
|
@@ -276,9 +278,16 @@ declare class env {
|
|
|
276
278
|
* * `NR_GROUP_NAME` - the Name of the containing group
|
|
277
279
|
* * `NR_FLOW_ID` - the ID of the flow the node is on
|
|
278
280
|
* * `NR_FLOW_NAME` - the Name of the flow the node is on
|
|
279
|
-
*
|
|
281
|
+
* * `NR_SUBFLOW_ID` - the ID of the subflow the node is in
|
|
282
|
+
* * `NR_SUBFLOW_NAME` - the Name of the subflow the node is in
|
|
283
|
+
* * `NR_SUBFLOW_PATH` - the Path of the subflow the node is in
|
|
284
|
+
* @param name - The name of the environment variable
|
|
285
|
+
* @example
|
|
286
|
+
* ```const flowName = env.get("NR_FLOW_NAME") // get the name of the flow```
|
|
287
|
+
* @example
|
|
288
|
+
* ```const systemHomeDir = env.get("HOME") // get the user's home directory```
|
|
280
289
|
* @example
|
|
281
|
-
* ```const
|
|
290
|
+
* ```const systemHomeDir = env.get("LABEL1") // get the value of a global/flow/subflow/group defined variable named "LABEL1"```
|
|
282
291
|
*/
|
|
283
|
-
static get(name:
|
|
292
|
+
static get(name:NR_ENV_NAME_STRING) :any;
|
|
284
293
|
}
|