cookie-signature/ 000755 001751 000177 0000000000 14522265601 016012 5 ustar 00runner 000000 000000 14522265601 14522265601 cookie-signature/LICENSE 000644 001751 000177 0000002165 14522265601 017023 0 ustar 00runner 000000 000000 14522265601 14522265601 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.md 000644 001751 000177 0000002033 14522265601 017273 0 ustar 00runner 000000 000000 14522306366 14522265601 # 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.ts 000644 001751 000177 0000000563 14522265601 017717 0 ustar 00runner 000000 000000 14522265601 14522265601 ///
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.json 000644 001751 000177 0000001525 14522265601 020307 0 ustar 00runner 000000 000000 14522306366 14522265601 {
"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"
}