mirror of
https://github.com/S2-/gitlit
synced 2025-08-04 05:10:05 +02:00
update dependencies
This commit is contained in:
45
node_modules/tough-cookie/lib/cookie.js
generated
vendored
45
node_modules/tough-cookie/lib/cookie.js
generated
vendored
@@ -31,7 +31,8 @@
|
||||
'use strict';
|
||||
var net = require('net');
|
||||
var urlParse = require('url').parse;
|
||||
var pubsuffix = require('./pubsuffix');
|
||||
var util = require('util');
|
||||
var pubsuffix = require('./pubsuffix-psl');
|
||||
var Store = require('./store').Store;
|
||||
var MemoryCookieStore = require('./memstore').MemoryCookieStore;
|
||||
var pathMatch = require('./pathMatch').pathMatch;
|
||||
@@ -41,7 +42,7 @@ var punycode;
|
||||
try {
|
||||
punycode = require('punycode');
|
||||
} catch(e) {
|
||||
console.warn("cookie: can't load punycode; won't use punycode for domain normalization");
|
||||
console.warn("tough-cookie: can't load punycode; won't use punycode for domain normalization");
|
||||
}
|
||||
|
||||
// From RFC6265 S4.1.1
|
||||
@@ -756,6 +757,12 @@ Cookie.prototype.inspect = function inspect() {
|
||||
'"';
|
||||
};
|
||||
|
||||
// Use the new custom inspection symbol to add the custom inspect function if
|
||||
// available.
|
||||
if (util.inspect.custom) {
|
||||
Cookie.prototype[util.inspect.custom] = Cookie.prototype.inspect;
|
||||
}
|
||||
|
||||
Cookie.prototype.toJSON = function() {
|
||||
var obj = {};
|
||||
|
||||
@@ -1406,21 +1413,19 @@ CAN_BE_SYNC.forEach(function(method) {
|
||||
CookieJar.prototype[method+'Sync'] = syncWrap(method);
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
CookieJar: CookieJar,
|
||||
Cookie: Cookie,
|
||||
Store: Store,
|
||||
MemoryCookieStore: MemoryCookieStore,
|
||||
parseDate: parseDate,
|
||||
formatDate: formatDate,
|
||||
parse: parse,
|
||||
fromJSON: fromJSON,
|
||||
domainMatch: domainMatch,
|
||||
defaultPath: defaultPath,
|
||||
pathMatch: pathMatch,
|
||||
getPublicSuffix: pubsuffix.getPublicSuffix,
|
||||
cookieCompare: cookieCompare,
|
||||
permuteDomain: require('./permuteDomain').permuteDomain,
|
||||
permutePath: permutePath,
|
||||
canonicalDomain: canonicalDomain
|
||||
};
|
||||
exports.CookieJar = CookieJar;
|
||||
exports.Cookie = Cookie;
|
||||
exports.Store = Store;
|
||||
exports.MemoryCookieStore = MemoryCookieStore;
|
||||
exports.parseDate = parseDate;
|
||||
exports.formatDate = formatDate;
|
||||
exports.parse = parse;
|
||||
exports.fromJSON = fromJSON;
|
||||
exports.domainMatch = domainMatch;
|
||||
exports.defaultPath = defaultPath;
|
||||
exports.pathMatch = pathMatch;
|
||||
exports.getPublicSuffix = pubsuffix.getPublicSuffix;
|
||||
exports.cookieCompare = cookieCompare;
|
||||
exports.permuteDomain = require('./permuteDomain').permuteDomain;
|
||||
exports.permutePath = permutePath;
|
||||
exports.canonicalDomain = canonicalDomain;
|
||||
|
6
node_modules/tough-cookie/lib/memstore.js
generated
vendored
6
node_modules/tough-cookie/lib/memstore.js
generated
vendored
@@ -50,6 +50,12 @@ MemoryCookieStore.prototype.inspect = function() {
|
||||
return "{ idx: "+util.inspect(this.idx, false, 2)+' }';
|
||||
};
|
||||
|
||||
// Use the new custom inspection symbol to add the custom inspect function if
|
||||
// available.
|
||||
if (util.inspect.custom) {
|
||||
MemoryCookieStore.prototype[util.inspect.custom] = MemoryCookieStore.prototype.inspect;
|
||||
}
|
||||
|
||||
MemoryCookieStore.prototype.findCookie = function(domain, path, key, cb) {
|
||||
if (!this.idx[domain]) {
|
||||
return cb(null,undefined);
|
||||
|
2
node_modules/tough-cookie/lib/permuteDomain.js
generated
vendored
2
node_modules/tough-cookie/lib/permuteDomain.js
generated
vendored
@@ -29,7 +29,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
"use strict";
|
||||
var pubsuffix = require('./pubsuffix');
|
||||
var pubsuffix = require('./pubsuffix-psl');
|
||||
|
||||
// Gives the permutation of all possible domainMatch()es of a given domain. The
|
||||
// array is in shortest-to-longest order. Handy for indexing.
|
||||
|
38
node_modules/tough-cookie/lib/pubsuffix-psl.js
generated
vendored
Normal file
38
node_modules/tough-cookie/lib/pubsuffix-psl.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
/*!
|
||||
* Copyright (c) 2018, Salesforce.com, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of Salesforce.com nor the names of its contributors may
|
||||
* be used to endorse or promote products derived from this software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
'use strict';
|
||||
var psl = require('psl');
|
||||
|
||||
function getPublicSuffix(domain) {
|
||||
return psl.get(domain);
|
||||
}
|
||||
|
||||
exports.getPublicSuffix = getPublicSuffix;
|
98
node_modules/tough-cookie/lib/pubsuffix.js
generated
vendored
98
node_modules/tough-cookie/lib/pubsuffix.js
generated
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user