@plumier/core
Advanced tools
Comparing version 1.0.0-dev.11 to 1.0.0-dev.12
@@ -16,3 +16,3 @@ import Koa, { Context } from "koa"; | ||
setStatus(status: number): this; | ||
setCookie(key: string, value: string, option?: SetOption): this; | ||
setCookie(key: string, value?: string, option?: SetOption): this; | ||
execute(ctx: Context): Promise<void>; | ||
@@ -19,0 +19,0 @@ } |
@@ -36,3 +36,6 @@ "use strict"; | ||
for (const cookie of this.cookies) { | ||
ctx.cookies.set(cookie.key, cookie.value, cookie.option); | ||
if (!cookie.value) | ||
ctx.cookies.set(cookie.key); | ||
else | ||
ctx.cookies.set(cookie.key, cookie.value, cookie.option); | ||
} | ||
@@ -39,0 +42,0 @@ if (this.body) |
{ | ||
"name": "@plumier/core", | ||
"version": "1.0.0-dev.11+fdf6d25", | ||
"version": "1.0.0-dev.12+6f37e07", | ||
"description": "Delightful Node.js Rest Framework", | ||
@@ -41,3 +41,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "fdf6d25f535d150f13a6e44960debe31e4305d9b", | ||
"gitHead": "6f37e078872709538da5392f1da91fbc61995edd", | ||
"devDependencies": { | ||
@@ -44,0 +44,0 @@ "upath": "^1.2.0" |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
120824
2757