@terascope/data-mate 0.57.1 → 1.0.0
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/dist/src/adapters/argument-validator/index.d.ts +1 -1
- package/dist/src/adapters/argument-validator/index.d.ts.map +1 -1
- package/dist/src/adapters/argument-validator/index.js +10 -15
- package/dist/src/adapters/argument-validator/index.js.map +1 -1
- package/dist/src/adapters/data-frame-adapter/index.d.ts +3 -3
- package/dist/src/adapters/data-frame-adapter/index.d.ts.map +1 -1
- package/dist/src/adapters/data-frame-adapter/index.js +39 -43
- package/dist/src/adapters/data-frame-adapter/index.js.map +1 -1
- package/dist/src/adapters/function-adapter/index.js +23 -25
- package/dist/src/adapters/function-adapter/index.js.map +1 -1
- package/dist/src/adapters/function-adapter/interfaces.d.ts +1 -1
- package/dist/src/adapters/function-adapter/interfaces.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/interfaces.js +1 -2
- package/dist/src/adapters/function-adapter/transformers/field/fieldColumn.d.ts +1 -1
- package/dist/src/adapters/function-adapter/transformers/field/fieldColumn.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/transformers/field/fieldColumn.js +9 -13
- package/dist/src/adapters/function-adapter/transformers/field/fieldColumn.js.map +1 -1
- package/dist/src/adapters/function-adapter/transformers/field/fieldRow.d.ts +1 -1
- package/dist/src/adapters/function-adapter/transformers/field/fieldRow.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/transformers/field/fieldRow.js +20 -24
- package/dist/src/adapters/function-adapter/transformers/field/fieldRow.js.map +1 -1
- package/dist/src/adapters/function-adapter/transformers/field/index.d.ts +4 -4
- package/dist/src/adapters/function-adapter/transformers/field/index.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/transformers/field/index.js +4 -20
- package/dist/src/adapters/function-adapter/transformers/field/index.js.map +1 -1
- package/dist/src/adapters/function-adapter/transformers/field/wholeFieldColumn.d.ts +1 -1
- package/dist/src/adapters/function-adapter/transformers/field/wholeFieldColumn.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/transformers/field/wholeFieldColumn.js +7 -11
- package/dist/src/adapters/function-adapter/transformers/field/wholeFieldColumn.js.map +1 -1
- package/dist/src/adapters/function-adapter/transformers/field/wholeFieldRow.d.ts +1 -1
- package/dist/src/adapters/function-adapter/transformers/field/wholeFieldRow.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/transformers/field/wholeFieldRow.js +15 -19
- package/dist/src/adapters/function-adapter/transformers/field/wholeFieldRow.js.map +1 -1
- package/dist/src/adapters/function-adapter/transformers/index.d.ts +1 -1
- package/dist/src/adapters/function-adapter/transformers/index.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/transformers/index.js +1 -17
- package/dist/src/adapters/function-adapter/transformers/index.js.map +1 -1
- package/dist/src/adapters/function-adapter/transformers/rows.js +1 -5
- package/dist/src/adapters/function-adapter/transformers/rows.js.map +1 -1
- package/dist/src/adapters/function-adapter/utils.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/utils.js +5 -9
- package/dist/src/adapters/function-adapter/utils.js.map +1 -1
- package/dist/src/adapters/function-adapter/validators/field/fieldColumn.d.ts +1 -1
- package/dist/src/adapters/function-adapter/validators/field/fieldColumn.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/validators/field/fieldColumn.js +9 -13
- package/dist/src/adapters/function-adapter/validators/field/fieldColumn.js.map +1 -1
- package/dist/src/adapters/function-adapter/validators/field/fieldRow.d.ts +1 -1
- package/dist/src/adapters/function-adapter/validators/field/fieldRow.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/validators/field/fieldRow.js +17 -21
- package/dist/src/adapters/function-adapter/validators/field/fieldRow.js.map +1 -1
- package/dist/src/adapters/function-adapter/validators/field/index.d.ts +4 -4
- package/dist/src/adapters/function-adapter/validators/field/index.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/validators/field/index.js +4 -20
- package/dist/src/adapters/function-adapter/validators/field/index.js.map +1 -1
- package/dist/src/adapters/function-adapter/validators/field/wholeFieldColumn.d.ts +1 -1
- package/dist/src/adapters/function-adapter/validators/field/wholeFieldColumn.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/validators/field/wholeFieldColumn.js +5 -9
- package/dist/src/adapters/function-adapter/validators/field/wholeFieldColumn.js.map +1 -1
- package/dist/src/adapters/function-adapter/validators/field/wholeFieldRow.d.ts +1 -1
- package/dist/src/adapters/function-adapter/validators/field/wholeFieldRow.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/validators/field/wholeFieldRow.js +13 -17
- package/dist/src/adapters/function-adapter/validators/field/wholeFieldRow.js.map +1 -1
- package/dist/src/adapters/function-adapter/validators/index.d.ts +2 -2
- package/dist/src/adapters/function-adapter/validators/index.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/validators/index.js +2 -18
- package/dist/src/adapters/function-adapter/validators/index.js.map +1 -1
- package/dist/src/adapters/function-adapter/validators/rows.d.ts +1 -1
- package/dist/src/adapters/function-adapter/validators/rows.d.ts.map +1 -1
- package/dist/src/adapters/function-adapter/validators/rows.js +9 -13
- package/dist/src/adapters/function-adapter/validators/rows.js.map +1 -1
- package/dist/src/adapters/index.d.ts +3 -3
- package/dist/src/adapters/index.d.ts.map +1 -1
- package/dist/src/adapters/index.js +3 -19
- package/dist/src/adapters/index.js.map +1 -1
- package/dist/src/adapters/utils.d.ts +1 -1
- package/dist/src/adapters/utils.d.ts.map +1 -1
- package/dist/src/adapters/utils.js +3 -7
- package/dist/src/adapters/utils.js.map +1 -1
- package/dist/src/aggregation-frame/AggregationFrame.d.ts +2 -2
- package/dist/src/aggregation-frame/AggregationFrame.d.ts.map +1 -1
- package/dist/src/aggregation-frame/AggregationFrame.js +126 -99
- package/dist/src/aggregation-frame/AggregationFrame.js.map +1 -1
- package/dist/src/aggregation-frame/index.d.ts +1 -1
- package/dist/src/aggregation-frame/index.d.ts.map +1 -1
- package/dist/src/aggregation-frame/index.js +1 -17
- package/dist/src/aggregation-frame/index.js.map +1 -1
- package/dist/src/aggregation-frame/utils.d.ts +2 -2
- package/dist/src/aggregation-frame/utils.d.ts.map +1 -1
- package/dist/src/aggregation-frame/utils.js +29 -34
- package/dist/src/aggregation-frame/utils.js.map +1 -1
- package/dist/src/aggregations/field-aggregation.d.ts +1 -1
- package/dist/src/aggregations/field-aggregation.d.ts.map +1 -1
- package/dist/src/aggregations/field-aggregation.js +44 -76
- package/dist/src/aggregations/field-aggregation.js.map +1 -1
- package/dist/src/aggregations/index.d.ts +3 -3
- package/dist/src/aggregations/index.d.ts.map +1 -1
- package/dist/src/aggregations/index.js +4 -34
- package/dist/src/aggregations/index.js.map +1 -1
- package/dist/src/aggregations/interfaces.js +1 -2
- package/dist/src/aggregations/record-aggregation.d.ts +2 -2
- package/dist/src/aggregations/record-aggregation.d.ts.map +1 -1
- package/dist/src/aggregations/record-aggregation.js +50 -82
- package/dist/src/aggregations/record-aggregation.js.map +1 -1
- package/dist/src/builder/Builder.d.ts +2 -2
- package/dist/src/builder/Builder.d.ts.map +1 -1
- package/dist/src/builder/Builder.js +40 -22
- package/dist/src/builder/Builder.js.map +1 -1
- package/dist/src/builder/ListBuilder.d.ts +2 -2
- package/dist/src/builder/ListBuilder.d.ts.map +1 -1
- package/dist/src/builder/ListBuilder.js +6 -10
- package/dist/src/builder/ListBuilder.js.map +1 -1
- package/dist/src/builder/index.d.ts +4 -4
- package/dist/src/builder/index.d.ts.map +1 -1
- package/dist/src/builder/index.js +7 -23
- package/dist/src/builder/index.js.map +1 -1
- package/dist/src/builder/types/AnyBuilder.d.ts +2 -2
- package/dist/src/builder/types/AnyBuilder.d.ts.map +1 -1
- package/dist/src/builder/types/AnyBuilder.js +6 -10
- package/dist/src/builder/types/AnyBuilder.js.map +1 -1
- package/dist/src/builder/types/BigIntBuilder.d.ts +2 -2
- package/dist/src/builder/types/BigIntBuilder.d.ts.map +1 -1
- package/dist/src/builder/types/BigIntBuilder.js +6 -10
- package/dist/src/builder/types/BigIntBuilder.js.map +1 -1
- package/dist/src/builder/types/BooleanBuilder.d.ts +2 -2
- package/dist/src/builder/types/BooleanBuilder.d.ts.map +1 -1
- package/dist/src/builder/types/BooleanBuilder.js +6 -10
- package/dist/src/builder/types/BooleanBuilder.js.map +1 -1
- package/dist/src/builder/types/DateBuilder.d.ts +2 -2
- package/dist/src/builder/types/DateBuilder.d.ts.map +1 -1
- package/dist/src/builder/types/DateBuilder.js +6 -10
- package/dist/src/builder/types/DateBuilder.js.map +1 -1
- package/dist/src/builder/types/FloatBuilder.d.ts +2 -2
- package/dist/src/builder/types/FloatBuilder.d.ts.map +1 -1
- package/dist/src/builder/types/FloatBuilder.js +6 -10
- package/dist/src/builder/types/FloatBuilder.js.map +1 -1
- package/dist/src/builder/types/GeoBoundaryBuilder.d.ts +2 -2
- package/dist/src/builder/types/GeoBoundaryBuilder.d.ts.map +1 -1
- package/dist/src/builder/types/GeoBoundaryBuilder.js +6 -10
- package/dist/src/builder/types/GeoBoundaryBuilder.js.map +1 -1
- package/dist/src/builder/types/GeoJSONBuilder.d.ts +2 -2
- package/dist/src/builder/types/GeoJSONBuilder.d.ts.map +1 -1
- package/dist/src/builder/types/GeoJSONBuilder.js +6 -10
- package/dist/src/builder/types/GeoJSONBuilder.js.map +1 -1
- package/dist/src/builder/types/GeoPointBuilder.d.ts +2 -2
- package/dist/src/builder/types/GeoPointBuilder.d.ts.map +1 -1
- package/dist/src/builder/types/GeoPointBuilder.js +6 -10
- package/dist/src/builder/types/GeoPointBuilder.js.map +1 -1
- package/dist/src/builder/types/IPBuilder.d.ts +2 -2
- package/dist/src/builder/types/IPBuilder.d.ts.map +1 -1
- package/dist/src/builder/types/IPBuilder.js +6 -10
- package/dist/src/builder/types/IPBuilder.js.map +1 -1
- package/dist/src/builder/types/IPRangeBuilder.d.ts +2 -2
- package/dist/src/builder/types/IPRangeBuilder.d.ts.map +1 -1
- package/dist/src/builder/types/IPRangeBuilder.js +6 -10
- package/dist/src/builder/types/IPRangeBuilder.js.map +1 -1
- package/dist/src/builder/types/IntBuilder.d.ts +2 -2
- package/dist/src/builder/types/IntBuilder.d.ts.map +1 -1
- package/dist/src/builder/types/IntBuilder.js +6 -10
- package/dist/src/builder/types/IntBuilder.js.map +1 -1
- package/dist/src/builder/types/ObjectBuilder.d.ts +2 -2
- package/dist/src/builder/types/ObjectBuilder.d.ts.map +1 -1
- package/dist/src/builder/types/ObjectBuilder.js +6 -10
- package/dist/src/builder/types/ObjectBuilder.js.map +1 -1
- package/dist/src/builder/types/StringBuilder.d.ts +2 -2
- package/dist/src/builder/types/StringBuilder.d.ts.map +1 -1
- package/dist/src/builder/types/StringBuilder.js +6 -10
- package/dist/src/builder/types/StringBuilder.js.map +1 -1
- package/dist/src/builder/types/TupleBuilder.d.ts +2 -2
- package/dist/src/builder/types/TupleBuilder.d.ts.map +1 -1
- package/dist/src/builder/types/TupleBuilder.js +8 -12
- package/dist/src/builder/types/TupleBuilder.js.map +1 -1
- package/dist/src/builder/types/index.d.ts +14 -14
- package/dist/src/builder/types/index.d.ts.map +1 -1
- package/dist/src/builder/types/index.js +14 -30
- package/dist/src/builder/types/index.js.map +1 -1
- package/dist/src/builder/utils.d.ts +2 -2
- package/dist/src/builder/utils.d.ts.map +1 -1
- package/dist/src/builder/utils.js +53 -58
- package/dist/src/builder/utils.js.map +1 -1
- package/dist/src/column/Column.d.ts +2 -2
- package/dist/src/column/Column.d.ts.map +1 -1
- package/dist/src/column/Column.js +37 -31
- package/dist/src/column/Column.js.map +1 -1
- package/dist/src/column/aggregations.d.ts +1 -1
- package/dist/src/column/aggregations.d.ts.map +1 -1
- package/dist/src/column/aggregations.js +25 -30
- package/dist/src/column/aggregations.js.map +1 -1
- package/dist/src/column/index.d.ts +4 -4
- package/dist/src/column/index.d.ts.map +1 -1
- package/dist/src/column/index.js +4 -20
- package/dist/src/column/index.js.map +1 -1
- package/dist/src/column/interfaces.d.ts.map +1 -1
- package/dist/src/column/interfaces.js +1 -2
- package/dist/src/column/utils.d.ts +2 -2
- package/dist/src/column/utils.d.ts.map +1 -1
- package/dist/src/column/utils.js +28 -39
- package/dist/src/column/utils.js.map +1 -1
- package/dist/src/core/ReadableData.d.ts +1 -1
- package/dist/src/core/ReadableData.d.ts.map +1 -1
- package/dist/src/core/ReadableData.js +14 -11
- package/dist/src/core/ReadableData.js.map +1 -1
- package/dist/src/core/WritableData.d.ts +1 -2
- package/dist/src/core/WritableData.d.ts.map +1 -1
- package/dist/src/core/WritableData.js +17 -16
- package/dist/src/core/WritableData.js.map +1 -1
- package/dist/src/core/config.js +21 -24
- package/dist/src/core/config.js.map +1 -1
- package/dist/src/core/index.d.ts +5 -5
- package/dist/src/core/index.d.ts.map +1 -1
- package/dist/src/core/index.js +5 -21
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/core/interfaces.js +3 -6
- package/dist/src/core/interfaces.js.map +1 -1
- package/dist/src/core/utils.d.ts +1 -1
- package/dist/src/core/utils.d.ts.map +1 -1
- package/dist/src/core/utils.js +18 -28
- package/dist/src/core/utils.js.map +1 -1
- package/dist/src/data-frame/DataFrame.d.ts +5 -5
- package/dist/src/data-frame/DataFrame.d.ts.map +1 -1
- package/dist/src/data-frame/DataFrame.js +105 -98
- package/dist/src/data-frame/DataFrame.js.map +1 -1
- package/dist/src/data-frame/index.d.ts +2 -2
- package/dist/src/data-frame/index.d.ts.map +1 -1
- package/dist/src/data-frame/index.js +2 -18
- package/dist/src/data-frame/index.js.map +1 -1
- package/dist/src/data-frame/interfaces.js +1 -2
- package/dist/src/data-frame/metadata-utils.js +8 -13
- package/dist/src/data-frame/metadata-utils.js.map +1 -1
- package/dist/src/data-frame/search/buildMatcherForNode.d.ts +2 -2
- package/dist/src/data-frame/search/buildMatcherForNode.d.ts.map +1 -1
- package/dist/src/data-frame/search/buildMatcherForNode.js +33 -60
- package/dist/src/data-frame/search/buildMatcherForNode.js.map +1 -1
- package/dist/src/data-frame/search/buildSearchMatcherForQuery.d.ts +1 -1
- package/dist/src/data-frame/search/buildSearchMatcherForQuery.d.ts.map +1 -1
- package/dist/src/data-frame/search/buildSearchMatcherForQuery.js +6 -33
- package/dist/src/data-frame/search/buildSearchMatcherForQuery.js.map +1 -1
- package/dist/src/data-frame/search/date-utils.d.ts +1 -1
- package/dist/src/data-frame/search/date-utils.d.ts.map +1 -1
- package/dist/src/data-frame/search/date-utils.js +14 -25
- package/dist/src/data-frame/search/date-utils.js.map +1 -1
- package/dist/src/data-frame/search/index.d.ts +1 -1
- package/dist/src/data-frame/search/index.d.ts.map +1 -1
- package/dist/src/data-frame/search/index.js +1 -17
- package/dist/src/data-frame/search/index.js.map +1 -1
- package/dist/src/data-frame/search/interfaces.js +1 -2
- package/dist/src/data-frame/search/ip-utils.d.ts +1 -1
- package/dist/src/data-frame/search/ip-utils.d.ts.map +1 -1
- package/dist/src/data-frame/search/ip-utils.js +25 -33
- package/dist/src/data-frame/search/ip-utils.js.map +1 -1
- package/dist/src/data-frame/search/wildcards-and-regex-utils.d.ts +1 -1
- package/dist/src/data-frame/search/wildcards-and-regex-utils.d.ts.map +1 -1
- package/dist/src/data-frame/search/wildcards-and-regex-utils.js +15 -21
- package/dist/src/data-frame/search/wildcards-and-regex-utils.js.map +1 -1
- package/dist/src/data-frame/utils.d.ts +2 -2
- package/dist/src/data-frame/utils.d.ts.map +1 -1
- package/dist/src/data-frame/utils.js +20 -36
- package/dist/src/data-frame/utils.js.map +1 -1
- package/dist/src/document-matcher/index.d.ts +1 -1
- package/dist/src/document-matcher/index.d.ts.map +1 -1
- package/dist/src/document-matcher/index.js +6 -12
- package/dist/src/document-matcher/index.js.map +1 -1
- package/dist/src/document-matcher/interfaces.js +1 -2
- package/dist/src/document-matcher/logic-builder/dates.d.ts +1 -1
- package/dist/src/document-matcher/logic-builder/dates.d.ts.map +1 -1
- package/dist/src/document-matcher/logic-builder/dates.js +13 -24
- package/dist/src/document-matcher/logic-builder/dates.js.map +1 -1
- package/dist/src/document-matcher/logic-builder/index.d.ts +1 -1
- package/dist/src/document-matcher/logic-builder/index.d.ts.map +1 -1
- package/dist/src/document-matcher/logic-builder/index.js +26 -52
- package/dist/src/document-matcher/logic-builder/index.js.map +1 -1
- package/dist/src/document-matcher/logic-builder/ip.d.ts +1 -1
- package/dist/src/document-matcher/logic-builder/ip.d.ts.map +1 -1
- package/dist/src/document-matcher/logic-builder/ip.js +21 -29
- package/dist/src/document-matcher/logic-builder/ip.js.map +1 -1
- package/dist/src/document-matcher/logic-builder/string.d.ts +1 -1
- package/dist/src/document-matcher/logic-builder/string.d.ts.map +1 -1
- package/dist/src/document-matcher/logic-builder/string.js +8 -14
- package/dist/src/document-matcher/logic-builder/string.js.map +1 -1
- package/dist/src/function-configs/boolean/index.d.ts +3 -3
- package/dist/src/function-configs/boolean/index.js +7 -10
- package/dist/src/function-configs/boolean/index.js.map +1 -1
- package/dist/src/function-configs/boolean/isBoolean.d.ts +1 -1
- package/dist/src/function-configs/boolean/isBoolean.d.ts.map +1 -1
- package/dist/src/function-configs/boolean/isBoolean.js +13 -16
- package/dist/src/function-configs/boolean/isBoolean.js.map +1 -1
- package/dist/src/function-configs/boolean/isBooleanLike.d.ts +1 -1
- package/dist/src/function-configs/boolean/isBooleanLike.d.ts.map +1 -1
- package/dist/src/function-configs/boolean/isBooleanLike.js +13 -16
- package/dist/src/function-configs/boolean/isBooleanLike.js.map +1 -1
- package/dist/src/function-configs/boolean/toBoolean.d.ts +1 -1
- package/dist/src/function-configs/boolean/toBoolean.d.ts.map +1 -1
- package/dist/src/function-configs/boolean/toBoolean.js +13 -16
- package/dist/src/function-configs/boolean/toBoolean.js.map +1 -1
- package/dist/src/function-configs/date/addToDate.d.ts +1 -1
- package/dist/src/function-configs/date/addToDate.d.ts.map +1 -1
- package/dist/src/function-configs/date/addToDate.js +32 -36
- package/dist/src/function-configs/date/addToDate.js.map +1 -1
- package/dist/src/function-configs/date/formatDate.d.ts +1 -1
- package/dist/src/function-configs/date/formatDate.d.ts.map +1 -1
- package/dist/src/function-configs/date/formatDate.js +23 -26
- package/dist/src/function-configs/date/formatDate.js.map +1 -1
- package/dist/src/function-configs/date/getDate.d.ts +1 -1
- package/dist/src/function-configs/date/getDate.d.ts.map +1 -1
- package/dist/src/function-configs/date/getDate.js +17 -20
- package/dist/src/function-configs/date/getDate.js.map +1 -1
- package/dist/src/function-configs/date/getHours.d.ts +1 -1
- package/dist/src/function-configs/date/getHours.d.ts.map +1 -1
- package/dist/src/function-configs/date/getHours.js +17 -20
- package/dist/src/function-configs/date/getHours.js.map +1 -1
- package/dist/src/function-configs/date/getMilliseconds.d.ts +1 -1
- package/dist/src/function-configs/date/getMilliseconds.d.ts.map +1 -1
- package/dist/src/function-configs/date/getMilliseconds.js +16 -19
- package/dist/src/function-configs/date/getMilliseconds.js.map +1 -1
- package/dist/src/function-configs/date/getMinutes.d.ts +1 -1
- package/dist/src/function-configs/date/getMinutes.d.ts.map +1 -1
- package/dist/src/function-configs/date/getMinutes.js +16 -19
- package/dist/src/function-configs/date/getMinutes.js.map +1 -1
- package/dist/src/function-configs/date/getMonth.d.ts +1 -1
- package/dist/src/function-configs/date/getMonth.d.ts.map +1 -1
- package/dist/src/function-configs/date/getMonth.js +17 -20
- package/dist/src/function-configs/date/getMonth.js.map +1 -1
- package/dist/src/function-configs/date/getSeconds.d.ts +1 -1
- package/dist/src/function-configs/date/getSeconds.d.ts.map +1 -1
- package/dist/src/function-configs/date/getSeconds.js +16 -19
- package/dist/src/function-configs/date/getSeconds.js.map +1 -1
- package/dist/src/function-configs/date/getTimeBetween.d.ts +1 -1
- package/dist/src/function-configs/date/getTimeBetween.d.ts.map +1 -1
- package/dist/src/function-configs/date/getTimeBetween.js +21 -24
- package/dist/src/function-configs/date/getTimeBetween.js.map +1 -1
- package/dist/src/function-configs/date/getTimezoneOffset.d.ts +1 -1
- package/dist/src/function-configs/date/getTimezoneOffset.d.ts.map +1 -1
- package/dist/src/function-configs/date/getTimezoneOffset.js +18 -21
- package/dist/src/function-configs/date/getTimezoneOffset.js.map +1 -1
- package/dist/src/function-configs/date/getUTCDate.d.ts +1 -1
- package/dist/src/function-configs/date/getUTCDate.d.ts.map +1 -1
- package/dist/src/function-configs/date/getUTCDate.js +17 -20
- package/dist/src/function-configs/date/getUTCDate.js.map +1 -1
- package/dist/src/function-configs/date/getUTCHours.d.ts +1 -1
- package/dist/src/function-configs/date/getUTCHours.d.ts.map +1 -1
- package/dist/src/function-configs/date/getUTCHours.js +17 -20
- package/dist/src/function-configs/date/getUTCHours.js.map +1 -1
- package/dist/src/function-configs/date/getUTCMinutes.d.ts +1 -1
- package/dist/src/function-configs/date/getUTCMinutes.d.ts.map +1 -1
- package/dist/src/function-configs/date/getUTCMinutes.js +16 -19
- package/dist/src/function-configs/date/getUTCMinutes.js.map +1 -1
- package/dist/src/function-configs/date/getUTCMonth.d.ts +1 -1
- package/dist/src/function-configs/date/getUTCMonth.d.ts.map +1 -1
- package/dist/src/function-configs/date/getUTCMonth.js +17 -20
- package/dist/src/function-configs/date/getUTCMonth.js.map +1 -1
- package/dist/src/function-configs/date/getUTCYear.d.ts +1 -1
- package/dist/src/function-configs/date/getUTCYear.d.ts.map +1 -1
- package/dist/src/function-configs/date/getUTCYear.js +17 -20
- package/dist/src/function-configs/date/getUTCYear.js.map +1 -1
- package/dist/src/function-configs/date/getYear.d.ts +1 -1
- package/dist/src/function-configs/date/getYear.d.ts.map +1 -1
- package/dist/src/function-configs/date/getYear.js +17 -20
- package/dist/src/function-configs/date/getYear.js.map +1 -1
- package/dist/src/function-configs/date/index.d.ts +77 -77
- package/dist/src/function-configs/date/index.d.ts.map +1 -1
- package/dist/src/function-configs/date/index.js +113 -116
- package/dist/src/function-configs/date/index.js.map +1 -1
- package/dist/src/function-configs/date/isAfter.d.ts +1 -1
- package/dist/src/function-configs/date/isAfter.d.ts.map +1 -1
- package/dist/src/function-configs/date/isAfter.js +19 -22
- package/dist/src/function-configs/date/isAfter.js.map +1 -1
- package/dist/src/function-configs/date/isBefore.d.ts +1 -1
- package/dist/src/function-configs/date/isBefore.d.ts.map +1 -1
- package/dist/src/function-configs/date/isBefore.js +18 -21
- package/dist/src/function-configs/date/isBefore.js.map +1 -1
- package/dist/src/function-configs/date/isBetween.d.ts +1 -1
- package/dist/src/function-configs/date/isBetween.d.ts.map +1 -1
- package/dist/src/function-configs/date/isBetween.js +20 -23
- package/dist/src/function-configs/date/isBetween.js.map +1 -1
- package/dist/src/function-configs/date/isDate.d.ts +1 -1
- package/dist/src/function-configs/date/isDate.d.ts.map +1 -1
- package/dist/src/function-configs/date/isDate.js +18 -24
- package/dist/src/function-configs/date/isDate.js.map +1 -1
- package/dist/src/function-configs/date/isEpoch.d.ts +1 -1
- package/dist/src/function-configs/date/isEpoch.d.ts.map +1 -1
- package/dist/src/function-configs/date/isEpoch.js +15 -18
- package/dist/src/function-configs/date/isEpoch.js.map +1 -1
- package/dist/src/function-configs/date/isEpochMillis.d.ts +1 -1
- package/dist/src/function-configs/date/isEpochMillis.d.ts.map +1 -1
- package/dist/src/function-configs/date/isEpochMillis.js +15 -18
- package/dist/src/function-configs/date/isEpochMillis.js.map +1 -1
- package/dist/src/function-configs/date/isFriday.d.ts +1 -1
- package/dist/src/function-configs/date/isFriday.d.ts.map +1 -1
- package/dist/src/function-configs/date/isFriday.js +15 -18
- package/dist/src/function-configs/date/isFriday.js.map +1 -1
- package/dist/src/function-configs/date/isFuture.d.ts +1 -1
- package/dist/src/function-configs/date/isFuture.d.ts.map +1 -1
- package/dist/src/function-configs/date/isFuture.js +14 -17
- package/dist/src/function-configs/date/isFuture.js.map +1 -1
- package/dist/src/function-configs/date/isISO8601.d.ts +1 -1
- package/dist/src/function-configs/date/isISO8601.d.ts.map +1 -1
- package/dist/src/function-configs/date/isISO8601.js +15 -18
- package/dist/src/function-configs/date/isISO8601.js.map +1 -1
- package/dist/src/function-configs/date/isLeapYear.d.ts +1 -1
- package/dist/src/function-configs/date/isLeapYear.d.ts.map +1 -1
- package/dist/src/function-configs/date/isLeapYear.js +14 -17
- package/dist/src/function-configs/date/isLeapYear.js.map +1 -1
- package/dist/src/function-configs/date/isMonday.d.ts +1 -1
- package/dist/src/function-configs/date/isMonday.d.ts.map +1 -1
- package/dist/src/function-configs/date/isMonday.js +14 -17
- package/dist/src/function-configs/date/isMonday.js.map +1 -1
- package/dist/src/function-configs/date/isPast.d.ts +1 -1
- package/dist/src/function-configs/date/isPast.d.ts.map +1 -1
- package/dist/src/function-configs/date/isPast.js +14 -17
- package/dist/src/function-configs/date/isPast.js.map +1 -1
- package/dist/src/function-configs/date/isSaturday.d.ts +1 -1
- package/dist/src/function-configs/date/isSaturday.d.ts.map +1 -1
- package/dist/src/function-configs/date/isSaturday.js +14 -17
- package/dist/src/function-configs/date/isSaturday.js.map +1 -1
- package/dist/src/function-configs/date/isSunday.d.ts +1 -1
- package/dist/src/function-configs/date/isSunday.d.ts.map +1 -1
- package/dist/src/function-configs/date/isSunday.js +14 -17
- package/dist/src/function-configs/date/isSunday.js.map +1 -1
- package/dist/src/function-configs/date/isThursday.d.ts +1 -1
- package/dist/src/function-configs/date/isThursday.d.ts.map +1 -1
- package/dist/src/function-configs/date/isThursday.js +14 -17
- package/dist/src/function-configs/date/isThursday.js.map +1 -1
- package/dist/src/function-configs/date/isToday.d.ts +1 -1
- package/dist/src/function-configs/date/isToday.d.ts.map +1 -1
- package/dist/src/function-configs/date/isToday.js +15 -18
- package/dist/src/function-configs/date/isToday.js.map +1 -1
- package/dist/src/function-configs/date/isTomorrow.d.ts +1 -1
- package/dist/src/function-configs/date/isTomorrow.d.ts.map +1 -1
- package/dist/src/function-configs/date/isTomorrow.js +15 -18
- package/dist/src/function-configs/date/isTomorrow.js.map +1 -1
- package/dist/src/function-configs/date/isTuesday.d.ts +1 -1
- package/dist/src/function-configs/date/isTuesday.d.ts.map +1 -1
- package/dist/src/function-configs/date/isTuesday.js +14 -17
- package/dist/src/function-configs/date/isTuesday.js.map +1 -1
- package/dist/src/function-configs/date/isWednesday.d.ts +1 -1
- package/dist/src/function-configs/date/isWednesday.d.ts.map +1 -1
- package/dist/src/function-configs/date/isWednesday.js +15 -18
- package/dist/src/function-configs/date/isWednesday.js.map +1 -1
- package/dist/src/function-configs/date/isWeekday.d.ts +1 -1
- package/dist/src/function-configs/date/isWeekday.d.ts.map +1 -1
- package/dist/src/function-configs/date/isWeekday.js +16 -19
- package/dist/src/function-configs/date/isWeekday.js.map +1 -1
- package/dist/src/function-configs/date/isWeekend.d.ts +1 -1
- package/dist/src/function-configs/date/isWeekend.d.ts.map +1 -1
- package/dist/src/function-configs/date/isWeekend.js +16 -19
- package/dist/src/function-configs/date/isWeekend.js.map +1 -1
- package/dist/src/function-configs/date/isYesterday.d.ts +1 -1
- package/dist/src/function-configs/date/isYesterday.d.ts.map +1 -1
- package/dist/src/function-configs/date/isYesterday.js +16 -19
- package/dist/src/function-configs/date/isYesterday.js.map +1 -1
- package/dist/src/function-configs/date/lookupTimezone.d.ts +1 -1
- package/dist/src/function-configs/date/lookupTimezone.d.ts.map +1 -1
- package/dist/src/function-configs/date/lookupTimezone.js +25 -29
- package/dist/src/function-configs/date/lookupTimezone.js.map +1 -1
- package/dist/src/function-configs/date/setDate.d.ts +1 -1
- package/dist/src/function-configs/date/setDate.d.ts.map +1 -1
- package/dist/src/function-configs/date/setDate.js +23 -26
- package/dist/src/function-configs/date/setDate.js.map +1 -1
- package/dist/src/function-configs/date/setHours.d.ts +1 -1
- package/dist/src/function-configs/date/setHours.d.ts.map +1 -1
- package/dist/src/function-configs/date/setHours.js +23 -26
- package/dist/src/function-configs/date/setHours.js.map +1 -1
- package/dist/src/function-configs/date/setMilliseconds.d.ts +1 -1
- package/dist/src/function-configs/date/setMilliseconds.d.ts.map +1 -1
- package/dist/src/function-configs/date/setMilliseconds.js +23 -26
- package/dist/src/function-configs/date/setMilliseconds.js.map +1 -1
- package/dist/src/function-configs/date/setMinutes.d.ts +1 -1
- package/dist/src/function-configs/date/setMinutes.d.ts.map +1 -1
- package/dist/src/function-configs/date/setMinutes.js +23 -26
- package/dist/src/function-configs/date/setMinutes.js.map +1 -1
- package/dist/src/function-configs/date/setMonth.d.ts +1 -1
- package/dist/src/function-configs/date/setMonth.d.ts.map +1 -1
- package/dist/src/function-configs/date/setMonth.js +23 -26
- package/dist/src/function-configs/date/setMonth.js.map +1 -1
- package/dist/src/function-configs/date/setSeconds.d.ts +1 -1
- package/dist/src/function-configs/date/setSeconds.d.ts.map +1 -1
- package/dist/src/function-configs/date/setSeconds.js +23 -26
- package/dist/src/function-configs/date/setSeconds.js.map +1 -1
- package/dist/src/function-configs/date/setTimezone.d.ts +1 -1
- package/dist/src/function-configs/date/setTimezone.d.ts.map +1 -1
- package/dist/src/function-configs/date/setTimezone.js +22 -25
- package/dist/src/function-configs/date/setTimezone.js.map +1 -1
- package/dist/src/function-configs/date/setYear.d.ts +1 -1
- package/dist/src/function-configs/date/setYear.d.ts.map +1 -1
- package/dist/src/function-configs/date/setYear.js +22 -25
- package/dist/src/function-configs/date/setYear.js.map +1 -1
- package/dist/src/function-configs/date/subtractFromDate.d.ts +1 -1
- package/dist/src/function-configs/date/subtractFromDate.d.ts.map +1 -1
- package/dist/src/function-configs/date/subtractFromDate.js +30 -34
- package/dist/src/function-configs/date/subtractFromDate.js.map +1 -1
- package/dist/src/function-configs/date/timezoneToOffset.d.ts +1 -1
- package/dist/src/function-configs/date/timezoneToOffset.d.ts.map +1 -1
- package/dist/src/function-configs/date/timezoneToOffset.js +11 -14
- package/dist/src/function-configs/date/timezoneToOffset.js.map +1 -1
- package/dist/src/function-configs/date/toDailyDate.d.ts +1 -1
- package/dist/src/function-configs/date/toDailyDate.d.ts.map +1 -1
- package/dist/src/function-configs/date/toDailyDate.js +18 -21
- package/dist/src/function-configs/date/toDailyDate.js.map +1 -1
- package/dist/src/function-configs/date/toDate.d.ts +1 -1
- package/dist/src/function-configs/date/toDate.d.ts.map +1 -1
- package/dist/src/function-configs/date/toDate.js +29 -32
- package/dist/src/function-configs/date/toDate.js.map +1 -1
- package/dist/src/function-configs/date/toHourlyDate.d.ts +1 -1
- package/dist/src/function-configs/date/toHourlyDate.d.ts.map +1 -1
- package/dist/src/function-configs/date/toHourlyDate.js +20 -23
- package/dist/src/function-configs/date/toHourlyDate.js.map +1 -1
- package/dist/src/function-configs/date/toMonthlyDate.d.ts +1 -1
- package/dist/src/function-configs/date/toMonthlyDate.d.ts.map +1 -1
- package/dist/src/function-configs/date/toMonthlyDate.js +18 -21
- package/dist/src/function-configs/date/toMonthlyDate.js.map +1 -1
- package/dist/src/function-configs/date/toTimeZone.d.ts +1 -1
- package/dist/src/function-configs/date/toTimeZone.d.ts.map +1 -1
- package/dist/src/function-configs/date/toTimeZone.js +20 -23
- package/dist/src/function-configs/date/toTimeZone.js.map +1 -1
- package/dist/src/function-configs/date/toTimeZoneUsingLocation.d.ts +1 -1
- package/dist/src/function-configs/date/toTimeZoneUsingLocation.d.ts.map +1 -1
- package/dist/src/function-configs/date/toTimeZoneUsingLocation.js +20 -23
- package/dist/src/function-configs/date/toTimeZoneUsingLocation.js.map +1 -1
- package/dist/src/function-configs/date/toYearlyDate.d.ts +1 -1
- package/dist/src/function-configs/date/toYearlyDate.d.ts.map +1 -1
- package/dist/src/function-configs/date/toYearlyDate.js +18 -21
- package/dist/src/function-configs/date/toYearlyDate.js.map +1 -1
- package/dist/src/function-configs/date/utils.d.ts +1 -1
- package/dist/src/function-configs/date/utils.d.ts.map +1 -1
- package/dist/src/function-configs/date/utils.js +4 -9
- package/dist/src/function-configs/date/utils.js.map +1 -1
- package/dist/src/function-configs/geo/geoContains.d.ts +1 -1
- package/dist/src/function-configs/geo/geoContains.d.ts.map +1 -1
- package/dist/src/function-configs/geo/geoContains.js +29 -32
- package/dist/src/function-configs/geo/geoContains.js.map +1 -1
- package/dist/src/function-configs/geo/geoContainsPoint.d.ts +1 -1
- package/dist/src/function-configs/geo/geoContainsPoint.d.ts.map +1 -1
- package/dist/src/function-configs/geo/geoContainsPoint.js +25 -28
- package/dist/src/function-configs/geo/geoContainsPoint.js.map +1 -1
- package/dist/src/function-configs/geo/geoDisjoint.d.ts +1 -1
- package/dist/src/function-configs/geo/geoDisjoint.d.ts.map +1 -1
- package/dist/src/function-configs/geo/geoDisjoint.js +26 -29
- package/dist/src/function-configs/geo/geoDisjoint.js.map +1 -1
- package/dist/src/function-configs/geo/geoIntersects.d.ts +1 -1
- package/dist/src/function-configs/geo/geoIntersects.d.ts.map +1 -1
- package/dist/src/function-configs/geo/geoIntersects.js +26 -29
- package/dist/src/function-configs/geo/geoIntersects.js.map +1 -1
- package/dist/src/function-configs/geo/geoPointWithinRange.d.ts +1 -1
- package/dist/src/function-configs/geo/geoPointWithinRange.d.ts.map +1 -1
- package/dist/src/function-configs/geo/geoPointWithinRange.js +21 -24
- package/dist/src/function-configs/geo/geoPointWithinRange.js.map +1 -1
- package/dist/src/function-configs/geo/geoRelation.d.ts +1 -1
- package/dist/src/function-configs/geo/geoRelation.d.ts.map +1 -1
- package/dist/src/function-configs/geo/geoRelation.js +39 -42
- package/dist/src/function-configs/geo/geoRelation.js.map +1 -1
- package/dist/src/function-configs/geo/geoWithin.d.ts +1 -1
- package/dist/src/function-configs/geo/geoWithin.d.ts.map +1 -1
- package/dist/src/function-configs/geo/geoWithin.js +31 -34
- package/dist/src/function-configs/geo/geoWithin.js.map +1 -1
- package/dist/src/function-configs/geo/inGeoBoundingBox.d.ts +1 -1
- package/dist/src/function-configs/geo/inGeoBoundingBox.d.ts.map +1 -1
- package/dist/src/function-configs/geo/inGeoBoundingBox.js +21 -24
- package/dist/src/function-configs/geo/inGeoBoundingBox.js.map +1 -1
- package/dist/src/function-configs/geo/index.d.ts +23 -23
- package/dist/src/function-configs/geo/index.d.ts.map +1 -1
- package/dist/src/function-configs/geo/index.js +31 -34
- package/dist/src/function-configs/geo/index.js.map +1 -1
- package/dist/src/function-configs/geo/isGeoJSON.d.ts +1 -1
- package/dist/src/function-configs/geo/isGeoJSON.d.ts.map +1 -1
- package/dist/src/function-configs/geo/isGeoJSON.js +21 -24
- package/dist/src/function-configs/geo/isGeoJSON.js.map +1 -1
- package/dist/src/function-configs/geo/isGeoPoint.d.ts +1 -1
- package/dist/src/function-configs/geo/isGeoPoint.d.ts.map +1 -1
- package/dist/src/function-configs/geo/isGeoPoint.js +13 -16
- package/dist/src/function-configs/geo/isGeoPoint.js.map +1 -1
- package/dist/src/function-configs/geo/isGeoShapeMultiPolygon.d.ts +1 -1
- package/dist/src/function-configs/geo/isGeoShapeMultiPolygon.d.ts.map +1 -1
- package/dist/src/function-configs/geo/isGeoShapeMultiPolygon.js +13 -16
- package/dist/src/function-configs/geo/isGeoShapeMultiPolygon.js.map +1 -1
- package/dist/src/function-configs/geo/isGeoShapePoint.d.ts +1 -1
- package/dist/src/function-configs/geo/isGeoShapePoint.d.ts.map +1 -1
- package/dist/src/function-configs/geo/isGeoShapePoint.js +13 -16
- package/dist/src/function-configs/geo/isGeoShapePoint.js.map +1 -1
- package/dist/src/function-configs/geo/isGeoShapePolygon.d.ts +1 -1
- package/dist/src/function-configs/geo/isGeoShapePolygon.d.ts.map +1 -1
- package/dist/src/function-configs/geo/isGeoShapePolygon.js +13 -16
- package/dist/src/function-configs/geo/isGeoShapePolygon.js.map +1 -1
- package/dist/src/function-configs/geo/toGeoJSON.d.ts +1 -1
- package/dist/src/function-configs/geo/toGeoJSON.d.ts.map +1 -1
- package/dist/src/function-configs/geo/toGeoJSON.js +23 -26
- package/dist/src/function-configs/geo/toGeoJSON.js.map +1 -1
- package/dist/src/function-configs/geo/toGeoPoint.d.ts +1 -1
- package/dist/src/function-configs/geo/toGeoPoint.d.ts.map +1 -1
- package/dist/src/function-configs/geo/toGeoPoint.js +25 -29
- package/dist/src/function-configs/geo/toGeoPoint.js.map +1 -1
- package/dist/src/function-configs/index.d.ts +10 -10
- package/dist/src/function-configs/index.d.ts.map +1 -1
- package/dist/src/function-configs/index.js +10 -26
- package/dist/src/function-configs/index.js.map +1 -1
- package/dist/src/function-configs/interfaces.d.ts +1 -1
- package/dist/src/function-configs/interfaces.d.ts.map +1 -1
- package/dist/src/function-configs/interfaces.js +21 -31
- package/dist/src/function-configs/interfaces.js.map +1 -1
- package/dist/src/function-configs/ip/extractMappedIPv4.d.ts +1 -1
- package/dist/src/function-configs/ip/extractMappedIPv4.d.ts.map +1 -1
- package/dist/src/function-configs/ip/extractMappedIPv4.js +12 -15
- package/dist/src/function-configs/ip/extractMappedIPv4.js.map +1 -1
- package/dist/src/function-configs/ip/getCIDRBroadcast.d.ts +1 -1
- package/dist/src/function-configs/ip/getCIDRBroadcast.d.ts.map +1 -1
- package/dist/src/function-configs/ip/getCIDRBroadcast.js +12 -15
- package/dist/src/function-configs/ip/getCIDRBroadcast.js.map +1 -1
- package/dist/src/function-configs/ip/getCIDRMax.d.ts +1 -1
- package/dist/src/function-configs/ip/getCIDRMax.d.ts.map +1 -1
- package/dist/src/function-configs/ip/getCIDRMax.js +13 -16
- package/dist/src/function-configs/ip/getCIDRMax.js.map +1 -1
- package/dist/src/function-configs/ip/getCIDRMin.d.ts +1 -1
- package/dist/src/function-configs/ip/getCIDRMin.d.ts.map +1 -1
- package/dist/src/function-configs/ip/getCIDRMin.js +13 -16
- package/dist/src/function-configs/ip/getCIDRMin.js.map +1 -1
- package/dist/src/function-configs/ip/getCIDRNetwork.d.ts +1 -1
- package/dist/src/function-configs/ip/getCIDRNetwork.d.ts.map +1 -1
- package/dist/src/function-configs/ip/getCIDRNetwork.js +12 -15
- package/dist/src/function-configs/ip/getCIDRNetwork.js.map +1 -1
- package/dist/src/function-configs/ip/getFirstIpInCIDR.d.ts +1 -1
- package/dist/src/function-configs/ip/getFirstIpInCIDR.d.ts.map +1 -1
- package/dist/src/function-configs/ip/getFirstIpInCIDR.js +13 -16
- package/dist/src/function-configs/ip/getFirstIpInCIDR.js.map +1 -1
- package/dist/src/function-configs/ip/getFirstUsableIPInCIDR.d.ts +1 -1
- package/dist/src/function-configs/ip/getFirstUsableIPInCIDR.d.ts.map +1 -1
- package/dist/src/function-configs/ip/getFirstUsableIPInCIDR.js +13 -16
- package/dist/src/function-configs/ip/getFirstUsableIPInCIDR.js.map +1 -1
- package/dist/src/function-configs/ip/getLastIpInCIDR.d.ts +1 -1
- package/dist/src/function-configs/ip/getLastIpInCIDR.d.ts.map +1 -1
- package/dist/src/function-configs/ip/getLastIpInCIDR.js +13 -16
- package/dist/src/function-configs/ip/getLastIpInCIDR.js.map +1 -1
- package/dist/src/function-configs/ip/getLastUsableIPInCIDR.d.ts +1 -1
- package/dist/src/function-configs/ip/getLastUsableIPInCIDR.d.ts.map +1 -1
- package/dist/src/function-configs/ip/getLastUsableIPInCIDR.js +13 -16
- package/dist/src/function-configs/ip/getLastUsableIPInCIDR.js.map +1 -1
- package/dist/src/function-configs/ip/inIPRange.d.ts +1 -1
- package/dist/src/function-configs/ip/inIPRange.d.ts.map +1 -1
- package/dist/src/function-configs/ip/inIPRange.js +19 -22
- package/dist/src/function-configs/ip/inIPRange.js.map +1 -1
- package/dist/src/function-configs/ip/index.d.ts +24 -24
- package/dist/src/function-configs/ip/index.d.ts.map +1 -1
- package/dist/src/function-configs/ip/index.js +43 -46
- package/dist/src/function-configs/ip/index.js.map +1 -1
- package/dist/src/function-configs/ip/intToIP.d.ts +1 -1
- package/dist/src/function-configs/ip/intToIP.d.ts.map +1 -1
- package/dist/src/function-configs/ip/intToIP.js +14 -17
- package/dist/src/function-configs/ip/intToIP.js.map +1 -1
- package/dist/src/function-configs/ip/ipToInt.d.ts +1 -1
- package/dist/src/function-configs/ip/ipToInt.d.ts.map +1 -1
- package/dist/src/function-configs/ip/ipToInt.js +12 -15
- package/dist/src/function-configs/ip/ipToInt.js.map +1 -1
- package/dist/src/function-configs/ip/isCIDR.d.ts +1 -1
- package/dist/src/function-configs/ip/isCIDR.d.ts.map +1 -1
- package/dist/src/function-configs/ip/isCIDR.js +13 -16
- package/dist/src/function-configs/ip/isCIDR.js.map +1 -1
- package/dist/src/function-configs/ip/isIP.d.ts +1 -1
- package/dist/src/function-configs/ip/isIP.d.ts.map +1 -1
- package/dist/src/function-configs/ip/isIP.js +14 -17
- package/dist/src/function-configs/ip/isIP.js.map +1 -1
- package/dist/src/function-configs/ip/isIPv4.d.ts +1 -1
- package/dist/src/function-configs/ip/isIPv4.d.ts.map +1 -1
- package/dist/src/function-configs/ip/isIPv4.js +13 -16
- package/dist/src/function-configs/ip/isIPv4.js.map +1 -1
- package/dist/src/function-configs/ip/isIPv6.d.ts +1 -1
- package/dist/src/function-configs/ip/isIPv6.d.ts.map +1 -1
- package/dist/src/function-configs/ip/isIPv6.js +14 -17
- package/dist/src/function-configs/ip/isIPv6.js.map +1 -1
- package/dist/src/function-configs/ip/isMappedIPv4.d.ts +1 -1
- package/dist/src/function-configs/ip/isMappedIPv4.d.ts.map +1 -1
- package/dist/src/function-configs/ip/isMappedIPv4.js +14 -17
- package/dist/src/function-configs/ip/isMappedIPv4.js.map +1 -1
- package/dist/src/function-configs/ip/isNonRoutableIP.d.ts +1 -1
- package/dist/src/function-configs/ip/isNonRoutableIP.d.ts.map +1 -1
- package/dist/src/function-configs/ip/isNonRoutableIP.js +14 -17
- package/dist/src/function-configs/ip/isNonRoutableIP.js.map +1 -1
- package/dist/src/function-configs/ip/isRoutableIP.d.ts +1 -1
- package/dist/src/function-configs/ip/isRoutableIP.d.ts.map +1 -1
- package/dist/src/function-configs/ip/isRoutableIP.js +14 -17
- package/dist/src/function-configs/ip/isRoutableIP.js.map +1 -1
- package/dist/src/function-configs/ip/reverseIP.d.ts +1 -1
- package/dist/src/function-configs/ip/reverseIP.d.ts.map +1 -1
- package/dist/src/function-configs/ip/reverseIP.js +12 -15
- package/dist/src/function-configs/ip/reverseIP.js.map +1 -1
- package/dist/src/function-configs/ip/toCIDR.d.ts +1 -1
- package/dist/src/function-configs/ip/toCIDR.d.ts.map +1 -1
- package/dist/src/function-configs/ip/toCIDR.js +15 -18
- package/dist/src/function-configs/ip/toCIDR.js.map +1 -1
- package/dist/src/function-configs/json/cast.d.ts +1 -1
- package/dist/src/function-configs/json/cast.d.ts.map +1 -1
- package/dist/src/function-configs/json/cast.js +27 -30
- package/dist/src/function-configs/json/cast.js.map +1 -1
- package/dist/src/function-configs/json/index.d.ts +6 -6
- package/dist/src/function-configs/json/index.d.ts.map +1 -1
- package/dist/src/function-configs/json/index.js +9 -12
- package/dist/src/function-configs/json/index.js.map +1 -1
- package/dist/src/function-configs/json/parseJSON.d.ts +1 -1
- package/dist/src/function-configs/json/parseJSON.d.ts.map +1 -1
- package/dist/src/function-configs/json/parseJSON.js +11 -14
- package/dist/src/function-configs/json/parseJSON.js.map +1 -1
- package/dist/src/function-configs/json/setDefault.d.ts +1 -1
- package/dist/src/function-configs/json/setDefault.d.ts.map +1 -1
- package/dist/src/function-configs/json/setDefault.js +13 -17
- package/dist/src/function-configs/json/setDefault.js.map +1 -1
- package/dist/src/function-configs/json/toJSON.d.ts +1 -1
- package/dist/src/function-configs/json/toJSON.d.ts.map +1 -1
- package/dist/src/function-configs/json/toJSON.js +17 -20
- package/dist/src/function-configs/json/toJSON.js.map +1 -1
- package/dist/src/function-configs/numeric/abs.d.ts +1 -1
- package/dist/src/function-configs/numeric/abs.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/abs.js +10 -13
- package/dist/src/function-configs/numeric/abs.js.map +1 -1
- package/dist/src/function-configs/numeric/acos.d.ts +1 -1
- package/dist/src/function-configs/numeric/acos.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/acos.js +11 -14
- package/dist/src/function-configs/numeric/acos.js.map +1 -1
- package/dist/src/function-configs/numeric/acosh.d.ts +1 -1
- package/dist/src/function-configs/numeric/acosh.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/acosh.js +12 -15
- package/dist/src/function-configs/numeric/acosh.js.map +1 -1
- package/dist/src/function-configs/numeric/add.d.ts +1 -1
- package/dist/src/function-configs/numeric/add.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/add.js +19 -22
- package/dist/src/function-configs/numeric/add.js.map +1 -1
- package/dist/src/function-configs/numeric/addValues.d.ts +1 -1
- package/dist/src/function-configs/numeric/addValues.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/addValues.js +24 -27
- package/dist/src/function-configs/numeric/addValues.js.map +1 -1
- package/dist/src/function-configs/numeric/asin.d.ts +1 -1
- package/dist/src/function-configs/numeric/asin.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/asin.js +10 -13
- package/dist/src/function-configs/numeric/asin.js.map +1 -1
- package/dist/src/function-configs/numeric/asinh.d.ts +1 -1
- package/dist/src/function-configs/numeric/asinh.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/asinh.js +11 -14
- package/dist/src/function-configs/numeric/asinh.js.map +1 -1
- package/dist/src/function-configs/numeric/atan.d.ts +1 -1
- package/dist/src/function-configs/numeric/atan.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/atan.js +11 -14
- package/dist/src/function-configs/numeric/atan.js.map +1 -1
- package/dist/src/function-configs/numeric/atan2.d.ts +1 -1
- package/dist/src/function-configs/numeric/atan2.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/atan2.js +15 -18
- package/dist/src/function-configs/numeric/atan2.js.map +1 -1
- package/dist/src/function-configs/numeric/atanh.d.ts +1 -1
- package/dist/src/function-configs/numeric/atanh.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/atanh.js +12 -15
- package/dist/src/function-configs/numeric/atanh.js.map +1 -1
- package/dist/src/function-configs/numeric/cbrt.d.ts +1 -1
- package/dist/src/function-configs/numeric/cbrt.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/cbrt.js +12 -15
- package/dist/src/function-configs/numeric/cbrt.js.map +1 -1
- package/dist/src/function-configs/numeric/ceil.d.ts +1 -1
- package/dist/src/function-configs/numeric/ceil.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/ceil.js +13 -16
- package/dist/src/function-configs/numeric/ceil.js.map +1 -1
- package/dist/src/function-configs/numeric/clz32.d.ts +1 -1
- package/dist/src/function-configs/numeric/clz32.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/clz32.js +13 -16
- package/dist/src/function-configs/numeric/clz32.js.map +1 -1
- package/dist/src/function-configs/numeric/cos.d.ts +1 -1
- package/dist/src/function-configs/numeric/cos.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/cos.js +13 -16
- package/dist/src/function-configs/numeric/cos.js.map +1 -1
- package/dist/src/function-configs/numeric/cosh.d.ts +1 -1
- package/dist/src/function-configs/numeric/cosh.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/cosh.js +12 -15
- package/dist/src/function-configs/numeric/cosh.js.map +1 -1
- package/dist/src/function-configs/numeric/divide.d.ts +1 -1
- package/dist/src/function-configs/numeric/divide.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/divide.js +18 -21
- package/dist/src/function-configs/numeric/divide.js.map +1 -1
- package/dist/src/function-configs/numeric/divideValues.d.ts +1 -1
- package/dist/src/function-configs/numeric/divideValues.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/divideValues.js +26 -29
- package/dist/src/function-configs/numeric/divideValues.js.map +1 -1
- package/dist/src/function-configs/numeric/exp.d.ts +1 -1
- package/dist/src/function-configs/numeric/exp.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/exp.js +12 -15
- package/dist/src/function-configs/numeric/exp.js.map +1 -1
- package/dist/src/function-configs/numeric/expm1.d.ts +1 -1
- package/dist/src/function-configs/numeric/expm1.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/expm1.js +12 -15
- package/dist/src/function-configs/numeric/expm1.js.map +1 -1
- package/dist/src/function-configs/numeric/floor.d.ts +1 -1
- package/dist/src/function-configs/numeric/floor.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/floor.js +13 -16
- package/dist/src/function-configs/numeric/floor.js.map +1 -1
- package/dist/src/function-configs/numeric/fround.d.ts +1 -1
- package/dist/src/function-configs/numeric/fround.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/fround.js +12 -15
- package/dist/src/function-configs/numeric/fround.js.map +1 -1
- package/dist/src/function-configs/numeric/hypot.d.ts +1 -1
- package/dist/src/function-configs/numeric/hypot.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/hypot.js +14 -17
- package/dist/src/function-configs/numeric/hypot.js.map +1 -1
- package/dist/src/function-configs/numeric/inNumberRange.d.ts +1 -1
- package/dist/src/function-configs/numeric/inNumberRange.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/inNumberRange.js +18 -21
- package/dist/src/function-configs/numeric/inNumberRange.js.map +1 -1
- package/dist/src/function-configs/numeric/index.d.ts +66 -66
- package/dist/src/function-configs/numeric/index.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/index.js +107 -110
- package/dist/src/function-configs/numeric/index.js.map +1 -1
- package/dist/src/function-configs/numeric/isEven.d.ts +1 -1
- package/dist/src/function-configs/numeric/isEven.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/isEven.js +9 -12
- package/dist/src/function-configs/numeric/isEven.js.map +1 -1
- package/dist/src/function-configs/numeric/isGreaterThan.d.ts +1 -1
- package/dist/src/function-configs/numeric/isGreaterThan.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/isGreaterThan.js +14 -17
- package/dist/src/function-configs/numeric/isGreaterThan.js.map +1 -1
- package/dist/src/function-configs/numeric/isGreaterThanOrEqualTo.d.ts +1 -1
- package/dist/src/function-configs/numeric/isGreaterThanOrEqualTo.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/isGreaterThanOrEqualTo.js +14 -17
- package/dist/src/function-configs/numeric/isGreaterThanOrEqualTo.js.map +1 -1
- package/dist/src/function-configs/numeric/isLessThan.d.ts +1 -1
- package/dist/src/function-configs/numeric/isLessThan.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/isLessThan.js +14 -17
- package/dist/src/function-configs/numeric/isLessThan.js.map +1 -1
- package/dist/src/function-configs/numeric/isLessThanOrEqualTo.d.ts +1 -1
- package/dist/src/function-configs/numeric/isLessThanOrEqualTo.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/isLessThanOrEqualTo.js +14 -17
- package/dist/src/function-configs/numeric/isLessThanOrEqualTo.js.map +1 -1
- package/dist/src/function-configs/numeric/isOdd.d.ts +1 -1
- package/dist/src/function-configs/numeric/isOdd.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/isOdd.js +9 -12
- package/dist/src/function-configs/numeric/isOdd.js.map +1 -1
- package/dist/src/function-configs/numeric/log.d.ts +1 -1
- package/dist/src/function-configs/numeric/log.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/log.js +13 -16
- package/dist/src/function-configs/numeric/log.js.map +1 -1
- package/dist/src/function-configs/numeric/log10.d.ts +1 -1
- package/dist/src/function-configs/numeric/log10.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/log10.js +13 -16
- package/dist/src/function-configs/numeric/log10.js.map +1 -1
- package/dist/src/function-configs/numeric/log1p.d.ts +1 -1
- package/dist/src/function-configs/numeric/log1p.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/log1p.js +14 -17
- package/dist/src/function-configs/numeric/log1p.js.map +1 -1
- package/dist/src/function-configs/numeric/log2.d.ts +1 -1
- package/dist/src/function-configs/numeric/log2.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/log2.js +13 -16
- package/dist/src/function-configs/numeric/log2.js.map +1 -1
- package/dist/src/function-configs/numeric/maxValues.d.ts +1 -1
- package/dist/src/function-configs/numeric/maxValues.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/maxValues.js +24 -27
- package/dist/src/function-configs/numeric/maxValues.js.map +1 -1
- package/dist/src/function-configs/numeric/minValues.d.ts +1 -1
- package/dist/src/function-configs/numeric/minValues.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/minValues.js +24 -27
- package/dist/src/function-configs/numeric/minValues.js.map +1 -1
- package/dist/src/function-configs/numeric/modulus.d.ts +1 -1
- package/dist/src/function-configs/numeric/modulus.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/modulus.js +19 -22
- package/dist/src/function-configs/numeric/modulus.js.map +1 -1
- package/dist/src/function-configs/numeric/multiply.d.ts +1 -1
- package/dist/src/function-configs/numeric/multiply.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/multiply.js +18 -21
- package/dist/src/function-configs/numeric/multiply.js.map +1 -1
- package/dist/src/function-configs/numeric/multiplyValues.d.ts +1 -1
- package/dist/src/function-configs/numeric/multiplyValues.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/multiplyValues.js +24 -27
- package/dist/src/function-configs/numeric/multiplyValues.js.map +1 -1
- package/dist/src/function-configs/numeric/pow.d.ts +1 -1
- package/dist/src/function-configs/numeric/pow.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/pow.js +13 -16
- package/dist/src/function-configs/numeric/pow.js.map +1 -1
- package/dist/src/function-configs/numeric/random.d.ts +1 -1
- package/dist/src/function-configs/numeric/random.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/random.js +12 -15
- package/dist/src/function-configs/numeric/random.js.map +1 -1
- package/dist/src/function-configs/numeric/round.d.ts +1 -1
- package/dist/src/function-configs/numeric/round.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/round.js +13 -16
- package/dist/src/function-configs/numeric/round.js.map +1 -1
- package/dist/src/function-configs/numeric/setPrecision.d.ts +1 -1
- package/dist/src/function-configs/numeric/setPrecision.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/setPrecision.js +29 -32
- package/dist/src/function-configs/numeric/setPrecision.js.map +1 -1
- package/dist/src/function-configs/numeric/sign.d.ts +1 -1
- package/dist/src/function-configs/numeric/sign.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/sign.js +13 -16
- package/dist/src/function-configs/numeric/sign.js.map +1 -1
- package/dist/src/function-configs/numeric/sin.d.ts +1 -1
- package/dist/src/function-configs/numeric/sin.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/sin.js +13 -16
- package/dist/src/function-configs/numeric/sin.js.map +1 -1
- package/dist/src/function-configs/numeric/sinh.d.ts +1 -1
- package/dist/src/function-configs/numeric/sinh.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/sinh.js +13 -16
- package/dist/src/function-configs/numeric/sinh.js.map +1 -1
- package/dist/src/function-configs/numeric/sqrt.d.ts +1 -1
- package/dist/src/function-configs/numeric/sqrt.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/sqrt.js +13 -16
- package/dist/src/function-configs/numeric/sqrt.js.map +1 -1
- package/dist/src/function-configs/numeric/subtract.d.ts +1 -1
- package/dist/src/function-configs/numeric/subtract.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/subtract.js +19 -22
- package/dist/src/function-configs/numeric/subtract.js.map +1 -1
- package/dist/src/function-configs/numeric/subtractValues.d.ts +1 -1
- package/dist/src/function-configs/numeric/subtractValues.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/subtractValues.js +24 -27
- package/dist/src/function-configs/numeric/subtractValues.js.map +1 -1
- package/dist/src/function-configs/numeric/tan.d.ts +1 -1
- package/dist/src/function-configs/numeric/tan.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/tan.js +11 -14
- package/dist/src/function-configs/numeric/tan.js.map +1 -1
- package/dist/src/function-configs/numeric/tanh.d.ts +1 -1
- package/dist/src/function-configs/numeric/tanh.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/tanh.js +12 -15
- package/dist/src/function-configs/numeric/tanh.js.map +1 -1
- package/dist/src/function-configs/numeric/toCelsius.d.ts +1 -1
- package/dist/src/function-configs/numeric/toCelsius.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/toCelsius.js +11 -14
- package/dist/src/function-configs/numeric/toCelsius.js.map +1 -1
- package/dist/src/function-configs/numeric/toFahrenheit.d.ts +1 -1
- package/dist/src/function-configs/numeric/toFahrenheit.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/toFahrenheit.js +11 -14
- package/dist/src/function-configs/numeric/toFahrenheit.js.map +1 -1
- package/dist/src/function-configs/numeric/toNumber.d.ts +1 -1
- package/dist/src/function-configs/numeric/toNumber.d.ts.map +1 -1
- package/dist/src/function-configs/numeric/toNumber.js +25 -28
- package/dist/src/function-configs/numeric/toNumber.js.map +1 -1
- package/dist/src/function-configs/numeric/utils.js +3 -7
- package/dist/src/function-configs/numeric/utils.js.map +1 -1
- package/dist/src/function-configs/object/equals.d.ts +1 -1
- package/dist/src/function-configs/object/equals.d.ts.map +1 -1
- package/dist/src/function-configs/object/equals.js +15 -18
- package/dist/src/function-configs/object/equals.js.map +1 -1
- package/dist/src/function-configs/object/index.d.ts +6 -6
- package/dist/src/function-configs/object/index.d.ts.map +1 -1
- package/dist/src/function-configs/object/index.js +7 -10
- package/dist/src/function-configs/object/index.js.map +1 -1
- package/dist/src/function-configs/object/isEmpty.d.ts +1 -1
- package/dist/src/function-configs/object/isEmpty.d.ts.map +1 -1
- package/dist/src/function-configs/object/isEmpty.js +13 -16
- package/dist/src/function-configs/object/isEmpty.js.map +1 -1
- package/dist/src/function-configs/object/lookup.d.ts +1 -1
- package/dist/src/function-configs/object/lookup.d.ts.map +1 -1
- package/dist/src/function-configs/object/lookup.js +17 -20
- package/dist/src/function-configs/object/lookup.js.map +1 -1
- package/dist/src/function-configs/repository.d.ts +205 -205
- package/dist/src/function-configs/repository.js +17 -20
- package/dist/src/function-configs/repository.js.map +1 -1
- package/dist/src/function-configs/string/contains.d.ts +1 -1
- package/dist/src/function-configs/string/contains.d.ts.map +1 -1
- package/dist/src/function-configs/string/contains.js +13 -16
- package/dist/src/function-configs/string/contains.js.map +1 -1
- package/dist/src/function-configs/string/createID.d.ts +2 -2
- package/dist/src/function-configs/string/createID.d.ts.map +1 -1
- package/dist/src/function-configs/string/createID.js +21 -24
- package/dist/src/function-configs/string/createID.js.map +1 -1
- package/dist/src/function-configs/string/decodeBase64.d.ts +1 -1
- package/dist/src/function-configs/string/decodeBase64.d.ts.map +1 -1
- package/dist/src/function-configs/string/decodeBase64.js +9 -12
- package/dist/src/function-configs/string/decodeBase64.js.map +1 -1
- package/dist/src/function-configs/string/decodeHex.d.ts +1 -1
- package/dist/src/function-configs/string/decodeHex.d.ts.map +1 -1
- package/dist/src/function-configs/string/decodeHex.js +9 -12
- package/dist/src/function-configs/string/decodeHex.js.map +1 -1
- package/dist/src/function-configs/string/decodeURL.d.ts +1 -1
- package/dist/src/function-configs/string/decodeURL.d.ts.map +1 -1
- package/dist/src/function-configs/string/decodeURL.js +9 -12
- package/dist/src/function-configs/string/decodeURL.js.map +1 -1
- package/dist/src/function-configs/string/encode-utils.d.ts +1 -1
- package/dist/src/function-configs/string/encode-utils.d.ts.map +1 -1
- package/dist/src/function-configs/string/encode-utils.js +10 -17
- package/dist/src/function-configs/string/encode-utils.js.map +1 -1
- package/dist/src/function-configs/string/encode.d.ts +2 -2
- package/dist/src/function-configs/string/encode.d.ts.map +1 -1
- package/dist/src/function-configs/string/encode.js +17 -20
- package/dist/src/function-configs/string/encode.js.map +1 -1
- package/dist/src/function-configs/string/encodeBase64.d.ts +1 -1
- package/dist/src/function-configs/string/encodeBase64.d.ts.map +1 -1
- package/dist/src/function-configs/string/encodeBase64.js +11 -14
- package/dist/src/function-configs/string/encodeBase64.js.map +1 -1
- package/dist/src/function-configs/string/encodeHex.d.ts +1 -1
- package/dist/src/function-configs/string/encodeHex.d.ts.map +1 -1
- package/dist/src/function-configs/string/encodeHex.js +11 -14
- package/dist/src/function-configs/string/encodeHex.js.map +1 -1
- package/dist/src/function-configs/string/encodeSHA.d.ts +2 -2
- package/dist/src/function-configs/string/encodeSHA.d.ts.map +1 -1
- package/dist/src/function-configs/string/encodeSHA.js +14 -17
- package/dist/src/function-configs/string/encodeSHA.js.map +1 -1
- package/dist/src/function-configs/string/encodeSHA1.d.ts +2 -2
- package/dist/src/function-configs/string/encodeSHA1.d.ts.map +1 -1
- package/dist/src/function-configs/string/encodeSHA1.js +13 -16
- package/dist/src/function-configs/string/encodeSHA1.js.map +1 -1
- package/dist/src/function-configs/string/encodeURL.d.ts +1 -1
- package/dist/src/function-configs/string/encodeURL.d.ts.map +1 -1
- package/dist/src/function-configs/string/encodeURL.js +11 -14
- package/dist/src/function-configs/string/encodeURL.js.map +1 -1
- package/dist/src/function-configs/string/endsWith.d.ts +1 -1
- package/dist/src/function-configs/string/endsWith.d.ts.map +1 -1
- package/dist/src/function-configs/string/endsWith.js +14 -17
- package/dist/src/function-configs/string/endsWith.js.map +1 -1
- package/dist/src/function-configs/string/entropy.d.ts +1 -1
- package/dist/src/function-configs/string/entropy.d.ts.map +1 -1
- package/dist/src/function-configs/string/entropy.js +17 -20
- package/dist/src/function-configs/string/entropy.js.map +1 -1
- package/dist/src/function-configs/string/extract.d.ts +1 -1
- package/dist/src/function-configs/string/extract.d.ts.map +1 -1
- package/dist/src/function-configs/string/extract.js +16 -19
- package/dist/src/function-configs/string/extract.js.map +1 -1
- package/dist/src/function-configs/string/index.d.ts +74 -74
- package/dist/src/function-configs/string/index.d.ts.map +1 -1
- package/dist/src/function-configs/string/index.js +101 -104
- package/dist/src/function-configs/string/index.js.map +1 -1
- package/dist/src/function-configs/string/isAlpha.d.ts +1 -1
- package/dist/src/function-configs/string/isAlpha.d.ts.map +1 -1
- package/dist/src/function-configs/string/isAlpha.js +18 -24
- package/dist/src/function-configs/string/isAlpha.js.map +1 -1
- package/dist/src/function-configs/string/isAlphaNumeric.d.ts +1 -1
- package/dist/src/function-configs/string/isAlphaNumeric.d.ts.map +1 -1
- package/dist/src/function-configs/string/isAlphaNumeric.js +18 -24
- package/dist/src/function-configs/string/isAlphaNumeric.js.map +1 -1
- package/dist/src/function-configs/string/isBase64.d.ts +1 -1
- package/dist/src/function-configs/string/isBase64.d.ts.map +1 -1
- package/dist/src/function-configs/string/isBase64.js +12 -15
- package/dist/src/function-configs/string/isBase64.js.map +1 -1
- package/dist/src/function-configs/string/isCountryCode.d.ts +1 -1
- package/dist/src/function-configs/string/isCountryCode.d.ts.map +1 -1
- package/dist/src/function-configs/string/isCountryCode.js +14 -17
- package/dist/src/function-configs/string/isCountryCode.js.map +1 -1
- package/dist/src/function-configs/string/isEmail.d.ts +1 -1
- package/dist/src/function-configs/string/isEmail.d.ts.map +1 -1
- package/dist/src/function-configs/string/isEmail.js +18 -21
- package/dist/src/function-configs/string/isEmail.js.map +1 -1
- package/dist/src/function-configs/string/isFQDN.d.ts +1 -1
- package/dist/src/function-configs/string/isFQDN.d.ts.map +1 -1
- package/dist/src/function-configs/string/isFQDN.js +16 -19
- package/dist/src/function-configs/string/isFQDN.js.map +1 -1
- package/dist/src/function-configs/string/isHash.d.ts +1 -1
- package/dist/src/function-configs/string/isHash.d.ts.map +1 -1
- package/dist/src/function-configs/string/isHash.js +14 -20
- package/dist/src/function-configs/string/isHash.js.map +1 -1
- package/dist/src/function-configs/string/isISDN.d.ts +1 -1
- package/dist/src/function-configs/string/isISDN.d.ts.map +1 -1
- package/dist/src/function-configs/string/isISDN.js +16 -19
- package/dist/src/function-configs/string/isISDN.js.map +1 -1
- package/dist/src/function-configs/string/isLength.d.ts +1 -1
- package/dist/src/function-configs/string/isLength.d.ts.map +1 -1
- package/dist/src/function-configs/string/isLength.js +20 -26
- package/dist/src/function-configs/string/isLength.js.map +1 -1
- package/dist/src/function-configs/string/isMACAddress.d.ts +1 -1
- package/dist/src/function-configs/string/isMACAddress.d.ts.map +1 -1
- package/dist/src/function-configs/string/isMACAddress.js +23 -26
- package/dist/src/function-configs/string/isMACAddress.js.map +1 -1
- package/dist/src/function-configs/string/isMIMEType.d.ts +1 -1
- package/dist/src/function-configs/string/isMIMEType.d.ts.map +1 -1
- package/dist/src/function-configs/string/isMIMEType.js +13 -16
- package/dist/src/function-configs/string/isMIMEType.js.map +1 -1
- package/dist/src/function-configs/string/isPhoneNumberLike.d.ts +1 -1
- package/dist/src/function-configs/string/isPhoneNumberLike.d.ts.map +1 -1
- package/dist/src/function-configs/string/isPhoneNumberLike.js +15 -18
- package/dist/src/function-configs/string/isPhoneNumberLike.js.map +1 -1
- package/dist/src/function-configs/string/isPort.d.ts +1 -1
- package/dist/src/function-configs/string/isPort.d.ts.map +1 -1
- package/dist/src/function-configs/string/isPort.js +14 -17
- package/dist/src/function-configs/string/isPort.js.map +1 -1
- package/dist/src/function-configs/string/isPostalCode.d.ts +1 -1
- package/dist/src/function-configs/string/isPostalCode.d.ts.map +1 -1
- package/dist/src/function-configs/string/isPostalCode.js +19 -25
- package/dist/src/function-configs/string/isPostalCode.js.map +1 -1
- package/dist/src/function-configs/string/isString.d.ts +1 -1
- package/dist/src/function-configs/string/isString.d.ts.map +1 -1
- package/dist/src/function-configs/string/isString.js +14 -17
- package/dist/src/function-configs/string/isString.js.map +1 -1
- package/dist/src/function-configs/string/isURL.d.ts +1 -1
- package/dist/src/function-configs/string/isURL.d.ts.map +1 -1
- package/dist/src/function-configs/string/isURL.js +17 -20
- package/dist/src/function-configs/string/isURL.js.map +1 -1
- package/dist/src/function-configs/string/isUUID.d.ts +1 -1
- package/dist/src/function-configs/string/isUUID.d.ts.map +1 -1
- package/dist/src/function-configs/string/isUUID.js +14 -17
- package/dist/src/function-configs/string/isUUID.js.map +1 -1
- package/dist/src/function-configs/string/join.d.ts +1 -1
- package/dist/src/function-configs/string/join.d.ts.map +1 -1
- package/dist/src/function-configs/string/join.js +19 -22
- package/dist/src/function-configs/string/join.js.map +1 -1
- package/dist/src/function-configs/string/replaceLiteral.d.ts +1 -1
- package/dist/src/function-configs/string/replaceLiteral.d.ts.map +1 -1
- package/dist/src/function-configs/string/replaceLiteral.js +11 -14
- package/dist/src/function-configs/string/replaceLiteral.js.map +1 -1
- package/dist/src/function-configs/string/replaceRegex.d.ts +1 -1
- package/dist/src/function-configs/string/replaceRegex.d.ts.map +1 -1
- package/dist/src/function-configs/string/replaceRegex.js +18 -21
- package/dist/src/function-configs/string/replaceRegex.js.map +1 -1
- package/dist/src/function-configs/string/reverse.d.ts +1 -1
- package/dist/src/function-configs/string/reverse.d.ts.map +1 -1
- package/dist/src/function-configs/string/reverse.js +13 -16
- package/dist/src/function-configs/string/reverse.js.map +1 -1
- package/dist/src/function-configs/string/split.d.ts +1 -1
- package/dist/src/function-configs/string/split.d.ts.map +1 -1
- package/dist/src/function-configs/string/split.js +12 -15
- package/dist/src/function-configs/string/split.js.map +1 -1
- package/dist/src/function-configs/string/startsWith.d.ts +1 -1
- package/dist/src/function-configs/string/startsWith.d.ts.map +1 -1
- package/dist/src/function-configs/string/startsWith.js +15 -18
- package/dist/src/function-configs/string/startsWith.js.map +1 -1
- package/dist/src/function-configs/string/toCamelCase.d.ts +1 -1
- package/dist/src/function-configs/string/toCamelCase.d.ts.map +1 -1
- package/dist/src/function-configs/string/toCamelCase.js +12 -15
- package/dist/src/function-configs/string/toCamelCase.js.map +1 -1
- package/dist/src/function-configs/string/toISDN.d.ts +1 -1
- package/dist/src/function-configs/string/toISDN.d.ts.map +1 -1
- package/dist/src/function-configs/string/toISDN.js +16 -19
- package/dist/src/function-configs/string/toISDN.js.map +1 -1
- package/dist/src/function-configs/string/toKebabCase.d.ts +1 -1
- package/dist/src/function-configs/string/toKebabCase.d.ts.map +1 -1
- package/dist/src/function-configs/string/toKebabCase.js +12 -15
- package/dist/src/function-configs/string/toKebabCase.js.map +1 -1
- package/dist/src/function-configs/string/toLowerCase.d.ts +1 -1
- package/dist/src/function-configs/string/toLowerCase.d.ts.map +1 -1
- package/dist/src/function-configs/string/toLowerCase.js +9 -12
- package/dist/src/function-configs/string/toLowerCase.js.map +1 -1
- package/dist/src/function-configs/string/toPascalCase.d.ts +1 -1
- package/dist/src/function-configs/string/toPascalCase.d.ts.map +1 -1
- package/dist/src/function-configs/string/toPascalCase.js +12 -15
- package/dist/src/function-configs/string/toPascalCase.js.map +1 -1
- package/dist/src/function-configs/string/toSnakeCase.d.ts +1 -1
- package/dist/src/function-configs/string/toSnakeCase.d.ts.map +1 -1
- package/dist/src/function-configs/string/toSnakeCase.js +12 -15
- package/dist/src/function-configs/string/toSnakeCase.js.map +1 -1
- package/dist/src/function-configs/string/toString.d.ts +1 -1
- package/dist/src/function-configs/string/toString.d.ts.map +1 -1
- package/dist/src/function-configs/string/toString.js +15 -18
- package/dist/src/function-configs/string/toString.js.map +1 -1
- package/dist/src/function-configs/string/toTitleCase.d.ts +1 -1
- package/dist/src/function-configs/string/toTitleCase.d.ts.map +1 -1
- package/dist/src/function-configs/string/toTitleCase.js +12 -15
- package/dist/src/function-configs/string/toTitleCase.js.map +1 -1
- package/dist/src/function-configs/string/toUpperCase.d.ts +1 -1
- package/dist/src/function-configs/string/toUpperCase.d.ts.map +1 -1
- package/dist/src/function-configs/string/toUpperCase.js +10 -13
- package/dist/src/function-configs/string/toUpperCase.js.map +1 -1
- package/dist/src/function-configs/string/trim.d.ts +1 -1
- package/dist/src/function-configs/string/trim.d.ts.map +1 -1
- package/dist/src/function-configs/string/trim.js +21 -24
- package/dist/src/function-configs/string/trim.js.map +1 -1
- package/dist/src/function-configs/string/trimEnd.d.ts +1 -1
- package/dist/src/function-configs/string/trimEnd.d.ts.map +1 -1
- package/dist/src/function-configs/string/trimEnd.js +15 -18
- package/dist/src/function-configs/string/trimEnd.js.map +1 -1
- package/dist/src/function-configs/string/trimStart.d.ts +1 -1
- package/dist/src/function-configs/string/trimStart.d.ts.map +1 -1
- package/dist/src/function-configs/string/trimStart.js +14 -17
- package/dist/src/function-configs/string/trimStart.js.map +1 -1
- package/dist/src/function-configs/string/truncate.d.ts +1 -1
- package/dist/src/function-configs/string/truncate.d.ts.map +1 -1
- package/dist/src/function-configs/string/truncate.js +12 -15
- package/dist/src/function-configs/string/truncate.js.map +1 -1
- package/dist/src/index.d.ts +19 -17
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +33 -49
- package/dist/src/index.js.map +1 -1
- package/dist/src/interfaces.d.ts +1 -2
- package/dist/src/interfaces.d.ts.map +1 -1
- package/dist/src/interfaces.js +2 -5
- package/dist/src/interfaces.js.map +1 -1
- package/dist/src/jexl/index.d.ts +3 -4
- package/dist/src/jexl/index.d.ts.map +1 -1
- package/dist/src/jexl/index.js +49 -85
- package/dist/src/jexl/index.js.map +1 -1
- package/dist/src/record-transforms/dedup.js +2 -3
- package/dist/src/record-transforms/dedup.js.map +1 -1
- package/dist/src/record-validators/required.js +2 -3
- package/dist/src/record-validators/required.js.map +1 -1
- package/dist/src/transforms/field-transform.d.ts +2 -2
- package/dist/src/transforms/field-transform.d.ts.map +1 -1
- package/dist/src/transforms/field-transform.js +224 -291
- package/dist/src/transforms/field-transform.js.map +1 -1
- package/dist/src/transforms/helpers.js +15 -19
- package/dist/src/transforms/helpers.js.map +1 -1
- package/dist/src/transforms/index.d.ts +2 -2
- package/dist/src/transforms/index.d.ts.map +1 -1
- package/dist/src/transforms/index.js +4 -30
- package/dist/src/transforms/index.js.map +1 -1
- package/dist/src/transforms/interfaces.js +1 -2
- package/dist/src/transforms/record-transform.d.ts +1 -1
- package/dist/src/transforms/record-transform.d.ts.map +1 -1
- package/dist/src/transforms/record-transform.js +37 -69
- package/dist/src/transforms/record-transform.js.map +1 -1
- package/dist/src/validations/field-validator.d.ts +2 -2
- package/dist/src/validations/field-validator.d.ts.map +1 -1
- package/dist/src/validations/field-validator.js +142 -216
- package/dist/src/validations/field-validator.js.map +1 -1
- package/dist/src/validations/index.d.ts +2 -2
- package/dist/src/validations/index.d.ts.map +1 -1
- package/dist/src/validations/index.js +4 -30
- package/dist/src/validations/index.js.map +1 -1
- package/dist/src/validations/interfaces.js +1 -2
- package/dist/src/validations/record-validator.d.ts +1 -1
- package/dist/src/validations/record-validator.d.ts.map +1 -1
- package/dist/src/validations/record-validator.js +26 -55
- package/dist/src/validations/record-validator.js.map +1 -1
- package/dist/src/vector/ListVector.d.ts +2 -2
- package/dist/src/vector/ListVector.d.ts.map +1 -1
- package/dist/src/vector/ListVector.js +28 -44
- package/dist/src/vector/ListVector.js.map +1 -1
- package/dist/src/vector/Vector.d.ts +2 -2
- package/dist/src/vector/Vector.d.ts.map +1 -1
- package/dist/src/vector/Vector.js +58 -27
- package/dist/src/vector/Vector.js.map +1 -1
- package/dist/src/vector/index.d.ts +5 -5
- package/dist/src/vector/index.d.ts.map +1 -1
- package/dist/src/vector/index.js +8 -24
- package/dist/src/vector/index.js.map +1 -1
- package/dist/src/vector/interfaces.d.ts +1 -1
- package/dist/src/vector/interfaces.d.ts.map +1 -1
- package/dist/src/vector/interfaces.js +2 -5
- package/dist/src/vector/interfaces.js.map +1 -1
- package/dist/src/vector/types/AnyVector.d.ts +2 -2
- package/dist/src/vector/types/AnyVector.d.ts.map +1 -1
- package/dist/src/vector/types/AnyVector.js +9 -13
- package/dist/src/vector/types/AnyVector.js.map +1 -1
- package/dist/src/vector/types/BigIntVector.d.ts +2 -2
- package/dist/src/vector/types/BigIntVector.d.ts.map +1 -1
- package/dist/src/vector/types/BigIntVector.js +7 -11
- package/dist/src/vector/types/BigIntVector.js.map +1 -1
- package/dist/src/vector/types/BooleanVector.d.ts +2 -2
- package/dist/src/vector/types/BooleanVector.d.ts.map +1 -1
- package/dist/src/vector/types/BooleanVector.js +6 -10
- package/dist/src/vector/types/BooleanVector.js.map +1 -1
- package/dist/src/vector/types/DateVector.d.ts +2 -2
- package/dist/src/vector/types/DateVector.d.ts.map +1 -1
- package/dist/src/vector/types/DateVector.js +8 -12
- package/dist/src/vector/types/DateVector.js.map +1 -1
- package/dist/src/vector/types/FloatVector.d.ts +2 -2
- package/dist/src/vector/types/FloatVector.d.ts.map +1 -1
- package/dist/src/vector/types/FloatVector.js +6 -10
- package/dist/src/vector/types/FloatVector.js.map +1 -1
- package/dist/src/vector/types/GeoBoundaryVector.d.ts +2 -2
- package/dist/src/vector/types/GeoBoundaryVector.d.ts.map +1 -1
- package/dist/src/vector/types/GeoBoundaryVector.js +6 -10
- package/dist/src/vector/types/GeoBoundaryVector.js.map +1 -1
- package/dist/src/vector/types/GeoJSONVector.d.ts +2 -2
- package/dist/src/vector/types/GeoJSONVector.d.ts.map +1 -1
- package/dist/src/vector/types/GeoJSONVector.js +6 -10
- package/dist/src/vector/types/GeoJSONVector.js.map +1 -1
- package/dist/src/vector/types/GeoPointVector.d.ts +2 -2
- package/dist/src/vector/types/GeoPointVector.d.ts.map +1 -1
- package/dist/src/vector/types/GeoPointVector.js +6 -10
- package/dist/src/vector/types/GeoPointVector.js.map +1 -1
- package/dist/src/vector/types/IPRangeVector.d.ts +2 -2
- package/dist/src/vector/types/IPRangeVector.d.ts.map +1 -1
- package/dist/src/vector/types/IPRangeVector.js +6 -10
- package/dist/src/vector/types/IPRangeVector.js.map +1 -1
- package/dist/src/vector/types/IPVector.d.ts +2 -2
- package/dist/src/vector/types/IPVector.d.ts.map +1 -1
- package/dist/src/vector/types/IPVector.js +7 -11
- package/dist/src/vector/types/IPVector.js.map +1 -1
- package/dist/src/vector/types/IntVector.d.ts +2 -2
- package/dist/src/vector/types/IntVector.d.ts.map +1 -1
- package/dist/src/vector/types/IntVector.js +6 -10
- package/dist/src/vector/types/IntVector.js.map +1 -1
- package/dist/src/vector/types/ObjectVector.d.ts +2 -2
- package/dist/src/vector/types/ObjectVector.d.ts.map +1 -1
- package/dist/src/vector/types/ObjectVector.js +19 -36
- package/dist/src/vector/types/ObjectVector.js.map +1 -1
- package/dist/src/vector/types/StringVector.d.ts +2 -2
- package/dist/src/vector/types/StringVector.d.ts.map +1 -1
- package/dist/src/vector/types/StringVector.js +6 -10
- package/dist/src/vector/types/StringVector.js.map +1 -1
- package/dist/src/vector/types/TupleVector.d.ts +2 -2
- package/dist/src/vector/types/TupleVector.d.ts.map +1 -1
- package/dist/src/vector/types/TupleVector.js +17 -34
- package/dist/src/vector/types/TupleVector.js.map +1 -1
- package/dist/src/vector/types/index.d.ts +14 -14
- package/dist/src/vector/types/index.d.ts.map +1 -1
- package/dist/src/vector/types/index.js +14 -30
- package/dist/src/vector/types/index.js.map +1 -1
- package/dist/src/vector/utils.d.ts +2 -2
- package/dist/src/vector/utils.d.ts.map +1 -1
- package/dist/src/vector/utils.js +95 -106
- package/dist/src/vector/utils.js.map +1 -1
- package/package.json +7 -6
|
@@ -1,42 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.isNumberTuple = exports.every = exports.some = exports.isArray = exports.exists = exports.guard = exports.isValidDate = exports.isPostalCode = exports.isMIMEType = exports.isLength = exports.isJSON = exports.isRFC3339 = exports.isISSN = exports.isISO8601 = exports.isCountryCode = exports.isHash = exports.isFQDN = exports.isEmpty = exports.isBase64 = exports.isASCII = exports.isAlphanumeric = exports.isAlpha = exports.equals = exports.contains = exports.isUUID = exports.isURL = exports.isString = exports.isInteger = exports.isNumber = exports.inNumberRange = exports.isMACAddress = exports.isISDN = exports.inIPRange = exports.isCIDR = exports.isNonRoutableIP = exports.isRoutableIP = exports.isIP = exports.isGeoShapeMultiPolygon = exports.isGeoShapePolygon = exports.isGeoShapePoint = exports.isGeoJSON = exports.isGeoPoint = exports.isEmail = exports.isBooleanLike = exports.isBoolean = exports.repository = void 0;
|
|
30
|
-
const ts = __importStar(require("@terascope/utils"));
|
|
31
|
-
const ipaddr_js_1 = __importDefault(require("ipaddr.js"));
|
|
32
|
-
const is_ip_1 = __importDefault(require("is-ip"));
|
|
33
|
-
const ip6addr_1 = __importDefault(require("ip6addr"));
|
|
34
|
-
const awesome_phonenumber_1 = __importDefault(require("awesome-phonenumber"));
|
|
35
|
-
const validator_1 = __importDefault(require("validator"));
|
|
36
|
-
const url = __importStar(require("valid-url"));
|
|
37
|
-
const types_1 = require("@terascope/types");
|
|
38
|
-
const i = __importStar(require("../interfaces"));
|
|
39
|
-
exports.repository = {
|
|
1
|
+
import * as ts from '@terascope/utils';
|
|
2
|
+
import ipaddr from 'ipaddr.js';
|
|
3
|
+
import _isIP from 'is-ip';
|
|
4
|
+
import ip6addr from 'ip6addr';
|
|
5
|
+
import PhoneValidator from 'awesome-phonenumber';
|
|
6
|
+
import validator from 'validator';
|
|
7
|
+
import * as url from 'valid-url';
|
|
8
|
+
import { FieldType } from '@terascope/types';
|
|
9
|
+
import * as i from '../interfaces.js';
|
|
10
|
+
export const repository = {
|
|
40
11
|
isBoolean: { fn: isBoolean, config: {}, primary_input_type: i.InputType.Boolean },
|
|
41
12
|
isBooleanLike: { fn: isBooleanLike, config: {}, primary_input_type: i.InputType.Any },
|
|
42
13
|
isEmail: { fn: isEmail, config: {}, primary_input_type: i.InputType.String },
|
|
@@ -58,7 +29,7 @@ exports.repository = {
|
|
|
58
29
|
isMACAddress: {
|
|
59
30
|
fn: isMACAddress,
|
|
60
31
|
config: {
|
|
61
|
-
delimiter: { type:
|
|
32
|
+
delimiter: { type: FieldType.String, array: true }
|
|
62
33
|
},
|
|
63
34
|
primary_input_type: i.InputType.String
|
|
64
35
|
},
|
|
@@ -67,9 +38,9 @@ exports.repository = {
|
|
|
67
38
|
inNumberRange: {
|
|
68
39
|
fn: inNumberRange,
|
|
69
40
|
config: {
|
|
70
|
-
min: { type:
|
|
71
|
-
max: { type:
|
|
72
|
-
inclusive: { type:
|
|
41
|
+
min: { type: FieldType.Number },
|
|
42
|
+
max: { type: FieldType.Number },
|
|
43
|
+
inclusive: { type: FieldType.Boolean }
|
|
73
44
|
},
|
|
74
45
|
primary_input_type: i.InputType.Number
|
|
75
46
|
},
|
|
@@ -79,26 +50,26 @@ exports.repository = {
|
|
|
79
50
|
contains: {
|
|
80
51
|
fn: contains,
|
|
81
52
|
config: {
|
|
82
|
-
value: { type:
|
|
53
|
+
value: { type: FieldType.String }
|
|
83
54
|
},
|
|
84
55
|
primary_input_type: i.InputType.Array
|
|
85
56
|
},
|
|
86
57
|
equals: {
|
|
87
58
|
fn: equals,
|
|
88
|
-
config: { value: { type:
|
|
59
|
+
config: { value: { type: FieldType.String } },
|
|
89
60
|
primary_input_type: i.InputType.Any
|
|
90
61
|
},
|
|
91
62
|
isAlpha: {
|
|
92
63
|
fn: isAlpha,
|
|
93
64
|
config: {
|
|
94
|
-
locale: { type:
|
|
65
|
+
locale: { type: FieldType.String }
|
|
95
66
|
},
|
|
96
67
|
primary_input_type: i.InputType.String
|
|
97
68
|
},
|
|
98
69
|
isAlphanumeric: {
|
|
99
70
|
fn: isAlphanumeric,
|
|
100
71
|
config: {
|
|
101
|
-
locale: { type:
|
|
72
|
+
locale: { type: FieldType.String }
|
|
102
73
|
},
|
|
103
74
|
primary_input_type: i.InputType.String
|
|
104
75
|
},
|
|
@@ -107,23 +78,23 @@ exports.repository = {
|
|
|
107
78
|
isEmpty: {
|
|
108
79
|
fn: isEmpty,
|
|
109
80
|
config: {
|
|
110
|
-
ignoreWhitespace: { type:
|
|
81
|
+
ignoreWhitespace: { type: FieldType.Boolean }
|
|
111
82
|
},
|
|
112
83
|
primary_input_type: i.InputType.Any
|
|
113
84
|
},
|
|
114
85
|
isFQDN: {
|
|
115
86
|
fn: isFQDN,
|
|
116
87
|
config: {
|
|
117
|
-
requireTld: { type:
|
|
118
|
-
allowUnderscores: { type:
|
|
119
|
-
allowTrailingDot: { type:
|
|
88
|
+
requireTld: { type: FieldType.Boolean },
|
|
89
|
+
allowUnderscores: { type: FieldType.Boolean },
|
|
90
|
+
allowTrailingDot: { type: FieldType.Boolean },
|
|
120
91
|
},
|
|
121
92
|
primary_input_type: i.InputType.String
|
|
122
93
|
},
|
|
123
94
|
isHash: {
|
|
124
95
|
fn: isHash,
|
|
125
96
|
config: {
|
|
126
|
-
algo: { type:
|
|
97
|
+
algo: { type: FieldType.String }
|
|
127
98
|
},
|
|
128
99
|
primary_input_type: i.InputType.String
|
|
129
100
|
},
|
|
@@ -132,8 +103,8 @@ exports.repository = {
|
|
|
132
103
|
isISSN: {
|
|
133
104
|
fn: isISSN,
|
|
134
105
|
config: {
|
|
135
|
-
caseSensitive: { type:
|
|
136
|
-
requireHyphen: { type:
|
|
106
|
+
caseSensitive: { type: FieldType.Boolean },
|
|
107
|
+
requireHyphen: { type: FieldType.Boolean }
|
|
137
108
|
},
|
|
138
109
|
primary_input_type: i.InputType.String
|
|
139
110
|
},
|
|
@@ -142,9 +113,9 @@ exports.repository = {
|
|
|
142
113
|
isLength: {
|
|
143
114
|
fn: isLength,
|
|
144
115
|
config: {
|
|
145
|
-
size: { type:
|
|
146
|
-
min: { type:
|
|
147
|
-
max: { type:
|
|
116
|
+
size: { type: FieldType.Number },
|
|
117
|
+
min: { type: FieldType.Number },
|
|
118
|
+
max: { type: FieldType.Number },
|
|
148
119
|
},
|
|
149
120
|
primary_input_type: i.InputType.String
|
|
150
121
|
},
|
|
@@ -152,7 +123,7 @@ exports.repository = {
|
|
|
152
123
|
isPostalCode: {
|
|
153
124
|
fn: isPostalCode,
|
|
154
125
|
config: {
|
|
155
|
-
locale: { type:
|
|
126
|
+
locale: { type: FieldType.String }
|
|
156
127
|
},
|
|
157
128
|
primary_input_type: i.InputType.String
|
|
158
129
|
},
|
|
@@ -161,9 +132,9 @@ exports.repository = {
|
|
|
161
132
|
inIPRange: {
|
|
162
133
|
fn: inIPRange,
|
|
163
134
|
config: {
|
|
164
|
-
min: { type:
|
|
165
|
-
max: { type:
|
|
166
|
-
cidr: { type:
|
|
135
|
+
min: { type: FieldType.String },
|
|
136
|
+
max: { type: FieldType.String },
|
|
137
|
+
cidr: { type: FieldType.String }
|
|
167
138
|
},
|
|
168
139
|
primary_input_type: i.InputType.String
|
|
169
140
|
},
|
|
@@ -174,16 +145,16 @@ exports.repository = {
|
|
|
174
145
|
some: {
|
|
175
146
|
fn: some,
|
|
176
147
|
config: {
|
|
177
|
-
fn: { type:
|
|
178
|
-
options: { type:
|
|
148
|
+
fn: { type: FieldType.String },
|
|
149
|
+
options: { type: FieldType.Object }
|
|
179
150
|
},
|
|
180
151
|
primary_input_type: i.InputType.Array
|
|
181
152
|
},
|
|
182
153
|
every: {
|
|
183
154
|
fn: every,
|
|
184
155
|
config: {
|
|
185
|
-
fn: { type:
|
|
186
|
-
options: { type:
|
|
156
|
+
fn: { type: FieldType.String },
|
|
157
|
+
options: { type: FieldType.Object }
|
|
187
158
|
},
|
|
188
159
|
primary_input_type: i.InputType.Array
|
|
189
160
|
},
|
|
@@ -211,14 +182,13 @@ function handleArgs(fn) {
|
|
|
211
182
|
* @param {*} input
|
|
212
183
|
* @returns {boolean} boolean
|
|
213
184
|
*/
|
|
214
|
-
function isBoolean(input, _parentContext) {
|
|
185
|
+
export function isBoolean(input, _parentContext) {
|
|
215
186
|
if (ts.isNil(input))
|
|
216
187
|
return false;
|
|
217
188
|
if (isArray(input))
|
|
218
189
|
return _lift(handleArgs(ts.isBoolean), input, _parentContext);
|
|
219
190
|
return ts.isBoolean(input);
|
|
220
191
|
}
|
|
221
|
-
exports.isBoolean = isBoolean;
|
|
222
192
|
/**
|
|
223
193
|
* Checks to see if input is a boolean-like value. If an given an array, it will check
|
|
224
194
|
* to see if all values in the array are boolean-like, does NOT ignore null/undefined values
|
|
@@ -235,12 +205,11 @@ exports.isBoolean = isBoolean;
|
|
|
235
205
|
* @param {*} input
|
|
236
206
|
* @returns {boolean} boolean
|
|
237
207
|
*/
|
|
238
|
-
function isBooleanLike(input, _parentContext) {
|
|
208
|
+
export function isBooleanLike(input, _parentContext) {
|
|
239
209
|
if (isArray(input))
|
|
240
210
|
return input.every(ts.isBooleanLike);
|
|
241
211
|
return ts.isBooleanLike(input);
|
|
242
212
|
}
|
|
243
|
-
exports.isBooleanLike = isBooleanLike;
|
|
244
213
|
/**
|
|
245
214
|
* Return true if value is a valid email, or a list of valid emails
|
|
246
215
|
*
|
|
@@ -254,14 +223,13 @@ exports.isBooleanLike = isBooleanLike;
|
|
|
254
223
|
* @param {*} input
|
|
255
224
|
* @returns {boolean} boolean
|
|
256
225
|
*/
|
|
257
|
-
function isEmail(input, _parentContext) {
|
|
226
|
+
export function isEmail(input, _parentContext) {
|
|
258
227
|
if (ts.isNil(input))
|
|
259
228
|
return false;
|
|
260
229
|
if (isArray(input))
|
|
261
230
|
return _lift(handleArgs(ts.isEmail), input, _parentContext);
|
|
262
231
|
return ts.isEmail(input);
|
|
263
232
|
}
|
|
264
|
-
exports.isEmail = isEmail;
|
|
265
233
|
/**
|
|
266
234
|
* Checks to see if input is a valid geo-point, or a list of valid geo-points
|
|
267
235
|
* excluding null/undefined values
|
|
@@ -277,7 +245,7 @@ exports.isEmail = isEmail;
|
|
|
277
245
|
* @param {*} input
|
|
278
246
|
* @returns {boolean} boolean
|
|
279
247
|
*/
|
|
280
|
-
function isGeoPoint(input, _parentContext) {
|
|
248
|
+
export function isGeoPoint(input, _parentContext) {
|
|
281
249
|
if (ts.isNil(input))
|
|
282
250
|
return false;
|
|
283
251
|
if (isArray(input) && !isNumberTuple(input)) {
|
|
@@ -287,7 +255,6 @@ function isGeoPoint(input, _parentContext) {
|
|
|
287
255
|
const results = ts.parseGeoPoint(input, false);
|
|
288
256
|
return results != null;
|
|
289
257
|
}
|
|
290
|
-
exports.isGeoPoint = isGeoPoint;
|
|
291
258
|
/**
|
|
292
259
|
* Checks to see if input is a valid geo-json geometry, or a list of geo-json geometries
|
|
293
260
|
*
|
|
@@ -306,22 +273,20 @@ exports.isGeoPoint = isGeoPoint;
|
|
|
306
273
|
* @param {*} input
|
|
307
274
|
* @returns {boolean} boolean
|
|
308
275
|
*/
|
|
309
|
-
function isGeoJSON(input, _parentContext) {
|
|
276
|
+
export function isGeoJSON(input, _parentContext) {
|
|
310
277
|
if (ts.isNil(input))
|
|
311
278
|
return false;
|
|
312
279
|
if (isArray(input))
|
|
313
280
|
return _lift(handleArgs(ts.isGeoJSON), input, _parentContext);
|
|
314
281
|
return ts.isGeoJSON(input);
|
|
315
282
|
}
|
|
316
|
-
|
|
317
|
-
function isGeoShapePoint(input, _parentContext) {
|
|
283
|
+
export function isGeoShapePoint(input, _parentContext) {
|
|
318
284
|
if (ts.isNil(input))
|
|
319
285
|
return false;
|
|
320
286
|
if (isArray(input))
|
|
321
287
|
return _lift(handleArgs(ts.isGeoShapePoint), input, _parentContext);
|
|
322
288
|
return ts.isGeoShapePoint(input);
|
|
323
289
|
}
|
|
324
|
-
exports.isGeoShapePoint = isGeoShapePoint;
|
|
325
290
|
/**
|
|
326
291
|
* Checks to see if input is a valid geo-json polygon or a list of geo-json polygons
|
|
327
292
|
* @example
|
|
@@ -347,14 +312,13 @@ exports.isGeoShapePoint = isGeoShapePoint;
|
|
|
347
312
|
* @param {JoinGeoShape} input
|
|
348
313
|
* @returns {boolean} boolean
|
|
349
314
|
*/
|
|
350
|
-
function isGeoShapePolygon(input, _parentContext) {
|
|
315
|
+
export function isGeoShapePolygon(input, _parentContext) {
|
|
351
316
|
if (ts.isNil(input))
|
|
352
317
|
return false;
|
|
353
318
|
if (isArray(input))
|
|
354
319
|
return _lift(handleArgs(ts.isGeoShapePolygon), input, _parentContext);
|
|
355
320
|
return ts.isGeoShapePolygon(input);
|
|
356
321
|
}
|
|
357
|
-
exports.isGeoShapePolygon = isGeoShapePolygon;
|
|
358
322
|
/**
|
|
359
323
|
* Checks to see if input is a valid geo-json multi-polygon or a list of geo-json multi-polygons
|
|
360
324
|
* @example
|
|
@@ -392,14 +356,13 @@ exports.isGeoShapePolygon = isGeoShapePolygon;
|
|
|
392
356
|
* @param {JoinGeoShape} input
|
|
393
357
|
* @returns {boolean} boolean
|
|
394
358
|
*/
|
|
395
|
-
function isGeoShapeMultiPolygon(input, _parentContext) {
|
|
359
|
+
export function isGeoShapeMultiPolygon(input, _parentContext) {
|
|
396
360
|
if (ts.isNil(input))
|
|
397
361
|
return false;
|
|
398
362
|
if (isArray(input))
|
|
399
363
|
return _lift(handleArgs(ts.isGeoShapeMultiPolygon), input, _parentContext);
|
|
400
364
|
return ts.isGeoShapeMultiPolygon(input);
|
|
401
365
|
}
|
|
402
|
-
exports.isGeoShapeMultiPolygon = isGeoShapeMultiPolygon;
|
|
403
366
|
/**
|
|
404
367
|
* Validates that the input is an IP address, or a list of IP addresses
|
|
405
368
|
*
|
|
@@ -417,18 +380,17 @@ exports.isGeoShapeMultiPolygon = isGeoShapeMultiPolygon;
|
|
|
417
380
|
* @param {*} input
|
|
418
381
|
* @returns {boolean} boolean
|
|
419
382
|
*/
|
|
420
|
-
function isIP(input, _parentContext) {
|
|
383
|
+
export function isIP(input, _parentContext) {
|
|
421
384
|
if (ts.isNil(input))
|
|
422
385
|
return false;
|
|
423
386
|
if (isArray(input))
|
|
424
387
|
return _lift(isValidIP, input, _parentContext);
|
|
425
388
|
return isValidIP(input);
|
|
426
389
|
}
|
|
427
|
-
exports.isIP = isIP;
|
|
428
390
|
function isValidIP(input, _parentContext) {
|
|
429
391
|
if (!ts.isString(input))
|
|
430
392
|
return false;
|
|
431
|
-
if (!(
|
|
393
|
+
if (!_isIP(input))
|
|
432
394
|
return false;
|
|
433
395
|
return true;
|
|
434
396
|
}
|
|
@@ -452,14 +414,13 @@ function isValidIP(input, _parentContext) {
|
|
|
452
414
|
* https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml
|
|
453
415
|
* for ip range details
|
|
454
416
|
*/
|
|
455
|
-
function isRoutableIP(input, _parentContext) {
|
|
417
|
+
export function isRoutableIP(input, _parentContext) {
|
|
456
418
|
if (ts.isNil(input))
|
|
457
419
|
return false;
|
|
458
420
|
if (isArray(input))
|
|
459
421
|
return _lift(_isRoutableIP, input, _parentContext);
|
|
460
422
|
return _isRoutableIP(input);
|
|
461
423
|
}
|
|
462
|
-
exports.isRoutableIP = isRoutableIP;
|
|
463
424
|
function _isRoutableIP(input, _parentContext) {
|
|
464
425
|
if (!isIP(input))
|
|
465
426
|
return false;
|
|
@@ -485,14 +446,13 @@ function _isRoutableIP(input, _parentContext) {
|
|
|
485
446
|
* https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml
|
|
486
447
|
* for ip range details
|
|
487
448
|
*/
|
|
488
|
-
function isNonRoutableIP(input, _parentContext) {
|
|
449
|
+
export function isNonRoutableIP(input, _parentContext) {
|
|
489
450
|
if (ts.isNil(input))
|
|
490
451
|
return false;
|
|
491
452
|
if (isArray(input))
|
|
492
453
|
return _lift(_isNonRoutableIP, input, _parentContext);
|
|
493
454
|
return _isNonRoutableIP(input);
|
|
494
455
|
}
|
|
495
|
-
exports.isNonRoutableIP = isNonRoutableIP;
|
|
496
456
|
function _isNonRoutableIP(input, _parentContext) {
|
|
497
457
|
if (!isIP(input))
|
|
498
458
|
return false;
|
|
@@ -505,12 +465,12 @@ function _privateIP(input) {
|
|
|
505
465
|
}
|
|
506
466
|
function _parseIpAddress(input) {
|
|
507
467
|
const ipv4Regex = /\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|$)){4}\b/;
|
|
508
|
-
const parsed =
|
|
468
|
+
const parsed = ipaddr.parse(input);
|
|
509
469
|
// if ipv6 mapped v4 then need to return the parsed ipv4 address
|
|
510
470
|
if (parsed.kind() === 'ipv6') {
|
|
511
471
|
const ipv4 = input.match(ipv4Regex);
|
|
512
472
|
if (ipv4 != null && Array.isArray(ipv4)) {
|
|
513
|
-
return
|
|
473
|
+
return ipaddr.parse(ipv4[0]);
|
|
514
474
|
}
|
|
515
475
|
}
|
|
516
476
|
return parsed;
|
|
@@ -531,17 +491,17 @@ function _inPrivateIPRange(ipRange) {
|
|
|
531
491
|
].includes(ipRange);
|
|
532
492
|
}
|
|
533
493
|
const ipv4RestrictedRanges = [
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
494
|
+
ipaddr.parseCIDR('192.31.196.0/24'),
|
|
495
|
+
ipaddr.parseCIDR('192.52.193.0/24'),
|
|
496
|
+
ipaddr.parseCIDR('192.175.48.0/24'),
|
|
497
|
+
ipaddr.parseCIDR('198.18.0.0/15'),
|
|
498
|
+
ipaddr.parseCIDR('224.0.0.0/8')
|
|
539
499
|
];
|
|
540
500
|
const ipv6RestrictedRanges = [
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
501
|
+
ipaddr.parseCIDR('64:ff9b:1::/48'),
|
|
502
|
+
ipaddr.parseCIDR('100::/64'),
|
|
503
|
+
ipaddr.parseCIDR('2001::/23'),
|
|
504
|
+
ipaddr.parseCIDR('2620:4f:8000::/48')
|
|
545
505
|
];
|
|
546
506
|
function _inRestrictedIPRange(parsedIp) {
|
|
547
507
|
const rangesToCheck = parsedIp.kind() === 'ipv4' ? ipv4RestrictedRanges : ipv6RestrictedRanges;
|
|
@@ -560,14 +520,13 @@ function _inRestrictedIPRange(parsedIp) {
|
|
|
560
520
|
* @param {*} input
|
|
561
521
|
* @returns {boolean} boolean
|
|
562
522
|
*/
|
|
563
|
-
function isCIDR(input, _parentContext) {
|
|
523
|
+
export function isCIDR(input, _parentContext) {
|
|
564
524
|
if (ts.isNil(input))
|
|
565
525
|
return false;
|
|
566
526
|
if (isArray(input))
|
|
567
527
|
return _lift(_isCidr, input, _parentContext);
|
|
568
528
|
return _isCidr(input);
|
|
569
529
|
}
|
|
570
|
-
exports.isCIDR = isCIDR;
|
|
571
530
|
function _isCidr(input, _parentContext) {
|
|
572
531
|
if (!ts.isString(input))
|
|
573
532
|
return false;
|
|
@@ -587,14 +546,13 @@ function _isCidr(input, _parentContext) {
|
|
|
587
546
|
* @param {{ min?: string; max?: string; cidr?: string }} args
|
|
588
547
|
* @returns {boolean} boolean
|
|
589
548
|
*/
|
|
590
|
-
function inIPRange(input, _parentContext, args) {
|
|
549
|
+
export function inIPRange(input, _parentContext, args) {
|
|
591
550
|
if (ts.isNil(input))
|
|
592
551
|
return false;
|
|
593
552
|
if (isArray(input))
|
|
594
553
|
return _lift(_inIPRange, input, _parentContext, args);
|
|
595
554
|
return _inIPRange(input, args);
|
|
596
555
|
}
|
|
597
|
-
exports.inIPRange = inIPRange;
|
|
598
556
|
function _inIPRange(input, args) {
|
|
599
557
|
const MIN_IPV4_IP = '0.0.0.0';
|
|
600
558
|
const MAX_IPV4_IP = '255.255.255.255';
|
|
@@ -606,20 +564,20 @@ function _inIPRange(input, args) {
|
|
|
606
564
|
if (args.cidr) {
|
|
607
565
|
if (!isCIDR(args.cidr))
|
|
608
566
|
return false;
|
|
609
|
-
return
|
|
567
|
+
return ip6addr.createCIDR(args.cidr).contains(input);
|
|
610
568
|
}
|
|
611
569
|
// assign upper/lower bound even if min or max is missing
|
|
612
570
|
let { min, max } = args;
|
|
613
571
|
if (!min)
|
|
614
|
-
min =
|
|
572
|
+
min = _isIP.v6(input) ? MIN_IPV6_IP : MIN_IPV4_IP;
|
|
615
573
|
if (!max)
|
|
616
|
-
max =
|
|
574
|
+
max = _isIP.v6(input) ? MAX_IPV6_IP : MAX_IPV4_IP;
|
|
617
575
|
// min and max must be valid ips, same IP type, and min < max
|
|
618
|
-
if (!isIP(min) || !isIP(max) ||
|
|
619
|
-
||
|
|
576
|
+
if (!isIP(min) || !isIP(max) || _isIP.v6(min) !== _isIP.v6(max)
|
|
577
|
+
|| ip6addr.compare(max, min) === -1) {
|
|
620
578
|
return false;
|
|
621
579
|
}
|
|
622
|
-
return
|
|
580
|
+
return ip6addr.createAddrRange(min, max).contains(input);
|
|
623
581
|
}
|
|
624
582
|
/**
|
|
625
583
|
* Validates that the input is a valid phone number, or a list of phone numbers
|
|
@@ -634,20 +592,19 @@ function _inIPRange(input, args) {
|
|
|
634
592
|
* @param {*} input
|
|
635
593
|
* @returns {boolean} boolean
|
|
636
594
|
*/
|
|
637
|
-
function isISDN(input, _parentContext) {
|
|
595
|
+
export function isISDN(input, _parentContext) {
|
|
638
596
|
if (ts.isNil(input))
|
|
639
597
|
return false;
|
|
640
598
|
if (isArray(input)) {
|
|
641
599
|
const fn = (data) => {
|
|
642
|
-
const phoneNumber = new
|
|
600
|
+
const phoneNumber = new PhoneValidator(`+${data}`);
|
|
643
601
|
return phoneNumber.isValid();
|
|
644
602
|
};
|
|
645
603
|
return _lift(fn, input, _parentContext);
|
|
646
604
|
}
|
|
647
|
-
const phoneNumber = new
|
|
605
|
+
const phoneNumber = new PhoneValidator(`+${input}`);
|
|
648
606
|
return phoneNumber.isValid();
|
|
649
607
|
}
|
|
650
|
-
exports.isISDN = isISDN;
|
|
651
608
|
/**
|
|
652
609
|
* Validates that the input is a MacAddress, or a list of MacAddresses
|
|
653
610
|
*
|
|
@@ -669,15 +626,14 @@ exports.isISDN = isISDN;
|
|
|
669
626
|
* @param {{delimiter}} [{ delimiter?: string}] may be set to 'colon'|'space'|'dash'|'dot'|'none'
|
|
670
627
|
* @returns {boolean} boolean
|
|
671
628
|
*/
|
|
672
|
-
function isMACAddress(input, _parentContext, args) {
|
|
629
|
+
export function isMACAddress(input, _parentContext, args) {
|
|
673
630
|
if (ts.isNil(input))
|
|
674
631
|
return false;
|
|
675
632
|
if (isArray(input)) {
|
|
676
|
-
return _lift(ts.isMACAddressFP(args
|
|
633
|
+
return _lift(ts.isMACAddressFP(args?.delimiter), input, _parentContext);
|
|
677
634
|
}
|
|
678
|
-
return ts.isMACAddress(input, args
|
|
635
|
+
return ts.isMACAddress(input, args?.delimiter);
|
|
679
636
|
}
|
|
680
|
-
exports.isMACAddress = isMACAddress;
|
|
681
637
|
/**
|
|
682
638
|
* Will return true if number is between args provided, or that the list
|
|
683
639
|
* of numbers are between the values
|
|
@@ -694,7 +650,7 @@ exports.isMACAddress = isMACAddress;
|
|
|
694
650
|
* @param {{ min?: number; max?: number; inclusive?: boolean }} args
|
|
695
651
|
* @returns {boolean} boolean
|
|
696
652
|
*/
|
|
697
|
-
function inNumberRange(input, _parentContext, args) {
|
|
653
|
+
export function inNumberRange(input, _parentContext, args) {
|
|
698
654
|
if (ts.isNil(input))
|
|
699
655
|
return false;
|
|
700
656
|
if (isArray(input)) {
|
|
@@ -702,7 +658,6 @@ function inNumberRange(input, _parentContext, args) {
|
|
|
702
658
|
}
|
|
703
659
|
return ts.inNumberRange(input, args);
|
|
704
660
|
}
|
|
705
|
-
exports.inNumberRange = inNumberRange;
|
|
706
661
|
/**
|
|
707
662
|
* Validates that input is a number or a list of numbers
|
|
708
663
|
*
|
|
@@ -716,14 +671,13 @@ exports.inNumberRange = inNumberRange;
|
|
|
716
671
|
* @param {*} input
|
|
717
672
|
* @returns {boolean} boolean
|
|
718
673
|
*/
|
|
719
|
-
function isNumber(input, _parentContext) {
|
|
674
|
+
export function isNumber(input, _parentContext) {
|
|
720
675
|
if (ts.isNil(input))
|
|
721
676
|
return false;
|
|
722
677
|
if (isArray(input))
|
|
723
678
|
return _lift(handleArgs(ts.isNumber), input, _parentContext);
|
|
724
679
|
return ts.isNumber(input);
|
|
725
680
|
}
|
|
726
|
-
exports.isNumber = isNumber;
|
|
727
681
|
/**
|
|
728
682
|
* Validates that input is a integer or a list of integers
|
|
729
683
|
*
|
|
@@ -739,14 +693,13 @@ exports.isNumber = isNumber;
|
|
|
739
693
|
* @param {*} input
|
|
740
694
|
* @returns {boolean} boolean
|
|
741
695
|
*/
|
|
742
|
-
function isInteger(input, _parentContext) {
|
|
696
|
+
export function isInteger(input, _parentContext) {
|
|
743
697
|
if (ts.isNil(input))
|
|
744
698
|
return false;
|
|
745
699
|
if (isArray(input))
|
|
746
700
|
return _lift(handleArgs(ts.isInteger), input, _parentContext);
|
|
747
701
|
return ts.isInteger(input);
|
|
748
702
|
}
|
|
749
|
-
exports.isInteger = isInteger;
|
|
750
703
|
/**
|
|
751
704
|
* Validates that input is a string or a list of strings
|
|
752
705
|
*
|
|
@@ -759,14 +712,13 @@ exports.isInteger = isInteger;
|
|
|
759
712
|
*
|
|
760
713
|
* @param {*} input
|
|
761
714
|
*/
|
|
762
|
-
function isString(input, _parentContext) {
|
|
715
|
+
export function isString(input, _parentContext) {
|
|
763
716
|
if (ts.isNil(input))
|
|
764
717
|
return false;
|
|
765
718
|
if (isArray(input))
|
|
766
719
|
return _lift(handleArgs(ts.isString), input, _parentContext);
|
|
767
720
|
return ts.isString(input);
|
|
768
721
|
}
|
|
769
|
-
exports.isString = isString;
|
|
770
722
|
/**
|
|
771
723
|
* Validates that the input is a url or a list of urls
|
|
772
724
|
*
|
|
@@ -781,7 +733,7 @@ exports.isString = isString;
|
|
|
781
733
|
* @param {*} input
|
|
782
734
|
* @returns {boolean} boolean
|
|
783
735
|
*/
|
|
784
|
-
function isURL(input, _parentContext) {
|
|
736
|
+
export function isURL(input, _parentContext) {
|
|
785
737
|
if (ts.isNil(input))
|
|
786
738
|
return false;
|
|
787
739
|
if (isArray(input)) {
|
|
@@ -790,7 +742,6 @@ function isURL(input, _parentContext) {
|
|
|
790
742
|
}
|
|
791
743
|
return ts.isString(input) && url.isUri(input) != null;
|
|
792
744
|
}
|
|
793
|
-
exports.isURL = isURL;
|
|
794
745
|
/**
|
|
795
746
|
* Validates that input is a UUID or a list of UUID's
|
|
796
747
|
*
|
|
@@ -805,16 +756,15 @@ exports.isURL = isURL;
|
|
|
805
756
|
* @param {*} input
|
|
806
757
|
* @returns {boolean} boolean
|
|
807
758
|
*/
|
|
808
|
-
function isUUID(input, _parentContext) {
|
|
759
|
+
export function isUUID(input, _parentContext) {
|
|
809
760
|
if (ts.isNil(input))
|
|
810
761
|
return false;
|
|
811
762
|
if (isArray(input)) {
|
|
812
|
-
const fn = (data) => ts.isString(data) &&
|
|
763
|
+
const fn = (data) => ts.isString(data) && validator.isUUID(data);
|
|
813
764
|
return _lift(fn, input, _parentContext);
|
|
814
765
|
}
|
|
815
|
-
return ts.isString(input) &&
|
|
766
|
+
return ts.isString(input) && validator.isUUID(input);
|
|
816
767
|
}
|
|
817
|
-
exports.isUUID = isUUID;
|
|
818
768
|
/**
|
|
819
769
|
* Validates the input contains the values specified in args,
|
|
820
770
|
* or that the array of inputs contains the value in args
|
|
@@ -830,7 +780,7 @@ exports.isUUID = isUUID;
|
|
|
830
780
|
* @param {{ value: string }} { value }
|
|
831
781
|
* @returns {boolean} boolean
|
|
832
782
|
*/
|
|
833
|
-
function contains(input, _parentContext, args) {
|
|
783
|
+
export function contains(input, _parentContext, args) {
|
|
834
784
|
if (ts.isNil(input))
|
|
835
785
|
return false;
|
|
836
786
|
if (!args.value)
|
|
@@ -841,7 +791,6 @@ function contains(input, _parentContext, args) {
|
|
|
841
791
|
}
|
|
842
792
|
return ts.includes(input, args.value);
|
|
843
793
|
}
|
|
844
|
-
exports.contains = contains;
|
|
845
794
|
/**
|
|
846
795
|
* Validates that the input matches the value, of that the input array matches the value provided
|
|
847
796
|
*
|
|
@@ -854,7 +803,7 @@ exports.contains = contains;
|
|
|
854
803
|
* @param {{ value: string }} { value }
|
|
855
804
|
* @returns {boolean} boolean
|
|
856
805
|
*/
|
|
857
|
-
function equals(input, _parentContext, args) {
|
|
806
|
+
export function equals(input, _parentContext, args) {
|
|
858
807
|
if (ts.isNil(input))
|
|
859
808
|
return false;
|
|
860
809
|
if (!args.value)
|
|
@@ -865,7 +814,6 @@ function equals(input, _parentContext, args) {
|
|
|
865
814
|
}
|
|
866
815
|
return ts.isDeepEqual(input, args.value);
|
|
867
816
|
}
|
|
868
|
-
exports.equals = equals;
|
|
869
817
|
/**
|
|
870
818
|
* Validates that the input is alpha or a list of alpha values
|
|
871
819
|
*
|
|
@@ -879,17 +827,16 @@ exports.equals = equals;
|
|
|
879
827
|
* @param {{ locale: validator.AlphaLocale }} [args]
|
|
880
828
|
* @returns {boolean} boolean
|
|
881
829
|
*/
|
|
882
|
-
function isAlpha(input, _parentContext, args) {
|
|
830
|
+
export function isAlpha(input, _parentContext, args) {
|
|
883
831
|
if (ts.isNil(input))
|
|
884
832
|
return false;
|
|
885
833
|
const locale = args && args.locale ? args.locale : 'en-US';
|
|
886
834
|
if (isArray(input)) {
|
|
887
|
-
const fn = (data) => ts.isString(data) &&
|
|
835
|
+
const fn = (data) => ts.isString(data) && validator.isAlpha(data, locale);
|
|
888
836
|
return _lift(fn, input, _parentContext);
|
|
889
837
|
}
|
|
890
|
-
return ts.isString(input) &&
|
|
838
|
+
return ts.isString(input) && validator.isAlpha(input, locale);
|
|
891
839
|
}
|
|
892
|
-
exports.isAlpha = isAlpha;
|
|
893
840
|
/**
|
|
894
841
|
* Validates that the input is alphanumeric or a list of alphanumeric values
|
|
895
842
|
*
|
|
@@ -904,17 +851,16 @@ exports.isAlpha = isAlpha;
|
|
|
904
851
|
* @param {{ locale: validator.AlphanumericLocale }} [args]
|
|
905
852
|
* @returns {boolean} boolean
|
|
906
853
|
*/
|
|
907
|
-
function isAlphanumeric(input, _parentContext, args) {
|
|
854
|
+
export function isAlphanumeric(input, _parentContext, args) {
|
|
908
855
|
if (ts.isNil(input))
|
|
909
856
|
return false;
|
|
910
857
|
const locale = args && args.locale ? args.locale : 'en-US';
|
|
911
858
|
if (isArray(input)) {
|
|
912
|
-
const fn = (data) => ts.isString(data) &&
|
|
859
|
+
const fn = (data) => ts.isString(data) && validator.isAlphanumeric(data, locale);
|
|
913
860
|
return _lift(fn, input, _parentContext);
|
|
914
861
|
}
|
|
915
|
-
return ts.isString(input) &&
|
|
862
|
+
return ts.isString(input) && validator.isAlphanumeric(input, locale);
|
|
916
863
|
}
|
|
917
|
-
exports.isAlphanumeric = isAlphanumeric;
|
|
918
864
|
/**
|
|
919
865
|
* Validates that the input is ascii chars or a list of ascii chars
|
|
920
866
|
*
|
|
@@ -927,16 +873,15 @@ exports.isAlphanumeric = isAlphanumeric;
|
|
|
927
873
|
* @param {*} input
|
|
928
874
|
* @returns {boolean} boolean
|
|
929
875
|
*/
|
|
930
|
-
function isASCII(input, _parentContext) {
|
|
876
|
+
export function isASCII(input, _parentContext) {
|
|
931
877
|
if (ts.isNil(input))
|
|
932
878
|
return false;
|
|
933
879
|
if (isArray(input)) {
|
|
934
|
-
const fn = (data) => ts.isString(data) &&
|
|
880
|
+
const fn = (data) => ts.isString(data) && validator.isAscii(data);
|
|
935
881
|
return _lift(fn, input, _parentContext);
|
|
936
882
|
}
|
|
937
|
-
return ts.isString(input) &&
|
|
883
|
+
return ts.isString(input) && validator.isAscii(input);
|
|
938
884
|
}
|
|
939
|
-
exports.isASCII = isASCII;
|
|
940
885
|
/**
|
|
941
886
|
* Validates that the input is a base64 encoded string or a list of base64
|
|
942
887
|
* encoded strings of string or binary data
|
|
@@ -950,7 +895,7 @@ exports.isASCII = isASCII;
|
|
|
950
895
|
* @param {*} input
|
|
951
896
|
* @returns {boolean} boolean
|
|
952
897
|
*/
|
|
953
|
-
function isBase64(input, _parentContext) {
|
|
898
|
+
export function isBase64(input, _parentContext) {
|
|
954
899
|
if (ts.isNil(input))
|
|
955
900
|
return false;
|
|
956
901
|
if (isArray(input)) {
|
|
@@ -959,11 +904,10 @@ function isBase64(input, _parentContext) {
|
|
|
959
904
|
}
|
|
960
905
|
return _validBase64(input);
|
|
961
906
|
}
|
|
962
|
-
exports.isBase64 = isBase64;
|
|
963
907
|
function _validBase64(input) {
|
|
964
908
|
if (ts.isString(input)) {
|
|
965
|
-
const validatorValid =
|
|
966
|
-
const validatorValidUrl =
|
|
909
|
+
const validatorValid = validator.isBase64(input);
|
|
910
|
+
const validatorValidUrl = validator.isBase64(input, { urlSafe: true });
|
|
967
911
|
// validator does not include pad char(=)
|
|
968
912
|
const base64URLPaddedRegex = /^[A-Z0-9_\-=]*$/i;
|
|
969
913
|
const validatorValidUrlPadded = base64URLPaddedRegex.test(input);
|
|
@@ -990,14 +934,13 @@ function _validBase64(input) {
|
|
|
990
934
|
* @param {{ ignoreWhitespace: boolean }} [args] set to true if you want the value to be trimmed
|
|
991
935
|
* @returns {boolean} boolean
|
|
992
936
|
*/
|
|
993
|
-
function isEmpty(input, _parentContext, args) {
|
|
937
|
+
export function isEmpty(input, _parentContext, args) {
|
|
994
938
|
let value = input;
|
|
995
939
|
if (!isArray(value) && ts.isString(value) && args && args.ignoreWhitespace) {
|
|
996
940
|
value = value.trim();
|
|
997
941
|
}
|
|
998
942
|
return ts.isEmpty(value);
|
|
999
943
|
}
|
|
1000
|
-
exports.isEmpty = isEmpty;
|
|
1001
944
|
/**
|
|
1002
945
|
* Validate that the input is a valid domain name, or a list of domain names
|
|
1003
946
|
*
|
|
@@ -1011,21 +954,20 @@ exports.isEmpty = isEmpty;
|
|
|
1011
954
|
* @param {args} [{ require_tld = true, allow_underscores = false, allow_trailing_dot = false}]
|
|
1012
955
|
* @returns {boolean} boolean
|
|
1013
956
|
*/
|
|
1014
|
-
function isFQDN(input, _parentContext, args) {
|
|
957
|
+
export function isFQDN(input, _parentContext, args) {
|
|
1015
958
|
if (ts.isNil(input))
|
|
1016
959
|
return false;
|
|
1017
960
|
const config = {
|
|
1018
|
-
require_tld:
|
|
1019
|
-
allow_underscores:
|
|
1020
|
-
allow_trailing_dot:
|
|
961
|
+
require_tld: args?.requireTld || true,
|
|
962
|
+
allow_underscores: args?.allowUnderscores || false,
|
|
963
|
+
allow_trailing_dot: args?.allowTrailingDot || false
|
|
1021
964
|
};
|
|
1022
965
|
if (isArray(input)) {
|
|
1023
|
-
const fn = (data) => ts.isString(data) &&
|
|
966
|
+
const fn = (data) => ts.isString(data) && validator.isFQDN(data, config);
|
|
1024
967
|
return _lift(fn, input, _parentContext);
|
|
1025
968
|
}
|
|
1026
|
-
return ts.isString(input) &&
|
|
969
|
+
return ts.isString(input) && validator.isFQDN(input, config);
|
|
1027
970
|
}
|
|
1028
|
-
exports.isFQDN = isFQDN;
|
|
1029
971
|
/**
|
|
1030
972
|
* Validates that the input is a hash, or a list of hashes
|
|
1031
973
|
*
|
|
@@ -1051,18 +993,17 @@ exports.isFQDN = isFQDN;
|
|
|
1051
993
|
* @param {HashConfig} { algo }
|
|
1052
994
|
* @returns {boolean} boolean
|
|
1053
995
|
*/
|
|
1054
|
-
function isHash(input, _parentContext, args) {
|
|
996
|
+
export function isHash(input, _parentContext, args) {
|
|
1055
997
|
if (ts.isNil(input))
|
|
1056
998
|
return false;
|
|
1057
|
-
if (
|
|
999
|
+
if (args?.algo === undefined)
|
|
1058
1000
|
throw new Error('Parameter property algo was not provided');
|
|
1059
1001
|
if (isArray(input)) {
|
|
1060
|
-
const fn = (data) => ts.isString(data) &&
|
|
1002
|
+
const fn = (data) => ts.isString(data) && validator.isHash(data, args.algo);
|
|
1061
1003
|
return _lift(fn, input, _parentContext);
|
|
1062
1004
|
}
|
|
1063
|
-
return ts.isString(input) &&
|
|
1005
|
+
return ts.isString(input) && validator.isHash(input, args.algo);
|
|
1064
1006
|
}
|
|
1065
|
-
exports.isHash = isHash;
|
|
1066
1007
|
/**
|
|
1067
1008
|
* Validates that input is a valid country code or a list of country codes
|
|
1068
1009
|
*
|
|
@@ -1076,16 +1017,15 @@ exports.isHash = isHash;
|
|
|
1076
1017
|
* @param {*} input
|
|
1077
1018
|
* @returns {boolean} boolean
|
|
1078
1019
|
*/
|
|
1079
|
-
function isCountryCode(input, _parentContext) {
|
|
1020
|
+
export function isCountryCode(input, _parentContext) {
|
|
1080
1021
|
if (ts.isNil(input))
|
|
1081
1022
|
return false;
|
|
1082
1023
|
if (isArray(input)) {
|
|
1083
|
-
const fn = (data) => ts.isString(data) &&
|
|
1024
|
+
const fn = (data) => ts.isString(data) && validator.isISO31661Alpha2(data);
|
|
1084
1025
|
return _lift(fn, input, _parentContext);
|
|
1085
1026
|
}
|
|
1086
|
-
return ts.isString(input) &&
|
|
1027
|
+
return ts.isString(input) && validator.isISO31661Alpha2(input);
|
|
1087
1028
|
}
|
|
1088
|
-
exports.isCountryCode = isCountryCode;
|
|
1089
1029
|
/**
|
|
1090
1030
|
* Checks to see if input is a valid ISO8601 string dates or a list of valid dates
|
|
1091
1031
|
* @example
|
|
@@ -1096,16 +1036,15 @@ exports.isCountryCode = isCountryCode;
|
|
|
1096
1036
|
* @param {*} input
|
|
1097
1037
|
* @returns {boolean} boolean
|
|
1098
1038
|
*/
|
|
1099
|
-
function isISO8601(input, _parentContext) {
|
|
1039
|
+
export function isISO8601(input, _parentContext) {
|
|
1100
1040
|
if (ts.isNil(input))
|
|
1101
1041
|
return false;
|
|
1102
1042
|
if (isArray(input)) {
|
|
1103
|
-
const fn = (data) => ts.isString(data) &&
|
|
1043
|
+
const fn = (data) => ts.isString(data) && validator.isISO8601(data);
|
|
1104
1044
|
return _lift(fn, input, _parentContext);
|
|
1105
1045
|
}
|
|
1106
|
-
return ts.isString(input) &&
|
|
1046
|
+
return ts.isString(input) && validator.isISO8601(input);
|
|
1107
1047
|
}
|
|
1108
|
-
exports.isISO8601 = isISO8601;
|
|
1109
1048
|
/**
|
|
1110
1049
|
* Validates that input is a valid ISSN or a list of valid ISSN
|
|
1111
1050
|
*
|
|
@@ -1120,20 +1059,19 @@ exports.isISO8601 = isISO8601;
|
|
|
1120
1059
|
* @param {ArgsISSNOptions} [{ requireHyphen?: boolean; caseSensitive?: boolean;}]
|
|
1121
1060
|
* @returns {boolean} boolean
|
|
1122
1061
|
*/
|
|
1123
|
-
function isISSN(input, _parentContext, args) {
|
|
1062
|
+
export function isISSN(input, _parentContext, args) {
|
|
1124
1063
|
if (ts.isNil(input))
|
|
1125
1064
|
return false;
|
|
1126
1065
|
const config = {
|
|
1127
|
-
case_sensitive:
|
|
1128
|
-
require_hyphen:
|
|
1066
|
+
case_sensitive: args?.caseSensitive || false,
|
|
1067
|
+
require_hyphen: args?.requireHyphen || false
|
|
1129
1068
|
};
|
|
1130
1069
|
if (isArray(input)) {
|
|
1131
|
-
const fn = (data) => ts.isString(data) &&
|
|
1070
|
+
const fn = (data) => ts.isString(data) && validator.isISSN(data, config);
|
|
1132
1071
|
return _lift(fn, input, _parentContext);
|
|
1133
1072
|
}
|
|
1134
|
-
return ts.isString(input) &&
|
|
1073
|
+
return ts.isString(input) && validator.isISSN(input, config);
|
|
1135
1074
|
}
|
|
1136
|
-
exports.isISSN = isISSN;
|
|
1137
1075
|
/**
|
|
1138
1076
|
* Validates that input is a valid RFC3339 dates or a list of valid RFC3339 dates
|
|
1139
1077
|
*
|
|
@@ -1146,16 +1084,15 @@ exports.isISSN = isISSN;
|
|
|
1146
1084
|
* @param {*} input
|
|
1147
1085
|
* @returns {boolean} boolean
|
|
1148
1086
|
*/
|
|
1149
|
-
function isRFC3339(input, _parentContext) {
|
|
1087
|
+
export function isRFC3339(input, _parentContext) {
|
|
1150
1088
|
if (ts.isNil(input))
|
|
1151
1089
|
return false;
|
|
1152
1090
|
if (isArray(input)) {
|
|
1153
|
-
const fn = (data) => ts.isString(data) &&
|
|
1091
|
+
const fn = (data) => ts.isString(data) && validator.isRFC3339(data);
|
|
1154
1092
|
return _lift(fn, input, _parentContext);
|
|
1155
1093
|
}
|
|
1156
|
-
return ts.isString(input) &&
|
|
1094
|
+
return ts.isString(input) && validator.isRFC3339(input);
|
|
1157
1095
|
}
|
|
1158
|
-
exports.isRFC3339 = isRFC3339;
|
|
1159
1096
|
/**
|
|
1160
1097
|
* Validates that input is a valid JSON string or a list of valid JSON
|
|
1161
1098
|
*
|
|
@@ -1169,16 +1106,15 @@ exports.isRFC3339 = isRFC3339;
|
|
|
1169
1106
|
* @param {*} input
|
|
1170
1107
|
* @returns {boolean} boolean
|
|
1171
1108
|
*/
|
|
1172
|
-
function isJSON(input, _parentContext) {
|
|
1109
|
+
export function isJSON(input, _parentContext) {
|
|
1173
1110
|
if (ts.isNil(input))
|
|
1174
1111
|
return false;
|
|
1175
1112
|
if (isArray(input)) {
|
|
1176
|
-
const fn = (data) => ts.isString(data) &&
|
|
1113
|
+
const fn = (data) => ts.isString(data) && validator.isJSON(data);
|
|
1177
1114
|
return _lift(fn, input, _parentContext);
|
|
1178
1115
|
}
|
|
1179
|
-
return ts.isString(input) &&
|
|
1116
|
+
return ts.isString(input) && validator.isJSON(input);
|
|
1180
1117
|
}
|
|
1181
|
-
exports.isJSON = isJSON;
|
|
1182
1118
|
/**
|
|
1183
1119
|
* Check to see if input is a string with given length ranges, or a list of valid string lengths
|
|
1184
1120
|
* @example
|
|
@@ -1192,7 +1128,7 @@ exports.isJSON = isJSON;
|
|
|
1192
1128
|
* @param {LengthConfig} { size, min, max }
|
|
1193
1129
|
* @returns {boolean} boolean
|
|
1194
1130
|
*/
|
|
1195
|
-
function isLength(input, _parentContext, { size, min, max }) {
|
|
1131
|
+
export function isLength(input, _parentContext, { size, min, max }) {
|
|
1196
1132
|
if (ts.isNil(input))
|
|
1197
1133
|
return false;
|
|
1198
1134
|
if (isArray(input)) {
|
|
@@ -1200,7 +1136,7 @@ function isLength(input, _parentContext, { size, min, max }) {
|
|
|
1200
1136
|
if (size)
|
|
1201
1137
|
return ts.isString(data) && data.length === size;
|
|
1202
1138
|
if (min || max)
|
|
1203
|
-
return
|
|
1139
|
+
return validator.isLength(data, { min, max });
|
|
1204
1140
|
return false;
|
|
1205
1141
|
};
|
|
1206
1142
|
return _lift(fn, input, _parentContext);
|
|
@@ -1209,11 +1145,10 @@ function isLength(input, _parentContext, { size, min, max }) {
|
|
|
1209
1145
|
if (size)
|
|
1210
1146
|
return input.length === size;
|
|
1211
1147
|
if (min || max)
|
|
1212
|
-
return
|
|
1148
|
+
return validator.isLength(input, { min, max });
|
|
1213
1149
|
}
|
|
1214
1150
|
return false;
|
|
1215
1151
|
}
|
|
1216
|
-
exports.isLength = isLength;
|
|
1217
1152
|
/**
|
|
1218
1153
|
* Validates that input is a valid mimeType or a list of mimeTypes
|
|
1219
1154
|
*
|
|
@@ -1227,16 +1162,15 @@ exports.isLength = isLength;
|
|
|
1227
1162
|
* @param {*} input
|
|
1228
1163
|
* @returns {boolean} boolean
|
|
1229
1164
|
*/
|
|
1230
|
-
function isMIMEType(input, _parentContext) {
|
|
1165
|
+
export function isMIMEType(input, _parentContext) {
|
|
1231
1166
|
if (ts.isNil(input))
|
|
1232
1167
|
return false;
|
|
1233
1168
|
if (isArray(input)) {
|
|
1234
|
-
const fn = (data) => ts.isString(data) &&
|
|
1169
|
+
const fn = (data) => ts.isString(data) && validator.isMimeType(data);
|
|
1235
1170
|
return _lift(fn, input, _parentContext);
|
|
1236
1171
|
}
|
|
1237
|
-
return ts.isString(input) &&
|
|
1172
|
+
return ts.isString(input) && validator.isMimeType(input);
|
|
1238
1173
|
}
|
|
1239
|
-
exports.isMIMEType = isMIMEType;
|
|
1240
1174
|
/**
|
|
1241
1175
|
* Validates that input is a valid postal code or a list of postal codes
|
|
1242
1176
|
*
|
|
@@ -1254,18 +1188,17 @@ exports.isMIMEType = isMIMEType;
|
|
|
1254
1188
|
* @param {({ locale: 'any' | PostalCodeLocale })} { locale }
|
|
1255
1189
|
* @returns {boolean} boolean
|
|
1256
1190
|
*/
|
|
1257
|
-
function isPostalCode(input, _parentContext, args) {
|
|
1191
|
+
export function isPostalCode(input, _parentContext, args) {
|
|
1258
1192
|
if (ts.isNil(input))
|
|
1259
1193
|
return false;
|
|
1260
|
-
if (!
|
|
1194
|
+
if (!args?.locale)
|
|
1261
1195
|
throw new Error('Invalid parameter locale, must provide an object with locale');
|
|
1262
1196
|
if (isArray(input)) {
|
|
1263
|
-
const fn = (data) => ts.isString(data) &&
|
|
1197
|
+
const fn = (data) => ts.isString(data) && validator.isPostalCode(data, args.locale);
|
|
1264
1198
|
return _lift(fn, input, _parentContext);
|
|
1265
1199
|
}
|
|
1266
|
-
return ts.isString(input) &&
|
|
1200
|
+
return ts.isString(input) && validator.isPostalCode(input, args.locale);
|
|
1267
1201
|
}
|
|
1268
|
-
exports.isPostalCode = isPostalCode;
|
|
1269
1202
|
/**
|
|
1270
1203
|
* Validates that the input is a valid date or a list of valid dates
|
|
1271
1204
|
*
|
|
@@ -1284,7 +1217,7 @@ exports.isPostalCode = isPostalCode;
|
|
|
1284
1217
|
* @param {*} input
|
|
1285
1218
|
* @returns {boolean} boolean
|
|
1286
1219
|
*/
|
|
1287
|
-
function isValidDate(input, _parentContext) {
|
|
1220
|
+
export function isValidDate(input, _parentContext) {
|
|
1288
1221
|
if (ts.isNil(input))
|
|
1289
1222
|
return false;
|
|
1290
1223
|
if (isArray(input)) {
|
|
@@ -1292,7 +1225,6 @@ function isValidDate(input, _parentContext) {
|
|
|
1292
1225
|
}
|
|
1293
1226
|
return !ts.isBoolean(input) && ts.isValidDate(input);
|
|
1294
1227
|
}
|
|
1295
|
-
exports.isValidDate = isValidDate;
|
|
1296
1228
|
/**
|
|
1297
1229
|
* Will throw if input is null or undefined
|
|
1298
1230
|
*
|
|
@@ -1304,12 +1236,11 @@ exports.isValidDate = isValidDate;
|
|
|
1304
1236
|
* @param {*} input
|
|
1305
1237
|
* @returns {boolean} boolean
|
|
1306
1238
|
*/
|
|
1307
|
-
function guard(input, _parentContext) {
|
|
1239
|
+
export function guard(input, _parentContext) {
|
|
1308
1240
|
if (ts.isNil(input))
|
|
1309
1241
|
throw new Error('Expected value not to be empty');
|
|
1310
1242
|
return true;
|
|
1311
1243
|
}
|
|
1312
|
-
exports.guard = guard;
|
|
1313
1244
|
/**
|
|
1314
1245
|
* Will return false if input is null or undefined
|
|
1315
1246
|
*
|
|
@@ -1321,10 +1252,9 @@ exports.guard = guard;
|
|
|
1321
1252
|
* @param {*} input
|
|
1322
1253
|
* @returns {boolean} boolean
|
|
1323
1254
|
*/
|
|
1324
|
-
function exists(input, _parentContext) {
|
|
1255
|
+
export function exists(input, _parentContext) {
|
|
1325
1256
|
return ts.isNotNil(input);
|
|
1326
1257
|
}
|
|
1327
|
-
exports.exists = exists;
|
|
1328
1258
|
/**
|
|
1329
1259
|
* Validates that the input is an array
|
|
1330
1260
|
* @example
|
|
@@ -1335,10 +1265,9 @@ exports.exists = exists;
|
|
|
1335
1265
|
* @param {*} input
|
|
1336
1266
|
* @returns {boolean} boolean
|
|
1337
1267
|
*/
|
|
1338
|
-
function isArray(input, _parentContext) {
|
|
1268
|
+
export function isArray(input, _parentContext) {
|
|
1339
1269
|
return ts.isArrayLike(input);
|
|
1340
1270
|
}
|
|
1341
|
-
exports.isArray = isArray;
|
|
1342
1271
|
/**
|
|
1343
1272
|
* Validates that the function specified returns true at least once on the list of values
|
|
1344
1273
|
*
|
|
@@ -1353,15 +1282,14 @@ exports.isArray = isArray;
|
|
|
1353
1282
|
* options is any other arguments necessary for that function call
|
|
1354
1283
|
* @returns {boolean} boolean
|
|
1355
1284
|
*/
|
|
1356
|
-
function some(input, _parentContext, { fn, options }) {
|
|
1285
|
+
export function some(input, _parentContext, { fn, options }) {
|
|
1357
1286
|
if (!isArray(input))
|
|
1358
1287
|
return false;
|
|
1359
|
-
const repoConfig =
|
|
1288
|
+
const repoConfig = repository[fn];
|
|
1360
1289
|
if (!repoConfig)
|
|
1361
1290
|
throw new Error(`No function ${fn} was found in the field validator repository`);
|
|
1362
1291
|
return input.some((data) => repoConfig.fn(data, data, options));
|
|
1363
1292
|
}
|
|
1364
|
-
exports.some = some;
|
|
1365
1293
|
/**
|
|
1366
1294
|
* Validates that the function specified returns true for every single value in the list
|
|
1367
1295
|
*
|
|
@@ -1377,20 +1305,18 @@ exports.some = some;
|
|
|
1377
1305
|
* options is any other arguments necessary for that function call
|
|
1378
1306
|
* @returns {boolean} boolean
|
|
1379
1307
|
*/
|
|
1380
|
-
function every(input, _parentContext, { fn, options }) {
|
|
1308
|
+
export function every(input, _parentContext, { fn, options }) {
|
|
1381
1309
|
if (!isArray(input))
|
|
1382
1310
|
return false;
|
|
1383
|
-
const repoConfig =
|
|
1311
|
+
const repoConfig = repository[fn];
|
|
1384
1312
|
if (!repoConfig)
|
|
1385
1313
|
throw new Error(`No function ${fn} was found in the field validator repository`);
|
|
1386
1314
|
return input.every((data) => repoConfig.fn(data, data, options));
|
|
1387
1315
|
}
|
|
1388
|
-
|
|
1389
|
-
function isNumberTuple(input, _parentContext) {
|
|
1316
|
+
export function isNumberTuple(input, _parentContext) {
|
|
1390
1317
|
if (Array.isArray(input) && input.length === 2) {
|
|
1391
1318
|
return input.every(isNumber);
|
|
1392
1319
|
}
|
|
1393
1320
|
return false;
|
|
1394
1321
|
}
|
|
1395
|
-
exports.isNumberTuple = isNumberTuple;
|
|
1396
1322
|
//# sourceMappingURL=field-validator.js.map
|