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

pure-http

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pure-http - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

18

index.d.ts

@@ -6,3 +6,3 @@ import net from 'net';

declare namespace PureHttp {
declare module 'pure-http' {
export interface IRequest {

@@ -256,16 +256,12 @@ originalUrl: string;

}
}
declare function pureHttp(
options?: PureHttp.IOptions,
): PureHttp.IPureHttpServer | PureHttp.IPureHttpSecureServer;
function pureHttp(
options?: IOptions,
): IPureHttpServer | IPureHttpSecureServer;
declare function Router(prefix?: string): PureHttp.IRouter;
export default pureHttp;
declare function Cache(options?: PureHttp.ICacheOptions): PureHttp.ICache;
export function Router(prefix?: string): IRouter;
declare module 'pure-http' {
export default pureHttp;
export { Router, Cache };
export function Cache(options?: ICacheOptions): ICache;
}

@@ -216,3 +216,3 @@ const { STATUS_CODES } = require('http');

done ||
function (error, out) {
function defaultDone(error, out) {
if (error) return appCallback(req, res, error);

@@ -219,0 +219,0 @@

{
"name": "pure-http",
"version": "2.0.2",
"version": "2.0.3",
"description": "The simple web framework for Node.js with zero dependencies.",

@@ -45,11 +45,11 @@ "keywords": [

"consolidate": "^0.16.0",
"eslint": "^7.14.0",
"eslint": "^7.15.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^6.15.0",
"eslint-config-prettier": "^7.0.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-prettier": "^3.2.0",
"express": "^4.17.1",
"fastify": "^3.8.0",
"fastify-express": "^0.3.2",
"husky": "^4.3.0",
"husky": "^4.3.5",
"mocha": "^8.2.1",

@@ -56,0 +56,0 @@ "pem": "^1.14.4",

@@ -7,3 +7,3 @@ <h1 align='center'>pure-http</h1>

<a href='https://depfu.com/github/htdangkhoa/pure-http?project_id=17737'>
<img src='https://badges.depfu.com/badges/22cfff5ebd5901cb72e115e69767cad5/count.svg' alt='Depfu' />
<img src='https://badges.depfu.com/badges/22cfff5ebd5901cb72e115e69767cad5/count.svg' alt='depfu' />
</a>

@@ -15,2 +15,6 @@

<a href="https://bundlephobia.com/result?p=pure-http">
<img src="https://badgen.net/bundlephobia/minzip/pure-http" alt="bundle size" />
</a>
<a href="https://www.codefactor.io/repository/github/htdangkhoa/pure-http">

@@ -25,3 +29,3 @@ <img src="https://www.codefactor.io/repository/github/htdangkhoa/pure-http/badge" alt="codefactor" />

<a href='https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base'>
<img src='https://img.shields.io/badge/eslint-airbnb-4B32C3.svg' alt='ESLint: airbnb-base' />
<img src='https://img.shields.io/badge/eslint-airbnb-4B32C3.svg' alt='eslint: airbnb' />
</a>

@@ -28,0 +32,0 @@

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