@tinkoff/browser-cookies
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -5,3 +5,3 @@ import type { ICookies, CookieOptions } from './cookies.h'; | ||
constructor(defaults?: CookieOptions); | ||
get(name: string): string | null; | ||
get(name: string): string | undefined; | ||
set(name: string, value: string, options?: CookieOptions): void; | ||
@@ -8,0 +8,0 @@ erase(name: string, options?: CookieOptions): void; |
@@ -10,3 +10,3 @@ export interface CookieOptions { | ||
export interface ICookies { | ||
get(name: string): string | null; | ||
get(name: string): string | undefined; | ||
set(name: string, value: string, options?: CookieOptions): void; | ||
@@ -13,0 +13,0 @@ erase(name: string, options?: CookieOptions): void; |
@@ -79,4 +79,4 @@ const DEFAULT_PATH = '/'; | ||
} | ||
// Return `null` as the cookie was not found | ||
return null; | ||
// Return `undefined` as the cookie was not found | ||
return undefined; | ||
} | ||
@@ -83,0 +83,0 @@ set(name, value, options) { |
@@ -83,4 +83,4 @@ 'use strict'; | ||
} | ||
// Return `null` as the cookie was not found | ||
return null; | ||
// Return `undefined` as the cookie was not found | ||
return undefined; | ||
} | ||
@@ -87,0 +87,0 @@ set(name, value, options) { |
{ | ||
"name": "@tinkoff/browser-cookies", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Tiny cookies library for the browser and server environments", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
21745