typescript-cookie
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -9,5 +9,5 @@ export interface CookieAttributes { | ||
} | ||
export declare type CookieAttributesConfig = Readonly<CookieAttributes>; | ||
export declare type Decoder<T> = (value: string, name?: string) => T; | ||
export declare type Encoder<T> = (value: T, name?: string) => string; | ||
export type CookieAttributesConfig = Readonly<CookieAttributes>; | ||
export type Decoder<T> = (value: string, name?: string) => T; | ||
export type Encoder<T> = (value: T, name?: string) => string; | ||
export interface CookieDecoding<T> { | ||
@@ -31,3 +31,3 @@ readonly decodeName?: Decoder<string>; | ||
} | ||
export declare type CookieConverterConfig<W, R> = Readonly<CookieConverter<W, R>>; | ||
export type CookieConverterConfig<W, R> = Readonly<CookieConverter<W, R>>; | ||
interface CookiesConfig<W, R> { | ||
@@ -49,3 +49,3 @@ readonly converter: CookieConverterConfig<W, R>; | ||
} | ||
export declare type Cookies<W, R> = CookiesConfig<W, R> & CookiesApi<W, R>; | ||
export type Cookies<W, R> = CookiesConfig<W, R> & CookiesApi<W, R>; | ||
export {}; |
{ | ||
"name": "typescript-cookie", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A simple, lightweight API for handling cookies in the browser", | ||
@@ -12,2 +12,3 @@ "author": "Klaus Hartl", | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./dist/typescript-cookie.mjs" | ||
@@ -17,2 +18,3 @@ }, | ||
}, | ||
"types": "./dist/src/index.d.ts", | ||
"keywords": [ | ||
@@ -29,6 +31,6 @@ "browser", | ||
"test": "jest", | ||
"test:e2e": "jest --config '{\"testMatch\":[\"**/?(*.)e2e.js\"]}'", | ||
"test:e2e": "playwright test", | ||
"coverage": "jest --coverage", | ||
"lint": "standard && ts-standard", | ||
"format": "prettier -l --write --single-quote --no-semi '**/*.{html,js,json,md,mjs,ts,yml}' && standard --fix && ts-standard --fix", | ||
"format": "prettier -l --write --single-quote --trailing-comma none --no-semi '**/*.{html,js,json,md,mjs,ts,yml}' && standard --fix && ts-standard --fix", | ||
"prebuild": "npm run clean", | ||
@@ -50,24 +52,24 @@ "build": "rollup -c && tsc --emitDeclarationOnly --declarationDir dist", | ||
], | ||
"types": "./dist/src/index.d.ts", | ||
"devDependencies": { | ||
"@rollup/plugin-typescript": "^8.2.5", | ||
"@types/jest": "^27.0.1", | ||
"eslint": "^7.32.0", | ||
"eslint-config-standard": "^16.0.3", | ||
"eslint-plugin-html": "^6.0.0", | ||
"eslint-plugin-markdown": "^2.2.0", | ||
"@playwright/test": "^1.31.0", | ||
"@rollup/plugin-terser": "^0.4.0", | ||
"@rollup/plugin-typescript": "^11.0.0", | ||
"@types/jest": "^29.5.0", | ||
"eslint": "^8.36.0", | ||
"eslint-config-standard": "^17.0.0", | ||
"eslint-plugin-html": "^7.0.0", | ||
"eslint-plugin-markdown": "^3.0.0", | ||
"fast-check": "^3.0.0", | ||
"jest": "^27.1.0", | ||
"jest": "^29.5.0", | ||
"jest-environment-jsdom": "^29.5.0", | ||
"prettier": "^2.3.2", | ||
"release-it": "^15.0.0", | ||
"rollup": "^2.56.2", | ||
"rollup-plugin-filesize": "^9.1.1", | ||
"rollup-plugin-license": "^2.5.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"selenium-webdriver": "^4.0.0-beta.4", | ||
"rollup": "^3.17.2", | ||
"rollup-plugin-filesize": "^10.0.0", | ||
"rollup-plugin-license": "^3.0.0", | ||
"standard": "^17.0.0", | ||
"ts-jest": "^27.0.5", | ||
"ts-jest": "^29.0.5", | ||
"ts-node": "^10.2.1", | ||
"ts-standard": "^11.0.0", | ||
"typescript": "^4.3.5" | ||
"ts-standard": "^12.0.0", | ||
"typescript": "~5.0.2" | ||
}, | ||
@@ -74,0 +76,0 @@ "engines": { |
@@ -1,2 +0,2 @@ | ||
# TypeScript Cookie [![CI Status](https://github.com/carhartl/typescript-cookie/actions/workflows/ci.yml/badge.svg)](https://github.com/carhartl/typescript-cookie/actions/workflows/ci.yml) [![BrowserStack Test](https://github.com/carhartl/typescript-cookie/actions/workflows/browserstack.yml/badge.svg)](https://github.com/carhartl/typescript-cookie/actions/workflows/browserstack.yml) [![TypeScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Maintainability](https://api.codeclimate.com/v1/badges/d87f5ff1ca1041f8723a/maintainability)](https://codeclimate.com/github/carhartl/typescript-cookie/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/d87f5ff1ca1041f8723a/test_coverage)](https://codeclimate.com/github/carhartl/typescript-cookie/test_coverage) [![npm](https://img.shields.io/github/package-json/v/carhartl/typescript-cookie)](https://www.npmjs.com/package/typescript-cookie) [![size](https://img.shields.io/bundlephobia/minzip/typescript-cookie)](https://www.npmjs.com/package/typescript-cookie) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/typescript-cookie/badge?style=rounded)](https://www.jsdelivr.com/package/npm/typescript-cookie) | ||
# TypeScript Cookie [![CI Status](https://github.com/carhartl/typescript-cookie/actions/workflows/ci.yml/badge.svg)](https://github.com/carhartl/typescript-cookie/actions/workflows/ci.yml) [![TypeScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![Maintainability](https://api.codeclimate.com/v1/badges/d87f5ff1ca1041f8723a/maintainability)](https://codeclimate.com/github/carhartl/typescript-cookie/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/d87f5ff1ca1041f8723a/test_coverage)](https://codeclimate.com/github/carhartl/typescript-cookie/test_coverage) [![npm](https://img.shields.io/github/package-json/v/carhartl/typescript-cookie)](https://www.npmjs.com/package/typescript-cookie) [![size](https://img.shields.io/bundlephobia/minzip/typescript-cookie)](https://www.npmjs.com/package/typescript-cookie) | ||
@@ -255,9 +255,1 @@ A simple, lightweight TypeScript API for handling cookies. | ||
(This is so we are able to craft suitable release notes before publishing.)_ | ||
## Supporters | ||
<p> | ||
<a href="https://www.browserstack.com/"><img src="https://raw.githubusercontent.com/wiki/js-cookie/js-cookie/Browserstack-logo%402x.png" width="150"></a> | ||
</p> | ||
Many thanks to [BrowserStack](https://www.browserstack.com/) for providing unlimited browser testing free of cost. |
Sorry, the diff of this file is not supported yet
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
21969
21
11
255