@magda/connector-sdk 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
@@ -22139,7 +22139,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
22139
22139
  * URI.js - Mutating URLs
22140
22140
  * IPv6 Support
22141
22141
  *
22142
- * Version: 1.19.5
22142
+ * Version: 1.19.11
22143
22143
  *
22144
22144
  * Author: Rodney Rehm
22145
22145
  * Web: http://medialize.github.io/URI.js/
@@ -22331,7 +22331,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
22331
22331
  * URI.js - Mutating URLs
22332
22332
  * Second Level Domain (SLD) Support
22333
22333
  *
22334
- * Version: 1.19.5
22334
+ * Version: 1.19.11
22335
22335
  *
22336
22336
  * Author: Rodney Rehm
22337
22337
  * Web: http://medialize.github.io/URI.js/
@@ -48264,7 +48264,7 @@ exports.debug = debug // for test
48264
48264
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
48265
48265
  * URI.js - Mutating URLs
48266
48266
  *
48267
- * Version: 1.19.5
48267
+ * Version: 1.19.11
48268
48268
  *
48269
48269
  * Author: Rodney Rehm
48270
48270
  * Web: http://medialize.github.io/URI.js/
@@ -48344,7 +48344,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
48344
48344
  return /^[0-9]+$/.test(value);
48345
48345
  }
48346
48346
 
48347
- URI.version = '1.19.5';
48347
+ URI.version = '1.19.11';
48348
48348
 
48349
48349
  var p = URI.prototype;
48350
48350
  var hasOwn = Object.prototype.hasOwnProperty;
@@ -48502,6 +48502,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
48502
48502
  // balanced parens inclusion (), [], {}, <>
48503
48503
  parens: /(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g,
48504
48504
  };
48505
+ URI.leading_whitespace_expression = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/
48506
+ // https://infra.spec.whatwg.org/#ascii-tab-or-newline
48507
+ URI.ascii_tab_whitespace = /[\u0009\u000A\u000D]+/g
48505
48508
  // http://www.iana.org/assignments/uri-schemes.html
48506
48509
  // http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Well-known_ports
48507
48510
  URI.defaultPorts = {
@@ -48757,6 +48760,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
48757
48760
  preventInvalidHostname: URI.preventInvalidHostname
48758
48761
  };
48759
48762
  }
48763
+
48764
+ string = string.replace(URI.leading_whitespace_expression, '')
48765
+ // https://infra.spec.whatwg.org/#ascii-tab-or-newline
48766
+ string = string.replace(URI.ascii_tab_whitespace, '')
48767
+
48760
48768
  // [protocol"://"[username[":"password]"@"]hostname[":"port]"/"?][path]["?"querystring]["#"fragment]
48761
48769
 
48762
48770
  // extract fragment
@@ -48775,6 +48783,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
48775
48783
  string = string.substring(0, pos);
48776
48784
  }
48777
48785
 
48786
+ // slashes and backslashes have lost all meaning for the web protocols (https, http, wss, ws)
48787
+ string = string.replace(/^(https?|ftp|wss?)?:+[/\\]*/i, '$1://');
48788
+ // slashes and backslashes have lost all meaning for scheme relative URLs
48789
+ string = string.replace(/^[/\\]{2,}/i, '//');
48790
+
48778
48791
  // extract protocol
48779
48792
  if (string.substring(0, 2) === '//') {
48780
48793
  // relative-scheme
@@ -48789,7 +48802,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
48789
48802
  if (parts.protocol && !parts.protocol.match(URI.protocol_expression)) {
48790
48803
  // : may be within the path
48791
48804
  parts.protocol = undefined;
48792
- } else if (string.substring(pos + 1, pos + 3) === '//') {
48805
+ } else if (string.substring(pos + 1, pos + 3).replace(/\\/g, '/') === '//') {
48793
48806
  string = string.substring(pos + 3);
48794
48807
 
48795
48808
  // extract "user:pass@host:port"
@@ -48921,7 +48934,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
48921
48934
  // no "=" is null according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#collect-url-parameters
48922
48935
  value = v.length ? URI.decodeQuery(v.join('='), escapeQuerySpace) : null;
48923
48936
 
48924
- if (hasOwn.call(items, name)) {
48937
+ if (name === '__proto__') {
48938
+ // ignore attempt at exploiting JavaScript internals
48939
+ continue;
48940
+ } else if (hasOwn.call(items, name)) {
48925
48941
  if (typeof items[name] === 'string' || items[name] === null) {
48926
48942
  items[name] = [items[name]];
48927
48943
  }
@@ -49014,7 +49030,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
49014
49030
  var t = '';
49015
49031
  var unique, key, i, length;
49016
49032
  for (key in data) {
49017
- if (hasOwn.call(data, key)) {
49033
+ if (key === '__proto__') {
49034
+ // ignore attempt at exploiting JavaScript internals
49035
+ continue;
49036
+ } else if (hasOwn.call(data, key)) {
49018
49037
  if (isArray(data[key])) {
49019
49038
  unique = {};
49020
49039
  for (i = 0, length = data[key].length; i < length; i++) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@magda/connector-sdk",
3
3
  "description": "MAGDA Connector SDK",
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
  "compile": "webpack && webpack --env.target=web",
@@ -14,7 +14,7 @@
14
14
  "main": "dist/index.js",
15
15
  "browser": "dist/index-web.js",
16
16
  "devDependencies": {
17
- "@magda/typescript-common": "^1.2.2-alpha.0",
17
+ "@magda/typescript-common": "^1.3.1-rc.0",
18
18
  "@microsoft/api-extractor": "^7.7.8",
19
19
  "ts-loader": "^6.2.1",
20
20
  "typescript": "^3.7.2",
@@ -23,7 +23,7 @@
23
23
  "webpack-node-externals": "^1.7.2"
24
24
  },
25
25
  "dependencies": {
26
- "@types/urijs": "1.19.13",
26
+ "@types/urijs": "^1.19.19",
27
27
  "@types/yargs": "^12.0.8"
28
28
  },
29
29
  "magda": {