@magda/registry-client 3.0.1-alpha.0 → 3.0.2-alpha.0

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.
Files changed (2) hide show
  1. package/dist/index.js +232 -85
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -39,10 +39,23 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
39
39
  ));
40
40
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
41
41
 
42
+ // ../cjs-shim.js
43
+ import { createRequire } from "module";
44
+ import path from "path";
45
+ import url from "url";
46
+ var init_cjs_shim = __esm({
47
+ "../cjs-shim.js"() {
48
+ globalThis.require = createRequire(import.meta.url);
49
+ globalThis.__filename = url.fileURLToPath(import.meta.url);
50
+ globalThis.__dirname = path.dirname(__filename);
51
+ }
52
+ });
53
+
42
54
  // ../../node_modules/cross-fetch/node_modules/webidl-conversions/lib/index.js
43
55
  var require_lib = __commonJS({
44
56
  "../../node_modules/cross-fetch/node_modules/webidl-conversions/lib/index.js"(exports, module) {
45
57
  "use strict";
58
+ init_cjs_shim();
46
59
  var conversions = {};
47
60
  module.exports = conversions;
48
61
  function sign(x) {
@@ -200,6 +213,7 @@ var require_lib = __commonJS({
200
213
  var require_utils = __commonJS({
201
214
  "../../node_modules/cross-fetch/node_modules/whatwg-url/lib/utils.js"(exports, module) {
202
215
  "use strict";
216
+ init_cjs_shim();
203
217
  module.exports.mixin = function mixin(target, source) {
204
218
  const keys = Object.getOwnPropertyNames(source);
205
219
  for (let i = 0; i < keys.length; ++i) {
@@ -228,6 +242,7 @@ var require_mappingTable = __commonJS({
228
242
  var require_tr46 = __commonJS({
229
243
  "../../node_modules/cross-fetch/node_modules/tr46/index.js"(exports, module) {
230
244
  "use strict";
245
+ init_cjs_shim();
231
246
  var punycode = __require("punycode");
232
247
  var mappingTable = require_mappingTable();
233
248
  var PROCESSING_OPTIONS = {
@@ -390,6 +405,7 @@ var require_tr46 = __commonJS({
390
405
  var require_url_state_machine = __commonJS({
391
406
  "../../node_modules/cross-fetch/node_modules/whatwg-url/lib/url-state-machine.js"(exports, module) {
392
407
  "use strict";
408
+ init_cjs_shim();
393
409
  var punycode = __require("punycode");
394
410
  var tr46 = require_tr46();
395
411
  var specialSchemes = {
@@ -446,8 +462,8 @@ var require_url_state_machine = __commonJS({
446
462
  function isSpecialScheme(scheme) {
447
463
  return specialSchemes[scheme] !== void 0;
448
464
  }
449
- function isSpecial(url) {
450
- return isSpecialScheme(url.scheme);
465
+ function isSpecial(url2) {
466
+ return isSpecialScheme(url2.scheme);
451
467
  }
452
468
  function defaultPort(scheme) {
453
469
  return specialSchemes[scheme];
@@ -769,38 +785,38 @@ var require_url_state_machine = __commonJS({
769
785
  }
770
786
  return host;
771
787
  }
772
- function trimControlChars(url) {
773
- return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, "");
788
+ function trimControlChars(url2) {
789
+ return url2.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, "");
774
790
  }
775
- function trimTabAndNewline(url) {
776
- return url.replace(/\u0009|\u000A|\u000D/g, "");
791
+ function trimTabAndNewline(url2) {
792
+ return url2.replace(/\u0009|\u000A|\u000D/g, "");
777
793
  }
778
- function shortenPath(url) {
779
- const path = url.path;
780
- if (path.length === 0) {
794
+ function shortenPath(url2) {
795
+ const path2 = url2.path;
796
+ if (path2.length === 0) {
781
797
  return;
782
798
  }
783
- if (url.scheme === "file" && path.length === 1 && isNormalizedWindowsDriveLetter(path[0])) {
799
+ if (url2.scheme === "file" && path2.length === 1 && isNormalizedWindowsDriveLetter(path2[0])) {
784
800
  return;
785
801
  }
786
- path.pop();
802
+ path2.pop();
787
803
  }
788
- function includesCredentials(url) {
789
- return url.username !== "" || url.password !== "";
804
+ function includesCredentials(url2) {
805
+ return url2.username !== "" || url2.password !== "";
790
806
  }
791
- function cannotHaveAUsernamePasswordPort(url) {
792
- return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file";
807
+ function cannotHaveAUsernamePasswordPort(url2) {
808
+ return url2.host === null || url2.host === "" || url2.cannotBeABaseURL || url2.scheme === "file";
793
809
  }
794
810
  function isNormalizedWindowsDriveLetter(string) {
795
811
  return /^[A-Za-z]:$/.test(string);
796
812
  }
797
- function URLStateMachine(input, base, encodingOverride, url, stateOverride) {
813
+ function URLStateMachine(input, base, encodingOverride, url2, stateOverride) {
798
814
  this.pointer = 0;
799
815
  this.input = input;
800
816
  this.base = base || null;
801
817
  this.encodingOverride = encodingOverride || "utf-8";
802
818
  this.stateOverride = stateOverride;
803
- this.url = url;
819
+ this.url = url2;
804
820
  this.failure = false;
805
821
  this.parseError = false;
806
822
  if (!this.url) {
@@ -1353,36 +1369,36 @@ var require_url_state_machine = __commonJS({
1353
1369
  }
1354
1370
  return true;
1355
1371
  };
1356
- function serializeURL(url, excludeFragment) {
1357
- let output = url.scheme + ":";
1358
- if (url.host !== null) {
1372
+ function serializeURL(url2, excludeFragment) {
1373
+ let output = url2.scheme + ":";
1374
+ if (url2.host !== null) {
1359
1375
  output += "//";
1360
- if (url.username !== "" || url.password !== "") {
1361
- output += url.username;
1362
- if (url.password !== "") {
1363
- output += ":" + url.password;
1376
+ if (url2.username !== "" || url2.password !== "") {
1377
+ output += url2.username;
1378
+ if (url2.password !== "") {
1379
+ output += ":" + url2.password;
1364
1380
  }
1365
1381
  output += "@";
1366
1382
  }
1367
- output += serializeHost(url.host);
1368
- if (url.port !== null) {
1369
- output += ":" + url.port;
1383
+ output += serializeHost(url2.host);
1384
+ if (url2.port !== null) {
1385
+ output += ":" + url2.port;
1370
1386
  }
1371
- } else if (url.host === null && url.scheme === "file") {
1387
+ } else if (url2.host === null && url2.scheme === "file") {
1372
1388
  output += "//";
1373
1389
  }
1374
- if (url.cannotBeABaseURL) {
1375
- output += url.path[0];
1390
+ if (url2.cannotBeABaseURL) {
1391
+ output += url2.path[0];
1376
1392
  } else {
1377
- for (const string of url.path) {
1393
+ for (const string of url2.path) {
1378
1394
  output += "/" + string;
1379
1395
  }
1380
1396
  }
1381
- if (url.query !== null) {
1382
- output += "?" + url.query;
1397
+ if (url2.query !== null) {
1398
+ output += "?" + url2.query;
1383
1399
  }
1384
- if (!excludeFragment && url.fragment !== null) {
1385
- output += "#" + url.fragment;
1400
+ if (!excludeFragment && url2.fragment !== null) {
1401
+ output += "#" + url2.fragment;
1386
1402
  }
1387
1403
  return output;
1388
1404
  }
@@ -1395,11 +1411,11 @@ var require_url_state_machine = __commonJS({
1395
1411
  return result;
1396
1412
  }
1397
1413
  module.exports.serializeURL = serializeURL;
1398
- module.exports.serializeURLOrigin = function(url) {
1399
- switch (url.scheme) {
1414
+ module.exports.serializeURLOrigin = function(url2) {
1415
+ switch (url2.scheme) {
1400
1416
  case "blob":
1401
1417
  try {
1402
- return module.exports.serializeURLOrigin(module.exports.parseURL(url.path[0]));
1418
+ return module.exports.serializeURLOrigin(module.exports.parseURL(url2.path[0]));
1403
1419
  } catch (e) {
1404
1420
  return "null";
1405
1421
  }
@@ -1410,9 +1426,9 @@ var require_url_state_machine = __commonJS({
1410
1426
  case "ws":
1411
1427
  case "wss":
1412
1428
  return serializeOrigin({
1413
- scheme: url.scheme,
1414
- host: url.host,
1415
- port: url.port
1429
+ scheme: url2.scheme,
1430
+ host: url2.host,
1431
+ port: url2.port
1416
1432
  });
1417
1433
  case "file":
1418
1434
  return "file://";
@@ -1430,18 +1446,18 @@ var require_url_state_machine = __commonJS({
1430
1446
  }
1431
1447
  return usm.url;
1432
1448
  };
1433
- module.exports.setTheUsername = function(url, username) {
1434
- url.username = "";
1449
+ module.exports.setTheUsername = function(url2, username) {
1450
+ url2.username = "";
1435
1451
  const decoded = punycode.ucs2.decode(username);
1436
1452
  for (let i = 0; i < decoded.length; ++i) {
1437
- url.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
1453
+ url2.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
1438
1454
  }
1439
1455
  };
1440
- module.exports.setThePassword = function(url, password) {
1441
- url.password = "";
1456
+ module.exports.setThePassword = function(url2, password) {
1457
+ url2.password = "";
1442
1458
  const decoded = punycode.ucs2.decode(password);
1443
1459
  for (let i = 0; i < decoded.length; ++i) {
1444
- url.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
1460
+ url2.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
1445
1461
  }
1446
1462
  };
1447
1463
  module.exports.serializeHost = serializeHost;
@@ -1462,10 +1478,11 @@ var require_url_state_machine = __commonJS({
1462
1478
  var require_URL_impl = __commonJS({
1463
1479
  "../../node_modules/cross-fetch/node_modules/whatwg-url/lib/URL-impl.js"(exports) {
1464
1480
  "use strict";
1481
+ init_cjs_shim();
1465
1482
  var usm = require_url_state_machine();
1466
1483
  exports.implementation = class URLImpl {
1467
1484
  constructor(constructorArgs) {
1468
- const url = constructorArgs[0];
1485
+ const url2 = constructorArgs[0];
1469
1486
  const base = constructorArgs[1];
1470
1487
  let parsedBase = null;
1471
1488
  if (base !== void 0) {
@@ -1474,7 +1491,7 @@ var require_URL_impl = __commonJS({
1474
1491
  throw new TypeError("Invalid base URL");
1475
1492
  }
1476
1493
  }
1477
- const parsedURL = usm.basicURLParse(url, { baseURL: parsedBase });
1494
+ const parsedURL = usm.basicURLParse(url2, { baseURL: parsedBase });
1478
1495
  if (parsedURL === "failure") {
1479
1496
  throw new TypeError("Invalid URL");
1480
1497
  }
@@ -1518,14 +1535,14 @@ var require_URL_impl = __commonJS({
1518
1535
  usm.setThePassword(this._url, v);
1519
1536
  }
1520
1537
  get host() {
1521
- const url = this._url;
1522
- if (url.host === null) {
1538
+ const url2 = this._url;
1539
+ if (url2.host === null) {
1523
1540
  return "";
1524
1541
  }
1525
- if (url.port === null) {
1526
- return usm.serializeHost(url.host);
1542
+ if (url2.port === null) {
1543
+ return usm.serializeHost(url2.host);
1527
1544
  }
1528
- return usm.serializeHost(url.host) + ":" + usm.serializeInteger(url.port);
1545
+ return usm.serializeHost(url2.host) + ":" + usm.serializeInteger(url2.port);
1529
1546
  }
1530
1547
  set host(v) {
1531
1548
  if (this._url.cannotBeABaseURL) {
@@ -1584,14 +1601,14 @@ var require_URL_impl = __commonJS({
1584
1601
  return "?" + this._url.query;
1585
1602
  }
1586
1603
  set search(v) {
1587
- const url = this._url;
1604
+ const url2 = this._url;
1588
1605
  if (v === "") {
1589
- url.query = null;
1606
+ url2.query = null;
1590
1607
  return;
1591
1608
  }
1592
1609
  const input = v[0] === "?" ? v.substring(1) : v;
1593
- url.query = "";
1594
- usm.basicURLParse(input, { url, stateOverride: "query" });
1610
+ url2.query = "";
1611
+ usm.basicURLParse(input, { url: url2, stateOverride: "query" });
1595
1612
  }
1596
1613
  get hash() {
1597
1614
  if (this._url.fragment === null || this._url.fragment === "") {
@@ -1619,11 +1636,12 @@ var require_URL_impl = __commonJS({
1619
1636
  var require_URL = __commonJS({
1620
1637
  "../../node_modules/cross-fetch/node_modules/whatwg-url/lib/URL.js"(exports, module) {
1621
1638
  "use strict";
1639
+ init_cjs_shim();
1622
1640
  var conversions = require_lib();
1623
1641
  var utils = require_utils();
1624
1642
  var Impl = require_URL_impl();
1625
1643
  var impl = utils.implSymbol;
1626
- function URL2(url) {
1644
+ function URL2(url2) {
1627
1645
  if (!this || this[impl] || !(this instanceof URL2)) {
1628
1646
  throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");
1629
1647
  }
@@ -1802,6 +1820,7 @@ var require_URL = __commonJS({
1802
1820
  var require_public_api = __commonJS({
1803
1821
  "../../node_modules/cross-fetch/node_modules/whatwg-url/lib/public-api.js"(exports) {
1804
1822
  "use strict";
1823
+ init_cjs_shim();
1805
1824
  exports.URL = require_URL().interface;
1806
1825
  exports.serializeURL = require_url_state_machine().serializeURL;
1807
1826
  exports.serializeURLOrigin = require_url_state_machine().serializeURLOrigin;
@@ -1818,6 +1837,7 @@ var require_public_api = __commonJS({
1818
1837
  var require_safer = __commonJS({
1819
1838
  "../../node_modules/safer-buffer/safer.js"(exports, module) {
1820
1839
  "use strict";
1840
+ init_cjs_shim();
1821
1841
  var buffer = __require("buffer");
1822
1842
  var Buffer2 = buffer.Buffer;
1823
1843
  var safer = {};
@@ -1890,6 +1910,7 @@ var require_safer = __commonJS({
1890
1910
  var require_bom_handling = __commonJS({
1891
1911
  "../../node_modules/iconv-lite/lib/bom-handling.js"(exports) {
1892
1912
  "use strict";
1913
+ init_cjs_shim();
1893
1914
  var BOMChar = "\uFEFF";
1894
1915
  exports.PrependBOM = PrependBOMWrapper;
1895
1916
  function PrependBOMWrapper(encoder, options) {
@@ -1934,6 +1955,7 @@ var require_bom_handling = __commonJS({
1934
1955
  var require_internal = __commonJS({
1935
1956
  "../../node_modules/iconv-lite/encodings/internal.js"(exports, module) {
1936
1957
  "use strict";
1958
+ init_cjs_shim();
1937
1959
  var Buffer2 = require_safer().Buffer;
1938
1960
  module.exports = {
1939
1961
  // Encodings
@@ -2078,6 +2100,7 @@ var require_internal = __commonJS({
2078
2100
  var require_utf16 = __commonJS({
2079
2101
  "../../node_modules/iconv-lite/encodings/utf16.js"(exports) {
2080
2102
  "use strict";
2103
+ init_cjs_shim();
2081
2104
  var Buffer2 = require_safer().Buffer;
2082
2105
  exports.utf16be = Utf16BECodec;
2083
2106
  function Utf16BECodec() {
@@ -2196,6 +2219,7 @@ var require_utf16 = __commonJS({
2196
2219
  var require_utf7 = __commonJS({
2197
2220
  "../../node_modules/iconv-lite/encodings/utf7.js"(exports) {
2198
2221
  "use strict";
2222
+ init_cjs_shim();
2199
2223
  var Buffer2 = require_safer().Buffer;
2200
2224
  exports.utf7 = Utf7Codec;
2201
2225
  exports.unicode11utf7 = "utf7";
@@ -2397,6 +2421,7 @@ var require_utf7 = __commonJS({
2397
2421
  var require_sbcs_codec = __commonJS({
2398
2422
  "../../node_modules/iconv-lite/encodings/sbcs-codec.js"(exports) {
2399
2423
  "use strict";
2424
+ init_cjs_shim();
2400
2425
  var Buffer2 = require_safer().Buffer;
2401
2426
  exports._sbcs = SBCSCodec;
2402
2427
  function SBCSCodec(codecOptions, iconv) {
@@ -2453,6 +2478,7 @@ var require_sbcs_codec = __commonJS({
2453
2478
  var require_sbcs_data = __commonJS({
2454
2479
  "../../node_modules/iconv-lite/encodings/sbcs-data.js"(exports, module) {
2455
2480
  "use strict";
2481
+ init_cjs_shim();
2456
2482
  module.exports = {
2457
2483
  // Not supported by iconv, not sure why.
2458
2484
  "10029": "maccenteuro",
@@ -2602,6 +2628,7 @@ var require_sbcs_data = __commonJS({
2602
2628
  var require_sbcs_data_generated = __commonJS({
2603
2629
  "../../node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports, module) {
2604
2630
  "use strict";
2631
+ init_cjs_shim();
2605
2632
  module.exports = {
2606
2633
  "437": "cp437",
2607
2634
  "737": "cp737",
@@ -3057,6 +3084,7 @@ var require_sbcs_data_generated = __commonJS({
3057
3084
  var require_dbcs_codec = __commonJS({
3058
3085
  "../../node_modules/iconv-lite/encodings/dbcs-codec.js"(exports) {
3059
3086
  "use strict";
3087
+ init_cjs_shim();
3060
3088
  var Buffer2 = require_safer().Buffer;
3061
3089
  exports._dbcs = DBCSCodec;
3062
3090
  var UNASSIGNED = -1;
@@ -4689,6 +4717,7 @@ var require_big5_added = __commonJS({
4689
4717
  var require_dbcs_data = __commonJS({
4690
4718
  "../../node_modules/iconv-lite/encodings/dbcs-data.js"(exports, module) {
4691
4719
  "use strict";
4720
+ init_cjs_shim();
4692
4721
  module.exports = {
4693
4722
  // == Japanese/ShiftJIS ====================================================
4694
4723
  // All japanese encodings are based on JIS X set of standards:
@@ -4864,6 +4893,7 @@ var require_dbcs_data = __commonJS({
4864
4893
  var require_encodings = __commonJS({
4865
4894
  "../../node_modules/iconv-lite/encodings/index.js"(exports, module) {
4866
4895
  "use strict";
4896
+ init_cjs_shim();
4867
4897
  var modules = [
4868
4898
  require_internal(),
4869
4899
  require_utf16(),
@@ -4890,6 +4920,7 @@ var require_encodings = __commonJS({
4890
4920
  var require_streams = __commonJS({
4891
4921
  "../../node_modules/iconv-lite/lib/streams.js"(exports, module) {
4892
4922
  "use strict";
4923
+ init_cjs_shim();
4893
4924
  var Buffer2 = __require("buffer").Buffer;
4894
4925
  var Transform = __require("stream").Transform;
4895
4926
  module.exports = function(iconv) {
@@ -4995,6 +5026,7 @@ var require_streams = __commonJS({
4995
5026
  var require_extend_node = __commonJS({
4996
5027
  "../../node_modules/iconv-lite/lib/extend-node.js"(exports, module) {
4997
5028
  "use strict";
5029
+ init_cjs_shim();
4998
5030
  var Buffer2 = __require("buffer").Buffer;
4999
5031
  module.exports = function(iconv) {
5000
5032
  var original = void 0;
@@ -5164,6 +5196,7 @@ var require_extend_node = __commonJS({
5164
5196
  var require_lib2 = __commonJS({
5165
5197
  "../../node_modules/iconv-lite/lib/index.js"(exports, module) {
5166
5198
  "use strict";
5199
+ init_cjs_shim();
5167
5200
  var Buffer2 = require_safer().Buffer;
5168
5201
  var bomHandling = require_bom_handling();
5169
5202
  var iconv = module.exports;
@@ -5267,6 +5300,7 @@ var require_lib2 = __commonJS({
5267
5300
  var require_iconv_loader = __commonJS({
5268
5301
  "../../node_modules/encoding/lib/iconv-loader.js"(exports, module) {
5269
5302
  "use strict";
5303
+ init_cjs_shim();
5270
5304
  var iconv_package;
5271
5305
  var Iconv;
5272
5306
  try {
@@ -5282,6 +5316,7 @@ var require_iconv_loader = __commonJS({
5282
5316
  var require_encoding = __commonJS({
5283
5317
  "../../node_modules/encoding/lib/encoding.js"(exports, module) {
5284
5318
  "use strict";
5319
+ init_cjs_shim();
5285
5320
  var iconvLite = require_lib2();
5286
5321
  var Iconv = require_iconv_loader();
5287
5322
  module.exports.convert = convert;
@@ -5349,6 +5384,7 @@ var require_encoding = __commonJS({
5349
5384
  var require_lib3 = __commonJS({
5350
5385
  "../../node_modules/cross-fetch/node_modules/node-fetch/lib/index.js"(exports, module) {
5351
5386
  "use strict";
5387
+ init_cjs_shim();
5352
5388
  Object.defineProperty(exports, "__esModule", { value: true });
5353
5389
  function _interopDefault(ex) {
5354
5390
  return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
@@ -6344,13 +6380,13 @@ var require_lib3 = __commonJS({
6344
6380
  const dest = new URL$1(destination).protocol;
6345
6381
  return orig === dest;
6346
6382
  };
6347
- function fetch2(url, opts) {
6383
+ function fetch2(url2, opts) {
6348
6384
  if (!fetch2.Promise) {
6349
6385
  throw new Error("native promise missing, set fetch.Promise to your favorite alternative");
6350
6386
  }
6351
6387
  Body.Promise = fetch2.Promise;
6352
6388
  return new fetch2.Promise(function(resolve, reject) {
6353
- const request = new Request(url, opts);
6389
+ const request = new Request(url2, opts);
6354
6390
  const options = getNodeRequestOptions(request);
6355
6391
  const send = (options.protocol === "https:" ? https : http).request;
6356
6392
  const signal = request.signal;
@@ -6595,13 +6631,14 @@ var require_lib3 = __commonJS({
6595
6631
  // ../../node_modules/cross-fetch/dist/node-ponyfill.js
6596
6632
  var require_node_ponyfill = __commonJS({
6597
6633
  "../../node_modules/cross-fetch/dist/node-ponyfill.js"(exports, module) {
6634
+ init_cjs_shim();
6598
6635
  var nodeFetch = require_lib3();
6599
6636
  var realFetch = nodeFetch.default || nodeFetch;
6600
- var fetch2 = function(url, options) {
6601
- if (/^\/\//.test(url)) {
6602
- url = "https:" + url;
6637
+ var fetch2 = function(url2, options) {
6638
+ if (/^\/\//.test(url2)) {
6639
+ url2 = "https:" + url2;
6603
6640
  }
6604
- return realFetch.call(this, url, options);
6641
+ return realFetch.call(this, url2, options);
6605
6642
  };
6606
6643
  fetch2.ponyfill = true;
6607
6644
  module.exports = exports = fetch2;
@@ -6616,6 +6653,7 @@ var require_node_ponyfill = __commonJS({
6616
6653
  // ../../node_modules/urijs/src/punycode.js
6617
6654
  var require_punycode = __commonJS({
6618
6655
  "../../node_modules/urijs/src/punycode.js"(exports, module) {
6656
+ init_cjs_shim();
6619
6657
  (function(root) {
6620
6658
  var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
6621
6659
  var freeModule = typeof module == "object" && module && !module.nodeType && module;
@@ -6862,6 +6900,7 @@ var require_punycode = __commonJS({
6862
6900
  // ../../node_modules/urijs/src/IPv6.js
6863
6901
  var require_IPv6 = __commonJS({
6864
6902
  "../../node_modules/urijs/src/IPv6.js"(exports, module) {
6903
+ init_cjs_shim();
6865
6904
  (function(root, factory) {
6866
6905
  "use strict";
6867
6906
  if (typeof module === "object" && module.exports) {
@@ -6980,6 +7019,7 @@ var require_IPv6 = __commonJS({
6980
7019
  // ../../node_modules/urijs/src/SecondLevelDomains.js
6981
7020
  var require_SecondLevelDomains = __commonJS({
6982
7021
  "../../node_modules/urijs/src/SecondLevelDomains.js"(exports, module) {
7022
+ init_cjs_shim();
6983
7023
  (function(root, factory) {
6984
7024
  "use strict";
6985
7025
  if (typeof module === "object" && module.exports) {
@@ -7209,6 +7249,7 @@ var require_SecondLevelDomains = __commonJS({
7209
7249
  // ../../node_modules/urijs/src/URI.js
7210
7250
  var require_URI = __commonJS({
7211
7251
  "../../node_modules/urijs/src/URI.js"(exports, module) {
7252
+ init_cjs_shim();
7212
7253
  (function(root, factory) {
7213
7254
  "use strict";
7214
7255
  if (typeof module === "object" && module.exports) {
@@ -7221,34 +7262,34 @@ var require_URI = __commonJS({
7221
7262
  })(exports, function(punycode, IPv6, SLD, root) {
7222
7263
  "use strict";
7223
7264
  var _URI = root && root.URI;
7224
- function URI2(url, base) {
7265
+ function URI2(url2, base) {
7225
7266
  var _urlSupplied = arguments.length >= 1;
7226
7267
  var _baseSupplied = arguments.length >= 2;
7227
7268
  if (!(this instanceof URI2)) {
7228
7269
  if (_urlSupplied) {
7229
7270
  if (_baseSupplied) {
7230
- return new URI2(url, base);
7271
+ return new URI2(url2, base);
7231
7272
  }
7232
- return new URI2(url);
7273
+ return new URI2(url2);
7233
7274
  }
7234
7275
  return new URI2();
7235
7276
  }
7236
- if (url === void 0) {
7277
+ if (url2 === void 0) {
7237
7278
  if (_urlSupplied) {
7238
7279
  throw new TypeError("undefined is not a valid argument for URI");
7239
7280
  }
7240
7281
  if (typeof location !== "undefined") {
7241
- url = location.href + "";
7282
+ url2 = location.href + "";
7242
7283
  } else {
7243
- url = "";
7284
+ url2 = "";
7244
7285
  }
7245
7286
  }
7246
- if (url === null) {
7287
+ if (url2 === null) {
7247
7288
  if (_urlSupplied) {
7248
7289
  throw new TypeError("null is not a valid argument for URI");
7249
7290
  }
7250
7291
  }
7251
- this.href(url);
7292
+ this.href(url2);
7252
7293
  if (base !== void 0) {
7253
7294
  return this.absoluteTo(base);
7254
7295
  }
@@ -7942,9 +7983,9 @@ var require_URI = __commonJS({
7942
7983
  var segments = [];
7943
7984
  var nonEmptySegments = 0;
7944
7985
  for (var i = 0; i < arguments.length; i++) {
7945
- var url = new URI2(arguments[i]);
7946
- input.push(url);
7947
- var _segments = url.segment();
7986
+ var url2 = new URI2(arguments[i]);
7987
+ input.push(url2);
7988
+ var _segments = url2.segment();
7948
7989
  for (var s = 0; s < _segments.length; s++) {
7949
7990
  if (typeof _segments[s] === "string") {
7950
7991
  segments.push(_segments[s]);
@@ -8579,9 +8620,9 @@ var require_URI = __commonJS({
8579
8620
  };
8580
8621
  p.segment = function(segment, v, build) {
8581
8622
  var separator = this._parts.urn ? ":" : "/";
8582
- var path = this.path();
8583
- var absolute = path.substring(0, 1) === "/";
8584
- var segments = path.split(separator);
8623
+ var path2 = this.path();
8624
+ var absolute = path2.substring(0, 1) === "/";
8625
+ var segments = path2.split(separator);
8585
8626
  if (segment !== void 0 && typeof segment !== "number") {
8586
8627
  build = v;
8587
8628
  v = segment;
@@ -9038,6 +9079,7 @@ var require_URI = __commonJS({
9038
9079
  // ../../node_modules/safe-buffer/index.js
9039
9080
  var require_safe_buffer = __commonJS({
9040
9081
  "../../node_modules/safe-buffer/index.js"(exports, module) {
9082
+ init_cjs_shim();
9041
9083
  var buffer = __require("buffer");
9042
9084
  var Buffer2 = buffer.Buffer;
9043
9085
  function copyProps(src, dst) {
@@ -9096,6 +9138,7 @@ var require_safe_buffer = __commonJS({
9096
9138
  // ../../node_modules/jws/lib/data-stream.js
9097
9139
  var require_data_stream = __commonJS({
9098
9140
  "../../node_modules/jws/lib/data-stream.js"(exports, module) {
9141
+ init_cjs_shim();
9099
9142
  var Buffer2 = require_safe_buffer().Buffer;
9100
9143
  var Stream = __require("stream");
9101
9144
  var util = __require("util");
@@ -9145,6 +9188,7 @@ var require_data_stream = __commonJS({
9145
9188
  var require_buffer_equal_constant_time = __commonJS({
9146
9189
  "../../node_modules/buffer-equal-constant-time/index.js"(exports, module) {
9147
9190
  "use strict";
9191
+ init_cjs_shim();
9148
9192
  var Buffer2 = __require("buffer").Buffer;
9149
9193
  var SlowBuffer = __require("buffer").SlowBuffer;
9150
9194
  module.exports = bufferEq;
@@ -9179,6 +9223,7 @@ var require_buffer_equal_constant_time = __commonJS({
9179
9223
  var require_param_bytes_for_alg = __commonJS({
9180
9224
  "../../node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js"(exports, module) {
9181
9225
  "use strict";
9226
+ init_cjs_shim();
9182
9227
  function getParamSize(keySize) {
9183
9228
  var result = (keySize / 8 | 0) + (keySize % 8 === 0 ? 0 : 1);
9184
9229
  return result;
@@ -9203,6 +9248,7 @@ var require_param_bytes_for_alg = __commonJS({
9203
9248
  var require_ecdsa_sig_formatter = __commonJS({
9204
9249
  "../../node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js"(exports, module) {
9205
9250
  "use strict";
9251
+ init_cjs_shim();
9206
9252
  var Buffer2 = require_safe_buffer().Buffer;
9207
9253
  var getParamBytesForAlg = require_param_bytes_for_alg();
9208
9254
  var MAX_OCTET = 128;
@@ -9342,6 +9388,7 @@ var require_ecdsa_sig_formatter = __commonJS({
9342
9388
  // ../../node_modules/jwa/index.js
9343
9389
  var require_jwa = __commonJS({
9344
9390
  "../../node_modules/jwa/index.js"(exports, module) {
9391
+ init_cjs_shim();
9345
9392
  var bufferEqual = require_buffer_equal_constant_time();
9346
9393
  var Buffer2 = require_safe_buffer().Buffer;
9347
9394
  var crypto = __require("crypto");
@@ -9555,6 +9602,7 @@ var require_jwa = __commonJS({
9555
9602
  // ../../node_modules/jws/lib/tostring.js
9556
9603
  var require_tostring = __commonJS({
9557
9604
  "../../node_modules/jws/lib/tostring.js"(exports, module) {
9605
+ init_cjs_shim();
9558
9606
  var Buffer2 = __require("buffer").Buffer;
9559
9607
  module.exports = function toString(obj) {
9560
9608
  if (typeof obj === "string")
@@ -9569,6 +9617,7 @@ var require_tostring = __commonJS({
9569
9617
  // ../../node_modules/jws/lib/sign-stream.js
9570
9618
  var require_sign_stream = __commonJS({
9571
9619
  "../../node_modules/jws/lib/sign-stream.js"(exports, module) {
9620
+ init_cjs_shim();
9572
9621
  var Buffer2 = require_safe_buffer().Buffer;
9573
9622
  var DataStream = require_data_stream();
9574
9623
  var jwa = require_jwa();
@@ -9639,6 +9688,7 @@ var require_sign_stream = __commonJS({
9639
9688
  // ../../node_modules/jws/lib/verify-stream.js
9640
9689
  var require_verify_stream = __commonJS({
9641
9690
  "../../node_modules/jws/lib/verify-stream.js"(exports, module) {
9691
+ init_cjs_shim();
9642
9692
  var Buffer2 = require_safe_buffer().Buffer;
9643
9693
  var DataStream = require_data_stream();
9644
9694
  var jwa = require_jwa();
@@ -9749,6 +9799,7 @@ var require_verify_stream = __commonJS({
9749
9799
  // ../../node_modules/jws/index.js
9750
9800
  var require_jws = __commonJS({
9751
9801
  "../../node_modules/jws/index.js"(exports) {
9802
+ init_cjs_shim();
9752
9803
  var SignStream = require_sign_stream();
9753
9804
  var VerifyStream = require_verify_stream();
9754
9805
  var ALGORITHMS = [
@@ -9782,6 +9833,7 @@ var require_jws = __commonJS({
9782
9833
  // ../../magda-typescript-common/node_modules/jsonwebtoken/decode.js
9783
9834
  var require_decode = __commonJS({
9784
9835
  "../../magda-typescript-common/node_modules/jsonwebtoken/decode.js"(exports, module) {
9836
+ init_cjs_shim();
9785
9837
  var jws = require_jws();
9786
9838
  module.exports = function(jwt2, options) {
9787
9839
  options = options || {};
@@ -9814,6 +9866,7 @@ var require_decode = __commonJS({
9814
9866
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/JsonWebTokenError.js
9815
9867
  var require_JsonWebTokenError = __commonJS({
9816
9868
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/JsonWebTokenError.js"(exports, module) {
9869
+ init_cjs_shim();
9817
9870
  var JsonWebTokenError = function(message, error) {
9818
9871
  Error.call(this, message);
9819
9872
  if (Error.captureStackTrace) {
@@ -9833,6 +9886,7 @@ var require_JsonWebTokenError = __commonJS({
9833
9886
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/NotBeforeError.js
9834
9887
  var require_NotBeforeError = __commonJS({
9835
9888
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/NotBeforeError.js"(exports, module) {
9889
+ init_cjs_shim();
9836
9890
  var JsonWebTokenError = require_JsonWebTokenError();
9837
9891
  var NotBeforeError = function(message, date) {
9838
9892
  JsonWebTokenError.call(this, message);
@@ -9848,6 +9902,7 @@ var require_NotBeforeError = __commonJS({
9848
9902
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/TokenExpiredError.js
9849
9903
  var require_TokenExpiredError = __commonJS({
9850
9904
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/TokenExpiredError.js"(exports, module) {
9905
+ init_cjs_shim();
9851
9906
  var JsonWebTokenError = require_JsonWebTokenError();
9852
9907
  var TokenExpiredError = function(message, expiredAt) {
9853
9908
  JsonWebTokenError.call(this, message);
@@ -9863,6 +9918,7 @@ var require_TokenExpiredError = __commonJS({
9863
9918
  // ../../node_modules/ms/index.js
9864
9919
  var require_ms = __commonJS({
9865
9920
  "../../node_modules/ms/index.js"(exports, module) {
9921
+ init_cjs_shim();
9866
9922
  var s = 1e3;
9867
9923
  var m = s * 60;
9868
9924
  var h = m * 60;
@@ -9979,6 +10035,7 @@ var require_ms = __commonJS({
9979
10035
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/timespan.js
9980
10036
  var require_timespan = __commonJS({
9981
10037
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/timespan.js"(exports, module) {
10038
+ init_cjs_shim();
9982
10039
  var ms = require_ms();
9983
10040
  module.exports = function(time, iat) {
9984
10041
  var timestamp = iat || Math.floor(Date.now() / 1e3);
@@ -10000,6 +10057,7 @@ var require_timespan = __commonJS({
10000
10057
  // ../../magda-typescript-common/node_modules/semver/internal/constants.js
10001
10058
  var require_constants = __commonJS({
10002
10059
  "../../magda-typescript-common/node_modules/semver/internal/constants.js"(exports, module) {
10060
+ init_cjs_shim();
10003
10061
  var SEMVER_SPEC_VERSION = "2.0.0";
10004
10062
  var MAX_LENGTH = 256;
10005
10063
  var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
@@ -10031,6 +10089,7 @@ var require_constants = __commonJS({
10031
10089
  // ../../magda-typescript-common/node_modules/semver/internal/debug.js
10032
10090
  var require_debug = __commonJS({
10033
10091
  "../../magda-typescript-common/node_modules/semver/internal/debug.js"(exports, module) {
10092
+ init_cjs_shim();
10034
10093
  var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
10035
10094
  };
10036
10095
  module.exports = debug;
@@ -10040,6 +10099,7 @@ var require_debug = __commonJS({
10040
10099
  // ../../magda-typescript-common/node_modules/semver/internal/re.js
10041
10100
  var require_re = __commonJS({
10042
10101
  "../../magda-typescript-common/node_modules/semver/internal/re.js"(exports, module) {
10102
+ init_cjs_shim();
10043
10103
  var {
10044
10104
  MAX_SAFE_COMPONENT_LENGTH,
10045
10105
  MAX_SAFE_BUILD_LENGTH,
@@ -10122,6 +10182,7 @@ var require_re = __commonJS({
10122
10182
  // ../../magda-typescript-common/node_modules/semver/internal/parse-options.js
10123
10183
  var require_parse_options = __commonJS({
10124
10184
  "../../magda-typescript-common/node_modules/semver/internal/parse-options.js"(exports, module) {
10185
+ init_cjs_shim();
10125
10186
  var looseOption = Object.freeze({ loose: true });
10126
10187
  var emptyOpts = Object.freeze({});
10127
10188
  var parseOptions = (options) => {
@@ -10140,6 +10201,7 @@ var require_parse_options = __commonJS({
10140
10201
  // ../../magda-typescript-common/node_modules/semver/internal/identifiers.js
10141
10202
  var require_identifiers = __commonJS({
10142
10203
  "../../magda-typescript-common/node_modules/semver/internal/identifiers.js"(exports, module) {
10204
+ init_cjs_shim();
10143
10205
  var numeric = /^[0-9]+$/;
10144
10206
  var compareIdentifiers = (a, b) => {
10145
10207
  const anum = numeric.test(a);
@@ -10161,6 +10223,7 @@ var require_identifiers = __commonJS({
10161
10223
  // ../../magda-typescript-common/node_modules/semver/classes/semver.js
10162
10224
  var require_semver = __commonJS({
10163
10225
  "../../magda-typescript-common/node_modules/semver/classes/semver.js"(exports, module) {
10226
+ init_cjs_shim();
10164
10227
  var debug = require_debug();
10165
10228
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
10166
10229
  var { safeRe: re, t } = require_re();
@@ -10403,6 +10466,7 @@ var require_semver = __commonJS({
10403
10466
  // ../../magda-typescript-common/node_modules/semver/functions/parse.js
10404
10467
  var require_parse = __commonJS({
10405
10468
  "../../magda-typescript-common/node_modules/semver/functions/parse.js"(exports, module) {
10469
+ init_cjs_shim();
10406
10470
  var SemVer = require_semver();
10407
10471
  var parse = (version, options, throwErrors = false) => {
10408
10472
  if (version instanceof SemVer) {
@@ -10424,6 +10488,7 @@ var require_parse = __commonJS({
10424
10488
  // ../../magda-typescript-common/node_modules/semver/functions/valid.js
10425
10489
  var require_valid = __commonJS({
10426
10490
  "../../magda-typescript-common/node_modules/semver/functions/valid.js"(exports, module) {
10491
+ init_cjs_shim();
10427
10492
  var parse = require_parse();
10428
10493
  var valid = (version, options) => {
10429
10494
  const v = parse(version, options);
@@ -10436,6 +10501,7 @@ var require_valid = __commonJS({
10436
10501
  // ../../magda-typescript-common/node_modules/semver/functions/clean.js
10437
10502
  var require_clean = __commonJS({
10438
10503
  "../../magda-typescript-common/node_modules/semver/functions/clean.js"(exports, module) {
10504
+ init_cjs_shim();
10439
10505
  var parse = require_parse();
10440
10506
  var clean = (version, options) => {
10441
10507
  const s = parse(version.trim().replace(/^[=v]+/, ""), options);
@@ -10448,6 +10514,7 @@ var require_clean = __commonJS({
10448
10514
  // ../../magda-typescript-common/node_modules/semver/functions/inc.js
10449
10515
  var require_inc = __commonJS({
10450
10516
  "../../magda-typescript-common/node_modules/semver/functions/inc.js"(exports, module) {
10517
+ init_cjs_shim();
10451
10518
  var SemVer = require_semver();
10452
10519
  var inc = (version, release, options, identifier, identifierBase) => {
10453
10520
  if (typeof options === "string") {
@@ -10471,6 +10538,7 @@ var require_inc = __commonJS({
10471
10538
  // ../../magda-typescript-common/node_modules/semver/functions/diff.js
10472
10539
  var require_diff = __commonJS({
10473
10540
  "../../magda-typescript-common/node_modules/semver/functions/diff.js"(exports, module) {
10541
+ init_cjs_shim();
10474
10542
  var parse = require_parse();
10475
10543
  var diff = (version1, version2) => {
10476
10544
  const v1 = parse(version1, null, true);
@@ -10515,6 +10583,7 @@ var require_diff = __commonJS({
10515
10583
  // ../../magda-typescript-common/node_modules/semver/functions/major.js
10516
10584
  var require_major = __commonJS({
10517
10585
  "../../magda-typescript-common/node_modules/semver/functions/major.js"(exports, module) {
10586
+ init_cjs_shim();
10518
10587
  var SemVer = require_semver();
10519
10588
  var major = (a, loose) => new SemVer(a, loose).major;
10520
10589
  module.exports = major;
@@ -10524,6 +10593,7 @@ var require_major = __commonJS({
10524
10593
  // ../../magda-typescript-common/node_modules/semver/functions/minor.js
10525
10594
  var require_minor = __commonJS({
10526
10595
  "../../magda-typescript-common/node_modules/semver/functions/minor.js"(exports, module) {
10596
+ init_cjs_shim();
10527
10597
  var SemVer = require_semver();
10528
10598
  var minor = (a, loose) => new SemVer(a, loose).minor;
10529
10599
  module.exports = minor;
@@ -10533,6 +10603,7 @@ var require_minor = __commonJS({
10533
10603
  // ../../magda-typescript-common/node_modules/semver/functions/patch.js
10534
10604
  var require_patch = __commonJS({
10535
10605
  "../../magda-typescript-common/node_modules/semver/functions/patch.js"(exports, module) {
10606
+ init_cjs_shim();
10536
10607
  var SemVer = require_semver();
10537
10608
  var patch = (a, loose) => new SemVer(a, loose).patch;
10538
10609
  module.exports = patch;
@@ -10542,6 +10613,7 @@ var require_patch = __commonJS({
10542
10613
  // ../../magda-typescript-common/node_modules/semver/functions/prerelease.js
10543
10614
  var require_prerelease = __commonJS({
10544
10615
  "../../magda-typescript-common/node_modules/semver/functions/prerelease.js"(exports, module) {
10616
+ init_cjs_shim();
10545
10617
  var parse = require_parse();
10546
10618
  var prerelease = (version, options) => {
10547
10619
  const parsed = parse(version, options);
@@ -10554,6 +10626,7 @@ var require_prerelease = __commonJS({
10554
10626
  // ../../magda-typescript-common/node_modules/semver/functions/compare.js
10555
10627
  var require_compare = __commonJS({
10556
10628
  "../../magda-typescript-common/node_modules/semver/functions/compare.js"(exports, module) {
10629
+ init_cjs_shim();
10557
10630
  var SemVer = require_semver();
10558
10631
  var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
10559
10632
  module.exports = compare;
@@ -10563,6 +10636,7 @@ var require_compare = __commonJS({
10563
10636
  // ../../magda-typescript-common/node_modules/semver/functions/rcompare.js
10564
10637
  var require_rcompare = __commonJS({
10565
10638
  "../../magda-typescript-common/node_modules/semver/functions/rcompare.js"(exports, module) {
10639
+ init_cjs_shim();
10566
10640
  var compare = require_compare();
10567
10641
  var rcompare = (a, b, loose) => compare(b, a, loose);
10568
10642
  module.exports = rcompare;
@@ -10572,6 +10646,7 @@ var require_rcompare = __commonJS({
10572
10646
  // ../../magda-typescript-common/node_modules/semver/functions/compare-loose.js
10573
10647
  var require_compare_loose = __commonJS({
10574
10648
  "../../magda-typescript-common/node_modules/semver/functions/compare-loose.js"(exports, module) {
10649
+ init_cjs_shim();
10575
10650
  var compare = require_compare();
10576
10651
  var compareLoose = (a, b) => compare(a, b, true);
10577
10652
  module.exports = compareLoose;
@@ -10581,6 +10656,7 @@ var require_compare_loose = __commonJS({
10581
10656
  // ../../magda-typescript-common/node_modules/semver/functions/compare-build.js
10582
10657
  var require_compare_build = __commonJS({
10583
10658
  "../../magda-typescript-common/node_modules/semver/functions/compare-build.js"(exports, module) {
10659
+ init_cjs_shim();
10584
10660
  var SemVer = require_semver();
10585
10661
  var compareBuild = (a, b, loose) => {
10586
10662
  const versionA = new SemVer(a, loose);
@@ -10594,6 +10670,7 @@ var require_compare_build = __commonJS({
10594
10670
  // ../../magda-typescript-common/node_modules/semver/functions/sort.js
10595
10671
  var require_sort = __commonJS({
10596
10672
  "../../magda-typescript-common/node_modules/semver/functions/sort.js"(exports, module) {
10673
+ init_cjs_shim();
10597
10674
  var compareBuild = require_compare_build();
10598
10675
  var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
10599
10676
  module.exports = sort;
@@ -10603,6 +10680,7 @@ var require_sort = __commonJS({
10603
10680
  // ../../magda-typescript-common/node_modules/semver/functions/rsort.js
10604
10681
  var require_rsort = __commonJS({
10605
10682
  "../../magda-typescript-common/node_modules/semver/functions/rsort.js"(exports, module) {
10683
+ init_cjs_shim();
10606
10684
  var compareBuild = require_compare_build();
10607
10685
  var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
10608
10686
  module.exports = rsort;
@@ -10612,6 +10690,7 @@ var require_rsort = __commonJS({
10612
10690
  // ../../magda-typescript-common/node_modules/semver/functions/gt.js
10613
10691
  var require_gt = __commonJS({
10614
10692
  "../../magda-typescript-common/node_modules/semver/functions/gt.js"(exports, module) {
10693
+ init_cjs_shim();
10615
10694
  var compare = require_compare();
10616
10695
  var gt = (a, b, loose) => compare(a, b, loose) > 0;
10617
10696
  module.exports = gt;
@@ -10621,6 +10700,7 @@ var require_gt = __commonJS({
10621
10700
  // ../../magda-typescript-common/node_modules/semver/functions/lt.js
10622
10701
  var require_lt = __commonJS({
10623
10702
  "../../magda-typescript-common/node_modules/semver/functions/lt.js"(exports, module) {
10703
+ init_cjs_shim();
10624
10704
  var compare = require_compare();
10625
10705
  var lt = (a, b, loose) => compare(a, b, loose) < 0;
10626
10706
  module.exports = lt;
@@ -10630,6 +10710,7 @@ var require_lt = __commonJS({
10630
10710
  // ../../magda-typescript-common/node_modules/semver/functions/eq.js
10631
10711
  var require_eq = __commonJS({
10632
10712
  "../../magda-typescript-common/node_modules/semver/functions/eq.js"(exports, module) {
10713
+ init_cjs_shim();
10633
10714
  var compare = require_compare();
10634
10715
  var eq2 = (a, b, loose) => compare(a, b, loose) === 0;
10635
10716
  module.exports = eq2;
@@ -10639,6 +10720,7 @@ var require_eq = __commonJS({
10639
10720
  // ../../magda-typescript-common/node_modules/semver/functions/neq.js
10640
10721
  var require_neq = __commonJS({
10641
10722
  "../../magda-typescript-common/node_modules/semver/functions/neq.js"(exports, module) {
10723
+ init_cjs_shim();
10642
10724
  var compare = require_compare();
10643
10725
  var neq = (a, b, loose) => compare(a, b, loose) !== 0;
10644
10726
  module.exports = neq;
@@ -10648,6 +10730,7 @@ var require_neq = __commonJS({
10648
10730
  // ../../magda-typescript-common/node_modules/semver/functions/gte.js
10649
10731
  var require_gte = __commonJS({
10650
10732
  "../../magda-typescript-common/node_modules/semver/functions/gte.js"(exports, module) {
10733
+ init_cjs_shim();
10651
10734
  var compare = require_compare();
10652
10735
  var gte = (a, b, loose) => compare(a, b, loose) >= 0;
10653
10736
  module.exports = gte;
@@ -10657,6 +10740,7 @@ var require_gte = __commonJS({
10657
10740
  // ../../magda-typescript-common/node_modules/semver/functions/lte.js
10658
10741
  var require_lte = __commonJS({
10659
10742
  "../../magda-typescript-common/node_modules/semver/functions/lte.js"(exports, module) {
10743
+ init_cjs_shim();
10660
10744
  var compare = require_compare();
10661
10745
  var lte = (a, b, loose) => compare(a, b, loose) <= 0;
10662
10746
  module.exports = lte;
@@ -10666,6 +10750,7 @@ var require_lte = __commonJS({
10666
10750
  // ../../magda-typescript-common/node_modules/semver/functions/cmp.js
10667
10751
  var require_cmp = __commonJS({
10668
10752
  "../../magda-typescript-common/node_modules/semver/functions/cmp.js"(exports, module) {
10753
+ init_cjs_shim();
10669
10754
  var eq2 = require_eq();
10670
10755
  var neq = require_neq();
10671
10756
  var gt = require_gt();
@@ -10715,6 +10800,7 @@ var require_cmp = __commonJS({
10715
10800
  // ../../magda-typescript-common/node_modules/semver/functions/coerce.js
10716
10801
  var require_coerce = __commonJS({
10717
10802
  "../../magda-typescript-common/node_modules/semver/functions/coerce.js"(exports, module) {
10803
+ init_cjs_shim();
10718
10804
  var SemVer = require_semver();
10719
10805
  var parse = require_parse();
10720
10806
  var { safeRe: re, t } = require_re();
@@ -10755,6 +10841,7 @@ var require_coerce = __commonJS({
10755
10841
  var require_iterator = __commonJS({
10756
10842
  "../../node_modules/yallist/iterator.js"(exports, module) {
10757
10843
  "use strict";
10844
+ init_cjs_shim();
10758
10845
  module.exports = function(Yallist) {
10759
10846
  Yallist.prototype[Symbol.iterator] = function* () {
10760
10847
  for (let walker = this.head; walker; walker = walker.next) {
@@ -10769,6 +10856,7 @@ var require_iterator = __commonJS({
10769
10856
  var require_yallist = __commonJS({
10770
10857
  "../../node_modules/yallist/yallist.js"(exports, module) {
10771
10858
  "use strict";
10859
+ init_cjs_shim();
10772
10860
  module.exports = Yallist;
10773
10861
  Yallist.Node = Node;
10774
10862
  Yallist.create = Yallist;
@@ -11138,6 +11226,7 @@ var require_yallist = __commonJS({
11138
11226
  var require_lru_cache = __commonJS({
11139
11227
  "../../node_modules/lru-cache/index.js"(exports, module) {
11140
11228
  "use strict";
11229
+ init_cjs_shim();
11141
11230
  var Yallist = require_yallist();
11142
11231
  var MAX = Symbol("max");
11143
11232
  var LENGTH = Symbol("length");
@@ -11407,6 +11496,7 @@ var require_lru_cache = __commonJS({
11407
11496
  // ../../magda-typescript-common/node_modules/semver/classes/range.js
11408
11497
  var require_range = __commonJS({
11409
11498
  "../../magda-typescript-common/node_modules/semver/classes/range.js"(exports, module) {
11499
+ init_cjs_shim();
11410
11500
  var Range = class _Range {
11411
11501
  constructor(range, options) {
11412
11502
  options = parseOptions(options);
@@ -11764,6 +11854,7 @@ var require_range = __commonJS({
11764
11854
  // ../../magda-typescript-common/node_modules/semver/classes/comparator.js
11765
11855
  var require_comparator = __commonJS({
11766
11856
  "../../magda-typescript-common/node_modules/semver/classes/comparator.js"(exports, module) {
11857
+ init_cjs_shim();
11767
11858
  var ANY = Symbol("SemVer ANY");
11768
11859
  var Comparator = class _Comparator {
11769
11860
  static get ANY() {
@@ -11876,6 +11967,7 @@ var require_comparator = __commonJS({
11876
11967
  // ../../magda-typescript-common/node_modules/semver/functions/satisfies.js
11877
11968
  var require_satisfies = __commonJS({
11878
11969
  "../../magda-typescript-common/node_modules/semver/functions/satisfies.js"(exports, module) {
11970
+ init_cjs_shim();
11879
11971
  var Range = require_range();
11880
11972
  var satisfies = (version, range, options) => {
11881
11973
  try {
@@ -11892,6 +11984,7 @@ var require_satisfies = __commonJS({
11892
11984
  // ../../magda-typescript-common/node_modules/semver/ranges/to-comparators.js
11893
11985
  var require_to_comparators = __commonJS({
11894
11986
  "../../magda-typescript-common/node_modules/semver/ranges/to-comparators.js"(exports, module) {
11987
+ init_cjs_shim();
11895
11988
  var Range = require_range();
11896
11989
  var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
11897
11990
  module.exports = toComparators;
@@ -11901,6 +11994,7 @@ var require_to_comparators = __commonJS({
11901
11994
  // ../../magda-typescript-common/node_modules/semver/ranges/max-satisfying.js
11902
11995
  var require_max_satisfying = __commonJS({
11903
11996
  "../../magda-typescript-common/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
11997
+ init_cjs_shim();
11904
11998
  var SemVer = require_semver();
11905
11999
  var Range = require_range();
11906
12000
  var maxSatisfying = (versions, range, options) => {
@@ -11929,6 +12023,7 @@ var require_max_satisfying = __commonJS({
11929
12023
  // ../../magda-typescript-common/node_modules/semver/ranges/min-satisfying.js
11930
12024
  var require_min_satisfying = __commonJS({
11931
12025
  "../../magda-typescript-common/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
12026
+ init_cjs_shim();
11932
12027
  var SemVer = require_semver();
11933
12028
  var Range = require_range();
11934
12029
  var minSatisfying = (versions, range, options) => {
@@ -11957,6 +12052,7 @@ var require_min_satisfying = __commonJS({
11957
12052
  // ../../magda-typescript-common/node_modules/semver/ranges/min-version.js
11958
12053
  var require_min_version = __commonJS({
11959
12054
  "../../magda-typescript-common/node_modules/semver/ranges/min-version.js"(exports, module) {
12055
+ init_cjs_shim();
11960
12056
  var SemVer = require_semver();
11961
12057
  var Range = require_range();
11962
12058
  var gt = require_gt();
@@ -12013,6 +12109,7 @@ var require_min_version = __commonJS({
12013
12109
  // ../../magda-typescript-common/node_modules/semver/ranges/valid.js
12014
12110
  var require_valid2 = __commonJS({
12015
12111
  "../../magda-typescript-common/node_modules/semver/ranges/valid.js"(exports, module) {
12112
+ init_cjs_shim();
12016
12113
  var Range = require_range();
12017
12114
  var validRange = (range, options) => {
12018
12115
  try {
@@ -12028,6 +12125,7 @@ var require_valid2 = __commonJS({
12028
12125
  // ../../magda-typescript-common/node_modules/semver/ranges/outside.js
12029
12126
  var require_outside = __commonJS({
12030
12127
  "../../magda-typescript-common/node_modules/semver/ranges/outside.js"(exports, module) {
12128
+ init_cjs_shim();
12031
12129
  var SemVer = require_semver();
12032
12130
  var Comparator = require_comparator();
12033
12131
  var { ANY } = Comparator;
@@ -12096,6 +12194,7 @@ var require_outside = __commonJS({
12096
12194
  // ../../magda-typescript-common/node_modules/semver/ranges/gtr.js
12097
12195
  var require_gtr = __commonJS({
12098
12196
  "../../magda-typescript-common/node_modules/semver/ranges/gtr.js"(exports, module) {
12197
+ init_cjs_shim();
12099
12198
  var outside = require_outside();
12100
12199
  var gtr = (version, range, options) => outside(version, range, ">", options);
12101
12200
  module.exports = gtr;
@@ -12105,6 +12204,7 @@ var require_gtr = __commonJS({
12105
12204
  // ../../magda-typescript-common/node_modules/semver/ranges/ltr.js
12106
12205
  var require_ltr = __commonJS({
12107
12206
  "../../magda-typescript-common/node_modules/semver/ranges/ltr.js"(exports, module) {
12207
+ init_cjs_shim();
12108
12208
  var outside = require_outside();
12109
12209
  var ltr = (version, range, options) => outside(version, range, "<", options);
12110
12210
  module.exports = ltr;
@@ -12114,6 +12214,7 @@ var require_ltr = __commonJS({
12114
12214
  // ../../magda-typescript-common/node_modules/semver/ranges/intersects.js
12115
12215
  var require_intersects = __commonJS({
12116
12216
  "../../magda-typescript-common/node_modules/semver/ranges/intersects.js"(exports, module) {
12217
+ init_cjs_shim();
12117
12218
  var Range = require_range();
12118
12219
  var intersects = (r1, r2, options) => {
12119
12220
  r1 = new Range(r1, options);
@@ -12127,6 +12228,7 @@ var require_intersects = __commonJS({
12127
12228
  // ../../magda-typescript-common/node_modules/semver/ranges/simplify.js
12128
12229
  var require_simplify = __commonJS({
12129
12230
  "../../magda-typescript-common/node_modules/semver/ranges/simplify.js"(exports, module) {
12231
+ init_cjs_shim();
12130
12232
  var satisfies = require_satisfies();
12131
12233
  var compare = require_compare();
12132
12234
  module.exports = (versions, range, options) => {
@@ -12176,6 +12278,7 @@ var require_simplify = __commonJS({
12176
12278
  // ../../magda-typescript-common/node_modules/semver/ranges/subset.js
12177
12279
  var require_subset = __commonJS({
12178
12280
  "../../magda-typescript-common/node_modules/semver/ranges/subset.js"(exports, module) {
12281
+ init_cjs_shim();
12179
12282
  var Range = require_range();
12180
12283
  var Comparator = require_comparator();
12181
12284
  var { ANY } = Comparator;
@@ -12338,6 +12441,7 @@ var require_subset = __commonJS({
12338
12441
  // ../../magda-typescript-common/node_modules/semver/index.js
12339
12442
  var require_semver2 = __commonJS({
12340
12443
  "../../magda-typescript-common/node_modules/semver/index.js"(exports, module) {
12444
+ init_cjs_shim();
12341
12445
  var internalRe = require_re();
12342
12446
  var constants = require_constants();
12343
12447
  var SemVer = require_semver();
@@ -12432,6 +12536,7 @@ var require_semver2 = __commonJS({
12432
12536
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js
12433
12537
  var require_asymmetricKeyDetailsSupported = __commonJS({
12434
12538
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js"(exports, module) {
12539
+ init_cjs_shim();
12435
12540
  var semver = require_semver2();
12436
12541
  module.exports = semver.satisfies(process.version, ">=15.7.0");
12437
12542
  }
@@ -12440,6 +12545,7 @@ var require_asymmetricKeyDetailsSupported = __commonJS({
12440
12545
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js
12441
12546
  var require_rsaPssKeyDetailsSupported = __commonJS({
12442
12547
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js"(exports, module) {
12548
+ init_cjs_shim();
12443
12549
  var semver = require_semver2();
12444
12550
  module.exports = semver.satisfies(process.version, ">=16.9.0");
12445
12551
  }
@@ -12448,6 +12554,7 @@ var require_rsaPssKeyDetailsSupported = __commonJS({
12448
12554
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js
12449
12555
  var require_validateAsymmetricKey = __commonJS({
12450
12556
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js"(exports, module) {
12557
+ init_cjs_shim();
12451
12558
  var ASYMMETRIC_KEY_DETAILS_SUPPORTED = require_asymmetricKeyDetailsSupported();
12452
12559
  var RSA_PSS_KEY_DETAILS_SUPPORTED = require_rsaPssKeyDetailsSupported();
12453
12560
  var allowedAlgorithmsForKeys = {
@@ -12503,6 +12610,7 @@ var require_validateAsymmetricKey = __commonJS({
12503
12610
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/psSupported.js
12504
12611
  var require_psSupported = __commonJS({
12505
12612
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/psSupported.js"(exports, module) {
12613
+ init_cjs_shim();
12506
12614
  var semver = require_semver2();
12507
12615
  module.exports = semver.satisfies(process.version, "^6.12.0 || >=8.0.0");
12508
12616
  }
@@ -12511,6 +12619,7 @@ var require_psSupported = __commonJS({
12511
12619
  // ../../magda-typescript-common/node_modules/jsonwebtoken/verify.js
12512
12620
  var require_verify = __commonJS({
12513
12621
  "../../magda-typescript-common/node_modules/jsonwebtoken/verify.js"(exports, module) {
12622
+ init_cjs_shim();
12514
12623
  var JsonWebTokenError = require_JsonWebTokenError();
12515
12624
  var NotBeforeError = require_NotBeforeError();
12516
12625
  var TokenExpiredError = require_TokenExpiredError();
@@ -12727,6 +12836,7 @@ var require_verify = __commonJS({
12727
12836
  // ../../node_modules/lodash.includes/index.js
12728
12837
  var require_lodash = __commonJS({
12729
12838
  "../../node_modules/lodash.includes/index.js"(exports, module) {
12839
+ init_cjs_shim();
12730
12840
  var INFINITY = 1 / 0;
12731
12841
  var MAX_SAFE_INTEGER = 9007199254740991;
12732
12842
  var MAX_INTEGER = 17976931348623157e292;
@@ -12911,6 +13021,7 @@ var require_lodash = __commonJS({
12911
13021
  // ../../node_modules/lodash.isboolean/index.js
12912
13022
  var require_lodash2 = __commonJS({
12913
13023
  "../../node_modules/lodash.isboolean/index.js"(exports, module) {
13024
+ init_cjs_shim();
12914
13025
  var boolTag = "[object Boolean]";
12915
13026
  var objectProto = Object.prototype;
12916
13027
  var objectToString = objectProto.toString;
@@ -12927,6 +13038,7 @@ var require_lodash2 = __commonJS({
12927
13038
  // ../../node_modules/lodash.isinteger/index.js
12928
13039
  var require_lodash3 = __commonJS({
12929
13040
  "../../node_modules/lodash.isinteger/index.js"(exports, module) {
13041
+ init_cjs_shim();
12930
13042
  var INFINITY = 1 / 0;
12931
13043
  var MAX_INTEGER = 17976931348623157e292;
12932
13044
  var NAN = 0 / 0;
@@ -12991,6 +13103,7 @@ var require_lodash3 = __commonJS({
12991
13103
  // ../../node_modules/lodash.isnumber/index.js
12992
13104
  var require_lodash4 = __commonJS({
12993
13105
  "../../node_modules/lodash.isnumber/index.js"(exports, module) {
13106
+ init_cjs_shim();
12994
13107
  var numberTag = "[object Number]";
12995
13108
  var objectProto = Object.prototype;
12996
13109
  var objectToString = objectProto.toString;
@@ -13007,6 +13120,7 @@ var require_lodash4 = __commonJS({
13007
13120
  // ../../node_modules/lodash.isplainobject/index.js
13008
13121
  var require_lodash5 = __commonJS({
13009
13122
  "../../node_modules/lodash.isplainobject/index.js"(exports, module) {
13123
+ init_cjs_shim();
13010
13124
  var objectTag = "[object Object]";
13011
13125
  function isHostObject(value) {
13012
13126
  var result = false;
@@ -13051,6 +13165,7 @@ var require_lodash5 = __commonJS({
13051
13165
  // ../../node_modules/lodash.isstring/index.js
13052
13166
  var require_lodash6 = __commonJS({
13053
13167
  "../../node_modules/lodash.isstring/index.js"(exports, module) {
13168
+ init_cjs_shim();
13054
13169
  var stringTag = "[object String]";
13055
13170
  var objectProto = Object.prototype;
13056
13171
  var objectToString = objectProto.toString;
@@ -13068,6 +13183,7 @@ var require_lodash6 = __commonJS({
13068
13183
  // ../../node_modules/lodash.once/index.js
13069
13184
  var require_lodash7 = __commonJS({
13070
13185
  "../../node_modules/lodash.once/index.js"(exports, module) {
13186
+ init_cjs_shim();
13071
13187
  var FUNC_ERROR_TEXT = "Expected a function";
13072
13188
  var INFINITY = 1 / 0;
13073
13189
  var MAX_INTEGER = 17976931348623157e292;
@@ -13149,6 +13265,7 @@ var require_lodash7 = __commonJS({
13149
13265
  // ../../magda-typescript-common/node_modules/jsonwebtoken/sign.js
13150
13266
  var require_sign = __commonJS({
13151
13267
  "../../magda-typescript-common/node_modules/jsonwebtoken/sign.js"(exports, module) {
13268
+ init_cjs_shim();
13152
13269
  var timespan = require_timespan();
13153
13270
  var PS_SUPPORTED = require_psSupported();
13154
13271
  var validateAsymmetricKey = require_validateAsymmetricKey();
@@ -13374,6 +13491,7 @@ var require_sign = __commonJS({
13374
13491
  // ../../magda-typescript-common/node_modules/jsonwebtoken/index.js
13375
13492
  var require_jsonwebtoken = __commonJS({
13376
13493
  "../../magda-typescript-common/node_modules/jsonwebtoken/index.js"(exports, module) {
13494
+ init_cjs_shim();
13377
13495
  module.exports = {
13378
13496
  decode: require_decode(),
13379
13497
  verify: require_verify(),
@@ -13396,13 +13514,21 @@ var MAGDA_ADMIN_PORTAL_ID, MAGDA_SYSTEM_ID, MAGDA_TENANT_ID_HEADER;
13396
13514
  var init_TenantConsts = __esm({
13397
13515
  "../../magda-typescript-common/dist/registry/TenantConsts.js"() {
13398
13516
  "use strict";
13517
+ init_cjs_shim();
13399
13518
  MAGDA_ADMIN_PORTAL_ID = 0;
13400
13519
  MAGDA_SYSTEM_ID = -1;
13401
13520
  MAGDA_TENANT_ID_HEADER = "X-Magda-Tenant-Id";
13402
13521
  }
13403
13522
  });
13404
13523
 
13524
+ // src/index.ts
13525
+ init_cjs_shim();
13526
+
13527
+ // ../../magda-typescript-common/dist/registry/RegistryClient.js
13528
+ init_cjs_shim();
13529
+
13405
13530
  // ../../magda-typescript-common/dist/generated/registry/api.js
13531
+ init_cjs_shim();
13406
13532
  var import_cross_fetch = __toESM(require_node_ponyfill(), 1);
13407
13533
  var defaultBasePath = "http://localhost/api/v0/registry/";
13408
13534
  var AspectDefinition = class {
@@ -13487,19 +13613,19 @@ var isTextMimeType = (contentType) => /text\/.*/i.test(contentType) || /[\/|\+]x
13487
13613
  var isNotEmpty = (val) => val !== null && val !== void 0;
13488
13614
  async function fetchWithRequestOptions(requestOptions) {
13489
13615
  const { uri, qs, json, encoding, form, formData, ...fetchOptions } = requestOptions;
13490
- const url = new URL(uri);
13616
+ const url2 = new URL(uri);
13491
13617
  if (qs && Object.keys(qs).length > 0) {
13492
13618
  for (const key in qs) {
13493
13619
  const value = qs[key];
13494
- url.searchParams.delete(key);
13620
+ url2.searchParams.delete(key);
13495
13621
  if (!isNotEmpty(value)) {
13496
- url.searchParams.append(key, "");
13622
+ url2.searchParams.append(key, "");
13497
13623
  continue;
13498
13624
  }
13499
13625
  if (Array.isArray(value)) {
13500
- value.forEach((v) => url.searchParams.append(key, v));
13626
+ value.forEach((v) => url2.searchParams.append(key, v));
13501
13627
  } else {
13502
- url.searchParams.append(key, value);
13628
+ url2.searchParams.append(key, value);
13503
13629
  }
13504
13630
  }
13505
13631
  }
@@ -13540,7 +13666,7 @@ async function fetchWithRequestOptions(requestOptions) {
13540
13666
  }
13541
13667
  fetchOptions.body = form2;
13542
13668
  }
13543
- const res = await (0, import_cross_fetch.default)(url, fetchOptions);
13669
+ const res = await (0, import_cross_fetch.default)(url2, fetchOptions);
13544
13670
  let contentType = res.headers.get("Content-Type");
13545
13671
  contentType = contentType ? contentType : "";
13546
13672
  let body;
@@ -15364,7 +15490,11 @@ var WebHooksApi = class {
15364
15490
  // ../../magda-typescript-common/dist/registry/RegistryClient.js
15365
15491
  var import_urijs = __toESM(require_URI(), 1);
15366
15492
 
15493
+ // ../../magda-typescript-common/dist/retry.js
15494
+ init_cjs_shim();
15495
+
15367
15496
  // ../../magda-typescript-common/dist/runLater.js
15497
+ init_cjs_shim();
15368
15498
  function runLater(milliseconds = 0, functionToRunLater) {
15369
15499
  return new Promise((resolve, reject) => {
15370
15500
  setTimeout(() => {
@@ -15392,6 +15522,7 @@ function retry(op, delaySeconds, retries, onRetry, shouldRetry = () => true) {
15392
15522
  }
15393
15523
 
15394
15524
  // ../../magda-typescript-common/dist/formatServiceError.js
15525
+ init_cjs_shim();
15395
15526
  function formatServiceError(baseMessage, e, retriesLeft) {
15396
15527
  let messageParts = [baseMessage];
15397
15528
  if (retriesLeft) {
@@ -15415,6 +15546,7 @@ ${JSON.stringify(e, null, " ")}`);
15415
15546
  }
15416
15547
 
15417
15548
  // ../../magda-typescript-common/dist/ServerError.js
15549
+ init_cjs_shim();
15418
15550
  var ServerError = class extends Error {
15419
15551
  statusCode;
15420
15552
  constructor(message = "Unknown Error", statusCode = 500) {
@@ -15516,13 +15648,24 @@ var RegistryClient = class {
15516
15648
  }
15517
15649
  };
15518
15650
 
15651
+ // ../../magda-typescript-common/dist/registry/AuthorizedRegistryClient.js
15652
+ init_cjs_shim();
15653
+
15519
15654
  // ../../magda-typescript-common/dist/session/buildJwt.js
15655
+ init_cjs_shim();
15520
15656
  var import_jsonwebtoken = __toESM(require_jsonwebtoken(), 1);
15521
15657
  function buildJwt(jwtSecret, userId, session = {}) {
15522
15658
  return import_jsonwebtoken.default.sign({ userId, session }, jwtSecret);
15523
15659
  }
15524
15660
 
15661
+ // ../../node_modules/@magda/tsmonad/dist/index.js
15662
+ init_cjs_shim();
15663
+
15664
+ // ../../node_modules/@magda/tsmonad/dist/either.js
15665
+ init_cjs_shim();
15666
+
15525
15667
  // ../../node_modules/@magda/tsmonad/dist/monad.js
15668
+ init_cjs_shim();
15526
15669
  function eq(a, b) {
15527
15670
  var idx = 0;
15528
15671
  if (a === b) {
@@ -15550,6 +15693,7 @@ var EitherType;
15550
15693
  })(EitherType || (EitherType = {}));
15551
15694
 
15552
15695
  // ../../node_modules/@magda/tsmonad/dist/maybe.js
15696
+ init_cjs_shim();
15553
15697
  var MaybeType;
15554
15698
  (function(MaybeType2) {
15555
15699
  MaybeType2[MaybeType2["Nothing"] = 0] = "Nothing";
@@ -15640,6 +15784,9 @@ var Maybe = class _Maybe {
15640
15784
  }
15641
15785
  };
15642
15786
 
15787
+ // ../../node_modules/@magda/tsmonad/dist/writer.js
15788
+ init_cjs_shim();
15789
+
15643
15790
  // ../../magda-typescript-common/dist/registry/AuthorizedRegistryClient.js
15644
15791
  var AuthorizedRegistryClient = class extends RegistryClient {
15645
15792
  jwt = void 0;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@magda/registry-client",
3
3
  "description": "MAGDA Registry Client",
4
- "version": "3.0.1-alpha.0",
4
+ "version": "3.0.2-alpha.0",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "main": "dist/index.js",
24
24
  "types": "dist/index.d.ts",
25
25
  "devDependencies": {
26
- "@magda/typescript-common": "^3.0.1-alpha.0",
26
+ "@magda/typescript-common": "^3.0.2-alpha.0",
27
27
  "@microsoft/api-extractor": "~7.39.0",
28
28
  "esbuild": "^0.19.10",
29
29
  "ts-loader": "^9.5.1",