Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@platformatic/config

Package Overview
Dependencies
Maintainers
6
Versions
287
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@platformatic/config - npm Package Compare versions

Comparing version 0.18.0 to 0.19.0

test/fixtures/onepath.json

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

6

package.json
{
"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'),

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc