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
291
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.41.1 to 0.41.2

16

lib/store.js

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

#require
#currentVersion

@@ -23,2 +24,4 @@ constructor (opts) {

this.#require = createRequire(join(this.#cwd, 'noop.js'))
this.#currentVersion = null
}

@@ -50,2 +53,3 @@

this.#currentVersion = this.getVersionFromSchema(app.schema.$id)
this.#map.set(app.schema.$id, app)

@@ -75,3 +79,5 @@ }

if (app === undefined) {
throw new Error(`no application found for ${$schema}`)
const attemptedToRunVersion = this.getVersionFromSchema($schema)
throw new Error(`Version mismatch. You are running Platformatic ${this.#currentVersion} but your app requires ${attemptedToRunVersion}`)
}

@@ -82,2 +88,10 @@

getVersionFromSchema (schema) {
const match = schema.match(/\/schemas\/(.*)\//)
if (match) {
return match[1]
}
return null
}
listTypes () {

@@ -84,0 +98,0 @@ const knownTypes = Array.from(this.#map.entries()).map(([id, app]) => {

6

package.json
{
"name": "@platformatic/config",
"version": "0.41.1",
"version": "0.41.2",
"description": "Platformatic DB Config Manager",

@@ -33,4 +33,4 @@ "main": "index.js",

"undici": "^5.22.1",
"@platformatic/metaconfig": "0.41.1",
"@platformatic/utils": "0.41.1"
"@platformatic/metaconfig": "0.41.2",
"@platformatic/utils": "0.41.2"
},

@@ -37,0 +37,0 @@ "scripts": {

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