@ms-cloudpack/remote-cache 0.6.4 → 0.6.5
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-NEV2XCF7.js → AzureRemoteCacheClient-NBBUAAXL.js} +3 -4
- package/dist/{ReporterDecorator-SNBYNGOT.js → ReporterDecorator-YCOIU5LI.js} +2 -3
- package/dist/{chunk-R2VDVRDZ.js → chunk-5BUSQ7SW.js} +1 -1
- package/dist/{chunk-4P62L7ZZ.js → chunk-OPD65OLQ.js} +823 -769
- package/dist/{chunk-KFSFZYG6.js → chunk-YAIY33BG.js} +17 -19
- package/dist/{getCredential-DHB4UIE2.js → getCredential-FIEDCLGJ.js} +16 -18
- package/dist/{getListOfBlobs-E5OFG2MF.js → getListOfBlobs-VRDJ4A5S.js} +3 -4
- package/dist/index.js +71 -22
- package/lib/error/RemoteCacheError.d.ts +10 -0
- package/lib/error/isRestError.d.ts +3 -0
- package/lib/error/transformError.d.ts +7 -0
- package/lib/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/chunk-TQLTL4XO.js +0 -65
|
@@ -1,210 +1,655 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined")
|
|
12
|
+
return require.apply(this, arguments);
|
|
13
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
14
|
+
});
|
|
15
|
+
var __esm = (fn, res) => function __init() {
|
|
16
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
17
|
+
};
|
|
18
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
19
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
20
|
+
};
|
|
21
|
+
var __export = (target, all) => {
|
|
22
|
+
for (var name in all)
|
|
23
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
24
|
+
};
|
|
25
|
+
var __copyProps = (to, from, except, desc) => {
|
|
26
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
27
|
+
for (let key of __getOwnPropNames(from))
|
|
28
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
29
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
30
|
+
}
|
|
31
|
+
return to;
|
|
32
|
+
};
|
|
33
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
34
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
35
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
36
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
37
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
38
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
39
|
+
mod
|
|
40
|
+
));
|
|
41
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
9
42
|
|
|
10
|
-
// ../../
|
|
11
|
-
|
|
12
|
-
|
|
43
|
+
// ../../scripts/esbuildCjsShims.js
|
|
44
|
+
import { createRequire } from "node:module";
|
|
45
|
+
import path from "node:path";
|
|
46
|
+
import url from "node:url";
|
|
47
|
+
var init_esbuildCjsShims = __esm({
|
|
48
|
+
"../../scripts/esbuildCjsShims.js"() {
|
|
13
49
|
"use strict";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
50
|
+
globalThis.require = createRequire(import.meta.url);
|
|
51
|
+
globalThis.__filename = url.fileURLToPath(import.meta.url);
|
|
52
|
+
globalThis.__dirname = path.dirname(__filename);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
// ../../node_modules/.store/tslib-npm-2.6.2-4fc8c068d9/package/tslib.es6.mjs
|
|
57
|
+
var tslib_es6_exports = {};
|
|
58
|
+
__export(tslib_es6_exports, {
|
|
59
|
+
__addDisposableResource: () => __addDisposableResource,
|
|
60
|
+
__assign: () => __assign,
|
|
61
|
+
__asyncDelegator: () => __asyncDelegator,
|
|
62
|
+
__asyncGenerator: () => __asyncGenerator,
|
|
63
|
+
__asyncValues: () => __asyncValues,
|
|
64
|
+
__await: () => __await,
|
|
65
|
+
__awaiter: () => __awaiter,
|
|
66
|
+
__classPrivateFieldGet: () => __classPrivateFieldGet,
|
|
67
|
+
__classPrivateFieldIn: () => __classPrivateFieldIn,
|
|
68
|
+
__classPrivateFieldSet: () => __classPrivateFieldSet,
|
|
69
|
+
__createBinding: () => __createBinding,
|
|
70
|
+
__decorate: () => __decorate,
|
|
71
|
+
__disposeResources: () => __disposeResources,
|
|
72
|
+
__esDecorate: () => __esDecorate,
|
|
73
|
+
__exportStar: () => __exportStar,
|
|
74
|
+
__extends: () => __extends,
|
|
75
|
+
__generator: () => __generator,
|
|
76
|
+
__importDefault: () => __importDefault,
|
|
77
|
+
__importStar: () => __importStar,
|
|
78
|
+
__makeTemplateObject: () => __makeTemplateObject,
|
|
79
|
+
__metadata: () => __metadata,
|
|
80
|
+
__param: () => __param,
|
|
81
|
+
__propKey: () => __propKey,
|
|
82
|
+
__read: () => __read,
|
|
83
|
+
__rest: () => __rest,
|
|
84
|
+
__runInitializers: () => __runInitializers,
|
|
85
|
+
__setFunctionName: () => __setFunctionName,
|
|
86
|
+
__spread: () => __spread,
|
|
87
|
+
__spreadArray: () => __spreadArray,
|
|
88
|
+
__spreadArrays: () => __spreadArrays,
|
|
89
|
+
__values: () => __values,
|
|
90
|
+
default: () => tslib_es6_default
|
|
91
|
+
});
|
|
92
|
+
function __extends(d, b) {
|
|
93
|
+
if (typeof b !== "function" && b !== null)
|
|
94
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
95
|
+
extendStatics(d, b);
|
|
96
|
+
function __() {
|
|
97
|
+
this.constructor = d;
|
|
98
|
+
}
|
|
99
|
+
__name(__, "__");
|
|
100
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
101
|
+
}
|
|
102
|
+
function __rest(s, e) {
|
|
103
|
+
var t = {};
|
|
104
|
+
for (var p in s)
|
|
105
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
106
|
+
t[p] = s[p];
|
|
107
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
108
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
109
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
110
|
+
t[p[i]] = s[p[i]];
|
|
25
111
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
112
|
+
return t;
|
|
113
|
+
}
|
|
114
|
+
function __decorate(decorators, target, key, desc) {
|
|
115
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
116
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
117
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
118
|
+
else
|
|
119
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
120
|
+
if (d = decorators[i])
|
|
121
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
122
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
123
|
+
}
|
|
124
|
+
function __param(paramIndex, decorator) {
|
|
125
|
+
return function(target, key) {
|
|
126
|
+
decorator(target, key, paramIndex);
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
130
|
+
function accept(f) {
|
|
131
|
+
if (f !== void 0 && typeof f !== "function")
|
|
132
|
+
throw new TypeError("Function expected");
|
|
133
|
+
return f;
|
|
134
|
+
}
|
|
135
|
+
__name(accept, "accept");
|
|
136
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
137
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
138
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
139
|
+
var _, done = false;
|
|
140
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
141
|
+
var context = {};
|
|
142
|
+
for (var p in contextIn)
|
|
143
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
144
|
+
for (var p in contextIn.access)
|
|
145
|
+
context.access[p] = contextIn.access[p];
|
|
146
|
+
context.addInitializer = function(f) {
|
|
147
|
+
if (done)
|
|
148
|
+
throw new TypeError("Cannot add initializers after decoration has completed");
|
|
149
|
+
extraInitializers.push(accept(f || null));
|
|
150
|
+
};
|
|
151
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
152
|
+
if (kind === "accessor") {
|
|
153
|
+
if (result === void 0)
|
|
154
|
+
continue;
|
|
155
|
+
if (result === null || typeof result !== "object")
|
|
156
|
+
throw new TypeError("Object expected");
|
|
157
|
+
if (_ = accept(result.get))
|
|
158
|
+
descriptor.get = _;
|
|
159
|
+
if (_ = accept(result.set))
|
|
160
|
+
descriptor.set = _;
|
|
161
|
+
if (_ = accept(result.init))
|
|
162
|
+
initializers.unshift(_);
|
|
163
|
+
} else if (_ = accept(result)) {
|
|
164
|
+
if (kind === "field")
|
|
165
|
+
initializers.unshift(_);
|
|
166
|
+
else
|
|
167
|
+
descriptor[key] = _;
|
|
34
168
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
169
|
+
}
|
|
170
|
+
if (target)
|
|
171
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
172
|
+
done = true;
|
|
173
|
+
}
|
|
174
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
175
|
+
var useValue = arguments.length > 2;
|
|
176
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
177
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
178
|
+
}
|
|
179
|
+
return useValue ? value : void 0;
|
|
180
|
+
}
|
|
181
|
+
function __propKey(x) {
|
|
182
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
183
|
+
}
|
|
184
|
+
function __setFunctionName(f, name, prefix) {
|
|
185
|
+
if (typeof name === "symbol")
|
|
186
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
187
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
188
|
+
}
|
|
189
|
+
function __metadata(metadataKey, metadataValue) {
|
|
190
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
191
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
192
|
+
}
|
|
193
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
194
|
+
function adopt(value) {
|
|
195
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
196
|
+
resolve(value);
|
|
42
197
|
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
skippedNamespaces.push(new RegExp(`^${ns.substr(1)}$`));
|
|
52
|
-
} else {
|
|
53
|
-
enabledNamespaces.push(new RegExp(`^${ns}$`));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
for (const instance of debuggers) {
|
|
57
|
-
instance.enabled = enabled(instance.namespace);
|
|
198
|
+
}
|
|
199
|
+
__name(adopt, "adopt");
|
|
200
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
201
|
+
function fulfilled(value) {
|
|
202
|
+
try {
|
|
203
|
+
step(generator.next(value));
|
|
204
|
+
} catch (e) {
|
|
205
|
+
reject(e);
|
|
58
206
|
}
|
|
59
207
|
}
|
|
60
|
-
__name(
|
|
61
|
-
function
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
if (skipped.test(namespace)) {
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
for (const enabledNamespace of enabledNamespaces) {
|
|
71
|
-
if (enabledNamespace.test(namespace)) {
|
|
72
|
-
return true;
|
|
73
|
-
}
|
|
208
|
+
__name(fulfilled, "fulfilled");
|
|
209
|
+
function rejected(value) {
|
|
210
|
+
try {
|
|
211
|
+
step(generator["throw"](value));
|
|
212
|
+
} catch (e) {
|
|
213
|
+
reject(e);
|
|
74
214
|
}
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
__name(enabled, "enabled");
|
|
78
|
-
function disable() {
|
|
79
|
-
const result = enabledString || "";
|
|
80
|
-
enable("");
|
|
81
|
-
return result;
|
|
82
215
|
}
|
|
83
|
-
__name(
|
|
84
|
-
function
|
|
85
|
-
|
|
86
|
-
enabled: enabled(namespace),
|
|
87
|
-
destroy,
|
|
88
|
-
log: debugObj.log,
|
|
89
|
-
namespace,
|
|
90
|
-
extend
|
|
91
|
-
});
|
|
92
|
-
function debug2(...args) {
|
|
93
|
-
if (!newDebugger.enabled) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
if (args.length > 0) {
|
|
97
|
-
args[0] = `${namespace} ${args[0]}`;
|
|
98
|
-
}
|
|
99
|
-
newDebugger.log(...args);
|
|
100
|
-
}
|
|
101
|
-
__name(debug2, "debug");
|
|
102
|
-
debuggers.push(newDebugger);
|
|
103
|
-
return newDebugger;
|
|
216
|
+
__name(rejected, "rejected");
|
|
217
|
+
function step(result) {
|
|
218
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
104
219
|
}
|
|
105
|
-
__name(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
var debug = debugObj;
|
|
122
|
-
var registeredLoggers = /* @__PURE__ */ new Set();
|
|
123
|
-
var logLevelFromEnv = typeof process !== "undefined" && process.env && process.env.AZURE_LOG_LEVEL || void 0;
|
|
124
|
-
var azureLogLevel;
|
|
125
|
-
var AzureLogger = debug("azure");
|
|
126
|
-
AzureLogger.log = (...args) => {
|
|
127
|
-
debug.log(...args);
|
|
220
|
+
__name(step, "step");
|
|
221
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
function __generator(thisArg, body) {
|
|
225
|
+
var _ = { label: 0, sent: function() {
|
|
226
|
+
if (t[0] & 1)
|
|
227
|
+
throw t[1];
|
|
228
|
+
return t[1];
|
|
229
|
+
}, trys: [], ops: [] }, f, y, t, g;
|
|
230
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
231
|
+
return this;
|
|
232
|
+
}), g;
|
|
233
|
+
function verb(n) {
|
|
234
|
+
return function(v) {
|
|
235
|
+
return step([n, v]);
|
|
128
236
|
};
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
237
|
+
}
|
|
238
|
+
__name(verb, "verb");
|
|
239
|
+
function step(op) {
|
|
240
|
+
if (f)
|
|
241
|
+
throw new TypeError("Generator is already executing.");
|
|
242
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
243
|
+
try {
|
|
244
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
245
|
+
return t;
|
|
246
|
+
if (y = 0, t)
|
|
247
|
+
op = [op[0] & 2, t.value];
|
|
248
|
+
switch (op[0]) {
|
|
249
|
+
case 0:
|
|
250
|
+
case 1:
|
|
251
|
+
t = op;
|
|
252
|
+
break;
|
|
253
|
+
case 4:
|
|
254
|
+
_.label++;
|
|
255
|
+
return { value: op[1], done: false };
|
|
256
|
+
case 5:
|
|
257
|
+
_.label++;
|
|
258
|
+
y = op[1];
|
|
259
|
+
op = [0];
|
|
260
|
+
continue;
|
|
261
|
+
case 7:
|
|
262
|
+
op = _.ops.pop();
|
|
263
|
+
_.trys.pop();
|
|
264
|
+
continue;
|
|
265
|
+
default:
|
|
266
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
267
|
+
_ = 0;
|
|
268
|
+
continue;
|
|
269
|
+
}
|
|
270
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
271
|
+
_.label = op[1];
|
|
272
|
+
break;
|
|
273
|
+
}
|
|
274
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
275
|
+
_.label = t[1];
|
|
276
|
+
t = op;
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
if (t && _.label < t[2]) {
|
|
280
|
+
_.label = t[2];
|
|
281
|
+
_.ops.push(op);
|
|
282
|
+
break;
|
|
283
|
+
}
|
|
284
|
+
if (t[2])
|
|
285
|
+
_.ops.pop();
|
|
286
|
+
_.trys.pop();
|
|
287
|
+
continue;
|
|
146
288
|
}
|
|
289
|
+
op = body.call(thisArg, _);
|
|
290
|
+
} catch (e) {
|
|
291
|
+
op = [6, e];
|
|
292
|
+
y = 0;
|
|
293
|
+
} finally {
|
|
294
|
+
f = t = 0;
|
|
295
|
+
}
|
|
296
|
+
if (op[0] & 5)
|
|
297
|
+
throw op[1];
|
|
298
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
299
|
+
}
|
|
300
|
+
__name(step, "step");
|
|
301
|
+
}
|
|
302
|
+
function __exportStar(m, o) {
|
|
303
|
+
for (var p in m)
|
|
304
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
305
|
+
__createBinding(o, m, p);
|
|
306
|
+
}
|
|
307
|
+
function __values(o) {
|
|
308
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
309
|
+
if (m)
|
|
310
|
+
return m.call(o);
|
|
311
|
+
if (o && typeof o.length === "number")
|
|
312
|
+
return {
|
|
313
|
+
next: function() {
|
|
314
|
+
if (o && i >= o.length)
|
|
315
|
+
o = void 0;
|
|
316
|
+
return { value: o && o[i++], done: !o };
|
|
147
317
|
}
|
|
148
|
-
debug.enable(enabledNamespaces2.join(","));
|
|
149
|
-
}
|
|
150
|
-
__name(setLogLevel, "setLogLevel");
|
|
151
|
-
function getLogLevel() {
|
|
152
|
-
return azureLogLevel;
|
|
153
|
-
}
|
|
154
|
-
__name(getLogLevel, "getLogLevel");
|
|
155
|
-
var levelMap = {
|
|
156
|
-
verbose: 400,
|
|
157
|
-
info: 300,
|
|
158
|
-
warning: 200,
|
|
159
|
-
error: 100
|
|
160
318
|
};
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
319
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
320
|
+
}
|
|
321
|
+
function __read(o, n) {
|
|
322
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
323
|
+
if (!m)
|
|
324
|
+
return o;
|
|
325
|
+
var i = m.call(o), r, ar = [], e;
|
|
326
|
+
try {
|
|
327
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
328
|
+
ar.push(r.value);
|
|
329
|
+
} catch (error) {
|
|
330
|
+
e = { error };
|
|
331
|
+
} finally {
|
|
332
|
+
try {
|
|
333
|
+
if (r && !r.done && (m = i["return"]))
|
|
334
|
+
m.call(i);
|
|
335
|
+
} finally {
|
|
336
|
+
if (e)
|
|
337
|
+
throw e.error;
|
|
176
338
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
339
|
+
}
|
|
340
|
+
return ar;
|
|
341
|
+
}
|
|
342
|
+
function __spread() {
|
|
343
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
344
|
+
ar = ar.concat(__read(arguments[i]));
|
|
345
|
+
return ar;
|
|
346
|
+
}
|
|
347
|
+
function __spreadArrays() {
|
|
348
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
349
|
+
s += arguments[i].length;
|
|
350
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
351
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
352
|
+
r[k] = a[j];
|
|
353
|
+
return r;
|
|
354
|
+
}
|
|
355
|
+
function __spreadArray(to, from, pack) {
|
|
356
|
+
if (pack || arguments.length === 2)
|
|
357
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
358
|
+
if (ar || !(i in from)) {
|
|
359
|
+
if (!ar)
|
|
360
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
361
|
+
ar[i] = from[i];
|
|
186
362
|
}
|
|
187
|
-
registeredLoggers.add(logger);
|
|
188
|
-
return logger;
|
|
189
|
-
}
|
|
190
|
-
__name(createLogger, "createLogger");
|
|
191
|
-
function shouldEnable(logger) {
|
|
192
|
-
return Boolean(azureLogLevel && levelMap[logger.level] <= levelMap[azureLogLevel]);
|
|
193
363
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
364
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
365
|
+
}
|
|
366
|
+
function __await(v) {
|
|
367
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
368
|
+
}
|
|
369
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
370
|
+
if (!Symbol.asyncIterator)
|
|
371
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
372
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
373
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
374
|
+
return this;
|
|
375
|
+
}, i;
|
|
376
|
+
function verb(n) {
|
|
377
|
+
if (g[n])
|
|
378
|
+
i[n] = function(v) {
|
|
379
|
+
return new Promise(function(a, b) {
|
|
380
|
+
q.push([n, v, a, b]) > 1 || resume(n, v);
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
__name(verb, "verb");
|
|
385
|
+
function resume(n, v) {
|
|
386
|
+
try {
|
|
387
|
+
step(g[n](v));
|
|
388
|
+
} catch (e) {
|
|
389
|
+
settle(q[0][3], e);
|
|
197
390
|
}
|
|
198
|
-
__name(isAzureLogLevel, "isAzureLogLevel");
|
|
199
|
-
exports.AzureLogger = AzureLogger;
|
|
200
|
-
exports.createClientLogger = createClientLogger;
|
|
201
|
-
exports.getLogLevel = getLogLevel;
|
|
202
|
-
exports.setLogLevel = setLogLevel;
|
|
203
391
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
392
|
+
__name(resume, "resume");
|
|
393
|
+
function step(r) {
|
|
394
|
+
r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
|
|
395
|
+
}
|
|
396
|
+
__name(step, "step");
|
|
397
|
+
function fulfill(value) {
|
|
398
|
+
resume("next", value);
|
|
399
|
+
}
|
|
400
|
+
__name(fulfill, "fulfill");
|
|
401
|
+
function reject(value) {
|
|
402
|
+
resume("throw", value);
|
|
403
|
+
}
|
|
404
|
+
__name(reject, "reject");
|
|
405
|
+
function settle(f, v) {
|
|
406
|
+
if (f(v), q.shift(), q.length)
|
|
407
|
+
resume(q[0][0], q[0][1]);
|
|
408
|
+
}
|
|
409
|
+
__name(settle, "settle");
|
|
410
|
+
}
|
|
411
|
+
function __asyncDelegator(o) {
|
|
412
|
+
var i, p;
|
|
413
|
+
return i = {}, verb("next"), verb("throw", function(e) {
|
|
414
|
+
throw e;
|
|
415
|
+
}), verb("return"), i[Symbol.iterator] = function() {
|
|
416
|
+
return this;
|
|
417
|
+
}, i;
|
|
418
|
+
function verb(n, f) {
|
|
419
|
+
i[n] = o[n] ? function(v) {
|
|
420
|
+
return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v;
|
|
421
|
+
} : f;
|
|
422
|
+
}
|
|
423
|
+
__name(verb, "verb");
|
|
424
|
+
}
|
|
425
|
+
function __asyncValues(o) {
|
|
426
|
+
if (!Symbol.asyncIterator)
|
|
427
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
428
|
+
var m = o[Symbol.asyncIterator], i;
|
|
429
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
430
|
+
return this;
|
|
431
|
+
}, i);
|
|
432
|
+
function verb(n) {
|
|
433
|
+
i[n] = o[n] && function(v) {
|
|
434
|
+
return new Promise(function(resolve, reject) {
|
|
435
|
+
v = o[n](v), settle(resolve, reject, v.done, v.value);
|
|
436
|
+
});
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
__name(verb, "verb");
|
|
440
|
+
function settle(resolve, reject, d, v) {
|
|
441
|
+
Promise.resolve(v).then(function(v2) {
|
|
442
|
+
resolve({ value: v2, done: d });
|
|
443
|
+
}, reject);
|
|
444
|
+
}
|
|
445
|
+
__name(settle, "settle");
|
|
446
|
+
}
|
|
447
|
+
function __makeTemplateObject(cooked, raw) {
|
|
448
|
+
if (Object.defineProperty) {
|
|
449
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
450
|
+
} else {
|
|
451
|
+
cooked.raw = raw;
|
|
452
|
+
}
|
|
453
|
+
return cooked;
|
|
454
|
+
}
|
|
455
|
+
function __importStar(mod) {
|
|
456
|
+
if (mod && mod.__esModule)
|
|
457
|
+
return mod;
|
|
458
|
+
var result = {};
|
|
459
|
+
if (mod != null) {
|
|
460
|
+
for (var k in mod)
|
|
461
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
462
|
+
__createBinding(result, mod, k);
|
|
463
|
+
}
|
|
464
|
+
__setModuleDefault(result, mod);
|
|
465
|
+
return result;
|
|
466
|
+
}
|
|
467
|
+
function __importDefault(mod) {
|
|
468
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
469
|
+
}
|
|
470
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
471
|
+
if (kind === "a" && !f)
|
|
472
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
473
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
474
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
475
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
476
|
+
}
|
|
477
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
478
|
+
if (kind === "m")
|
|
479
|
+
throw new TypeError("Private method is not writable");
|
|
480
|
+
if (kind === "a" && !f)
|
|
481
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
482
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
483
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
484
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
485
|
+
}
|
|
486
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
487
|
+
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
|
|
488
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
489
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
490
|
+
}
|
|
491
|
+
function __addDisposableResource(env, value, async) {
|
|
492
|
+
if (value !== null && value !== void 0) {
|
|
493
|
+
if (typeof value !== "object" && typeof value !== "function")
|
|
494
|
+
throw new TypeError("Object expected.");
|
|
495
|
+
var dispose;
|
|
496
|
+
if (async) {
|
|
497
|
+
if (!Symbol.asyncDispose)
|
|
498
|
+
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
499
|
+
dispose = value[Symbol.asyncDispose];
|
|
500
|
+
}
|
|
501
|
+
if (dispose === void 0) {
|
|
502
|
+
if (!Symbol.dispose)
|
|
503
|
+
throw new TypeError("Symbol.dispose is not defined.");
|
|
504
|
+
dispose = value[Symbol.dispose];
|
|
505
|
+
}
|
|
506
|
+
if (typeof dispose !== "function")
|
|
507
|
+
throw new TypeError("Object not disposable.");
|
|
508
|
+
env.stack.push({ value, dispose, async });
|
|
509
|
+
} else if (async) {
|
|
510
|
+
env.stack.push({ async: true });
|
|
511
|
+
}
|
|
512
|
+
return value;
|
|
513
|
+
}
|
|
514
|
+
function __disposeResources(env) {
|
|
515
|
+
function fail(e) {
|
|
516
|
+
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
517
|
+
env.hasError = true;
|
|
518
|
+
}
|
|
519
|
+
__name(fail, "fail");
|
|
520
|
+
function next() {
|
|
521
|
+
while (env.stack.length) {
|
|
522
|
+
var rec = env.stack.pop();
|
|
523
|
+
try {
|
|
524
|
+
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
525
|
+
if (rec.async)
|
|
526
|
+
return Promise.resolve(result).then(next, function(e) {
|
|
527
|
+
fail(e);
|
|
528
|
+
return next();
|
|
529
|
+
});
|
|
530
|
+
} catch (e) {
|
|
531
|
+
fail(e);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
if (env.hasError)
|
|
535
|
+
throw env.error;
|
|
536
|
+
}
|
|
537
|
+
__name(next, "next");
|
|
538
|
+
return next();
|
|
539
|
+
}
|
|
540
|
+
var extendStatics, __assign, __createBinding, __setModuleDefault, _SuppressedError, tslib_es6_default;
|
|
541
|
+
var init_tslib_es6 = __esm({
|
|
542
|
+
"../../node_modules/.store/tslib-npm-2.6.2-4fc8c068d9/package/tslib.es6.mjs"() {
|
|
543
|
+
init_esbuildCjsShims();
|
|
544
|
+
extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
545
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
546
|
+
d2.__proto__ = b2;
|
|
547
|
+
} || function(d2, b2) {
|
|
548
|
+
for (var p in b2)
|
|
549
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
550
|
+
d2[p] = b2[p];
|
|
551
|
+
};
|
|
552
|
+
return extendStatics(d, b);
|
|
553
|
+
}, "extendStatics");
|
|
554
|
+
__name(__extends, "__extends");
|
|
555
|
+
__assign = /* @__PURE__ */ __name(function() {
|
|
556
|
+
__assign = Object.assign || /* @__PURE__ */ __name(function __assign2(t) {
|
|
557
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
558
|
+
s = arguments[i];
|
|
559
|
+
for (var p in s)
|
|
560
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
561
|
+
t[p] = s[p];
|
|
562
|
+
}
|
|
563
|
+
return t;
|
|
564
|
+
}, "__assign");
|
|
565
|
+
return __assign.apply(this, arguments);
|
|
566
|
+
}, "__assign");
|
|
567
|
+
__name(__rest, "__rest");
|
|
568
|
+
__name(__decorate, "__decorate");
|
|
569
|
+
__name(__param, "__param");
|
|
570
|
+
__name(__esDecorate, "__esDecorate");
|
|
571
|
+
__name(__runInitializers, "__runInitializers");
|
|
572
|
+
__name(__propKey, "__propKey");
|
|
573
|
+
__name(__setFunctionName, "__setFunctionName");
|
|
574
|
+
__name(__metadata, "__metadata");
|
|
575
|
+
__name(__awaiter, "__awaiter");
|
|
576
|
+
__name(__generator, "__generator");
|
|
577
|
+
__createBinding = Object.create ? function(o, m, k, k2) {
|
|
578
|
+
if (k2 === void 0)
|
|
579
|
+
k2 = k;
|
|
580
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
581
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
582
|
+
desc = { enumerable: true, get: function() {
|
|
583
|
+
return m[k];
|
|
584
|
+
} };
|
|
585
|
+
}
|
|
586
|
+
Object.defineProperty(o, k2, desc);
|
|
587
|
+
} : function(o, m, k, k2) {
|
|
588
|
+
if (k2 === void 0)
|
|
589
|
+
k2 = k;
|
|
590
|
+
o[k2] = m[k];
|
|
591
|
+
};
|
|
592
|
+
__name(__exportStar, "__exportStar");
|
|
593
|
+
__name(__values, "__values");
|
|
594
|
+
__name(__read, "__read");
|
|
595
|
+
__name(__spread, "__spread");
|
|
596
|
+
__name(__spreadArrays, "__spreadArrays");
|
|
597
|
+
__name(__spreadArray, "__spreadArray");
|
|
598
|
+
__name(__await, "__await");
|
|
599
|
+
__name(__asyncGenerator, "__asyncGenerator");
|
|
600
|
+
__name(__asyncDelegator, "__asyncDelegator");
|
|
601
|
+
__name(__asyncValues, "__asyncValues");
|
|
602
|
+
__name(__makeTemplateObject, "__makeTemplateObject");
|
|
603
|
+
__setModuleDefault = Object.create ? function(o, v) {
|
|
604
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
605
|
+
} : function(o, v) {
|
|
606
|
+
o["default"] = v;
|
|
607
|
+
};
|
|
608
|
+
__name(__importStar, "__importStar");
|
|
609
|
+
__name(__importDefault, "__importDefault");
|
|
610
|
+
__name(__classPrivateFieldGet, "__classPrivateFieldGet");
|
|
611
|
+
__name(__classPrivateFieldSet, "__classPrivateFieldSet");
|
|
612
|
+
__name(__classPrivateFieldIn, "__classPrivateFieldIn");
|
|
613
|
+
__name(__addDisposableResource, "__addDisposableResource");
|
|
614
|
+
_SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
615
|
+
var e = new Error(message);
|
|
616
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
617
|
+
};
|
|
618
|
+
__name(__disposeResources, "__disposeResources");
|
|
619
|
+
tslib_es6_default = {
|
|
620
|
+
__extends,
|
|
621
|
+
__assign,
|
|
622
|
+
__rest,
|
|
623
|
+
__decorate,
|
|
624
|
+
__param,
|
|
625
|
+
__metadata,
|
|
626
|
+
__awaiter,
|
|
627
|
+
__generator,
|
|
628
|
+
__createBinding,
|
|
629
|
+
__exportStar,
|
|
630
|
+
__values,
|
|
631
|
+
__read,
|
|
632
|
+
__spread,
|
|
633
|
+
__spreadArrays,
|
|
634
|
+
__spreadArray,
|
|
635
|
+
__await,
|
|
636
|
+
__asyncGenerator,
|
|
637
|
+
__asyncDelegator,
|
|
638
|
+
__asyncValues,
|
|
639
|
+
__makeTemplateObject,
|
|
640
|
+
__importStar,
|
|
641
|
+
__importDefault,
|
|
642
|
+
__classPrivateFieldGet,
|
|
643
|
+
__classPrivateFieldSet,
|
|
644
|
+
__classPrivateFieldIn,
|
|
645
|
+
__addDisposableResource,
|
|
646
|
+
__disposeResources
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
|
|
651
|
+
// ../../node_modules/.store/@azure-abort-controller-npm-1.1.0-5b4e309629/package/dist/index.js
|
|
652
|
+
var require_dist = __commonJS({
|
|
208
653
|
"../../node_modules/.store/@azure-abort-controller-npm-1.1.0-5b4e309629/package/dist/index.js"(exports) {
|
|
209
654
|
"use strict";
|
|
210
655
|
init_esbuildCjsShims();
|
|
@@ -356,11 +801,11 @@ var require_dist2 = __commonJS({
|
|
|
356
801
|
});
|
|
357
802
|
|
|
358
803
|
// ../../node_modules/.store/@azure-core-util-npm-1.6.1-320643eba9/package/dist/index.js
|
|
359
|
-
var
|
|
804
|
+
var require_dist2 = __commonJS({
|
|
360
805
|
"../../node_modules/.store/@azure-core-util-npm-1.6.1-320643eba9/package/dist/index.js"(exports) {
|
|
361
806
|
"use strict";
|
|
362
807
|
init_esbuildCjsShims();
|
|
363
|
-
var abortController =
|
|
808
|
+
var abortController = require_dist();
|
|
364
809
|
var crypto4 = __require("crypto");
|
|
365
810
|
function createAbortablePromise(buildPromise, options) {
|
|
366
811
|
const { cleanupBeforeAbort, abortSignal, abortErrorMsg } = options !== null && options !== void 0 ? options : {};
|
|
@@ -563,598 +1008,199 @@ var require_dist3 = __commonJS({
|
|
|
563
1008
|
}
|
|
564
1009
|
});
|
|
565
1010
|
|
|
566
|
-
// ../../node_modules/.store
|
|
567
|
-
var
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
__classPrivateFieldGet: () => __classPrivateFieldGet,
|
|
577
|
-
__classPrivateFieldIn: () => __classPrivateFieldIn,
|
|
578
|
-
__classPrivateFieldSet: () => __classPrivateFieldSet,
|
|
579
|
-
__createBinding: () => __createBinding,
|
|
580
|
-
__decorate: () => __decorate,
|
|
581
|
-
__disposeResources: () => __disposeResources,
|
|
582
|
-
__esDecorate: () => __esDecorate,
|
|
583
|
-
__exportStar: () => __exportStar,
|
|
584
|
-
__extends: () => __extends,
|
|
585
|
-
__generator: () => __generator,
|
|
586
|
-
__importDefault: () => __importDefault,
|
|
587
|
-
__importStar: () => __importStar,
|
|
588
|
-
__makeTemplateObject: () => __makeTemplateObject,
|
|
589
|
-
__metadata: () => __metadata,
|
|
590
|
-
__param: () => __param,
|
|
591
|
-
__propKey: () => __propKey,
|
|
592
|
-
__read: () => __read,
|
|
593
|
-
__rest: () => __rest,
|
|
594
|
-
__runInitializers: () => __runInitializers,
|
|
595
|
-
__setFunctionName: () => __setFunctionName,
|
|
596
|
-
__spread: () => __spread,
|
|
597
|
-
__spreadArray: () => __spreadArray,
|
|
598
|
-
__spreadArrays: () => __spreadArrays,
|
|
599
|
-
__values: () => __values,
|
|
600
|
-
default: () => tslib_es6_default
|
|
601
|
-
});
|
|
602
|
-
function __extends(d, b) {
|
|
603
|
-
if (typeof b !== "function" && b !== null)
|
|
604
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
605
|
-
extendStatics(d, b);
|
|
606
|
-
function __() {
|
|
607
|
-
this.constructor = d;
|
|
608
|
-
}
|
|
609
|
-
__name(__, "__");
|
|
610
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
611
|
-
}
|
|
612
|
-
function __rest(s, e) {
|
|
613
|
-
var t = {};
|
|
614
|
-
for (var p in s)
|
|
615
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
616
|
-
t[p] = s[p];
|
|
617
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
618
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
619
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
620
|
-
t[p[i]] = s[p[i]];
|
|
621
|
-
}
|
|
622
|
-
return t;
|
|
623
|
-
}
|
|
624
|
-
function __decorate(decorators, target, key, desc) {
|
|
625
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
626
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
627
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
628
|
-
else
|
|
629
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
630
|
-
if (d = decorators[i])
|
|
631
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
632
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
633
|
-
}
|
|
634
|
-
function __param(paramIndex, decorator) {
|
|
635
|
-
return function(target, key) {
|
|
636
|
-
decorator(target, key, paramIndex);
|
|
637
|
-
};
|
|
638
|
-
}
|
|
639
|
-
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
640
|
-
function accept(f) {
|
|
641
|
-
if (f !== void 0 && typeof f !== "function")
|
|
642
|
-
throw new TypeError("Function expected");
|
|
643
|
-
return f;
|
|
644
|
-
}
|
|
645
|
-
__name(accept, "accept");
|
|
646
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
647
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
648
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
649
|
-
var _, done = false;
|
|
650
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
651
|
-
var context = {};
|
|
652
|
-
for (var p in contextIn)
|
|
653
|
-
context[p] = p === "access" ? {} : contextIn[p];
|
|
654
|
-
for (var p in contextIn.access)
|
|
655
|
-
context.access[p] = contextIn.access[p];
|
|
656
|
-
context.addInitializer = function(f) {
|
|
657
|
-
if (done)
|
|
658
|
-
throw new TypeError("Cannot add initializers after decoration has completed");
|
|
659
|
-
extraInitializers.push(accept(f || null));
|
|
660
|
-
};
|
|
661
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
662
|
-
if (kind === "accessor") {
|
|
663
|
-
if (result === void 0)
|
|
664
|
-
continue;
|
|
665
|
-
if (result === null || typeof result !== "object")
|
|
666
|
-
throw new TypeError("Object expected");
|
|
667
|
-
if (_ = accept(result.get))
|
|
668
|
-
descriptor.get = _;
|
|
669
|
-
if (_ = accept(result.set))
|
|
670
|
-
descriptor.set = _;
|
|
671
|
-
if (_ = accept(result.init))
|
|
672
|
-
initializers.unshift(_);
|
|
673
|
-
} else if (_ = accept(result)) {
|
|
674
|
-
if (kind === "field")
|
|
675
|
-
initializers.unshift(_);
|
|
676
|
-
else
|
|
677
|
-
descriptor[key] = _;
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
if (target)
|
|
681
|
-
Object.defineProperty(target, contextIn.name, descriptor);
|
|
682
|
-
done = true;
|
|
683
|
-
}
|
|
684
|
-
function __runInitializers(thisArg, initializers, value) {
|
|
685
|
-
var useValue = arguments.length > 2;
|
|
686
|
-
for (var i = 0; i < initializers.length; i++) {
|
|
687
|
-
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
688
|
-
}
|
|
689
|
-
return useValue ? value : void 0;
|
|
690
|
-
}
|
|
691
|
-
function __propKey(x) {
|
|
692
|
-
return typeof x === "symbol" ? x : "".concat(x);
|
|
693
|
-
}
|
|
694
|
-
function __setFunctionName(f, name, prefix) {
|
|
695
|
-
if (typeof name === "symbol")
|
|
696
|
-
name = name.description ? "[".concat(name.description, "]") : "";
|
|
697
|
-
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
698
|
-
}
|
|
699
|
-
function __metadata(metadataKey, metadataValue) {
|
|
700
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
701
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
702
|
-
}
|
|
703
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
704
|
-
function adopt(value) {
|
|
705
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
706
|
-
resolve(value);
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
__name(adopt, "adopt");
|
|
710
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
711
|
-
function fulfilled(value) {
|
|
712
|
-
try {
|
|
713
|
-
step(generator.next(value));
|
|
714
|
-
} catch (e) {
|
|
715
|
-
reject(e);
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
__name(fulfilled, "fulfilled");
|
|
719
|
-
function rejected(value) {
|
|
720
|
-
try {
|
|
721
|
-
step(generator["throw"](value));
|
|
722
|
-
} catch (e) {
|
|
723
|
-
reject(e);
|
|
724
|
-
}
|
|
1011
|
+
// ../../node_modules/.store/@azure-logger-npm-1.0.4-496582cdff/package/dist/index.js
|
|
1012
|
+
var require_dist3 = __commonJS({
|
|
1013
|
+
"../../node_modules/.store/@azure-logger-npm-1.0.4-496582cdff/package/dist/index.js"(exports) {
|
|
1014
|
+
"use strict";
|
|
1015
|
+
init_esbuildCjsShims();
|
|
1016
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1017
|
+
var os = __require("os");
|
|
1018
|
+
var util = __require("util");
|
|
1019
|
+
function _interopDefaultLegacy(e) {
|
|
1020
|
+
return e && typeof e === "object" && "default" in e ? e : { "default": e };
|
|
725
1021
|
}
|
|
726
|
-
__name(
|
|
727
|
-
|
|
728
|
-
|
|
1022
|
+
__name(_interopDefaultLegacy, "_interopDefaultLegacy");
|
|
1023
|
+
var util__default = /* @__PURE__ */ _interopDefaultLegacy(util);
|
|
1024
|
+
function log(message, ...args) {
|
|
1025
|
+
process.stderr.write(`${util__default["default"].format(message, ...args)}${os.EOL}`);
|
|
729
1026
|
}
|
|
730
|
-
__name(
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
if (
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
};
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
if (
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
switch (op[0]) {
|
|
759
|
-
case 0:
|
|
760
|
-
case 1:
|
|
761
|
-
t = op;
|
|
762
|
-
break;
|
|
763
|
-
case 4:
|
|
764
|
-
_.label++;
|
|
765
|
-
return { value: op[1], done: false };
|
|
766
|
-
case 5:
|
|
767
|
-
_.label++;
|
|
768
|
-
y = op[1];
|
|
769
|
-
op = [0];
|
|
770
|
-
continue;
|
|
771
|
-
case 7:
|
|
772
|
-
op = _.ops.pop();
|
|
773
|
-
_.trys.pop();
|
|
774
|
-
continue;
|
|
775
|
-
default:
|
|
776
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
777
|
-
_ = 0;
|
|
778
|
-
continue;
|
|
779
|
-
}
|
|
780
|
-
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
781
|
-
_.label = op[1];
|
|
782
|
-
break;
|
|
783
|
-
}
|
|
784
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
785
|
-
_.label = t[1];
|
|
786
|
-
t = op;
|
|
787
|
-
break;
|
|
788
|
-
}
|
|
789
|
-
if (t && _.label < t[2]) {
|
|
790
|
-
_.label = t[2];
|
|
791
|
-
_.ops.push(op);
|
|
792
|
-
break;
|
|
793
|
-
}
|
|
794
|
-
if (t[2])
|
|
795
|
-
_.ops.pop();
|
|
796
|
-
_.trys.pop();
|
|
797
|
-
continue;
|
|
1027
|
+
__name(log, "log");
|
|
1028
|
+
var debugEnvVariable = typeof process !== "undefined" && process.env && process.env.DEBUG || void 0;
|
|
1029
|
+
var enabledString;
|
|
1030
|
+
var enabledNamespaces = [];
|
|
1031
|
+
var skippedNamespaces = [];
|
|
1032
|
+
var debuggers = [];
|
|
1033
|
+
if (debugEnvVariable) {
|
|
1034
|
+
enable(debugEnvVariable);
|
|
1035
|
+
}
|
|
1036
|
+
var debugObj = Object.assign((namespace) => {
|
|
1037
|
+
return createDebugger(namespace);
|
|
1038
|
+
}, {
|
|
1039
|
+
enable,
|
|
1040
|
+
enabled,
|
|
1041
|
+
disable,
|
|
1042
|
+
log
|
|
1043
|
+
});
|
|
1044
|
+
function enable(namespaces) {
|
|
1045
|
+
enabledString = namespaces;
|
|
1046
|
+
enabledNamespaces = [];
|
|
1047
|
+
skippedNamespaces = [];
|
|
1048
|
+
const wildcard = /\*/g;
|
|
1049
|
+
const namespaceList = namespaces.split(",").map((ns) => ns.trim().replace(wildcard, ".*?"));
|
|
1050
|
+
for (const ns of namespaceList) {
|
|
1051
|
+
if (ns.startsWith("-")) {
|
|
1052
|
+
skippedNamespaces.push(new RegExp(`^${ns.substr(1)}$`));
|
|
1053
|
+
} else {
|
|
1054
|
+
enabledNamespaces.push(new RegExp(`^${ns}$`));
|
|
798
1055
|
}
|
|
799
|
-
op = body.call(thisArg, _);
|
|
800
|
-
} catch (e) {
|
|
801
|
-
op = [6, e];
|
|
802
|
-
y = 0;
|
|
803
|
-
} finally {
|
|
804
|
-
f = t = 0;
|
|
805
1056
|
}
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
809
|
-
}
|
|
810
|
-
__name(step, "step");
|
|
811
|
-
}
|
|
812
|
-
function __exportStar(m, o) {
|
|
813
|
-
for (var p in m)
|
|
814
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
815
|
-
__createBinding(o, m, p);
|
|
816
|
-
}
|
|
817
|
-
function __values(o) {
|
|
818
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
819
|
-
if (m)
|
|
820
|
-
return m.call(o);
|
|
821
|
-
if (o && typeof o.length === "number")
|
|
822
|
-
return {
|
|
823
|
-
next: function() {
|
|
824
|
-
if (o && i >= o.length)
|
|
825
|
-
o = void 0;
|
|
826
|
-
return { value: o && o[i++], done: !o };
|
|
1057
|
+
for (const instance of debuggers) {
|
|
1058
|
+
instance.enabled = enabled(instance.namespace);
|
|
827
1059
|
}
|
|
828
|
-
};
|
|
829
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
830
|
-
}
|
|
831
|
-
function __read(o, n) {
|
|
832
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
833
|
-
if (!m)
|
|
834
|
-
return o;
|
|
835
|
-
var i = m.call(o), r, ar = [], e;
|
|
836
|
-
try {
|
|
837
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
838
|
-
ar.push(r.value);
|
|
839
|
-
} catch (error) {
|
|
840
|
-
e = { error };
|
|
841
|
-
} finally {
|
|
842
|
-
try {
|
|
843
|
-
if (r && !r.done && (m = i["return"]))
|
|
844
|
-
m.call(i);
|
|
845
|
-
} finally {
|
|
846
|
-
if (e)
|
|
847
|
-
throw e.error;
|
|
848
1060
|
}
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
return r;
|
|
864
|
-
}
|
|
865
|
-
function __spreadArray(to, from, pack) {
|
|
866
|
-
if (pack || arguments.length === 2)
|
|
867
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
868
|
-
if (ar || !(i in from)) {
|
|
869
|
-
if (!ar)
|
|
870
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
871
|
-
ar[i] = from[i];
|
|
1061
|
+
__name(enable, "enable");
|
|
1062
|
+
function enabled(namespace) {
|
|
1063
|
+
if (namespace.endsWith("*")) {
|
|
1064
|
+
return true;
|
|
1065
|
+
}
|
|
1066
|
+
for (const skipped of skippedNamespaces) {
|
|
1067
|
+
if (skipped.test(namespace)) {
|
|
1068
|
+
return false;
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
for (const enabledNamespace of enabledNamespaces) {
|
|
1072
|
+
if (enabledNamespace.test(namespace)) {
|
|
1073
|
+
return true;
|
|
1074
|
+
}
|
|
872
1075
|
}
|
|
1076
|
+
return false;
|
|
873
1077
|
}
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
880
|
-
if (!Symbol.asyncIterator)
|
|
881
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
882
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
883
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
884
|
-
return this;
|
|
885
|
-
}, i;
|
|
886
|
-
function verb(n) {
|
|
887
|
-
if (g[n])
|
|
888
|
-
i[n] = function(v) {
|
|
889
|
-
return new Promise(function(a, b) {
|
|
890
|
-
q.push([n, v, a, b]) > 1 || resume(n, v);
|
|
891
|
-
});
|
|
892
|
-
};
|
|
893
|
-
}
|
|
894
|
-
__name(verb, "verb");
|
|
895
|
-
function resume(n, v) {
|
|
896
|
-
try {
|
|
897
|
-
step(g[n](v));
|
|
898
|
-
} catch (e) {
|
|
899
|
-
settle(q[0][3], e);
|
|
1078
|
+
__name(enabled, "enabled");
|
|
1079
|
+
function disable() {
|
|
1080
|
+
const result = enabledString || "";
|
|
1081
|
+
enable("");
|
|
1082
|
+
return result;
|
|
900
1083
|
}
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
var i, p;
|
|
923
|
-
return i = {}, verb("next"), verb("throw", function(e) {
|
|
924
|
-
throw e;
|
|
925
|
-
}), verb("return"), i[Symbol.iterator] = function() {
|
|
926
|
-
return this;
|
|
927
|
-
}, i;
|
|
928
|
-
function verb(n, f) {
|
|
929
|
-
i[n] = o[n] ? function(v) {
|
|
930
|
-
return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v;
|
|
931
|
-
} : f;
|
|
932
|
-
}
|
|
933
|
-
__name(verb, "verb");
|
|
934
|
-
}
|
|
935
|
-
function __asyncValues(o) {
|
|
936
|
-
if (!Symbol.asyncIterator)
|
|
937
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
938
|
-
var m = o[Symbol.asyncIterator], i;
|
|
939
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
940
|
-
return this;
|
|
941
|
-
}, i);
|
|
942
|
-
function verb(n) {
|
|
943
|
-
i[n] = o[n] && function(v) {
|
|
944
|
-
return new Promise(function(resolve, reject) {
|
|
945
|
-
v = o[n](v), settle(resolve, reject, v.done, v.value);
|
|
946
|
-
});
|
|
947
|
-
};
|
|
948
|
-
}
|
|
949
|
-
__name(verb, "verb");
|
|
950
|
-
function settle(resolve, reject, d, v) {
|
|
951
|
-
Promise.resolve(v).then(function(v2) {
|
|
952
|
-
resolve({ value: v2, done: d });
|
|
953
|
-
}, reject);
|
|
954
|
-
}
|
|
955
|
-
__name(settle, "settle");
|
|
956
|
-
}
|
|
957
|
-
function __makeTemplateObject(cooked, raw) {
|
|
958
|
-
if (Object.defineProperty) {
|
|
959
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
960
|
-
} else {
|
|
961
|
-
cooked.raw = raw;
|
|
962
|
-
}
|
|
963
|
-
return cooked;
|
|
964
|
-
}
|
|
965
|
-
function __importStar(mod) {
|
|
966
|
-
if (mod && mod.__esModule)
|
|
967
|
-
return mod;
|
|
968
|
-
var result = {};
|
|
969
|
-
if (mod != null) {
|
|
970
|
-
for (var k in mod)
|
|
971
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
972
|
-
__createBinding(result, mod, k);
|
|
973
|
-
}
|
|
974
|
-
__setModuleDefault(result, mod);
|
|
975
|
-
return result;
|
|
976
|
-
}
|
|
977
|
-
function __importDefault(mod) {
|
|
978
|
-
return mod && mod.__esModule ? mod : { default: mod };
|
|
979
|
-
}
|
|
980
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
981
|
-
if (kind === "a" && !f)
|
|
982
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
983
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
984
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
985
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
986
|
-
}
|
|
987
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
988
|
-
if (kind === "m")
|
|
989
|
-
throw new TypeError("Private method is not writable");
|
|
990
|
-
if (kind === "a" && !f)
|
|
991
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
992
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
993
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
994
|
-
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
995
|
-
}
|
|
996
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
997
|
-
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
|
|
998
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
999
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
1000
|
-
}
|
|
1001
|
-
function __addDisposableResource(env, value, async) {
|
|
1002
|
-
if (value !== null && value !== void 0) {
|
|
1003
|
-
if (typeof value !== "object" && typeof value !== "function")
|
|
1004
|
-
throw new TypeError("Object expected.");
|
|
1005
|
-
var dispose;
|
|
1006
|
-
if (async) {
|
|
1007
|
-
if (!Symbol.asyncDispose)
|
|
1008
|
-
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
1009
|
-
dispose = value[Symbol.asyncDispose];
|
|
1084
|
+
__name(disable, "disable");
|
|
1085
|
+
function createDebugger(namespace) {
|
|
1086
|
+
const newDebugger = Object.assign(debug2, {
|
|
1087
|
+
enabled: enabled(namespace),
|
|
1088
|
+
destroy,
|
|
1089
|
+
log: debugObj.log,
|
|
1090
|
+
namespace,
|
|
1091
|
+
extend
|
|
1092
|
+
});
|
|
1093
|
+
function debug2(...args) {
|
|
1094
|
+
if (!newDebugger.enabled) {
|
|
1095
|
+
return;
|
|
1096
|
+
}
|
|
1097
|
+
if (args.length > 0) {
|
|
1098
|
+
args[0] = `${namespace} ${args[0]}`;
|
|
1099
|
+
}
|
|
1100
|
+
newDebugger.log(...args);
|
|
1101
|
+
}
|
|
1102
|
+
__name(debug2, "debug");
|
|
1103
|
+
debuggers.push(newDebugger);
|
|
1104
|
+
return newDebugger;
|
|
1010
1105
|
}
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1106
|
+
__name(createDebugger, "createDebugger");
|
|
1107
|
+
function destroy() {
|
|
1108
|
+
const index = debuggers.indexOf(this);
|
|
1109
|
+
if (index >= 0) {
|
|
1110
|
+
debuggers.splice(index, 1);
|
|
1111
|
+
return true;
|
|
1112
|
+
}
|
|
1113
|
+
return false;
|
|
1015
1114
|
}
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
fail(e);
|
|
1038
|
-
return next();
|
|
1039
|
-
});
|
|
1040
|
-
} catch (e) {
|
|
1041
|
-
fail(e);
|
|
1115
|
+
__name(destroy, "destroy");
|
|
1116
|
+
function extend(namespace) {
|
|
1117
|
+
const newDebugger = createDebugger(`${this.namespace}:${namespace}`);
|
|
1118
|
+
newDebugger.log = this.log;
|
|
1119
|
+
return newDebugger;
|
|
1120
|
+
}
|
|
1121
|
+
__name(extend, "extend");
|
|
1122
|
+
var debug = debugObj;
|
|
1123
|
+
var registeredLoggers = /* @__PURE__ */ new Set();
|
|
1124
|
+
var logLevelFromEnv = typeof process !== "undefined" && process.env && process.env.AZURE_LOG_LEVEL || void 0;
|
|
1125
|
+
var azureLogLevel;
|
|
1126
|
+
var AzureLogger = debug("azure");
|
|
1127
|
+
AzureLogger.log = (...args) => {
|
|
1128
|
+
debug.log(...args);
|
|
1129
|
+
};
|
|
1130
|
+
var AZURE_LOG_LEVELS = ["verbose", "info", "warning", "error"];
|
|
1131
|
+
if (logLevelFromEnv) {
|
|
1132
|
+
if (isAzureLogLevel(logLevelFromEnv)) {
|
|
1133
|
+
setLogLevel(logLevelFromEnv);
|
|
1134
|
+
} else {
|
|
1135
|
+
console.error(`AZURE_LOG_LEVEL set to unknown log level '${logLevelFromEnv}'; logging is not enabled. Acceptable values: ${AZURE_LOG_LEVELS.join(", ")}.`);
|
|
1042
1136
|
}
|
|
1043
1137
|
}
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
init_esbuildCjsShims();
|
|
1054
|
-
extendStatics = /* @__PURE__ */ __name(function(d, b) {
|
|
1055
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1056
|
-
d2.__proto__ = b2;
|
|
1057
|
-
} || function(d2, b2) {
|
|
1058
|
-
for (var p in b2)
|
|
1059
|
-
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
1060
|
-
d2[p] = b2[p];
|
|
1061
|
-
};
|
|
1062
|
-
return extendStatics(d, b);
|
|
1063
|
-
}, "extendStatics");
|
|
1064
|
-
__name(__extends, "__extends");
|
|
1065
|
-
__assign = /* @__PURE__ */ __name(function() {
|
|
1066
|
-
__assign = Object.assign || /* @__PURE__ */ __name(function __assign2(t) {
|
|
1067
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
1068
|
-
s = arguments[i];
|
|
1069
|
-
for (var p in s)
|
|
1070
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
1071
|
-
t[p] = s[p];
|
|
1138
|
+
function setLogLevel(level) {
|
|
1139
|
+
if (level && !isAzureLogLevel(level)) {
|
|
1140
|
+
throw new Error(`Unknown log level '${level}'. Acceptable values: ${AZURE_LOG_LEVELS.join(",")}`);
|
|
1141
|
+
}
|
|
1142
|
+
azureLogLevel = level;
|
|
1143
|
+
const enabledNamespaces2 = [];
|
|
1144
|
+
for (const logger of registeredLoggers) {
|
|
1145
|
+
if (shouldEnable(logger)) {
|
|
1146
|
+
enabledNamespaces2.push(logger.namespace);
|
|
1072
1147
|
}
|
|
1073
|
-
return t;
|
|
1074
|
-
}, "__assign");
|
|
1075
|
-
return __assign.apply(this, arguments);
|
|
1076
|
-
}, "__assign");
|
|
1077
|
-
__name(__rest, "__rest");
|
|
1078
|
-
__name(__decorate, "__decorate");
|
|
1079
|
-
__name(__param, "__param");
|
|
1080
|
-
__name(__esDecorate, "__esDecorate");
|
|
1081
|
-
__name(__runInitializers, "__runInitializers");
|
|
1082
|
-
__name(__propKey, "__propKey");
|
|
1083
|
-
__name(__setFunctionName, "__setFunctionName");
|
|
1084
|
-
__name(__metadata, "__metadata");
|
|
1085
|
-
__name(__awaiter, "__awaiter");
|
|
1086
|
-
__name(__generator, "__generator");
|
|
1087
|
-
__createBinding = Object.create ? function(o, m, k, k2) {
|
|
1088
|
-
if (k2 === void 0)
|
|
1089
|
-
k2 = k;
|
|
1090
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
1091
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1092
|
-
desc = { enumerable: true, get: function() {
|
|
1093
|
-
return m[k];
|
|
1094
|
-
} };
|
|
1095
1148
|
}
|
|
1096
|
-
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
}
|
|
1102
|
-
__name(
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
__name(__await, "__await");
|
|
1109
|
-
__name(__asyncGenerator, "__asyncGenerator");
|
|
1110
|
-
__name(__asyncDelegator, "__asyncDelegator");
|
|
1111
|
-
__name(__asyncValues, "__asyncValues");
|
|
1112
|
-
__name(__makeTemplateObject, "__makeTemplateObject");
|
|
1113
|
-
__setModuleDefault = Object.create ? function(o, v) {
|
|
1114
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1115
|
-
} : function(o, v) {
|
|
1116
|
-
o["default"] = v;
|
|
1117
|
-
};
|
|
1118
|
-
__name(__importStar, "__importStar");
|
|
1119
|
-
__name(__importDefault, "__importDefault");
|
|
1120
|
-
__name(__classPrivateFieldGet, "__classPrivateFieldGet");
|
|
1121
|
-
__name(__classPrivateFieldSet, "__classPrivateFieldSet");
|
|
1122
|
-
__name(__classPrivateFieldIn, "__classPrivateFieldIn");
|
|
1123
|
-
__name(__addDisposableResource, "__addDisposableResource");
|
|
1124
|
-
_SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
1125
|
-
var e = new Error(message);
|
|
1126
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
1127
|
-
};
|
|
1128
|
-
__name(__disposeResources, "__disposeResources");
|
|
1129
|
-
tslib_es6_default = {
|
|
1130
|
-
__extends,
|
|
1131
|
-
__assign,
|
|
1132
|
-
__rest,
|
|
1133
|
-
__decorate,
|
|
1134
|
-
__param,
|
|
1135
|
-
__metadata,
|
|
1136
|
-
__awaiter,
|
|
1137
|
-
__generator,
|
|
1138
|
-
__createBinding,
|
|
1139
|
-
__exportStar,
|
|
1140
|
-
__values,
|
|
1141
|
-
__read,
|
|
1142
|
-
__spread,
|
|
1143
|
-
__spreadArrays,
|
|
1144
|
-
__spreadArray,
|
|
1145
|
-
__await,
|
|
1146
|
-
__asyncGenerator,
|
|
1147
|
-
__asyncDelegator,
|
|
1148
|
-
__asyncValues,
|
|
1149
|
-
__makeTemplateObject,
|
|
1150
|
-
__importStar,
|
|
1151
|
-
__importDefault,
|
|
1152
|
-
__classPrivateFieldGet,
|
|
1153
|
-
__classPrivateFieldSet,
|
|
1154
|
-
__classPrivateFieldIn,
|
|
1155
|
-
__addDisposableResource,
|
|
1156
|
-
__disposeResources
|
|
1149
|
+
debug.enable(enabledNamespaces2.join(","));
|
|
1150
|
+
}
|
|
1151
|
+
__name(setLogLevel, "setLogLevel");
|
|
1152
|
+
function getLogLevel() {
|
|
1153
|
+
return azureLogLevel;
|
|
1154
|
+
}
|
|
1155
|
+
__name(getLogLevel, "getLogLevel");
|
|
1156
|
+
var levelMap = {
|
|
1157
|
+
verbose: 400,
|
|
1158
|
+
info: 300,
|
|
1159
|
+
warning: 200,
|
|
1160
|
+
error: 100
|
|
1157
1161
|
};
|
|
1162
|
+
function createClientLogger(namespace) {
|
|
1163
|
+
const clientRootLogger = AzureLogger.extend(namespace);
|
|
1164
|
+
patchLogMethod(AzureLogger, clientRootLogger);
|
|
1165
|
+
return {
|
|
1166
|
+
error: createLogger(clientRootLogger, "error"),
|
|
1167
|
+
warning: createLogger(clientRootLogger, "warning"),
|
|
1168
|
+
info: createLogger(clientRootLogger, "info"),
|
|
1169
|
+
verbose: createLogger(clientRootLogger, "verbose")
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
__name(createClientLogger, "createClientLogger");
|
|
1173
|
+
function patchLogMethod(parent, child) {
|
|
1174
|
+
child.log = (...args) => {
|
|
1175
|
+
parent.log(...args);
|
|
1176
|
+
};
|
|
1177
|
+
}
|
|
1178
|
+
__name(patchLogMethod, "patchLogMethod");
|
|
1179
|
+
function createLogger(parent, level) {
|
|
1180
|
+
const logger = Object.assign(parent.extend(level), {
|
|
1181
|
+
level
|
|
1182
|
+
});
|
|
1183
|
+
patchLogMethod(parent, logger);
|
|
1184
|
+
if (shouldEnable(logger)) {
|
|
1185
|
+
const enabledNamespaces2 = debug.disable();
|
|
1186
|
+
debug.enable(enabledNamespaces2 + "," + logger.namespace);
|
|
1187
|
+
}
|
|
1188
|
+
registeredLoggers.add(logger);
|
|
1189
|
+
return logger;
|
|
1190
|
+
}
|
|
1191
|
+
__name(createLogger, "createLogger");
|
|
1192
|
+
function shouldEnable(logger) {
|
|
1193
|
+
return Boolean(azureLogLevel && levelMap[logger.level] <= levelMap[azureLogLevel]);
|
|
1194
|
+
}
|
|
1195
|
+
__name(shouldEnable, "shouldEnable");
|
|
1196
|
+
function isAzureLogLevel(logLevel) {
|
|
1197
|
+
return AZURE_LOG_LEVELS.includes(logLevel);
|
|
1198
|
+
}
|
|
1199
|
+
__name(isAzureLogLevel, "isAzureLogLevel");
|
|
1200
|
+
exports.AzureLogger = AzureLogger;
|
|
1201
|
+
exports.createClientLogger = createClientLogger;
|
|
1202
|
+
exports.getLogLevel = getLogLevel;
|
|
1203
|
+
exports.setLogLevel = setLogLevel;
|
|
1158
1204
|
}
|
|
1159
1205
|
});
|
|
1160
1206
|
|
|
@@ -1519,12 +1565,20 @@ var init_esm_node = __esm({
|
|
|
1519
1565
|
});
|
|
1520
1566
|
|
|
1521
1567
|
export {
|
|
1568
|
+
__name,
|
|
1569
|
+
__require,
|
|
1570
|
+
__esm,
|
|
1571
|
+
__commonJS,
|
|
1572
|
+
__export,
|
|
1573
|
+
__toESM,
|
|
1574
|
+
__toCommonJS,
|
|
1575
|
+
init_esbuildCjsShims,
|
|
1522
1576
|
v4_default,
|
|
1523
1577
|
esm_node_exports,
|
|
1524
1578
|
init_esm_node,
|
|
1579
|
+
tslib_es6_exports,
|
|
1580
|
+
init_tslib_es6,
|
|
1525
1581
|
require_dist,
|
|
1526
1582
|
require_dist2,
|
|
1527
|
-
require_dist3
|
|
1528
|
-
tslib_es6_exports,
|
|
1529
|
-
init_tslib_es6
|
|
1583
|
+
require_dist3
|
|
1530
1584
|
};
|