129 lines
18 KiB
JSON
129 lines
18 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "express-session@~1.11.3",
|
||
|
"scope": null,
|
||
|
"escapedName": "express-session",
|
||
|
"name": "express-session",
|
||
|
"rawSpec": "~1.11.3",
|
||
|
"spec": ">=1.11.3 <1.12.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/connect"
|
||
|
]
|
||
|
],
|
||
|
"_from": "express-session@>=1.11.3 <1.12.0",
|
||
|
"_id": "express-session@1.11.3",
|
||
|
"_inCache": true,
|
||
|
"_location": "/express-session",
|
||
|
"_npmUser": {
|
||
|
"name": "dougwilson",
|
||
|
"email": "doug@somethingdoug.com"
|
||
|
},
|
||
|
"_npmVersion": "1.4.28",
|
||
|
"_phantomChildren": {
|
||
|
"base64-url": "1.2.1"
|
||
|
},
|
||
|
"_requested": {
|
||
|
"raw": "express-session@~1.11.3",
|
||
|
"scope": null,
|
||
|
"escapedName": "express-session",
|
||
|
"name": "express-session",
|
||
|
"rawSpec": "~1.11.3",
|
||
|
"spec": ">=1.11.3 <1.12.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/connect"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/express-session/-/express-session-1.11.3.tgz",
|
||
|
"_shasum": "5cc98f3f5ff84ed835f91cbf0aabd0c7107400af",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "express-session@~1.11.3",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/connect",
|
||
|
"author": {
|
||
|
"name": "TJ Holowaychuk",
|
||
|
"email": "tj@vision-media.ca",
|
||
|
"url": "http://tjholowaychuk.com"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/expressjs/session/issues"
|
||
|
},
|
||
|
"contributors": [
|
||
|
{
|
||
|
"name": "Douglas Christopher Wilson",
|
||
|
"email": "doug@somethingdoug.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Joe Wagner",
|
||
|
"email": "njwjs722@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"dependencies": {
|
||
|
"cookie": "0.1.3",
|
||
|
"cookie-signature": "1.0.6",
|
||
|
"crc": "3.3.0",
|
||
|
"debug": "~2.2.0",
|
||
|
"depd": "~1.0.1",
|
||
|
"on-headers": "~1.0.0",
|
||
|
"parseurl": "~1.3.0",
|
||
|
"uid-safe": "~2.0.0",
|
||
|
"utils-merge": "1.0.0"
|
||
|
},
|
||
|
"description": "Simple session middleware for Express",
|
||
|
"devDependencies": {
|
||
|
"after": "0.8.1",
|
||
|
"cookie-parser": "~1.3.5",
|
||
|
"express": "~4.12.4",
|
||
|
"istanbul": "0.3.15",
|
||
|
"mocha": "2.2.5",
|
||
|
"supertest": "1.0.1"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"shasum": "5cc98f3f5ff84ed835f91cbf0aabd0c7107400af",
|
||
|
"tarball": "https://registry.npmjs.org/express-session/-/express-session-1.11.3.tgz"
|
||
|
},
|
||
|
"engines": {
|
||
|
"node": ">= 0.8.0"
|
||
|
},
|
||
|
"files": [
|
||
|
"session/",
|
||
|
"HISTORY.md",
|
||
|
"LICENSE",
|
||
|
"index.js"
|
||
|
],
|
||
|
"gitHead": "64e2e7a2d21da881ea53ab984f9eff4be58d7caf",
|
||
|
"homepage": "https://github.com/expressjs/session#readme",
|
||
|
"license": "MIT",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "dougwilson",
|
||
|
"email": "doug@somethingdoug.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "mscdex",
|
||
|
"email": "mscdex@mscdex.net"
|
||
|
},
|
||
|
{
|
||
|
"name": "defunctzombie",
|
||
|
"email": "shtylman@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "express-session",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# express-session\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n[![Gratipay][gratipay-image]][gratipay-url]\n\n## Installation\n\n```bash\n$ npm install express-session\n```\n\n## API\n\n```js\nvar session = require('express-session')\n```\n\n### session(options)\n\nCreate a session middleware with the given `options`.\n\n**Note** Session data is _not_ saved in the cookie itself, just the session ID.\nSession data is stored server-side.\n\n**Warning** The default server-side session storage, `MemoryStore`, is _purposely_\nnot designed for a production environment. It will leak memory under most\nconditions, does not scale past a single process, and is meant for debugging and\ndeveloping.\n\nFor a list of stores, see [compatible session stores](#compatible-session-stores).\n\n#### Options\n\n`express-session` accepts these properties in the options object.\n\n##### cookie\n\nSettings for the session ID cookie. See the \"Cookie options\" section below for\nmore information on the different values.\n\nThe default value is `{ path: '/', httpOnly: true, secure: false, maxAge: null }`.\n\n##### genid\n\nFunction to call to generate a new session ID. Provide a function that returns\na string that will be used as a session ID. The function is given `req` as the\nfirst argument if you want to use some value attached to `req` when generating\nthe ID.\n\nThe default value is a function which uses the `uid2` library to generate IDs.\n\n**NOTE** be careful to generate unique IDs so your sessions do not conflict.\n\n```js\napp.use(session({\n genid: function(req) {\n return genuuid() // use UUIDs for session IDs\n },\n secret: 'keyboard cat'\n}))\n```\n\n##### name\n\nThe name of the session ID cookie to set in the response (and read from in the\nrequest).\n\nThe default value is `'connect.sid'`.\n\n**Note** if you have multiple apps running on the same host (hostname + port),\nthen you need to separate the session cookies from each other. The simplest\nmethod is to simply set different `name`s per app.\n\n##### proxy\n\nTrust the reverse proxy when setting secure cookies (via the \"X-Forwarded-Proto\"\nheader).\n\nThe default value is `undefined`.\n\n - `true` The \"X-Forwarded-Proto\" header will be used.\n - `false` All headers are ignored and the connection is considered secure only\n if there is a direct TLS/SSL connection.\n - `undefined` Uses the \"trust proxy\" setting from express\n\n##### resave\n\nForces the session to be saved back to the session store, even if the session\nwas never modified during the request. Depending on your store this may be\nnecessary, but it can also create race conditions where a client makes two\nparallel requests to your server and changes made to the session in one\nrequest may get overwritten when the other request ends, even if it made no\nchanges (this behavior also depends on what store you're using).\n\nThe default value is `true`, but using the default has been deprecated,\nas the default will change in the future. Please research into this setting\nand choose what is appropriate to your use-case. Typically, you'll want\n`false`.\n\nHow do I know if this is necessary for my store? The best way to know is to\ncheck with your store if it implements the `touch` method. If it does, then\nyou can safely set `resave: false`. If it does not implement the `touch`\nmethod and your store sets an expiration date on stored sessions, then you\nlikely need `resave: true`.\n\n##### rolling\n\nForce a cookie to be set on every response. This resets the expiration date.\n\nThe default value is `false`.\n\n##### saveUninitialized\n\nForces a session that is \"uninitialized\" to be saved to the store. A session is\nuninitialized when it is new but not modified. Choosing `false` is useful for\nimplementing login sessions, reducing server storage usage, or complying with\nlaws that require permission before setting a cookie. Choosing `false`
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git+https://github.com/expressjs/session.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"test": "mocha --bail --reporter spec test/",
|
||
|
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot test/",
|
||
|
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec test/"
|
||
|
},
|
||
|
"version": "1.11.3"
|
||
|
}
|