Comparing version 3.1.0 to 3.2.0
'use strict'; | ||
const runApplication = require('./').runApplication; | ||
const quinn = require('./'); | ||
const runApplication = quinn.runApplication; | ||
const respond = quinn.respond; | ||
@@ -25,2 +27,3 @@ function createApp(handler) { | ||
createApp.createApp = createApp; | ||
createApp.respond = respond; | ||
createApp.runApplication = runApplication; |
'use strict'; | ||
const respond = require('./respond'); | ||
const NOT_FOUND = new Buffer('Not Found\n', 'utf8'); | ||
@@ -47,2 +49,3 @@ const INTERNAL_ERROR = new Buffer('Internal Server Error\n', 'utf8'); | ||
createApp.createApp = createApp; | ||
createApp.respond = respond; | ||
createApp.runApplication = runApplication; |
{ | ||
"name": "quinn", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Maybe coming some day.", | ||
@@ -5,0 +5,0 @@ "main": "dist/quinn.js", |
@@ -7,8 +7,6 @@ # Quinn | ||
import { createServer } from 'http'; | ||
import { createApp, respond } from 'quinn'; | ||
import quinn from 'quinn'; | ||
import respond from 'quinn/respond'; | ||
const app = createApp(req => respond({ body: 'Hello World!' })); | ||
const app = quinn(req => respond({ body: 'Hello World!' })); | ||
createServer(app).listen(3000); | ||
@@ -68,4 +66,3 @@ ``` | ||
import express from 'express'; | ||
import quinn from 'quinn/express'; | ||
import respond from 'quinn/respond'; | ||
import { createApp as quinn, respond } from 'quinn/express'; | ||
@@ -72,0 +69,0 @@ const app = express(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8244
120
88