Browse Source

Add package for extracted ipaddress format from convic

timvisee 2 years ago
parent
commit
58a0800384
3 changed files with 554 additions and 1828 deletions
  1. 550 1828
      package-lock.json
  2. 1 0
      package.json
  3. 3 0
      server/config.js

File diff suppressed because it is too large
+ 550 - 1828
package-lock.json


+ 1 - 0
package.json

@@ -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",

+ 3 - 0
server/config.js

@@ -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 => {

Some files were not shown because too many files changed in this diff