cookie-signature/000755 001751 000177 0000000000 14522265601016012 5ustar00runner000000 000000 1452226560114522265601cookie-signature/LICENSE000644 001751 000177 0000002165 14522265601017023 0ustar00runner000000 000000 1452226560114522265601 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE cookie-signature/README.md000644 001751 000177 0000002033 14522265601017273 0ustar00runner000000 000000 1452230636614522265601# Installation > `npm install --save @types/cookie-signature` # Summary This package contains type definitions for cookie-signature (https://github.com/tj/node-cookie-signature). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cookie-signature. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cookie-signature/index.d.ts) ````ts /// import type { CipherKey } from "node:crypto"; /** Sign the given `val` with `secret`. */ export function sign(value: string, secret: CipherKey): string; /** * Unsign and decode the given `val` with `secret`, * returning `false` if the signature is invalid. */ export function unsign(value: string, secret: CipherKey): string | false; ```` ### Additional Details * Last updated: Mon, 06 Nov 2023 22:41:05 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node) # Credits These definitions were written by [Junyoung Choi](https://github.com/Rokt33r). cookie-signature/index.d.ts000644 001751 000177 0000000563 14522265601017717 0ustar00runner000000 000000 1452226560114522265601/// import type { CipherKey } from "node:crypto"; /** Sign the given `val` with `secret`. */ export function sign(value: string, secret: CipherKey): string; /** * Unsign and decode the given `val` with `secret`, * returning `false` if the signature is invalid. */ export function unsign(value: string, secret: CipherKey): string | false; cookie-signature/package.json000644 001751 000177 0000001525 14522265601020307 0ustar00runner000000 000000 1452230636614522265601{ "name": "@types/cookie-signature", "version": "1.1.2", "description": "TypeScript definitions for cookie-signature", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cookie-signature", "license": "MIT", "contributors": [ { "name": "Junyoung Choi", "githubUsername": "Rokt33r", "url": "https://github.com/Rokt33r" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/cookie-signature" }, "scripts": {}, "dependencies": { "@types/node": "*" }, "typesPublisherContentHash": "e5291fb24fc6b9856a9184d38f9211e75102edf392f28a7b6ab8ba02abeb99e2", "typeScriptVersion": "4.5" }