@ms-cloudpack/remote-cache 0.10.11 → 0.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AzureRemoteCacheClient-JTZ6AKHH.js → AzureRemoteCacheClient-AY675HJK.js} +125 -80
- package/dist/{chunk-AAHKL65V.js → chunk-E464X2TG.js} +73 -52
- package/dist/{chunk-EEDK736F.js → chunk-EZBP4ZKN.js} +112 -111
- package/dist/{getCredential-GVAO2BWN.js → getCredential-OSAAVWZC.js} +112 -99
- package/dist/index.js +5 -5
- package/package.json +3 -3
|
@@ -2816,9 +2816,9 @@ var require_package = __commonJS({
|
|
|
2816
2816
|
}
|
|
2817
2817
|
});
|
|
2818
2818
|
|
|
2819
|
-
// ../../node_modules/.store/debug-virtual-
|
|
2819
|
+
// ../../node_modules/.store/debug-virtual-82be10d455/package/src/common.js
|
|
2820
2820
|
var require_common = __commonJS({
|
|
2821
|
-
"../../node_modules/.store/debug-virtual-
|
|
2821
|
+
"../../node_modules/.store/debug-virtual-82be10d455/package/src/common.js"(exports, module) {
|
|
2822
2822
|
function setup(env) {
|
|
2823
2823
|
createDebug.debug = createDebug;
|
|
2824
2824
|
createDebug.default = createDebug;
|
|
@@ -2923,54 +2923,68 @@ var require_common = __commonJS({
|
|
|
2923
2923
|
createDebug.namespaces = namespaces;
|
|
2924
2924
|
createDebug.names = [];
|
|
2925
2925
|
createDebug.skips = [];
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
if (!split[i]) {
|
|
2931
|
-
continue;
|
|
2932
|
-
}
|
|
2933
|
-
namespaces = split[i].replace(/\*/g, ".*?");
|
|
2934
|
-
if (namespaces[0] === "-") {
|
|
2935
|
-
createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
|
|
2926
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
|
|
2927
|
+
for (const ns of split) {
|
|
2928
|
+
if (ns[0] === "-") {
|
|
2929
|
+
createDebug.skips.push(ns.slice(1));
|
|
2936
2930
|
} else {
|
|
2937
|
-
createDebug.names.push(
|
|
2931
|
+
createDebug.names.push(ns);
|
|
2938
2932
|
}
|
|
2939
2933
|
}
|
|
2940
2934
|
}
|
|
2941
2935
|
__name(enable, "enable");
|
|
2936
|
+
function matchesTemplate(search, template) {
|
|
2937
|
+
let searchIndex = 0;
|
|
2938
|
+
let templateIndex = 0;
|
|
2939
|
+
let starIndex = -1;
|
|
2940
|
+
let matchIndex = 0;
|
|
2941
|
+
while (searchIndex < search.length) {
|
|
2942
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
2943
|
+
if (template[templateIndex] === "*") {
|
|
2944
|
+
starIndex = templateIndex;
|
|
2945
|
+
matchIndex = searchIndex;
|
|
2946
|
+
templateIndex++;
|
|
2947
|
+
} else {
|
|
2948
|
+
searchIndex++;
|
|
2949
|
+
templateIndex++;
|
|
2950
|
+
}
|
|
2951
|
+
} else if (starIndex !== -1) {
|
|
2952
|
+
templateIndex = starIndex + 1;
|
|
2953
|
+
matchIndex++;
|
|
2954
|
+
searchIndex = matchIndex;
|
|
2955
|
+
} else {
|
|
2956
|
+
return false;
|
|
2957
|
+
}
|
|
2958
|
+
}
|
|
2959
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
2960
|
+
templateIndex++;
|
|
2961
|
+
}
|
|
2962
|
+
return templateIndex === template.length;
|
|
2963
|
+
}
|
|
2964
|
+
__name(matchesTemplate, "matchesTemplate");
|
|
2942
2965
|
function disable() {
|
|
2943
2966
|
const namespaces = [
|
|
2944
|
-
...createDebug.names
|
|
2945
|
-
...createDebug.skips.map(
|
|
2967
|
+
...createDebug.names,
|
|
2968
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
2946
2969
|
].join(",");
|
|
2947
2970
|
createDebug.enable("");
|
|
2948
2971
|
return namespaces;
|
|
2949
2972
|
}
|
|
2950
2973
|
__name(disable, "disable");
|
|
2951
2974
|
function enabled(name) {
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
}
|
|
2955
|
-
let i;
|
|
2956
|
-
let len;
|
|
2957
|
-
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
|
2958
|
-
if (createDebug.skips[i].test(name)) {
|
|
2975
|
+
for (const skip of createDebug.skips) {
|
|
2976
|
+
if (matchesTemplate(name, skip)) {
|
|
2959
2977
|
return false;
|
|
2960
2978
|
}
|
|
2961
2979
|
}
|
|
2962
|
-
for (
|
|
2963
|
-
if (
|
|
2980
|
+
for (const ns of createDebug.names) {
|
|
2981
|
+
if (matchesTemplate(name, ns)) {
|
|
2964
2982
|
return true;
|
|
2965
2983
|
}
|
|
2966
2984
|
}
|
|
2967
2985
|
return false;
|
|
2968
2986
|
}
|
|
2969
2987
|
__name(enabled, "enabled");
|
|
2970
|
-
function toNamespace(regexp) {
|
|
2971
|
-
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
2972
|
-
}
|
|
2973
|
-
__name(toNamespace, "toNamespace");
|
|
2974
2988
|
function coerce(val) {
|
|
2975
2989
|
if (val instanceof Error) {
|
|
2976
2990
|
return val.stack || val.message;
|
|
@@ -2990,9 +3004,9 @@ var require_common = __commonJS({
|
|
|
2990
3004
|
}
|
|
2991
3005
|
});
|
|
2992
3006
|
|
|
2993
|
-
// ../../node_modules/.store/debug-virtual-
|
|
3007
|
+
// ../../node_modules/.store/debug-virtual-82be10d455/package/src/browser.js
|
|
2994
3008
|
var require_browser = __commonJS({
|
|
2995
|
-
"../../node_modules/.store/debug-virtual-
|
|
3009
|
+
"../../node_modules/.store/debug-virtual-82be10d455/package/src/browser.js"(exports, module) {
|
|
2996
3010
|
exports.formatArgs = formatArgs;
|
|
2997
3011
|
exports.save = save;
|
|
2998
3012
|
exports.load = load;
|
|
@@ -3296,9 +3310,9 @@ var require_package3 = __commonJS({
|
|
|
3296
3310
|
}
|
|
3297
3311
|
});
|
|
3298
3312
|
|
|
3299
|
-
// ../../node_modules/.store/debug-virtual-
|
|
3313
|
+
// ../../node_modules/.store/debug-virtual-82be10d455/package/src/node.js
|
|
3300
3314
|
var require_node = __commonJS({
|
|
3301
|
-
"../../node_modules/.store/debug-virtual-
|
|
3315
|
+
"../../node_modules/.store/debug-virtual-82be10d455/package/src/node.js"(exports, module) {
|
|
3302
3316
|
var tty = __require("tty");
|
|
3303
3317
|
var util = __require("util");
|
|
3304
3318
|
exports.init = init;
|
|
@@ -3477,9 +3491,9 @@ var require_node = __commonJS({
|
|
|
3477
3491
|
}
|
|
3478
3492
|
});
|
|
3479
3493
|
|
|
3480
|
-
// ../../node_modules/.store/debug-virtual-
|
|
3494
|
+
// ../../node_modules/.store/debug-virtual-82be10d455/package/src/index.js
|
|
3481
3495
|
var require_src = __commonJS({
|
|
3482
|
-
"../../node_modules/.store/debug-virtual-
|
|
3496
|
+
"../../node_modules/.store/debug-virtual-82be10d455/package/src/index.js"(exports, module) {
|
|
3483
3497
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
3484
3498
|
module.exports = require_browser();
|
|
3485
3499
|
} else {
|
|
@@ -3488,9 +3502,9 @@ var require_src = __commonJS({
|
|
|
3488
3502
|
}
|
|
3489
3503
|
});
|
|
3490
3504
|
|
|
3491
|
-
// ../../node_modules/.store/agent-base-npm-7.1.
|
|
3505
|
+
// ../../node_modules/.store/agent-base-npm-7.1.3-b2c16e72fb/package/dist/helpers.js
|
|
3492
3506
|
var require_helpers2 = __commonJS({
|
|
3493
|
-
"../../node_modules/.store/agent-base-npm-7.1.
|
|
3507
|
+
"../../node_modules/.store/agent-base-npm-7.1.3-b2c16e72fb/package/dist/helpers.js"(exports) {
|
|
3494
3508
|
"use strict";
|
|
3495
3509
|
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3496
3510
|
if (k2 === void 0) k2 = k;
|
|
@@ -3561,9 +3575,9 @@ var require_helpers2 = __commonJS({
|
|
|
3561
3575
|
}
|
|
3562
3576
|
});
|
|
3563
3577
|
|
|
3564
|
-
// ../../node_modules/.store/agent-base-npm-7.1.
|
|
3578
|
+
// ../../node_modules/.store/agent-base-npm-7.1.3-b2c16e72fb/package/dist/index.js
|
|
3565
3579
|
var require_dist = __commonJS({
|
|
3566
|
-
"../../node_modules/.store/agent-base-npm-7.1.
|
|
3580
|
+
"../../node_modules/.store/agent-base-npm-7.1.3-b2c16e72fb/package/dist/index.js"(exports) {
|
|
3567
3581
|
"use strict";
|
|
3568
3582
|
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3569
3583
|
if (k2 === void 0) k2 = k;
|
|
@@ -3675,7 +3689,11 @@ var require_dist = __commonJS({
|
|
|
3675
3689
|
Promise.resolve().then(() => this.connect(req, connectOpts)).then((socket) => {
|
|
3676
3690
|
this.decrementSockets(name, fakeSocket);
|
|
3677
3691
|
if (socket instanceof http.Agent) {
|
|
3678
|
-
|
|
3692
|
+
try {
|
|
3693
|
+
return socket.addRequest(req, connectOpts);
|
|
3694
|
+
} catch (err) {
|
|
3695
|
+
return cb(err);
|
|
3696
|
+
}
|
|
3679
3697
|
}
|
|
3680
3698
|
this[INTERNAL].currentSocket = socket;
|
|
3681
3699
|
super.createSocket(req, options, cb);
|
|
@@ -3715,9 +3733,9 @@ var require_dist = __commonJS({
|
|
|
3715
3733
|
}
|
|
3716
3734
|
});
|
|
3717
3735
|
|
|
3718
|
-
// ../../node_modules/.store/https-proxy-agent-npm-7.0.
|
|
3736
|
+
// ../../node_modules/.store/https-proxy-agent-npm-7.0.6-27a95c2690/package/dist/parse-proxy-response.js
|
|
3719
3737
|
var require_parse_proxy_response = __commonJS({
|
|
3720
|
-
"../../node_modules/.store/https-proxy-agent-npm-7.0.
|
|
3738
|
+
"../../node_modules/.store/https-proxy-agent-npm-7.0.6-27a95c2690/package/dist/parse-proxy-response.js"(exports) {
|
|
3721
3739
|
"use strict";
|
|
3722
3740
|
var __importDefault2 = exports && exports.__importDefault || function(mod) {
|
|
3723
3741
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -3817,9 +3835,9 @@ var require_parse_proxy_response = __commonJS({
|
|
|
3817
3835
|
}
|
|
3818
3836
|
});
|
|
3819
3837
|
|
|
3820
|
-
// ../../node_modules/.store/https-proxy-agent-npm-7.0.
|
|
3838
|
+
// ../../node_modules/.store/https-proxy-agent-npm-7.0.6-27a95c2690/package/dist/index.js
|
|
3821
3839
|
var require_dist2 = __commonJS({
|
|
3822
|
-
"../../node_modules/.store/https-proxy-agent-npm-7.0.
|
|
3840
|
+
"../../node_modules/.store/https-proxy-agent-npm-7.0.6-27a95c2690/package/dist/index.js"(exports) {
|
|
3823
3841
|
"use strict";
|
|
3824
3842
|
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
3825
3843
|
if (k2 === void 0) k2 = k;
|
|
@@ -3861,6 +3879,15 @@ var require_dist2 = __commonJS({
|
|
|
3861
3879
|
var url_1 = __require("url");
|
|
3862
3880
|
var parse_proxy_response_1 = require_parse_proxy_response();
|
|
3863
3881
|
var debug = (0, debug_1.default)("https-proxy-agent");
|
|
3882
|
+
var setServernameFromNonIpHost = /* @__PURE__ */ __name((options) => {
|
|
3883
|
+
if (options.servername === void 0 && options.host && !net.isIP(options.host)) {
|
|
3884
|
+
return {
|
|
3885
|
+
...options,
|
|
3886
|
+
servername: options.host
|
|
3887
|
+
};
|
|
3888
|
+
}
|
|
3889
|
+
return options;
|
|
3890
|
+
}, "setServernameFromNonIpHost");
|
|
3864
3891
|
var _HttpsProxyAgent = class _HttpsProxyAgent extends agent_base_1.Agent {
|
|
3865
3892
|
constructor(proxy, opts) {
|
|
3866
3893
|
super(opts);
|
|
@@ -3890,11 +3917,7 @@ var require_dist2 = __commonJS({
|
|
|
3890
3917
|
let socket;
|
|
3891
3918
|
if (proxy.protocol === "https:") {
|
|
3892
3919
|
debug("Creating `tls.Socket`: %o", this.connectOpts);
|
|
3893
|
-
|
|
3894
|
-
socket = tls.connect({
|
|
3895
|
-
...this.connectOpts,
|
|
3896
|
-
servername
|
|
3897
|
-
});
|
|
3920
|
+
socket = tls.connect(setServernameFromNonIpHost(this.connectOpts));
|
|
3898
3921
|
} else {
|
|
3899
3922
|
debug("Creating `net.Socket`: %o", this.connectOpts);
|
|
3900
3923
|
socket = net.connect(this.connectOpts);
|
|
@@ -3925,11 +3948,9 @@ var require_dist2 = __commonJS({
|
|
|
3925
3948
|
req.once("socket", resume);
|
|
3926
3949
|
if (opts.secureEndpoint) {
|
|
3927
3950
|
debug("Upgrading socket connection to TLS");
|
|
3928
|
-
const servername = opts.servername || opts.host;
|
|
3929
3951
|
return tls.connect({
|
|
3930
|
-
...omit(opts, "host", "path", "port"),
|
|
3931
|
-
socket
|
|
3932
|
-
servername
|
|
3952
|
+
...omit(setServernameFromNonIpHost(opts), "host", "path", "port"),
|
|
3953
|
+
socket
|
|
3933
3954
|
});
|
|
3934
3955
|
}
|
|
3935
3956
|
return socket;
|