mirror of
https://github.com/node-red/node-red
synced 2024-11-22 16:33:24 +00:00
parent
34b6643913
commit
c4beab6b0d
@ -45,7 +45,7 @@
|
|||||||
"is-utf8": "0.2.1",
|
"is-utf8": "0.2.1",
|
||||||
"js-yaml": "3.12.0",
|
"js-yaml": "3.12.0",
|
||||||
"json-stringify-safe": "5.0.1",
|
"json-stringify-safe": "5.0.1",
|
||||||
"jsonata": "1.5.4",
|
"jsonata": "1.6.3",
|
||||||
"media-typer": "1.0.1",
|
"media-typer": "1.0.1",
|
||||||
"memorystore": "1.6.0",
|
"memorystore": "1.6.0",
|
||||||
"mime": "2.4.0",
|
"mime": "2.4.0",
|
||||||
|
@ -218,5 +218,18 @@
|
|||||||
"$env": {
|
"$env": {
|
||||||
"args": "arg",
|
"args": "arg",
|
||||||
"desc": "Returns the value of an environment variable.\n\nThis is a Node-RED defined function."
|
"desc": "Returns the value of an environment variable.\n\nThis is a Node-RED defined function."
|
||||||
|
},
|
||||||
|
"$eval": {
|
||||||
|
"args": "expr [, context]",
|
||||||
|
"desc": "Parses and evaluates the string `expr` which contains literal JSON or a JSONata expression using the current context as the context for evaluation."
|
||||||
|
},
|
||||||
|
"$formatInteger": {
|
||||||
|
"args": "number, picture",
|
||||||
|
"desc": "Casts the `number` to a string and formats it to an integer representation as specified by the `picture` string. The picture string parameter defines how the number is formatted and has the same syntax as `fn:format-integer` from the XPath F&O 3.1 specification."
|
||||||
|
},
|
||||||
|
"$parseInteger": {
|
||||||
|
"args": "string, picture",
|
||||||
|
"desc": "Parses the contents of the `string` parameter to an integer (as a JSON number) using the format specified by the `picture` string. The `picture` string parameter has the same format as `$formatInteger`."
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -118,11 +118,13 @@
|
|||||||
'$count':{ args:[ 'array' ]},
|
'$count':{ args:[ 'array' ]},
|
||||||
'$each':{ args:[ 'object', 'function' ]},
|
'$each':{ args:[ 'object', 'function' ]},
|
||||||
'$env': { args:[ 'arg' ]},
|
'$env': { args:[ 'arg' ]},
|
||||||
|
'$eval': { args: ['expr', 'context']},
|
||||||
'$exists':{ args:[ 'arg' ]},
|
'$exists':{ args:[ 'arg' ]},
|
||||||
'$filter':{ args:[ 'array', 'function' ]},
|
'$filter':{ args:[ 'array', 'function' ]},
|
||||||
'$floor':{ args:[ 'number' ]},
|
'$floor':{ args:[ 'number' ]},
|
||||||
'$flowContext': {args:['string']},
|
'$flowContext': {args:['string']},
|
||||||
'$formatBase': {args:['number','radix']},
|
'$formatBase': {args:['number','radix']},
|
||||||
|
'$formatInteger': {args:['number', 'picture']},
|
||||||
'$formatNumber': {args:['number', 'picture', 'options']},
|
'$formatNumber': {args:['number', 'picture', 'options']},
|
||||||
'$fromMillis': {args:['number']},
|
'$fromMillis': {args:['number']},
|
||||||
'$globalContext': {args:['string']},
|
'$globalContext': {args:['string']},
|
||||||
@ -141,6 +143,7 @@
|
|||||||
'$now':{ args:[ ]},
|
'$now':{ args:[ ]},
|
||||||
'$number':{ args:[ 'arg' ]},
|
'$number':{ args:[ 'arg' ]},
|
||||||
'$pad': {args:['str', 'width','char']},
|
'$pad': {args:['str', 'width','char']},
|
||||||
|
'$parseInteger': {args:['string', 'picture']},
|
||||||
'$power':{ args:[ 'base', 'exponent' ]},
|
'$power':{ args:[ 'base', 'exponent' ]},
|
||||||
'$random':{ args:[ ]},
|
'$random':{ args:[ ]},
|
||||||
'$reduce':{ args:[ 'array', 'function' , 'init' ]},
|
'$reduce':{ args:[ 'array', 'function' , 'init' ]},
|
||||||
|
Loading…
Reference in New Issue
Block a user