New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

altair-fastify-plugin

Package Overview
Dependencies
Maintainers
0
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

altair-fastify-plugin - npm Package Compare versions

Comparing version 7.3.6 to 8.0.0

5

dist/index.d.ts
import { RenderOptions } from 'altair-static';
import type { FastifyPluginCallback } from 'fastify';
import type { FastifyInstance } from 'fastify';
export interface AltairFastifyPluginOptions extends RenderOptions {

@@ -23,4 +23,3 @@ /**

}
declare const _default: FastifyPluginCallback<AltairFastifyPluginOptions>;
export default _default;
export declare const AltairFastify: (fastify: FastifyInstance, { path, baseURL, endpointURL, ...renderOptions }?: AltairFastifyPluginOptions) => Promise<void>;
//# sourceMappingURL=index.d.ts.map

6

dist/index.js

@@ -6,6 +6,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.AltairFastify = void 0;
const altair_static_1 = require("altair-static");
const fastify_plugin_1 = __importDefault(require("fastify-plugin"));
const static_1 = __importDefault(require("@fastify/static"));
const fastifyAltairPlugin = (fastify, { path = '/altair', baseURL = '/altair/', endpointURL = '/graphql', ...renderOptions } = {}, done) => {
const fastifyAltairPluginFn = async (fastify, { path = '/altair', baseURL = '/altair/', endpointURL = '/graphql', ...renderOptions } = {}) => {
fastify.register(static_1.default, {

@@ -26,5 +27,4 @@ root: (0, altair_static_1.getDistDirectory)(),

}
done();
};
exports.default = (0, fastify_plugin_1.default)(fastifyAltairPlugin, {
exports.AltairFastify = (0, fastify_plugin_1.default)(fastifyAltairPluginFn, {
fastify: '>= 3.x',

@@ -31,0 +31,0 @@ name: 'altair-fastify-plugin',

{
"name": "altair-fastify-plugin",
"description": "Fastify Plugin of Altair GraphQL Client",
"version": "7.3.6",
"version": "8.0.0",
"author": "PabloSz <pablosaez1995@gmail.com>",
"bugs": "https://github.com/altair-graphql/altair/issues",
"dependencies": {
"@fastify/static": "^6.4.0",
"altair-static": "^7.3.6",
"fastify-plugin": "^2.3.4"
"@fastify/static": "^8.0.1",
"altair-static": "^8.0.0",
"fastify-plugin": "^5.0.1"
},
"devDependencies": {
"fastify": "^4.0.3",
"fastify": "^5.0.0",
"mercurius": "^11.5.0",
"ts-node": "^9.0.0",
"typescript": "5.2.2"
"typescript": "5.6.2"
},

@@ -33,3 +33,3 @@ "files": [

"peerDependencies": {
"fastify": "^4.0.3"
"fastify": "^5.0.0"
},

@@ -43,3 +43,3 @@ "repository": "altair-graphql/altair.git",

"types": "dist/index.d.ts",
"gitHead": "580fe5c59a2274dea13edfa69c8f43968f99ce7a"
"gitHead": "3280e9e43dc4971a7c3d78655fb113278b0540a5"
}

Sorry, the diff of this file is not supported yet

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