1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Upgrade JSONata to v1.3.0 (#1386)

This commit is contained in:
Jeston Tigchon 2017-09-07 13:58:29 -07:00 committed by Nick O'Leary
parent 170d6b28f8
commit 29cae9975e
3 changed files with 11 additions and 1 deletions

View File

@ -128,6 +128,8 @@
'$map':{ args:[ 'array', 'function' ]}, '$map':{ args:[ 'array', 'function' ]},
'$match':{ args:[ 'str', 'pattern', 'limit' ]}, '$match':{ args:[ 'str', 'pattern', 'limit' ]},
'$max':{ args:[ 'array' ]}, '$max':{ args:[ 'array' ]},
'$merge':{ args:[ 'array' ]},
'$millis':{ args:[ ]},
'$min':{ args:[ 'array' ]}, '$min':{ args:[ 'array' ]},
'$not':{ args:[ 'arg' ]}, '$not':{ args:[ 'arg' ]},
'$now':{ args:[ ]}, '$now':{ args:[ ]},

View File

@ -45,7 +45,7 @@
"is-utf8":"0.2.1", "is-utf8":"0.2.1",
"js-yaml": "3.8.4", "js-yaml": "3.8.4",
"json-stringify-safe":"5.0.1", "json-stringify-safe":"5.0.1",
"jsonata":"1.2.6", "jsonata":"1.3.0",
"media-typer": "0.3.0", "media-typer": "0.3.0",
"mqtt": "2.9.0", "mqtt": "2.9.0",
"multer": "1.3.0", "multer": "1.3.0",

View File

@ -95,6 +95,10 @@
"args":"", "args":"",
"desc":"Returns a pseudo random number greater than or equal to zero and less than one." "desc":"Returns a pseudo random number greater than or equal to zero and less than one."
}, },
"$millis": {
"args":"",
"desc":"Returns the number of milliseconds since the Unix Epoch (1 January, 1970 UTC) as a number. All invocations of `$millis()` within an evaluation of an expression will all return the same value."
},
"$sum": { "$sum": {
"args": "array", "args": "array",
"desc": "Returns the arithmetic sum of an `array` of numbers. It is an error if the input `array` contains an item which isn't a number." "desc": "Returns the arithmetic sum of an `array` of numbers. It is an error if the input `array` contains an item which isn't a number."
@ -160,6 +164,10 @@
"args": "object", "args": "object",
"desc": "Splits an object containing key/value pairs into an array of objects, each of which has a single key/value pair from the input object. If the parameter is an array of objects, then the resultant array contains an object for every key/value pair in every object in the supplied array." "desc": "Splits an object containing key/value pairs into an array of objects, each of which has a single key/value pair from the input object. If the parameter is an array of objects, then the resultant array contains an object for every key/value pair in every object in the supplied array."
}, },
"$merge": {
"args": "array<object>",
"desc": "Merges an array of `objects` into a single `object` containing all the key/value pairs from each of the objects in the input array. If any of the input objects contain the same key, then the returned `object` will contain the value of the last one in the array. It is an error if the input array contains an item that is not an object."
},
"$sift": { "$sift": {
"args":"object, function", "args":"object, function",
"desc":"Returns an object that contains only the key/value pairs from the `object` parameter that satisfy the predicate `function` passed in as the second parameter.\n\nThe `function` that is supplied as the second parameter must have the following signature:\n\n`function(value [, key [, object]])`" "desc":"Returns an object that contains only the key/value pairs from the `object` parameter that satisfy the predicate `function` passed in as the second parameter.\n\nThe `function` that is supplied as the second parameter must have the following signature:\n\n`function(value [, key [, object]])`"