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

@platformatic/config

Package Overview
Dependencies
Maintainers
7
Versions
296
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 2.0.0-alpha.4 to 2.0.0-alpha.5

22

index.d.ts

@@ -101,3 +101,3 @@ import { FastifyError } from '@fastify/error'

getMeta?(): () => Promise<object>
inject?: (injectParams: object) => Promise<{
inject?: (injectParams: object) => Promise<{
statusCode: number

@@ -107,4 +107,4 @@ statusMessage: string

body: object
}>,
log?: (options: { message: string, level: string }) => Promise<void>
}>
log?: (options: { message: string; level: string }) => Promise<void>
getBootstrapDependencies?: () => Promise<StackableDependency[]>

@@ -120,11 +120,11 @@ getWatchConfig?: () => Promise<{

export interface StackableContext {
serviceId: string,
isEntrypoint: boolean,
isProduction: boolean,
serviceId: string
isEntrypoint: boolean
isProduction: boolean
directory: string
telemetryConfig: object,
metricsConfig: object,
serverConfig: object,
hasManagementApi: boolean,
localServiceEnvVars: Map<string, string>,
telemetryConfig: object
metricsConfig: object
serverConfig: object
hasManagementApi: boolean
localServiceEnvVars: Map<string, string>
}

@@ -131,0 +131,0 @@

@@ -15,4 +15,9 @@ 'use strict'

const defaultTypes = ['service', 'db', 'composer', 'basic']
const defaultTypesConfigurationAliases = { basic: 'application' }
const defaultTypes = ['service', 'db', 'composer', 'basic', 'node', 'vite', 'next']
const defaultTypesConfigurationAliases = {
basic: 'application',
node: 'application',
vite: 'application',
next: 'application'
}

@@ -129,3 +134,3 @@ class Store {

id,
configType: app.configType,
configType: app.configType
}

@@ -152,3 +157,3 @@ })

`platformatic.${type}.toml`,
`platformatic.${type}.tml`,
`platformatic.${type}.tml`
]

@@ -171,4 +176,4 @@ }

`platformatic.${type}.toml`,
`platformatic.${type}.tml`,
],
`platformatic.${type}.tml`
]
}

@@ -186,11 +191,11 @@

'platformatic.toml',
'platformatic.tml',
],
'platformatic.tml'
]
})
const lookup = new Map()
const filenames = []
const uniqueFilenames = new Set()
for (const type of types) {
for (const filename of type.filenames) {
filenames.push(filename)
uniqueFilenames.add(filename)
lookup.set(filename, type)

@@ -200,2 +205,4 @@ }

const filenames = Array.from(uniqueFilenames)
const configFilesAccessibility = await Promise.all(

@@ -205,3 +212,3 @@ filenames.map(async filename => {

filename,
found: await isFileAccessible(filename, this.#cwd),
found: await isFileAccessible(filename, this.#cwd)
}

@@ -231,3 +238,3 @@ })

path: join(this.#cwd, found.filename),
app,
app
}

@@ -252,3 +259,3 @@ }

const parser = getParser(configFile)
const parsed = parser(await readFile(configFile))
const parsed = parser(await readFile(configFile, 'utf-8'))

@@ -265,3 +272,3 @@ const res = await this._get(parsed, opts)

...app.configManagerConfig,
...overrides,
...overrides
}

@@ -271,3 +278,3 @@

source: configFile,
...configManagerConfig,
...configManagerConfig
})

@@ -288,3 +295,3 @@

...app.configManagerConfig,
...overrides,
...overrides
})

@@ -291,0 +298,0 @@

{
"name": "@platformatic/config",
"version": "2.0.0-alpha.4",
"version": "2.0.0-alpha.5",
"description": "Platformatic DB Config Manager",

@@ -41,3 +41,3 @@ "main": "index.js",

"undici": "^6.9.0",
"@platformatic/utils": "2.0.0-alpha.4"
"@platformatic/utils": "2.0.0-alpha.5"
},

@@ -44,0 +44,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