@elysiajs/cookie
Advanced tools
Comparing version 0.6.0-beta.0 to 0.6.0-rc.0
106
package.json
{ | ||
"name": "@elysiajs/cookie", | ||
"version": "0.6.0-beta.0", | ||
"description": "Plugin for Elysia that add supports for get/set cookie", | ||
"author": { | ||
"name": "saltyAom", | ||
"url": "https://github.com/SaltyAom", | ||
"email": "saltyaom@gmail.com" | ||
}, | ||
"main": "./dist/index.js", | ||
"exports": { | ||
"bun": "./dist/index.js", | ||
"node": "./dist/cjs/index.js", | ||
"require": "./dist/cjs/index.js", | ||
"import": "./dist/index.js", | ||
"default": "./dist/index.js" | ||
}, | ||
"types": "./src/index.ts", | ||
"keywords": [ | ||
"elysia", | ||
"cookie" | ||
], | ||
"homepage": "https://github.com/elysiajs/elysia-cookie", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/elysiajs/elysia-cookie" | ||
}, | ||
"bugs": "https://github.com/elysiajs/elysia-cookie/issues", | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "bun run --hot example/index.ts", | ||
"test": "bun wiptest && npm run test:node", | ||
"test:node": "npm install --prefix ./test/node/cjs/ && npm install --prefix ./test/node/esm/ && node ./test/node/cjs/index.js && node ./test/node/esm/index.js", | ||
"build": "rimraf dist && tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json", | ||
"release": "npm run build && npm run test && npm publish --access public" | ||
}, | ||
"dependencies": { | ||
"@types/cookie": "^0.5.1", | ||
"@types/cookie-signature": "^1.1.0", | ||
"cookie": "^0.5.0", | ||
"cookie-signature": "^1.2.1" | ||
}, | ||
"peerDependencies": { | ||
"elysia": ">= 0.6.0-alpha.3" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.1.4", | ||
"bun-types": "^0.7.0", | ||
"elysia": "^0.6.0-alpha.4", | ||
"eslint": "^8.40.0", | ||
"rimraf": "4.3", | ||
"typescript": "^5.0.4" | ||
} | ||
} | ||
"name": "@elysiajs/cookie", | ||
"version": "0.6.0-rc.0", | ||
"description": "Plugin for Elysia that add supports for get/set cookie", | ||
"author": { | ||
"name": "saltyAom", | ||
"url": "https://github.com/SaltyAom", | ||
"email": "saltyaom@gmail.com" | ||
}, | ||
"main": "./dist/index.js", | ||
"exports": { | ||
"bun": "./dist/index.js", | ||
"node": "./dist/cjs/index.js", | ||
"require": "./dist/cjs/index.js", | ||
"import": "./dist/index.js", | ||
"default": "./dist/index.js" | ||
}, | ||
"types": "./src/index.ts", | ||
"keywords": [ | ||
"elysia", | ||
"cookie" | ||
], | ||
"homepage": "https://github.com/elysiajs/elysia-cookie", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/elysiajs/elysia-cookie" | ||
}, | ||
"bugs": "https://github.com/elysiajs/elysia-cookie/issues", | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "bun run --hot example/index.ts", | ||
"test": "bun wiptest && npm run test:node", | ||
"test:node": "npm install --prefix ./test/node/cjs/ && npm install --prefix ./test/node/esm/ && node ./test/node/cjs/index.js && node ./test/node/esm/index.js", | ||
"build": "rimraf dist && tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json", | ||
"release": "npm run build && npm run test && npm publish --access public" | ||
}, | ||
"dependencies": { | ||
"@types/cookie": "^0.5.1", | ||
"@types/cookie-signature": "^1.1.0", | ||
"cookie": "^0.5.0", | ||
"cookie-signature": "^1.2.1" | ||
}, | ||
"peerDependencies": { | ||
"elysia": ">= 0.6.0-alpha.3" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.1.4", | ||
"bun-types": "^0.7.0", | ||
"elysia": "0.6.0-alpha.4", | ||
"eslint": "^8.40.0", | ||
"rimraf": "4.3", | ||
"typescript": "^5.0.4" | ||
} | ||
} |
@@ -41,5 +41,3 @@ import { Elysia, Handler } from 'elysia' | ||
return new Elysia({ | ||
// For deduplication to work you need to define a plugin name (or anything) | ||
name: '@elysiajs/cookie', | ||
// (optional) define seed, if not provided plugin will only be defined once | ||
seed: options | ||
@@ -46,0 +44,0 @@ }) |
21274
345