Socket
Socket
Sign inDemoInstall

@netlify/framework-info

Package Overview
Dependencies
Maintainers
19
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/framework-info - npm Package Compare versions

Comparing version 9.3.1-framework-version-detection.1 to 9.4.0

8

build/frameworks.js

@@ -767,5 +767,5 @@ // This file is autogenerated at build time

"logo": {
"default": "https://framework-info.netlify.app/logos/hugo/default.svg",
"light": "https://framework-info.netlify.app/logos/hugo/light.svg",
"dark": "https://framework-info.netlify.app/logos/hugo/dark.svg"
"default": "https://framework-info.netlify.app/logos/remix/default.svg",
"light": "https://framework-info.netlify.app/logos/remix/light.svg",
"dark": "https://framework-info.netlify.app/logos/remix/dark.svg"
},

@@ -1671,3 +1671,3 @@ "env": {},

"command": "vite",
"port": 3000,
"port": 5173,
"pollingStrategies": [

@@ -1674,0 +1674,0 @@ {

{
"name": "@netlify/framework-info",
"version": "9.3.1-framework-version-detection.1",
"version": "9.4.0",
"description": "Framework detection utility",

@@ -78,3 +78,2 @@ "type": "module",

"locate-path": "^7.0.0",
"node-polyfill-webpack-plugin": "^2.0.1",
"p-filter": "^3.0.0",

@@ -81,0 +80,0 @@ "p-locate": "^6.0.0",

@@ -56,9 +56,3 @@ import { join } from 'path'

const getFrameworkVersion = async (projectDir, frameworkInfo) => {
const npmPackage = frameworkInfo.package.name
// Get path of package.json for the installed framework. We need to traverse up the directories
// in the event that the project uses something like npm workspaces, and the installed framework package
// has been hoisted to the root directory of the project (which differs from the project/application being built)
// Need to change the CWD to the project directory being built in order to make sure we find and use the correct
// Need to change the CWD to the project directory in order to make sure we find and use the correct
// package.json

@@ -71,2 +65,7 @@ const originalCwd = cwd()

const npmPackage = frameworkInfo.package.name
// Get path of package.json for the installed framework. We need to traverse up the directories
// in the event that the project uses something like npm workspaces, and the installed framework package
// has been hoisted to the root directory of the project (which differs from the directory of the project/application being built)
const installedFrameworkPath = await findUp(join('node_modules', npmPackage, 'package.json'))

@@ -73,0 +72,0 @@ const { packageJson } = await getPackageJson(installedFrameworkPath)

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