@platformatic/metaconfig
Advanced tools
Comparing version 0.20.1 to 0.21.0
{ | ||
"name": "@platformatic/metaconfig", | ||
"version": "0.20.1", | ||
"version": "0.21.0", | ||
"main": "metaconfig.js", | ||
@@ -5,0 +5,0 @@ "description": "Manage mulitple configuration versions at the same time", |
'use strict' | ||
class ZeroNineteen { | ||
const rfdc = require('rfdc')() | ||
class ZeroTwenty { | ||
constructor ({ config, path, format, version }) { | ||
@@ -16,4 +18,14 @@ this.config = config | ||
} | ||
up () { | ||
const original = this.config | ||
const config = rfdc(original) | ||
config.$schema = `https://platformatic.dev/schemas/v0.21.0/${this.kind}` | ||
const NewClass = require('./0.21.x.js') | ||
return new NewClass({ config, path: this.path, format: this.format }) | ||
} | ||
} | ||
module.exports = ZeroNineteen | ||
module.exports = ZeroTwenty |
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
65257
37
1813
10