@magda/auth-api-client 1.2.2-alpha.0 → 1.3.0-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 +2 -2
package/dist/index.js CHANGED
@@ -1806,7 +1806,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
1806
1806
  * URI.js - Mutating URLs
1807
1807
  * IPv6 Support
1808
1808
  *
1809
- * Version: 1.19.5
1809
+ * Version: 1.19.11
1810
1810
  *
1811
1811
  * Author: Rodney Rehm
1812
1812
  * Web: http://medialize.github.io/URI.js/
@@ -1998,7 +1998,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
1998
1998
  * URI.js - Mutating URLs
1999
1999
  * Second Level Domain (SLD) Support
2000
2000
  *
2001
- * Version: 1.19.5
2001
+ * Version: 1.19.11
2002
2002
  *
2003
2003
  * Author: Rodney Rehm
2004
2004
  * Web: http://medialize.github.io/URI.js/
@@ -27607,7 +27607,7 @@ exports.default = addTrailingSlash;
27607
27607
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
27608
27608
  * URI.js - Mutating URLs
27609
27609
  *
27610
- * Version: 1.19.5
27610
+ * Version: 1.19.11
27611
27611
  *
27612
27612
  * Author: Rodney Rehm
27613
27613
  * Web: http://medialize.github.io/URI.js/
@@ -27687,7 +27687,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
27687
27687
  return /^[0-9]+$/.test(value);
27688
27688
  }
27689
27689
 
27690
- URI.version = '1.19.5';
27690
+ URI.version = '1.19.11';
27691
27691
 
27692
27692
  var p = URI.prototype;
27693
27693
  var hasOwn = Object.prototype.hasOwnProperty;
@@ -27845,6 +27845,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
27845
27845
  // balanced parens inclusion (), [], {}, <>
27846
27846
  parens: /(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g,
27847
27847
  };
27848
+ URI.leading_whitespace_expression = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/
27849
+ // https://infra.spec.whatwg.org/#ascii-tab-or-newline
27850
+ URI.ascii_tab_whitespace = /[\u0009\u000A\u000D]+/g
27848
27851
  // http://www.iana.org/assignments/uri-schemes.html
27849
27852
  // http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Well-known_ports
27850
27853
  URI.defaultPorts = {
@@ -28100,6 +28103,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
28100
28103
  preventInvalidHostname: URI.preventInvalidHostname
28101
28104
  };
28102
28105
  }
28106
+
28107
+ string = string.replace(URI.leading_whitespace_expression, '')
28108
+ // https://infra.spec.whatwg.org/#ascii-tab-or-newline
28109
+ string = string.replace(URI.ascii_tab_whitespace, '')
28110
+
28103
28111
  // [protocol"://"[username[":"password]"@"]hostname[":"port]"/"?][path]["?"querystring]["#"fragment]
28104
28112
 
28105
28113
  // extract fragment
@@ -28118,6 +28126,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
28118
28126
  string = string.substring(0, pos);
28119
28127
  }
28120
28128
 
28129
+ // slashes and backslashes have lost all meaning for the web protocols (https, http, wss, ws)
28130
+ string = string.replace(/^(https?|ftp|wss?)?:+[/\\]*/i, '$1://');
28131
+ // slashes and backslashes have lost all meaning for scheme relative URLs
28132
+ string = string.replace(/^[/\\]{2,}/i, '//');
28133
+
28121
28134
  // extract protocol
28122
28135
  if (string.substring(0, 2) === '//') {
28123
28136
  // relative-scheme
@@ -28132,7 +28145,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
28132
28145
  if (parts.protocol && !parts.protocol.match(URI.protocol_expression)) {
28133
28146
  // : may be within the path
28134
28147
  parts.protocol = undefined;
28135
- } else if (string.substring(pos + 1, pos + 3) === '//') {
28148
+ } else if (string.substring(pos + 1, pos + 3).replace(/\\/g, '/') === '//') {
28136
28149
  string = string.substring(pos + 3);
28137
28150
 
28138
28151
  // extract "user:pass@host:port"
@@ -28264,7 +28277,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
28264
28277
  // no "=" is null according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#collect-url-parameters
28265
28278
  value = v.length ? URI.decodeQuery(v.join('='), escapeQuerySpace) : null;
28266
28279
 
28267
- if (hasOwn.call(items, name)) {
28280
+ if (name === '__proto__') {
28281
+ // ignore attempt at exploiting JavaScript internals
28282
+ continue;
28283
+ } else if (hasOwn.call(items, name)) {
28268
28284
  if (typeof items[name] === 'string' || items[name] === null) {
28269
28285
  items[name] = [items[name]];
28270
28286
  }
@@ -28357,7 +28373,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
28357
28373
  var t = '';
28358
28374
  var unique, key, i, length;
28359
28375
  for (key in data) {
28360
- if (hasOwn.call(data, key)) {
28376
+ if (key === '__proto__') {
28377
+ // ignore attempt at exploiting JavaScript internals
28378
+ continue;
28379
+ } else if (hasOwn.call(data, key)) {
28361
28380
  if (isArray(data[key])) {
28362
28381
  unique = {};
28363
28382
  for (i = 0, length = data[key].length; i < length; i++) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@magda/auth-api-client",
3
3
  "description": "MAGDA Auth API Client",
4
- "version": "1.2.2-alpha.0",
4
+ "version": "1.3.0-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.0-rc.0",
16
16
  "@microsoft/api-extractor": "^7.7.8",
17
17
  "ts-loader": "^6.2.1",
18
18
  "typescript": "^3.7.2",