Socket
Socket
Sign inDemoInstall

@netlify/framework-info

Package Overview
Dependencies
Maintainers
14
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 2.1.1 to 2.2.0

7

CHANGELOG.md

@@ -10,2 +10,9 @@ # Changelog

## [2.2.0](https://www.github.com/netlify/framework-info/compare/v2.1.1...v2.2.0) (2021-02-08)
### Features
* add nodeVersion option ([#124](https://www.github.com/netlify/framework-info/issues/124)) ([647f94b](https://www.github.com/netlify/framework-info/commit/647f94b15c642c65c6cd1d74396ac17c8d02c8e4))
### [2.1.1](https://www.github.com/netlify/framework-info/compare/v2.1.0...v2.1.1) (2021-01-25)

@@ -12,0 +19,0 @@

14

package.json
{
"name": "@netlify/framework-info",
"version": "2.1.1",
"version": "2.2.0",
"description": "Framework detection utility",

@@ -28,7 +28,7 @@ "main": "./src/main.js",

"format:check-fix:lint": "run-e format:check:lint format:fix:lint",
"format:check:lint": "cross-env-shell eslint $npm_package_scriptsArgs_eslint",
"format:fix:lint": "cross-env-shell eslint --fix $npm_package_scriptsArgs_eslint",
"format:check:lint": "cross-env-shell eslint $npm_package_config_eslint",
"format:fix:lint": "cross-env-shell eslint --fix $npm_package_config_eslint",
"format:check-fix:prettier": "run-e format:check:prettier format:fix:prettier",
"format:check:prettier": "cross-env-shell prettier --check $npm_package_scriptsArgs_prettier",
"format:fix:prettier": "cross-env-shell prettier --write $npm_package_scriptsArgs_prettier",
"format:check:prettier": "cross-env-shell prettier --check $npm_package_config_prettier",
"format:fix:prettier": "cross-env-shell prettier --write $npm_package_config_prettier",
"test:dev": "ava",

@@ -72,3 +72,3 @@ "test:ci": "nyc -r lcovonly -r text -r json ava"

},
"scriptsArgs": {
"config": {
"eslint": "--ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \"{src,site,scripts,test}/**/*.{js,jsx,html}\" --ignore-pattern \"test/fixtures/**/*\"",

@@ -101,3 +101,3 @@ "prettier": "--ignore-path .gitignore --loglevel warn \"{src,site,scripts,test}/**/*.js\" \"*.{js,md,yml,json}\" \"!package-lock.json\" \"!CHANGELOG.md\""

"get-bin-path": "^4.0.1",
"html-webpack-plugin": "^4.5.0",
"html-webpack-plugin": "^5.0.0",
"husky": "^3.1.0",

@@ -104,0 +104,0 @@ "npm-run-all": "^4.1.5",

@@ -10,6 +10,6 @@ #!/usr/bin/env node

const runCli = async function () {
const { projectDir, long } = parseArgs()
const { projectDir, long, nodeVersion } = parseArgs()
try {
const frameworks = await listFrameworks({ projectDir })
const frameworks = await listFrameworks({ projectDir, nodeVersion })
const frameworksStr = serializeFrameworks(frameworks, long)

@@ -34,2 +34,6 @@ console.log(frameworksStr)

},
'node-version': {
string: true,
describe: 'Node.js version of the runtime environment. Used to recommend Netlify build plugins',
},
}

@@ -36,0 +40,0 @@

@@ -26,3 +26,3 @@ const { cwd, version } = require('process')

const getContext = async ({ projectDir = cwd() } = {}) => {
const getContext = async ({ projectDir = cwd(), nodeVersion = version } = {}) => {
const { packageJson, packageJsonPath = projectDir } = await getPackageJson(projectDir)

@@ -33,3 +33,3 @@ return {

packageJsonPath,
nodeVersion: version,
nodeVersion,
}

@@ -36,0 +36,0 @@ }

@@ -7,2 +7,3 @@ const { getContext } = require('./context')

* @property {string} [projectDir=process.cwd()] - Project's directory
* @property {string} [nodeVersion=process.version] - Node.js version of the runtime environment. Used to recommend Netlify build plugins
*/

@@ -9,0 +10,0 @@

Sorry, the diff of this file is too big to display

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