|
@@ -31,6 +31,12 @@ Session.prototype.getCacheSize = deprecate.promisify(Session.prototype.getCacheS
|
|
|
Session.prototype.clearCache = deprecate.promisify(Session.prototype.clearCache)
|
|
|
Session.prototype.clearAuthCache = deprecate.promisify(Session.prototype.clearAuthCache)
|
|
|
Session.prototype.getBlobData = deprecate.promisifyMultiArg(Session.prototype.getBlobData)
|
|
|
+Session.prototype.clearAuthCache = ((clearAuthCache) => function (...args) {
|
|
|
+ if (args.length > 0) {
|
|
|
+ deprecate.log(`The 'options' argument to 'clearAuthCache' is deprecated. Beginning with Electron 7, clearAuthCache will clear the entire auth cache unconditionally.`)
|
|
|
+ }
|
|
|
+ return clearAuthCache.apply(this, args)
|
|
|
+})(Session.prototype.clearAuthCache)
|
|
|
|
|
|
Cookies.prototype.flushStore = deprecate.promisify(Cookies.prototype.flushStore)
|
|
|
Cookies.prototype.get = deprecate.promisify(Cookies.prototype.get)
|