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

@netlify/framework-info

Package Overview
Dependencies
Maintainers
18
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.7.2 to 9.8.0

lib/context.d.ts

27

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

@@ -8,20 +8,19 @@ "type": "module",

"exports": {
"node": "./src/main.js",
"node": "./lib/main.js",
"default": "./dist/index.umd.cjs"
},
"files": [
"build/*.js",
"src/**/*.js",
"lib",
"dist/index.umd.cjs"
],
"scripts": {
"prebuild": "node scripts/transform_json.js",
"build": "run-s build:*",
"build:ts": "tsc",
"build:json": "node scripts/transform_json.js",
"build:browser": "run-s build:browser:*",
"build:browser:core": "vite build",
"build:browser:site-root": "cpy index.html ./dist",
"test": "npm run test:dev",
"test:dev": "ava",
"test:ci": "c8 -r lcovonly -r text -r json ava"
"test": "vitest run",
"test:dev": "vitest",
"test:ci": "vitest run --reporter=default"
},

@@ -62,6 +61,5 @@ "keywords": [

"dependencies": {
"ajv": "^8.0.0",
"ajv": "^8.12.0",
"filter-obj": "^3.0.0",
"find-up": "^6.3.0",
"fs-extra": "^10.1.0",
"is-plain-obj": "^4.0.0",

@@ -77,15 +75,14 @@ "locate-path": "^7.0.0",

"devDependencies": {
"ava": "^4.0.0",
"babel-loader": "^8.2.2",
"c8": "^7.11.0",
"cpy": "^9.0.0",
"cpy-cli": "^4.0.0",
"del": "^6.0.0",
"fast-glob": "^3.2.12",
"npm-run-all": "^4.1.5",
"path-browserify": "^1.0.1",
"rollup-plugin-node-polyfills": "^0.2.1",
"test-each": "^4.0.0",
"tmp-promise": "^3.0.2",
"typescript": "^4.9.4",
"vite": "^3.1.6"
"vite": "^4.0.4",
"vitest": "^0.27.1"
},

@@ -99,3 +96,3 @@ "engines": {

},
"gitHead": "356667c6173362b294f9037efdb7b5ef1c726d48"
"gitHead": "d78a65c209ed987d3475cd1f37cf357693b99e3c"
}

@@ -21,3 +21,3 @@ Framework detection utility.

```js
import { listFrameworks, hasFramework, getFramework } from '@netlify/framework-info'
import { listFrameworks, hasFramework, getFramework, getFrameworkById } from '@netlify/framework-info'

@@ -85,2 +85,20 @@ console.log(await listFrameworks({ projectDir: './path/to/gatsby/website' }))

// }
console.log(getFrameworkById('vue'))
// {
// id: 'vue',
// name: 'Vue.js',
// category: 'frontend_framework',
// dev: {
// commands: ['npm run serve'],
// port: 8080,
// pollingStrategies: [{ name: 'TCP' }, { name: 'HTTP' }]
// },
// build: {
// commands: ['vue-cli-service build'],
// directory: 'dist'
// },
// env: {},
// plugins: []
// }
```

@@ -87,0 +105,0 @@

Sorry, the diff of this file is not supported yet

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