@types/koa-session
Advanced tools
Comparing version 5.7.4 to 5.10.0
@@ -1,7 +0,8 @@ | ||
// Type definitions for koa-session 5.7 | ||
// Type definitions for koa-session 5.10 | ||
// Project: https://github.com/koajs/session | ||
// Definitions by: Yu Hsin Lu <https://github.com/kerol2r20> | ||
// Tomek Łaziuk <https://github.com/tlaziuk> | ||
// Hiroshi Ioka <https://github.com/hirochachacha> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
// TypeScript Version: 2.8 | ||
@@ -19,3 +20,6 @@ /* =================== USAGE =================== | ||
import Koa = require("koa"); | ||
import Cookies = require("cookies"); | ||
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>; | ||
declare namespace session { | ||
@@ -112,3 +116,3 @@ /** | ||
interface opts { | ||
interface opts extends Omit<Cookies.SetOption, 'maxAge'> { | ||
/** | ||
@@ -127,17 +131,2 @@ * cookie key (default is koa:sess) | ||
/** | ||
* can overwrite or not (default true) | ||
*/ | ||
overwrite: boolean; | ||
/** | ||
* httpOnly or not (default true) | ||
*/ | ||
httpOnly: boolean; | ||
/** | ||
* signed or not (default true) | ||
*/ | ||
signed: boolean; | ||
/** | ||
* custom encode method | ||
@@ -144,0 +133,0 @@ */ |
{ | ||
"name": "@types/koa-session", | ||
"version": "5.7.4", | ||
"version": "5.10.0", | ||
"description": "TypeScript definitions for koa-session", | ||
@@ -16,5 +16,11 @@ "license": "MIT", | ||
"githubUsername": "tlaziuk" | ||
}, | ||
{ | ||
"name": "Hiroshi Ioka", | ||
"url": "https://github.com/hirochachacha", | ||
"githubUsername": "hirochachacha" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
@@ -26,6 +32,7 @@ "type": "git", | ||
"dependencies": { | ||
"@types/cookies": "*", | ||
"@types/koa": "*" | ||
}, | ||
"typesPublisherContentHash": "cb102b973e7c9536ac08f16963a97fbe1db6e2709e9207a16ced07481455f3cf", | ||
"typeScriptVersion": "2.3" | ||
"typesPublisherContentHash": "7e92a33d6f4d06b69f6939652d4f73b2adc9b3c3a7e0bfa4fc8b1014861ef8a1", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for koa-session (https://github.com/koajs/session). | ||
This package contains type definitions for koa-session ( https://github.com/koajs/session ). | ||
@@ -12,7 +12,7 @@ # Details | ||
Additional Details | ||
* Last updated: Thu, 31 May 2018 23:51:11 GMT | ||
* Dependencies: koa | ||
* Last updated: Fri, 01 Feb 2019 05:29:44 GMT | ||
* Dependencies: @types/koa, @types/cookies | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Yu Hsin Lu <https://github.com/kerol2r20>, Tomek Łaziuk <https://github.com/tlaziuk>. | ||
These definitions were written by Yu Hsin Lu <https://github.com/kerol2r20>, Tomek Łaziuk <https://github.com/tlaziuk>, Hiroshi Ioka <https://github.com/hirochachacha>. |
Sorry, the diff of this file is not supported yet
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
8977
2
184
+ Added@types/cookies@*