@vercel/frameworks
Advanced tools
Comparing version 1.1.18 to 1.2.3
import { Rewrite, Route } from '@vercel/routing-utils'; | ||
export interface FrameworkDetectionItem { | ||
/** | ||
* A file path | ||
* @example "package.json" | ||
* A file path to detect. | ||
* If specified, "matchPackage" cannot be specified. | ||
* @example "some-framework.config.json" | ||
*/ | ||
path: string; | ||
path?: string; | ||
/** | ||
* A matcher | ||
* A matcher for the entire file. | ||
* If specified, "matchPackage" cannot be specified. | ||
* @example "\"(dev)?(d|D)ependencies\":\\s*{[^}]*\"next\":\\s*\".+?\"[^}]*}" | ||
*/ | ||
matchContent?: string; | ||
/** | ||
* A matcher for a package specifically found in a "package.json" file. | ||
* If specified, "path" and "matchContext" cannot be specified. | ||
* If specified in multiple detectors, the first one will be used to resolve the framework version. | ||
* @example "\"(dev)?(d|D)ependencies\":\\s*{[^}]*\"next\":\\s*\".+?\"[^}]*}" | ||
*/ | ||
matchPackage?: string; | ||
} | ||
@@ -14,0 +23,0 @@ export interface SettingPlaceholder { |
{ | ||
"name": "@vercel/frameworks", | ||
"version": "1.1.18", | ||
"version": "1.2.3", | ||
"main": "./dist/frameworks.js", | ||
@@ -13,3 +13,3 @@ "types": "./dist/frameworks.d.ts", | ||
"test": "jest --env node --verbose --runInBand --bail", | ||
"test-unit": "yarn test" | ||
"test-unit": "pnpm test" | ||
}, | ||
@@ -25,7 +25,7 @@ "dependencies": { | ||
"@types/node-fetch": "2.5.8", | ||
"@vercel/routing-utils": "2.1.3", | ||
"@vercel/routing-utils": "workspace:2.1.7", | ||
"ajv": "6.12.2", | ||
"typescript": "4.3.4" | ||
}, | ||
"gitHead": "721cd3afcbff994fa96704b4eb79e5f6da7ab73c" | ||
"gitHead": "e54da8a2e5504987a956e2baaad6d817028b597f" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
146282
3777