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

@types/js-cookie

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/js-cookie - npm Package Compare versions

Comparing version 2.0.28 to 2.1.0

js-cookie/LICENSE

16

js-cookie/index.d.ts

@@ -1,5 +0,7 @@

// Type definitions for js-cookie v2.0
// Type definitions for js-cookie 2.1
// Project: https://github.com/js-cookie/js-cookie
// Definitions by: Theodore Brown <https://github.com/theodorejb>
// BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

@@ -42,3 +44,3 @@ declare namespace Cookies {

*/
set(name: string, value: string | any, options?: CookieAttributes): void;
set(name: string, value: string | object, options?: CookieAttributes): void;

@@ -48,3 +50,3 @@ /**

*/
get(name: string): string;
get(name: string): string | undefined;

@@ -60,3 +62,3 @@ /**

*/
getJSON(name: string): any;
getJSON(name: string): object;

@@ -91,9 +93,11 @@ /**

*/
withConverter(converter: (value: string, name: string) => string): CookiesStatic;
withConverter(converter: CookieConverter | { write: CookieConverter; read: CookieConverter; }): CookiesStatic;
}
type CookieConverter = (value: string, name: string) => string;
}
declare var Cookies: Cookies.CookiesStatic;
declare const Cookies: Cookies.CookiesStatic;
export = Cookies;
export as namespace Cookies;
{
"name": "@types/js-cookie",
"version": "2.0.28",
"description": "TypeScript definitions for js-cookie v2.0",
"version": "2.1.0",
"description": "TypeScript definitions for js-cookie",
"license": "MIT",
"author": "Theodore Brown <https://github.com/theodorejb>",
"contributors": [
{
"name": "Theodore Brown",
"url": "https://github.com/theodorejb"
},
{
"name": "BendingBender",
"url": "https://github.com/BendingBender"
}
],
"main": "",

@@ -14,4 +23,4 @@ "repository": {

"dependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "c38457292d51f4e4c200c41179cc1f70364620104c197a003b1aa42944bc9059"
"typesPublisherContentHash": "884a32e668b25d2896df3d7afdedbf198fda16f34e3411d5950d50ce209405b4",
"typeScriptVersion": "2.3"
}

@@ -5,15 +5,13 @@ # Installation

# Summary
This package contains type definitions for js-cookie v2.0 (https://github.com/js-cookie/js-cookie).
This package contains type definitions for js-cookie (https://github.com/js-cookie/js-cookie).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/js-cookie
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/js-cookie
Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* File structure: UMD
* Library Dependencies: none
* Module Dependencies: none
* Last updated: Wed, 23 Aug 2017 17:50:59 GMT
* Dependencies: none
* Global values: Cookies
# Credits
These definitions were written by Theodore Brown <https://github.com/theodorejb>.
These definitions were written by Theodore Brown <https://github.com/theodorejb>, BendingBender <https://github.com/BendingBender>.
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