Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@platformatic/utils

Package Overview
Dependencies
Maintainers
7
Versions
297
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@platformatic/utils - npm Package Compare versions

Comparing version 2.0.0-alpha.7 to 2.0.0-alpha.8

lib/execute.js

6

index.js

@@ -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",

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