@platformatic/config
Advanced tools
Comparing version 0.26.1 to 0.27.0
{ | ||
"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 | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
289
28
47
4
154
55746
1510
+ Added@platformatic/metaconfig@0.27.0(transitive)
+ Added@platformatic/utils@0.27.0(transitive)
- Removed@platformatic/metaconfig@0.26.1(transitive)
- Removed@platformatic/utils@0.26.1(transitive)
Updated@platformatic/utils@0.27.0
Updateddotenv@^16.1.4