@types/restify
Advanced tools
Comparing version 8.5.1 to 8.5.2
@@ -24,55 +24,55 @@ // Type definitions for restify 8.5 | ||
export interface ServerOptions { | ||
ca?: string | Buffer | ReadonlyArray<string | Buffer>; | ||
ca?: string | Buffer | ReadonlyArray<string | Buffer> | undefined; | ||
certificate?: string | Buffer | ReadonlyArray<string | Buffer>; | ||
certificate?: string | Buffer | ReadonlyArray<string | Buffer> | undefined; | ||
cert?: string | Buffer | ReadonlyArray<string | Buffer>; | ||
cert?: string | Buffer | ReadonlyArray<string | Buffer> | undefined; | ||
key?: string | Buffer | ReadonlyArray<string | Buffer>; | ||
key?: string | Buffer | ReadonlyArray<string | Buffer> | undefined; | ||
passphrase?: string; | ||
passphrase?: string | undefined; | ||
requestCert?: boolean; | ||
requestCert?: boolean | undefined; | ||
ciphers?: string; | ||
ciphers?: string | undefined; | ||
formatters?: Formatters; | ||
formatters?: Formatters | undefined; | ||
log?: Logger; | ||
log?: Logger | undefined; | ||
name?: string; | ||
name?: string | undefined; | ||
spdy?: spdy.ServerOptions; | ||
spdy?: spdy.ServerOptions | undefined; | ||
version?: string; | ||
version?: string | undefined; | ||
versions?: string[]; | ||
versions?: string[] | undefined; | ||
handleUpgrades?: boolean; | ||
handleUpgrades?: boolean | undefined; | ||
httpsServerOptions?: https.ServerOptions; | ||
httpsServerOptions?: https.ServerOptions | undefined; | ||
handleUncaughtExceptions?: boolean; | ||
handleUncaughtExceptions?: boolean | undefined; | ||
router?: Router; | ||
router?: Router | undefined; | ||
socketio?: boolean; | ||
socketio?: boolean | undefined; | ||
noWriteContinue?: boolean; | ||
noWriteContinue?: boolean | undefined; | ||
rejectUnauthorized?: boolean; | ||
rejectUnauthorized?: boolean | undefined; | ||
secureOptions?: number; | ||
secureOptions?: number | undefined; | ||
http2?: any; | ||
dtrace?: boolean; | ||
dtrace?: boolean | undefined; | ||
onceNext?: boolean; | ||
onceNext?: boolean | undefined; | ||
strictNext?: boolean; | ||
strictNext?: boolean | undefined; | ||
ignoreTrailingSlash?: boolean; | ||
ignoreTrailingSlash?: boolean | undefined; | ||
maxParamLength?: number; | ||
maxParamLength?: number | undefined; | ||
} | ||
@@ -279,5 +279,5 @@ | ||
spdy?: boolean; | ||
spdy?: boolean | undefined; | ||
http2?: boolean; | ||
http2?: boolean | undefined; | ||
@@ -292,9 +292,9 @@ ca: ServerOptions['ca']; | ||
secure?: boolean; | ||
secure?: boolean | undefined; | ||
} | ||
export interface ChainOptions { | ||
onceNext?: boolean; | ||
onceNext?: boolean | undefined; | ||
strictNext?: boolean; | ||
strictNext?: boolean | undefined; | ||
} | ||
@@ -350,11 +350,11 @@ | ||
export interface RouterOptions { | ||
log?: Logger; | ||
log?: Logger | undefined; | ||
onceNext?: boolean; | ||
onceNext?: boolean | undefined; | ||
strictNext?: boolean; | ||
strictNext?: boolean | undefined; | ||
ignoreTrailingSlash?: boolean; | ||
ignoreTrailingSlash?: boolean | undefined; | ||
registry?: RouterRegistryRadix; | ||
registry?: RouterRegistryRadix | undefined; | ||
} | ||
@@ -420,3 +420,3 @@ | ||
log?: Logger; | ||
log?: Logger | undefined; | ||
@@ -434,3 +434,3 @@ onceNext: boolean; | ||
password: string; | ||
}; | ||
} | undefined; | ||
} | ||
@@ -651,9 +651,9 @@ | ||
/** available when multipartBodyParser plugin is used. */ | ||
files?: { [name: string]: File | undefined; }; | ||
files?: { [name: string]: File | undefined; } | undefined; | ||
/** available when authorizationParser plugin is used */ | ||
username?: string; | ||
username?: string | undefined; | ||
/** available when authorizationParser plugin is used */ | ||
authorization?: RequestAuthorization; | ||
authorization?: RequestAuthorization | undefined; | ||
} | ||
@@ -850,3 +850,3 @@ | ||
*/ | ||
secure?: boolean; | ||
secure?: boolean | undefined; | ||
@@ -856,3 +856,3 @@ /** | ||
*/ | ||
hostname?: string; | ||
hostname?: string | undefined; | ||
@@ -862,3 +862,3 @@ /** | ||
*/ | ||
pathname?: string; | ||
pathname?: string | undefined; | ||
@@ -868,3 +868,3 @@ /** | ||
*/ | ||
port?: string; | ||
port?: string | undefined; | ||
@@ -874,3 +874,3 @@ /** | ||
*/ | ||
query?: string|object; | ||
query?: string|object | undefined; | ||
@@ -883,3 +883,3 @@ /** | ||
*/ | ||
overrideQuery?: boolean; | ||
overrideQuery?: boolean | undefined; | ||
@@ -889,3 +889,3 @@ /** | ||
*/ | ||
permanent?: boolean; | ||
permanent?: boolean | undefined; | ||
} | ||
@@ -899,5 +899,5 @@ | ||
method: string; | ||
name?: string; | ||
name?: string | undefined; | ||
path: string | RegExp; | ||
versions?: string[]; | ||
versions?: string[] | undefined; | ||
} | ||
@@ -914,15 +914,15 @@ | ||
export interface RouteOptions { | ||
name?: string; | ||
name?: string | undefined; | ||
path?: string | RegExp; | ||
path?: string | RegExp | undefined; | ||
url?: string | RegExp; | ||
url?: string | RegExp | undefined; | ||
urlParamPattern?: RegExp; | ||
urlParamPattern?: RegExp | undefined; | ||
contentType?: string | string[]; | ||
contentType?: string | string[] | undefined; | ||
version?: string; | ||
version?: string | undefined; | ||
versions?: string[]; | ||
versions?: string[] | undefined; | ||
} | ||
@@ -935,13 +935,13 @@ | ||
path?: string | RegExp; | ||
path?: string | RegExp | undefined; | ||
url?: string | RegExp; | ||
url?: string | RegExp | undefined; | ||
urlParamPattern?: RegExp; | ||
urlParamPattern?: RegExp | undefined; | ||
contentType?: string | string[]; | ||
contentType?: string | string[] | undefined; | ||
version?: string; | ||
version?: string | undefined; | ||
versions?: string[]; | ||
versions?: string[] | undefined; | ||
} | ||
@@ -1000,6 +1000,6 @@ | ||
/** The stream to which to write when dumping captured records. */ | ||
stream?: Logger.Stream; | ||
stream?: Logger.Stream | undefined; | ||
/** The streams to which to write when dumping captured records. */ | ||
streams?: ReadonlyArray<Logger.Stream>; | ||
streams?: ReadonlyArray<Logger.Stream> | undefined; | ||
@@ -1010,6 +1010,6 @@ /** | ||
*/ | ||
level?: Logger.LogLevel; | ||
level?: Logger.LogLevel | undefined; | ||
/** Number of records to capture. Default 100. */ | ||
maxRecords?: number; | ||
maxRecords?: number | undefined; | ||
@@ -1020,3 +1020,3 @@ /** | ||
*/ | ||
maxRequestIds?: number; | ||
maxRequestIds?: number | undefined; | ||
@@ -1028,3 +1028,3 @@ /** | ||
*/ | ||
dumpDefault?: boolean; | ||
dumpDefault?: boolean | undefined; | ||
} | ||
@@ -1132,3 +1132,3 @@ | ||
*/ | ||
server?: Server; | ||
server?: Server | undefined; | ||
@@ -1142,3 +1142,3 @@ /** | ||
*/ | ||
context?: AuditLoggerContext; | ||
context?: AuditLoggerContext | undefined; | ||
@@ -1153,5 +1153,5 @@ /** | ||
*/ | ||
printLog?: boolean; | ||
printLog?: boolean | undefined; | ||
body?: boolean; | ||
body?: boolean | undefined; | ||
} | ||
@@ -1171,4 +1171,4 @@ | ||
handler: RequestHandler | RequestHandler[]; | ||
version?: string | string[]; | ||
contentType?: string | string[]; | ||
version?: string | string[] | undefined; | ||
contentType?: string | string[] | undefined; | ||
} | ||
@@ -1189,6 +1189,6 @@ | ||
interface CpuUsageThrottleOptions { | ||
limit?: number; | ||
max?: number; | ||
interval?: number; | ||
halfLife?: number; | ||
limit?: number | undefined; | ||
max?: number | undefined; | ||
interval?: number | undefined; | ||
halfLife?: number | undefined; | ||
} | ||
@@ -1212,3 +1212,3 @@ | ||
*/ | ||
maxBodySize?: number; | ||
maxBodySize?: number | undefined; | ||
@@ -1218,3 +1218,3 @@ /** | ||
*/ | ||
mapParams?: boolean; | ||
mapParams?: boolean | undefined; | ||
@@ -1226,3 +1226,3 @@ /** | ||
*/ | ||
mapFiles?: boolean; | ||
mapFiles?: boolean | undefined; | ||
@@ -1234,3 +1234,3 @@ /** | ||
*/ | ||
overrideParams?: boolean; | ||
overrideParams?: boolean | undefined; | ||
@@ -1254,3 +1254,3 @@ /** | ||
*/ | ||
keepExtensions?: boolean; | ||
keepExtensions?: boolean | undefined; | ||
@@ -1260,3 +1260,3 @@ /** | ||
*/ | ||
uploadDir?: string; | ||
uploadDir?: string | undefined; | ||
@@ -1266,3 +1266,3 @@ /** | ||
*/ | ||
multiples?: boolean; | ||
multiples?: boolean | undefined; | ||
@@ -1272,3 +1272,3 @@ /** | ||
*/ | ||
hash?: string; | ||
hash?: string | undefined; | ||
@@ -1278,11 +1278,11 @@ /** | ||
*/ | ||
rejectUnknown?: boolean; | ||
rejectUnknown?: boolean | undefined; | ||
requestBodyOnGet?: boolean; | ||
requestBodyOnGet?: boolean | undefined; | ||
reviver?: any; | ||
maxFieldsSize?: number; | ||
maxFieldsSize?: number | undefined; | ||
maxFileSize?: number; | ||
maxFileSize?: number | undefined; | ||
} | ||
@@ -1298,8 +1298,8 @@ | ||
*/ | ||
function bodyReader(options?: { maxBodySize?: number }): RequestHandler; | ||
function bodyReader(options?: { maxBodySize?: number | undefined }): RequestHandler; | ||
interface UrlEncodedBodyParserOptions { | ||
mapParams?: boolean; | ||
overrideParams?: boolean; | ||
bodyReader?: boolean; | ||
mapParams?: boolean | undefined; | ||
overrideParams?: boolean | undefined; | ||
bodyReader?: boolean | undefined; | ||
} | ||
@@ -1318,6 +1318,6 @@ | ||
interface JsonBodyParserOptions { | ||
mapParams?: boolean; | ||
overrideParams?: boolean; | ||
mapParams?: boolean | undefined; | ||
overrideParams?: boolean | undefined; | ||
reviver?(key: any, value: any): any; | ||
bodyReader?: boolean; | ||
bodyReader?: boolean | undefined; | ||
} | ||
@@ -1336,13 +1336,13 @@ | ||
interface MultipartBodyParser { | ||
overrideParams?: boolean; | ||
multiples?: boolean; | ||
keepExtensions?: boolean; | ||
uploadDir?: string; | ||
maxFieldsSize?: number; | ||
hash?: string; | ||
overrideParams?: boolean | undefined; | ||
multiples?: boolean | undefined; | ||
keepExtensions?: boolean | undefined; | ||
uploadDir?: string | undefined; | ||
maxFieldsSize?: number | undefined; | ||
hash?: string | undefined; | ||
multipartFileHandler?: any; | ||
multipartHandler?: any; | ||
mapParams?: boolean; | ||
mapFiles?: boolean; | ||
maxFileSize?: number; | ||
mapParams?: boolean | undefined; | ||
mapFiles?: boolean | undefined; | ||
maxFileSize?: number | undefined; | ||
} | ||
@@ -1359,3 +1359,3 @@ | ||
*/ | ||
mapParams?: boolean; | ||
mapParams?: boolean | undefined; | ||
@@ -1365,3 +1365,3 @@ /** | ||
*/ | ||
overrideParams?: boolean; | ||
overrideParams?: boolean | undefined; | ||
@@ -1371,3 +1371,3 @@ /** | ||
*/ | ||
allowDots?: boolean; | ||
allowDots?: boolean | undefined; | ||
@@ -1377,3 +1377,3 @@ /** | ||
*/ | ||
arrayLimit?: number; | ||
arrayLimit?: number | undefined; | ||
@@ -1383,3 +1383,3 @@ /** | ||
*/ | ||
depth?: number; | ||
depth?: number | undefined; | ||
@@ -1389,3 +1389,3 @@ /** | ||
*/ | ||
parameterLimit?: number; | ||
parameterLimit?: number | undefined; | ||
@@ -1395,3 +1395,3 @@ /** | ||
*/ | ||
parseArrays?: boolean; | ||
parseArrays?: boolean | undefined; | ||
@@ -1402,3 +1402,3 @@ /** | ||
*/ | ||
plainObjects?: boolean; | ||
plainObjects?: boolean | undefined; | ||
@@ -1408,3 +1408,3 @@ /** | ||
*/ | ||
strictNullHandling?: boolean; | ||
strictNullHandling?: boolean | undefined; | ||
} | ||
@@ -1456,11 +1456,11 @@ | ||
interface ServeStatic { | ||
appendRequestPath?: boolean; | ||
directory?: string; | ||
maxAge?: number; | ||
appendRequestPath?: boolean | undefined; | ||
directory?: string | undefined; | ||
maxAge?: number | undefined; | ||
match?: any; | ||
charSet?: string; | ||
file?: string; | ||
etag?: string; | ||
charSet?: string | undefined; | ||
file?: string | undefined; | ||
etag?: string | undefined; | ||
default?: any; | ||
gzip?: boolean; | ||
gzip?: boolean | undefined; | ||
} | ||
@@ -1474,5 +1474,5 @@ | ||
interface ServeStaticFiles { | ||
maxAge?: number; | ||
etag?: string; | ||
setHeaders?: (res: Response, path: string, stat: any) => any; | ||
maxAge?: number | undefined; | ||
etag?: string | undefined; | ||
setHeaders?: ((res: Response, path: string, stat: any) => any) | undefined; | ||
} | ||
@@ -1489,10 +1489,10 @@ | ||
interface ThrottleOptions { | ||
burst?: number; | ||
rate?: number; | ||
setHeaders?: boolean; | ||
ip?: boolean; | ||
username?: boolean; | ||
xff?: boolean; | ||
burst?: number | undefined; | ||
rate?: number | undefined; | ||
setHeaders?: boolean | undefined; | ||
ip?: boolean | undefined; | ||
username?: boolean | undefined; | ||
xff?: boolean | undefined; | ||
tokensTable?: any; | ||
maxKeys?: number; | ||
maxKeys?: number | undefined; | ||
overrides?: any; // any | ||
@@ -1621,3 +1621,3 @@ } | ||
*/ | ||
absoluteHeader?: string; | ||
absoluteHeader?: string | undefined; | ||
@@ -1627,3 +1627,3 @@ /** | ||
*/ | ||
startHeader?: string; | ||
startHeader?: string | undefined; | ||
@@ -1633,3 +1633,3 @@ /** | ||
*/ | ||
timeoutHeader?: string; | ||
timeoutHeader?: string | undefined; | ||
} | ||
@@ -1636,0 +1636,0 @@ |
{ | ||
"name": "@types/restify", | ||
"version": "8.5.1", | ||
"version": "8.5.2", | ||
"description": "TypeScript definitions for restify", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/restify", | ||
"license": "MIT", | ||
@@ -57,4 +58,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "d84aa1232fb911ad82df5e8b6bf14fe226ceb8394c51fd719af76d1964c50156", | ||
"typeScriptVersion": "3.5" | ||
"typesPublisherContentHash": "eb290c4b759a7113bff9e21df60f67027046bada67dec2c3b096ff87118ebe48", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sun, 07 Mar 2021 10:42:18 GMT | ||
* Last updated: Wed, 07 Jul 2021 18:02:25 GMT | ||
* Dependencies: [@types/bunyan](https://npmjs.com/package/@types/bunyan), [@types/spdy](https://npmjs.com/package/@types/spdy), [@types/formidable](https://npmjs.com/package/@types/formidable), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
48549
0