@platformatic/utils
Advanced tools
Comparing version 2.0.0-alpha.7 to 2.0.0-alpha.8
@@ -10,6 +10,7 @@ 'use strict' | ||
const packages = require('./lib/packages') | ||
const { executeWithTimeout } = require('./lib/execute') | ||
const errors = require('./lib/errors') | ||
const getPkgManager = require('./lib/get-pkg-manager') | ||
const match = require('./lib/match') | ||
const schemas = require('./lib/fastify-schema') | ||
const schemaComponents = require('./lib/fastify-schema') | ||
const { createDirectory, safeRemove } = require('./lib/directory') | ||
@@ -33,5 +34,6 @@ const { withResolvers } = require('./lib/promises') | ||
module.exports.getPkgManager = getPkgManager | ||
module.exports.executeWithTimeout = executeWithTimeout | ||
module.exports.errors = errors | ||
module.exports.match = match | ||
module.exports.schemas = schemas | ||
module.exports.schemaComponents = schemaComponents | ||
module.exports.createDirectory = createDirectory | ||
@@ -38,0 +40,0 @@ module.exports.safeRemove = safeRemove |
@@ -7,4 +7,19 @@ 'use strict' | ||
function ensureLoggableError (error) { | ||
Reflect.defineProperty(error, 'message', { enumerable: true }) | ||
if ('code' in error) { | ||
Reflect.defineProperty(error, 'code', { enumerable: true }) | ||
} | ||
if ('stack' in error) { | ||
Reflect.defineProperty(error, 'stack', { enumerable: true }) | ||
} | ||
return error | ||
} | ||
module.exports = { | ||
PathOptionRequiredError: createError(`${ERROR_PREFIX}_PATH_OPTION_REQUIRED`, 'path option is required'), | ||
ensureLoggableError, | ||
PathOptionRequiredError: createError(`${ERROR_PREFIX}_PATH_OPTION_REQUIRED`, 'path option is required') | ||
} |
{ | ||
"name": "@platformatic/utils", | ||
"version": "2.0.0-alpha.7", | ||
"version": "2.0.0-alpha.8", | ||
"description": "Platformatic Utils", | ||
@@ -27,2 +27,3 @@ "main": "index.js", | ||
"@fastify/error": "^3.4.1", | ||
"@watchable/unpromise": "^1.0.2", | ||
"leven": "~3.1.0", | ||
@@ -29,0 +30,0 @@ "minimatch": "^8.0.4", |
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
37706
22
869
6
+ Added@watchable/unpromise@^1.0.2
+ Added@watchable/unpromise@1.0.2(transitive)