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
289
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.26.1 to 0.27.0

16

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

@@ -18,17 +18,17 @@ "main": "index.js",

"@iarna/toml": "^2.2.5",
"fastify": "^4.17.0",
"fastify": "^4.18.0",
"json5": "^2.2.3",
"snazzy": "^9.0.0",
"standard": "^17.0.0",
"tap": "^16.3.4",
"yaml": "^2.2.2"
"standard": "^17.1.0",
"tap": "^16.3.6",
"yaml": "^2.3.1"
},
"dependencies": {
"ajv": "^8.12.0",
"dotenv": "^16.0.3",
"dotenv": "^16.1.4",
"pupa": "^3.1.0",
"semver": "^7.5.1",
"undici": "^5.22.1",
"@platformatic/metaconfig": "0.26.1",
"@platformatic/utils": "0.26.1"
"@platformatic/metaconfig": "0.27.0",
"@platformatic/utils": "0.27.0"
},

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

'use strict'
const os = require('os')
const { join } = require('path')
const { writeFile } = require('fs/promises')
function getTempFile (filename = 'platformatic.json') {
return join(os.tmpdir(), filename)
}
const { mkdtemp, writeFile } = require('fs/promises')
async function saveConfigToFile (config, filename, serializer = JSON) {
const targetFile = getTempFile(filename)
async function saveConfigToFile (config, filename = 'platformatic.json', serializer = JSON) {
const tempDir = await mkdtemp(join(os.tmpdir(), 'plt-config-test-'))
const targetFile = join(tempDir, filename)
await writeFile(targetFile, serializer.stringify(config))

@@ -16,4 +14,3 @@ return targetFile

module.exports = {
getTempFile,
saveConfigToFile
}
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