Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tinkoff/browser-cookies

Package Overview
Dependencies
Maintainers
17
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinkoff/browser-cookies - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

2

lib/cookies.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc