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

@platformatic/metaconfig

Package Overview
Dependencies
Maintainers
6
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@platformatic/metaconfig - npm Package Compare versions

Comparing version 0.41.0 to 0.41.1

2

package.json
{
"name": "@platformatic/metaconfig",
"version": "0.41.0",
"version": "0.41.1",
"main": "metaconfig.js",

@@ -5,0 +5,0 @@ "description": "Manage mulitple configuration versions at the same time",

@@ -116,2 +116,36 @@ 'use strict'

test('removes db.dashboard if it exists', async (t) => {
const version = '0.40.0'
{
const meta = new FromZeroEighteenToWillSee({
version,
config: { db: { dashboard: true } }
})
t.equal('dashboard' in meta.config.db, true)
const upped = meta.up()
t.equal('dashboard' in upped.config.db, false)
}
{
const meta = new FromZeroEighteenToWillSee({
version,
config: { db: { dashboard: false } }
})
t.equal('dashboard' in meta.config.db, true)
const upped = meta.up()
t.equal('dashboard' in upped.config.db, false)
}
{
const meta = new FromZeroEighteenToWillSee({
version,
config: { db: {} }
})
t.equal('dashboard' in meta.config.db, false)
const upped = meta.up()
t.equal('dashboard' in upped.config.db, false)
}
})
test('upgrade patch versions', async (t) => {

@@ -118,0 +152,0 @@ const FromZeroEighteenToWillSee = proxyquire('../versions/from-zero-eighteen-to-will-see', {

@@ -39,2 +39,3 @@ 'use strict'

delete config.plugins?.hotReload
delete config.db?.dashboard

@@ -41,0 +42,0 @@ return new FromZeroEighteenToWillSee({ config, path: this.path, format: this.format, version })

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