You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@platformatic/foundation

Package Overview
Dependencies
Maintainers
9
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@platformatic/foundation - npm Package Compare versions

Comparing version
3.41.0
to
3.42.0
+54
-1
index.d.ts
import { FastifyError } from '@fastify/error'
import { JSONSchemaType } from 'ajv'
import { EventEmitter } from 'node:events'
import { Logger } from 'pino'
import { ParseArgsOptionsConfig } from 'node:util'
import { LevelWithSilentOrString, Logger } from 'pino'

@@ -13,2 +14,54 @@ // Symbols

// Cli types
export function createCLIContext<T = {}>(
executableId?: string,
executableName?: string,
verbose?: boolean,
prettyPrint?: boolean,
options?: T
): {
executableId: string
executableName: string
verbose: boolean
prettyPrint: boolean
} & T
export function logo(color?: boolean, name?: string): string
export function createCliLogger(level: LevelWithSilentOrString, noPretty: boolean): Logger
export function logFatalError(logger: Logger, ...args: any[]): false
export function parseArgs(
args: string[],
options: ParseArgsOptionsConfig,
stopAtFirstPositional?: boolean,
strict?: boolean
): {
values: Record<string, any>
positionals: string[]
unparsed: string[]
tokens: any[]
}
export function getRoot(positionals?: string[]): string
export function applicationToEnvVariable(application: string): string
export function findRuntimeConfigurationFile(
logger: Logger,
root: string,
configurationFile?: string,
fallback?: boolean,
throwOnError?: boolean,
verifyPackages?: boolean,
executableName?: string
): Promise<string | false | undefined>
export function fallbackToTemporaryConfigFile(
logger: Logger,
root: string,
verifyPackages: boolean
): Promise<string | false | undefined>
// Configuration types

@@ -15,0 +68,0 @@ export declare const envVariablePattern: RegExp

+5
-3
{
"name": "@platformatic/foundation",
"version": "3.41.0",
"version": "3.42.0",
"description": "Platformatic Foundation",

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

"semver": "^7.6.3",
"undici": "7.18.2",
"undici": "7.24.0",
"yaml": "^2.4.1"

@@ -45,2 +45,3 @@ },

"pino-test": "^1.0.1",
"tstyche": "^6.2.0",
"typescript": "^5.5.4"

@@ -52,5 +53,6 @@ },

"scripts": {
"test": "node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/*.test.js test/**/*.test.js",
"test": "npm run test:types && node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/*.test.js test/**/*.test.js",
"test:types": "tstyche",
"lint": "eslint"
}
}