@foxxie/centra
Advanced tools
Comparing version 1.0.4 to 1.0.5
import { RequestOptions, IncomingMessage } from 'http'; | ||
import { URL } from 'url'; | ||
type HttpMethod = | ||
export type HttpMethod = | ||
| 'OPTIONS' | ||
@@ -15,5 +15,5 @@ | 'CONNECT' | ||
declare function centra(url: string, method?: HttpMethod): Centra.Request; | ||
export function centra(url: string | URL, method?: HttpMethod): Centra.Request; | ||
declare namespace Centra { | ||
export namespace Centra { | ||
interface Response { | ||
@@ -57,5 +57,2 @@ coreRes: IncomingMessage; | ||
} | ||
} | ||
export = centra; | ||
export as namespace centra; | ||
} |
const CentraRequest = require('./model/CentraRequest.js') | ||
module.exports = (url, method) => { | ||
module.exports.centra = (url, method) => { | ||
return new CentraRequest(url, method) | ||
} |
{ | ||
"name": "@foxxie/centra", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A fork of Centra to support shortcut methoods in Foxxie.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
11392
236