@maskito/kit
Advanced tools
Comparing version 0.7.2 to 0.8.0
{ | ||
"name": "@maskito/kit", | ||
"version": "0.7.2", | ||
"version": "0.8.0", | ||
"description": "The optional framework-agnostic Maskito's package with ready-to-use masks", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@maskito/core": "^0.7.2" | ||
"@maskito/core": "^0.8.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "main": "./src/index.js", |
import { maskitoPipe } from '@maskito/core'; | ||
import { CHAR_EN_DASH, CHAR_NO_BREAK_SPACE } from '../../constants'; | ||
import { createMinMaxDatePostprocessor, createValidDatePreprocessor, createZeroPlaceholdersPreprocessor, } from '../../processors'; | ||
import { createMinMaxRangeLengthPostprocessor } from './min-max-range-length-postprocessor'; | ||
import { createMinMaxRangeLengthPostprocessor } from './processors/min-max-range-length-postprocessor'; | ||
import { createSwapDatesPostprocessor } from './processors/swap-dates-postprocessor'; | ||
const DATE_RANGE_SEPARATOR = `${CHAR_NO_BREAK_SPACE}${CHAR_EN_DASH}${CHAR_NO_BREAK_SPACE}`; | ||
@@ -29,2 +30,5 @@ export function maskitoDateRangeOptionsGenerator({ mode, separator = '.', min, max, minLength, maxLength, }) { | ||
datesSeparator: DATE_RANGE_SEPARATOR, | ||
}), createSwapDatesPostprocessor({ | ||
dateModeTemplate, | ||
datesSeparator: DATE_RANGE_SEPARATOR, | ||
})), | ||
@@ -31,0 +35,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
212793
294
1402