Add package for extracted ipaddress format from convic
This commit is contained in:
parent
7323f584c1
commit
58a0800384
File diff suppressed because it is too large
Load Diff
|
@ -141,6 +141,7 @@
|
||||||
"cldr-core": "^35.1.0",
|
"cldr-core": "^35.1.0",
|
||||||
"configstore": "github:dannycoates/configstore#master",
|
"configstore": "github:dannycoates/configstore#master",
|
||||||
"convict": "^6.2.2",
|
"convict": "^6.2.2",
|
||||||
|
"convict-format-with-validator": "^6.2.0",
|
||||||
"double-ended-queue": "^2.1.0-0",
|
"double-ended-queue": "^2.1.0-0",
|
||||||
"express": "^4.17.3",
|
"express": "^4.17.3",
|
||||||
"helmet": "^3.23.3",
|
"helmet": "^3.23.3",
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
const convict = require('convict');
|
const convict = require('convict');
|
||||||
|
const convict_format_with_validator = require('convict-format-with-validator');
|
||||||
const { tmpdir } = require('os');
|
const { tmpdir } = require('os');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { randomBytes } = require('crypto');
|
const { randomBytes } = require('crypto');
|
||||||
|
|
||||||
|
convict.addFormats(convict_format_with_validator);
|
||||||
|
|
||||||
convict.addFormat({
|
convict.addFormat({
|
||||||
name: 'positive-int-array',
|
name: 'positive-int-array',
|
||||||
coerce: ints => {
|
coerce: ints => {
|
||||||
|
|
Loading…
Reference in New Issue