electron-fetch
Advanced tools
Comparing version 1.0.0-aplha1 to 1.0.0-aplha2
@@ -1248,3 +1248,3 @@ import { format, parse, resolve } from 'url'; | ||
delete options.headers; | ||
options.session = options.session || electron.session.defaultSession; | ||
options.session = options.session || electron.session.fromPartition('electron-fetch'); | ||
} | ||
@@ -1251,0 +1251,0 @@ const req = send(options); |
@@ -1254,3 +1254,3 @@ 'use strict'; | ||
delete options.headers; | ||
options.session = options.session || electron.session.defaultSession; | ||
options.session = options.session || electron.session.fromPartition('electron-fetch'); | ||
} | ||
@@ -1257,0 +1257,0 @@ const req = send(options); |
{ | ||
"name": "electron-fetch", | ||
"version": "1.0.0-aplha1", | ||
"version": "1.0.0-aplha2", | ||
"description": "A light-weight module that brings window.fetch to electron's background process", | ||
@@ -17,4 +17,5 @@ "main": "lib/index.js", | ||
"prepublish": "npm run build", | ||
"test": "npm run test:electron && standard", | ||
"test": "npm run test:electron && npm run test:node && standard", | ||
"test:electron": "xvfb-maybe cross-env BABEL_ENV=test electron-mocha --compilers js:babel-register test/test.js", | ||
"test:node": "cross-env BABEL_ENV=test mocha --compilers js:babel-register test/test.js", | ||
"coverage": "xvfb-maybe cross-env BABEL_ENV=coverage electron-mocha --compilers js:babel-register test/test.js -R test/coverage-reporter.js", | ||
@@ -21,0 +22,0 @@ "report": "npm run coverage && codecov -f coverage/coverage-final.json" |
@@ -199,3 +199,3 @@ | ||
size: 0, // maximum response body size in bytes. 0 to disable | ||
session: session.defaultSession, // (/!\ only works when running on Electron) Electron Session object., | ||
session: session.fromPartition('electron-fetch'), // (/!\ only works when running on Electron) Electron Session object., | ||
useElectronNet: true // When running on Electron, defaults to true. On Node.js, defaults to false and cannot be set to true. | ||
@@ -202,0 +202,0 @@ } |
97187