@platformatic/config
Advanced tools
Comparing version 0.18.0 to 0.19.0
12
index.js
@@ -170,2 +170,14 @@ 'use strict' | ||
const ajv = new Ajv(this.schemaOptions) | ||
ajv.addKeyword({ | ||
keyword: 'resolvePath', | ||
type: 'string', | ||
schemaType: 'boolean', | ||
// TODO: figure out how to implement this via the new `code` | ||
// option in Ajv | ||
validate: (schema, path, parentSchema, data) => { | ||
const resolved = resolve(this.dirname, path) | ||
data.parentData[data.parentDataProperty] = resolved | ||
return true | ||
} | ||
}) | ||
const ajvValidate = ajv.compile(this.schema) | ||
@@ -172,0 +184,0 @@ |
{ | ||
"name": "@platformatic/config", | ||
"version": "0.18.0", | ||
"version": "0.19.0", | ||
"description": "Platformatic DB Config Manager", | ||
@@ -29,4 +29,4 @@ "main": "index.js", | ||
"pupa": "^3.1.0", | ||
"@platformatic/utils": "0.18.0", | ||
"@platformatic/metaconfig": "0.18.0" | ||
"@platformatic/utils": "0.19.0", | ||
"@platformatic/metaconfig": "0.19.0" | ||
}, | ||
@@ -33,0 +33,0 @@ "scripts": { |
@@ -6,2 +6,3 @@ 'use strict' | ||
const ConfigManager = require('..') | ||
test('should throw if file is not found', async ({ match, fail }) => { | ||
@@ -113,3 +114,3 @@ try { | ||
test('should automatically update', { only: true }, async ({ same }) => { | ||
test('should automatically update', async ({ same }) => { | ||
const cm = new ConfigManager({ | ||
@@ -116,0 +117,0 @@ source: resolve(__dirname, './fixtures/db-0.16.0.json'), |
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
46183
23
1203
+ Added@platformatic/metaconfig@0.19.0(transitive)
+ Added@platformatic/utils@0.19.0(transitive)
- Removed@platformatic/metaconfig@0.18.0(transitive)
- Removed@platformatic/utils@0.18.0(transitive)
Updated@platformatic/utils@0.19.0