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

altair-express-middleware

Package Overview
Dependencies
Maintainers
1
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

altair-express-middleware - npm Package Compare versions

Comparing version 1.0.1 to 1.0.4

CHANGELOG.md

1

build/index.d.ts
declare const path: any;
declare const express: any;
declare const altairStatic: any;

4

build/index.js
'use strict';
var path = require('path');
var express = require('express');
var altairStatic = require('altair-static');
module.exports = {
altairExpress: function (opts) {
var app = express();
app.use(express.static(path.join(__dirname, '../dist')));
app.get('*', function (req, res) {
return res.sendFile(path.join(__dirname, '../dist/index.html'));
return res.send(altairStatic.renderAltair());
});

@@ -11,0 +11,0 @@ return app;

@@ -5,2 +5,3 @@ 'use strict';

const express = require('express');
const altairStatic = require('altair-static');

@@ -11,6 +12,4 @@ module.exports = {

app.use(express.static(path.join(__dirname, '../dist')));
app.get('*', (req, res) => {
return res.sendFile(path.join(__dirname, '../dist/index.html'));
return res.send(altairStatic.renderAltair());
});

@@ -17,0 +16,0 @@

{
"name": "altair-express-middleware",
"version": "1.0.1",
"version": "1.0.4",
"description": "Express middleware for altair graphql client",

@@ -11,3 +11,3 @@ "main": "./build/index.js",

"declarations": "tsc --declaration",
"prepare": "npm run prepare-dist; npm run declarations"
"prepare": "npm run declarations"
},

@@ -34,2 +34,3 @@ "engines": {

"dependencies": {
"altair-static": "^1.0.3",
"express": "^4.16.2"

@@ -40,3 +41,4 @@ },

"typescript": "^2.8.1"
}
},
"gitHead": "bd01c0ae41e87e0b17106561762cb2b8a4e4ea1a"
}
{
"compilerOptions": {
"outDir": "build/",
"declaration": true,
"types": [

@@ -5,0 +6,0 @@ "node",

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