Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

supertest-session

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supertest-session - npm Package Compare versions

Comparing version 3.3.0 to 4.0.0

release.sh

29

package.json
{
"name": "supertest-session",
"version": "3.3.0",
"version": "4.0.0",
"description": "Cookie-based session persistence for Supertest",

@@ -9,4 +9,4 @@ "main": "index.js",

"pretest": "npm run lint",
"test": "jasmine-node test --forceexit",
"cover": "istanbul cover jasmine-node -- --forceexit test"
"test": "nyc jasmine test/*",
"cover": "nyc report --reporter=text-lcov | coveralls"
},

@@ -37,17 +37,18 @@ "repository": {

},
"peerDependencies": {
"supertest": ">= 3.1.0"
},
"dependencies": {
"cookiejar": "^2.0.1",
"methods": "^1.1.1",
"object-assign": "^4.0.1",
"supertest": "^3.1.0"
"object-assign": "^4.0.1"
},
"devDependencies": {
"connect": "^3.2.0",
"cookie-session": "^1.1.0",
"coveralls": "^2.11.2",
"express": "^4.9.5",
"istanbul": "^0.3.0",
"jasmine-node": "^1.14.5",
"jshint": "^2.5.10"
"connect": "^3.6.6",
"cookie-session": "^1.3.3",
"coveralls": "^3.0.3",
"express": "^4.16.4",
"jasmine": "^3.3.1",
"jshint": "^2.10.2",
"nyc": "^13.3.0",
"supertest": "^4.0.2"
}
}

@@ -16,2 +16,6 @@ # Supertest sessions

## Installation
$ npm install --save-dev supertest supertest-session
## Test

@@ -126,3 +130,21 @@

By default the underlying `supertest` agent will still determine the CookieAccessInfo from the URL.
If you want supertest-session to instead send cookies according to this `cookieAccess` config you
can make use of the `before` hook:
```js
var cookieAccess = {
domain: 'example.com',
path: '/testpath',
secure: true,
script: true,
};
var testSession = session(myApp, {
cookieAccess: cookieAccess,
before: function (req) {
req.cookies = this.cookies.toValueString();
},
});
```
## License

@@ -129,0 +151,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc