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
76
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.32.0
to
3.33.0-alpha.1
+8
-3
lib/configuration.js

@@ -535,7 +535,12 @@ import toml from '@iarna/toml'

export function loadConfigurationModule (root, config, pkg) {
export async function loadConfigurationModule (root, config, pkg) {
pkg ??= extractModuleFromSchemaUrl(config, true).module
const require = createRequire(resolve(root, 'noop.js'))
return loadModule(require, pkg)
try {
const require = createRequire(resolve(root, 'noop.js'))
return await loadModule(require, pkg)
} catch (error) { // Fallback to the one bundled with Platformatic runtime
const require = createRequire(import.meta.filename)
return loadModule(require, pkg)
}
}

@@ -176,3 +176,3 @@ import { existsSync } from 'node:fs'

} catch (err) {
/* c8 ignore next 4 */
/* c8 ignore next 10 */
if (err.code === 'ERR_REQUIRE_ESM') {

@@ -179,0 +179,0 @@ const toLoad = require.resolve(path)

{
"name": "@platformatic/foundation",
"version": "3.32.0",
"version": "3.33.0-alpha.1",
"description": "Platformatic Foundation",

@@ -5,0 +5,0 @@ "main": "index.js",