Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-api - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

3

lib/eapi.js

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

function EApi(options) {
this.options = options;
var express = options.express;

@@ -233,3 +234,3 @@ if (!express) throw new Error('express is required to route resources');

schemaRouter.get('/', cors('*'), function(req, res) {
var json = self._parseSchemaFile(indexFile);
var json = self.options.indexFile || self._parseSchemaFile(indexFile);
return json ? res.json(json) : res.send(404);

@@ -236,0 +237,0 @@ });

{
"name": "express-api",
"version": "0.0.1",
"version": "0.1.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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