@magda/registry-client 1.2.2-alpha.0 → 1.3.1-rc.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 +26 -7
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -18070,7 +18070,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
18070
18070
  * URI.js - Mutating URLs
18071
18071
  * IPv6 Support
18072
18072
  *
18073
- * Version: 1.19.5
18073
+ * Version: 1.19.11
18074
18074
  *
18075
18075
  * Author: Rodney Rehm
18076
18076
  * Web: http://medialize.github.io/URI.js/
@@ -18262,7 +18262,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
18262
18262
  * URI.js - Mutating URLs
18263
18263
  * Second Level Domain (SLD) Support
18264
18264
  *
18265
- * Version: 1.19.5
18265
+ * Version: 1.19.11
18266
18266
  *
18267
18267
  * Author: Rodney Rehm
18268
18268
  * Web: http://medialize.github.io/URI.js/
@@ -36540,7 +36540,7 @@ module.exports = require("events");
36540
36540
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
36541
36541
  * URI.js - Mutating URLs
36542
36542
  *
36543
- * Version: 1.19.5
36543
+ * Version: 1.19.11
36544
36544
  *
36545
36545
  * Author: Rodney Rehm
36546
36546
  * Web: http://medialize.github.io/URI.js/
@@ -36620,7 +36620,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
36620
36620
  return /^[0-9]+$/.test(value);
36621
36621
  }
36622
36622
 
36623
- URI.version = '1.19.5';
36623
+ URI.version = '1.19.11';
36624
36624
 
36625
36625
  var p = URI.prototype;
36626
36626
  var hasOwn = Object.prototype.hasOwnProperty;
@@ -36778,6 +36778,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
36778
36778
  // balanced parens inclusion (), [], {}, <>
36779
36779
  parens: /(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g,
36780
36780
  };
36781
+ URI.leading_whitespace_expression = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/
36782
+ // https://infra.spec.whatwg.org/#ascii-tab-or-newline
36783
+ URI.ascii_tab_whitespace = /[\u0009\u000A\u000D]+/g
36781
36784
  // http://www.iana.org/assignments/uri-schemes.html
36782
36785
  // http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Well-known_ports
36783
36786
  URI.defaultPorts = {
@@ -37033,6 +37036,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
37033
37036
  preventInvalidHostname: URI.preventInvalidHostname
37034
37037
  };
37035
37038
  }
37039
+
37040
+ string = string.replace(URI.leading_whitespace_expression, '')
37041
+ // https://infra.spec.whatwg.org/#ascii-tab-or-newline
37042
+ string = string.replace(URI.ascii_tab_whitespace, '')
37043
+
37036
37044
  // [protocol"://"[username[":"password]"@"]hostname[":"port]"/"?][path]["?"querystring]["#"fragment]
37037
37045
 
37038
37046
  // extract fragment
@@ -37051,6 +37059,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
37051
37059
  string = string.substring(0, pos);
37052
37060
  }
37053
37061
 
37062
+ // slashes and backslashes have lost all meaning for the web protocols (https, http, wss, ws)
37063
+ string = string.replace(/^(https?|ftp|wss?)?:+[/\\]*/i, '$1://');
37064
+ // slashes and backslashes have lost all meaning for scheme relative URLs
37065
+ string = string.replace(/^[/\\]{2,}/i, '//');
37066
+
37054
37067
  // extract protocol
37055
37068
  if (string.substring(0, 2) === '//') {
37056
37069
  // relative-scheme
@@ -37065,7 +37078,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
37065
37078
  if (parts.protocol && !parts.protocol.match(URI.protocol_expression)) {
37066
37079
  // : may be within the path
37067
37080
  parts.protocol = undefined;
37068
- } else if (string.substring(pos + 1, pos + 3) === '//') {
37081
+ } else if (string.substring(pos + 1, pos + 3).replace(/\\/g, '/') === '//') {
37069
37082
  string = string.substring(pos + 3);
37070
37083
 
37071
37084
  // extract "user:pass@host:port"
@@ -37197,7 +37210,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
37197
37210
  // no "=" is null according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#collect-url-parameters
37198
37211
  value = v.length ? URI.decodeQuery(v.join('='), escapeQuerySpace) : null;
37199
37212
 
37200
- if (hasOwn.call(items, name)) {
37213
+ if (name === '__proto__') {
37214
+ // ignore attempt at exploiting JavaScript internals
37215
+ continue;
37216
+ } else if (hasOwn.call(items, name)) {
37201
37217
  if (typeof items[name] === 'string' || items[name] === null) {
37202
37218
  items[name] = [items[name]];
37203
37219
  }
@@ -37290,7 +37306,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
37290
37306
  var t = '';
37291
37307
  var unique, key, i, length;
37292
37308
  for (key in data) {
37293
- if (hasOwn.call(data, key)) {
37309
+ if (key === '__proto__') {
37310
+ // ignore attempt at exploiting JavaScript internals
37311
+ continue;
37312
+ } else if (hasOwn.call(data, key)) {
37294
37313
  if (isArray(data[key])) {
37295
37314
  unique = {};
37296
37315
  for (i = 0, length = data[key].length; i < length; i++) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@magda/registry-client",
3
3
  "description": "MAGDA Registry Client",
4
- "version": "1.2.2-alpha.0",
4
+ "version": "1.3.1-rc.0",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf dist tsconfig.tsbuildinfo",
7
7
  "build": "webpack && api-extractor run -l",
@@ -12,7 +12,7 @@
12
12
  "main": "dist/index.js",
13
13
  "types": "dist/index.d.ts",
14
14
  "devDependencies": {
15
- "@magda/typescript-common": "^1.2.2-alpha.0",
15
+ "@magda/typescript-common": "^1.3.1-rc.0",
16
16
  "@microsoft/api-extractor": "^7.7.8",
17
17
  "ts-loader": "^6.2.1",
18
18
  "typescript": "^3.7.2",
@@ -20,7 +20,7 @@
20
20
  "webpack-cli": "^3.3.10"
21
21
  },
22
22
  "dependencies": {
23
- "@types/urijs": "1.19.13"
23
+ "@types/urijs": "^1.19.19"
24
24
  },
25
25
  "magda": {
26
26
  "language": "typescript",