@azure/synapse-monitoring 1.0.0-alpha.20221026.1 → 1.0.0-alpha.20221104.1

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/index.js CHANGED
@@ -27,12 +27,33 @@ var zlib = require('zlib');
27
27
 
28
28
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
29
29
 
30
+ function _interopNamespace(e) {
31
+ if (e && e.__esModule) return e;
32
+ var n = Object.create(null);
33
+ if (e) {
34
+ Object.keys(e).forEach(function (k) {
35
+ if (k !== 'default') {
36
+ var d = Object.getOwnPropertyDescriptor(e, k);
37
+ Object.defineProperty(n, k, d.get ? d : {
38
+ enumerable: true,
39
+ get: function () { return e[k]; }
40
+ });
41
+ }
42
+ });
43
+ }
44
+ n["default"] = e;
45
+ return Object.freeze(n);
46
+ }
47
+
48
+ var os__namespace = /*#__PURE__*/_interopNamespace(os);
30
49
  var os__default = /*#__PURE__*/_interopDefaultLegacy(os);
31
50
  var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1);
32
51
  var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0$1);
33
52
  var require$$1__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$1$1);
34
53
  var http__default = /*#__PURE__*/_interopDefaultLegacy(http$1);
54
+ var http__namespace = /*#__PURE__*/_interopNamespace(http$1);
35
55
  var https__default = /*#__PURE__*/_interopDefaultLegacy(https$1);
56
+ var https__namespace = /*#__PURE__*/_interopNamespace(https$1);
36
57
  var require$$2__default = /*#__PURE__*/_interopDefaultLegacy(require$$2);
37
58
  var require$$6__default = /*#__PURE__*/_interopDefaultLegacy(require$$6);
38
59
  var require$$0__default$2 = /*#__PURE__*/_interopDefaultLegacy(require$$0$3);
@@ -40,7 +61,7 @@ var require$$1__default$3 = /*#__PURE__*/_interopDefaultLegacy(require$$1$3);
40
61
  var require$$3__default = /*#__PURE__*/_interopDefaultLegacy(require$$3);
41
62
  var require$$1__default$2 = /*#__PURE__*/_interopDefaultLegacy(require$$1$2);
42
63
  var require$$0__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$0$2);
43
- var zlib__default = /*#__PURE__*/_interopDefaultLegacy(zlib);
64
+ var zlib__namespace = /*#__PURE__*/_interopNamespace(zlib);
44
65
 
45
66
  /******************************************************************************
46
67
  Copyright (c) Microsoft Corporation.
@@ -2119,12 +2140,12 @@ function getHeaderName() {
2119
2140
  */
2120
2141
  function setPlatformSpecificData(map) {
2121
2142
  map.set("Node", process.version);
2122
- map.set("OS", `(${os__default["default"].arch()}-${os__default["default"].type()}-${os__default["default"].release()})`);
2143
+ map.set("OS", `(${os__namespace.arch()}-${os__namespace.type()}-${os__namespace.release()})`);
2123
2144
  }
2124
2145
 
2125
2146
  // Copyright (c) Microsoft Corporation.
2126
2147
  // Licensed under the MIT license.
2127
- const SDK_VERSION = "1.10.0";
2148
+ const SDK_VERSION = "1.10.1";
2128
2149
  const DEFAULT_RETRY_POLICY_COUNT = 3;
2129
2150
 
2130
2151
  // Copyright (c) Microsoft Corporation.
@@ -16229,7 +16250,7 @@ const debug$1 = debug_1$1.default('https-proxy-agent:agent');
16229
16250
  *
16230
16251
  * @api public
16231
16252
  */
16232
- class HttpsProxyAgent$1 extends agent_base_1$1.Agent {
16253
+ class HttpsProxyAgent extends agent_base_1$1.Agent {
16233
16254
  constructor(_opts) {
16234
16255
  let opts;
16235
16256
  if (typeof _opts === 'string') {
@@ -16349,7 +16370,7 @@ class HttpsProxyAgent$1 extends agent_base_1$1.Agent {
16349
16370
  });
16350
16371
  }
16351
16372
  }
16352
- agent$1.default = HttpsProxyAgent$1;
16373
+ agent$1.default = HttpsProxyAgent;
16353
16374
  function resume(socket) {
16354
16375
  socket.resume();
16355
16376
  }
@@ -16439,7 +16460,7 @@ function isHTTPS(protocol) {
16439
16460
  *
16440
16461
  * @api public
16441
16462
  */
16442
- class HttpProxyAgent$1 extends agent_base_1.Agent {
16463
+ class HttpProxyAgent extends agent_base_1.Agent {
16443
16464
  constructor(_opts) {
16444
16465
  let opts;
16445
16466
  if (typeof _opts === 'string') {
@@ -16552,7 +16573,7 @@ class HttpProxyAgent$1 extends agent_base_1.Agent {
16552
16573
  });
16553
16574
  }
16554
16575
  }
16555
- agent.default = HttpProxyAgent$1;
16576
+ agent.default = HttpProxyAgent;
16556
16577
 
16557
16578
  var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
16558
16579
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -16568,8 +16589,6 @@ function createHttpProxyAgent(opts) {
16568
16589
  var dist = createHttpProxyAgent;
16569
16590
 
16570
16591
  // Copyright (c) Microsoft Corporation.
16571
- const { HttpsProxyAgent } = dist$2;
16572
- const { HttpProxyAgent } = dist;
16573
16592
  const HTTPS_PROXY = "HTTPS_PROXY";
16574
16593
  const HTTP_PROXY = "HTTP_PROXY";
16575
16594
  const ALL_PROXY = "ALL_PROXY";
@@ -16714,14 +16733,14 @@ function setProxyAgentOnRequest(request, cachedAgents) {
16714
16733
  if (isInsecure) {
16715
16734
  if (!cachedAgents.httpProxyAgent) {
16716
16735
  const proxyAgentOptions = getProxyAgentOptions(proxySettings, request);
16717
- cachedAgents.httpProxyAgent = new HttpProxyAgent(proxyAgentOptions);
16736
+ cachedAgents.httpProxyAgent = new dist.HttpProxyAgent(proxyAgentOptions);
16718
16737
  }
16719
16738
  request.agent = cachedAgents.httpProxyAgent;
16720
16739
  }
16721
16740
  else {
16722
16741
  if (!cachedAgents.httpsProxyAgent) {
16723
16742
  const proxyAgentOptions = getProxyAgentOptions(proxySettings, request);
16724
- cachedAgents.httpsProxyAgent = new HttpsProxyAgent(proxyAgentOptions);
16743
+ cachedAgents.httpsProxyAgent = new dist$2.HttpsProxyAgent(proxyAgentOptions);
16725
16744
  }
16726
16745
  request.agent = cachedAgents.httpsProxyAgent;
16727
16746
  }
@@ -17415,7 +17434,7 @@ class NodeHttpClient {
17415
17434
  headers: request.headers.toJSON({ preserveCase: true }),
17416
17435
  };
17417
17436
  return new Promise((resolve, reject) => {
17418
- const req = isInsecure ? http__default["default"].request(options, resolve) : https__default["default"].request(options, resolve);
17437
+ const req = isInsecure ? http__namespace.request(options, resolve) : https__namespace.request(options, resolve);
17419
17438
  req.once("error", (err) => {
17420
17439
  var _a;
17421
17440
  reject(new RestError(err.message, { code: (_a = err.code) !== null && _a !== void 0 ? _a : RestError.REQUEST_SEND_ERROR, request }));
@@ -17453,11 +17472,11 @@ class NodeHttpClient {
17453
17472
  if (isInsecure) {
17454
17473
  if (disableKeepAlive) {
17455
17474
  // keepAlive:false is the default so we don't need a custom Agent
17456
- return http__default["default"].globalAgent;
17475
+ return http__namespace.globalAgent;
17457
17476
  }
17458
17477
  if (!this.cachedHttpAgent) {
17459
17478
  // If there is no cached agent create a new one and cache it.
17460
- this.cachedHttpAgent = new http__default["default"].Agent({ keepAlive: true });
17479
+ this.cachedHttpAgent = new http__namespace.Agent({ keepAlive: true });
17461
17480
  }
17462
17481
  return this.cachedHttpAgent;
17463
17482
  }
@@ -17465,7 +17484,7 @@ class NodeHttpClient {
17465
17484
  if (disableKeepAlive && !request.tlsSettings) {
17466
17485
  // When there are no tlsSettings and keepAlive is false
17467
17486
  // we don't need a custom agent
17468
- return https__default["default"].globalAgent;
17487
+ return https__namespace.globalAgent;
17469
17488
  }
17470
17489
  // We use the tlsSettings to index cached clients
17471
17490
  const tlsSettings = (_a = request.tlsSettings) !== null && _a !== void 0 ? _a : DEFAULT_TLS_SETTINGS;
@@ -17476,7 +17495,7 @@ class NodeHttpClient {
17476
17495
  return agent;
17477
17496
  }
17478
17497
  logger$1.info("No cached TLS Agent exist, creating a new Agent");
17479
- agent = new https__default["default"].Agent(Object.assign({
17498
+ agent = new https__namespace.Agent(Object.assign({
17480
17499
  // keepAlive is true if disableKeepAlive is false.
17481
17500
  keepAlive: !disableKeepAlive }, tlsSettings));
17482
17501
  this.cachedHttpsAgents.set(tlsSettings, agent);
@@ -17502,12 +17521,12 @@ function getResponseHeaders(res) {
17502
17521
  function getDecodedResponseStream(stream, headers) {
17503
17522
  const contentEncoding = headers.get("Content-Encoding");
17504
17523
  if (contentEncoding === "gzip") {
17505
- const unzip = zlib__default["default"].createGunzip();
17524
+ const unzip = zlib__namespace.createGunzip();
17506
17525
  stream.pipe(unzip);
17507
17526
  return unzip;
17508
17527
  }
17509
17528
  else if (contentEncoding === "deflate") {
17510
- const inflate = zlib__default["default"].createInflate();
17529
+ const inflate = zlib__namespace.createInflate();
17511
17530
  stream.pipe(inflate);
17512
17531
  return inflate;
17513
17532
  }