Members

(constant) ENV_AWS_LAMBDA

Copyright schukai GmbH and contributors 2023.

Copyright schukai GmbH and contributors 2023. All Rights Reserved. Node module: @schukai/monster This file is licensed under the AGPLv3 License. License text available at https://www.gnu.org/licenses/agpl-3.0.en.html

Methods

generateRangeComparisonExpression(expression, valueName, optionsopt) → {string}

Generates a comparison expression for a comma-separated string of ranges and single values.

Generates a comparison expression for a comma-separated string of ranges and single values.

Parameters:
NameTypeAttributesDescription
expressionstring

The string expression to generate the comparison for.

valueNamestring

The name of the value to compare against.

optionsObject<optional>

The optional parameters.

Properties
NameTypeAttributesDefaultDescription
urlEncodeboolean<optional>
false

Whether to encode comparison operators for use in a URL.

andOpstring<optional>
'&&'

The logical AND operator to use.

orOpstring<optional>
'||'

The logical OR operator to use.

eqOpstring<optional>
'=='

The comparison operator for equality to use.

geOpstring<optional>
'>='

The comparison operator for greater than or equal to to use.

leOpstring<optional>
'<='

The comparison operator for less than or equal to to use.

Throws:

If the input is invalid.

Type
Error
Returns:

The generated comparison expression.

Type: 
string