Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@vercel/fastify

Package Overview
Dependencies
Maintainers
4
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/fastify - npm Package Compare versions

Comparing version
0.1.91
to
0.1.92
+4
-4
package.json
{
"name": "@vercel/fastify",
"version": "0.1.91",
"version": "0.1.92",
"license": "Apache-2.0",

@@ -20,4 +20,4 @@ "main": "./dist/index.js",

"dependencies": {
"@vercel/node": "5.8.12",
"@vercel/static-config": "3.4.0"
"@vercel/static-config": "3.4.0",
"@vercel/node": "5.8.13"
},

@@ -30,3 +30,3 @@ "devDependencies": {

"vitest": "^2.0.1",
"@vercel/build-utils": "13.27.1"
"@vercel/build-utils": "13.27.2"
},

@@ -33,0 +33,0 @@ "scripts": {

"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
build: () => build,
entrypointCallback: () => entrypointCallback,
findEntrypoint: () => findEntrypoint,
prepareCache: () => prepareCache,
require_: () => require_,
shouldServe: () => shouldServe,
startDevServer: () => startDevServer,
version: () => version
});
module.exports = __toCommonJS(src_exports);
// src/build.ts
var import_node = require("@vercel/node");
var import_build_utils = require("@vercel/build-utils");
var { build, entrypointCallback, findEntrypoint, require_ } = (0, import_build_utils.generateNodeBuilderFunctions)(
"fastify",
/(?:from|require|import)\s*(?:\(\s*)?["']fastify["']\s*(?:\))?/g,
["app", "index", "server", "src/app", "src/index", "src/server"],
["js", "cjs", "mjs", "ts", "cts", "mts"],
import_node.build
);
// src/prepare-cache.ts
var import_build_utils2 = require("@vercel/build-utils");
var prepareCache = ({ repoRootPath, workPath }) => {
return (0, import_build_utils2.glob)(import_build_utils2.defaultCachePathGlob, repoRootPath || workPath);
};
// src/index.ts
var import_node2 = require("@vercel/node");
var version = 3;
var shouldServe = async (opts) => {
const requestPath = opts.requestPath.replace(/\/$/, "");
if (requestPath.startsWith("api") && opts.hasMatched) {
return false;
}
return true;
};
var startDevServer = async (opts) => {
const entrypoint = await entrypointCallback(opts);
process.env.EXPERIMENTAL_NODE_TYPESCRIPT_ERRORS = "1";
return (0, import_node2.startDevServer)({
...opts,
entrypoint
});
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
build,
entrypointCallback,
findEntrypoint,
prepareCache,
require_,
shouldServe,
startDevServer,
version
});