Add package for extracted ipaddress format from convic

This commit is contained in:
timvisee 2022-04-25 10:30:48 +02:00
parent 7323f584c1
commit 58a0800384
No known key found for this signature in database
GPG Key ID: B8DB720BC383E172
3 changed files with 26848 additions and 6927 deletions

33771
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -141,6 +141,7 @@
"cldr-core": "^35.1.0",
"configstore": "github:dannycoates/configstore#master",
"convict": "^6.2.2",
"convict-format-with-validator": "^6.2.0",
"double-ended-queue": "^2.1.0-0",
"express": "^4.17.3",
"helmet": "^3.23.3",

View File

@ -1,8 +1,11 @@
const convict = require('convict');
const convict_format_with_validator = require('convict-format-with-validator');
const { tmpdir } = require('os');
const path = require('path');
const { randomBytes } = require('crypto');
convict.addFormats(convict_format_with_validator);
convict.addFormat({
name: 'positive-int-array',
coerce: ints => {