@vercel/frameworks
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -10,2 +10,3 @@ "use strict"; | ||
const fs_1 = require("fs"); | ||
const error_utils_1 = require("@vercel/error-utils"); | ||
const { readFile } = fs_1.promises; | ||
@@ -17,6 +18,9 @@ async function readFileOrNull(file) { | ||
} | ||
catch (err) { | ||
if (err.code !== 'ENOENT') { | ||
throw err; | ||
catch (error) { | ||
if (!(0, error_utils_1.isErrnoException)(error)) { | ||
throw error; | ||
} | ||
if (error.code !== 'ENOENT') { | ||
throw error; | ||
} | ||
} | ||
@@ -23,0 +27,0 @@ return null; |
@@ -38,4 +38,4 @@ import { Rewrite, Route } from '@vercel/routing-utils'; | ||
} | ||
export declare type Setting = SettingValue | SettingPlaceholder; | ||
export declare type Redirect = Rewrite & { | ||
export type Setting = SettingValue | SettingPlaceholder; | ||
export type Redirect = Rewrite & { | ||
statusCode?: number; | ||
@@ -42,0 +42,0 @@ permanent?: boolean; |
{ | ||
"name": "@vercel/frameworks", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"main": "./dist/frameworks.js", | ||
@@ -24,7 +24,8 @@ "types": "./dist/frameworks.d.ts", | ||
"@types/node-fetch": "2.5.8", | ||
"@vercel/routing-utils": "2.2.0", | ||
"@vercel/error-utils": "1.0.10", | ||
"@vercel/routing-utils": "2.2.1", | ||
"ajv": "6.12.2", | ||
"typescript": "4.3.4" | ||
"typescript": "4.9.5" | ||
}, | ||
"gitHead": "925c8ba18ceec80174d9440cd2cad0e725ed4f56" | ||
"gitHead": "2de365f9cfea3ce283d2bf855507c71209f1e3d8" | ||
} |
Sorry, the diff of this file is too big to display
147164
3801
8