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

fastify-plugin

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-plugin - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

.taprc

4

package.json
{
"name": "fastify-plugin",
"version": "2.3.0",
"version": "2.3.1",
"description": "Plugin helper for Fastify",

@@ -9,3 +9,3 @@ "main": "plugin.js",

"typescript": "tsd",
"test": "standard && tap test/*.js && npm run typescript"
"test": "standard && tap test/*.js test/esm/*.js && npm run typescript"
},

@@ -12,0 +12,0 @@ "repository": {

@@ -80,2 +80,6 @@ 'use strict'

function resolvePkgPath (mainFilename) {
return join(dirname(require.resolve('fastify', { paths: [mainFilename] })), 'package.json')
}
function checkVersion (version, pluginName) {

@@ -90,5 +94,8 @@ if (typeof version !== 'string') {

var pkgPath
if (require.main.filename) {
if (require.main && require.main.filename) {
// We need to dynamically compute this to support yarn pnp
pkgPath = join(dirname(require.resolve('fastify', { paths: [require.main.filename] })), 'package.json')
pkgPath = resolvePkgPath(require.main.filename)
} else if (process.argv[1]) {
// We need this to support native ESM context
pkgPath = resolvePkgPath(process.argv[1])
} else {

@@ -95,0 +102,0 @@ // In bundlers, there is no require.main.filename so we go ahead and require directly

@@ -7,6 +7,3 @@ {

"strict": true,
},
"files": [
"./test/types.test.ts"
]
}
}
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