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.47.6 to 1.0.0

versions/1.x.x.js

3

metaconfig.js

@@ -15,2 +15,5 @@ 'use strict'

handler: FromZeroEighteenToWillSee
}, {
range: '>= 1.0.0 < 2.0.0',
handler: require('./versions/1.x.x.js')
}]

@@ -17,0 +20,0 @@

2

package.json
{
"name": "@platformatic/metaconfig",
"version": "0.47.6",
"version": "1.0.0",
"main": "metaconfig.js",

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

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

const semver = require('semver')
const OneSeries = require('./1.x.x.js')

@@ -23,2 +24,5 @@ class FromZeroEighteenToWillSee extends SimpleZeroConfig {

return
} else if (semver.gte(this.version, '0.47.6')) {
// the latest version is over 1.0.0, change class
increment = 'major'
}

@@ -43,3 +47,7 @@

return new FromZeroEighteenToWillSee({ config, path: this.path, format: this.format, version })
if (increment === 'major') {
return new OneSeries({ config, path: this.path, format: this.format, version })
} else {
return new FromZeroEighteenToWillSee({ config, path: this.path, format: this.format, version })
}
}

@@ -46,0 +54,0 @@ }

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