@magda/minion-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.
- package/dist/index.js +26 -7
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -44349,7 +44349,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
44349
44349
|
* URI.js - Mutating URLs
|
|
44350
44350
|
* IPv6 Support
|
|
44351
44351
|
*
|
|
44352
|
-
* Version: 1.19.
|
|
44352
|
+
* Version: 1.19.11
|
|
44353
44353
|
*
|
|
44354
44354
|
* Author: Rodney Rehm
|
|
44355
44355
|
* Web: http://medialize.github.io/URI.js/
|
|
@@ -44541,7 +44541,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
|
44541
44541
|
* URI.js - Mutating URLs
|
|
44542
44542
|
* Second Level Domain (SLD) Support
|
|
44543
44543
|
*
|
|
44544
|
-
* Version: 1.19.
|
|
44544
|
+
* Version: 1.19.11
|
|
44545
44545
|
*
|
|
44546
44546
|
* Author: Rodney Rehm
|
|
44547
44547
|
* Web: http://medialize.github.io/URI.js/
|
|
@@ -80600,7 +80600,7 @@ exports.debug = debug // for test
|
|
|
80600
80600
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
80601
80601
|
* URI.js - Mutating URLs
|
|
80602
80602
|
*
|
|
80603
|
-
* Version: 1.19.
|
|
80603
|
+
* Version: 1.19.11
|
|
80604
80604
|
*
|
|
80605
80605
|
* Author: Rodney Rehm
|
|
80606
80606
|
* Web: http://medialize.github.io/URI.js/
|
|
@@ -80680,7 +80680,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
80680
80680
|
return /^[0-9]+$/.test(value);
|
|
80681
80681
|
}
|
|
80682
80682
|
|
|
80683
|
-
URI.version = '1.19.
|
|
80683
|
+
URI.version = '1.19.11';
|
|
80684
80684
|
|
|
80685
80685
|
var p = URI.prototype;
|
|
80686
80686
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
@@ -80838,6 +80838,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
80838
80838
|
// balanced parens inclusion (), [], {}, <>
|
|
80839
80839
|
parens: /(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g,
|
|
80840
80840
|
};
|
|
80841
|
+
URI.leading_whitespace_expression = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/
|
|
80842
|
+
// https://infra.spec.whatwg.org/#ascii-tab-or-newline
|
|
80843
|
+
URI.ascii_tab_whitespace = /[\u0009\u000A\u000D]+/g
|
|
80841
80844
|
// http://www.iana.org/assignments/uri-schemes.html
|
|
80842
80845
|
// http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Well-known_ports
|
|
80843
80846
|
URI.defaultPorts = {
|
|
@@ -81093,6 +81096,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
81093
81096
|
preventInvalidHostname: URI.preventInvalidHostname
|
|
81094
81097
|
};
|
|
81095
81098
|
}
|
|
81099
|
+
|
|
81100
|
+
string = string.replace(URI.leading_whitespace_expression, '')
|
|
81101
|
+
// https://infra.spec.whatwg.org/#ascii-tab-or-newline
|
|
81102
|
+
string = string.replace(URI.ascii_tab_whitespace, '')
|
|
81103
|
+
|
|
81096
81104
|
// [protocol"://"[username[":"password]"@"]hostname[":"port]"/"?][path]["?"querystring]["#"fragment]
|
|
81097
81105
|
|
|
81098
81106
|
// extract fragment
|
|
@@ -81111,6 +81119,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
81111
81119
|
string = string.substring(0, pos);
|
|
81112
81120
|
}
|
|
81113
81121
|
|
|
81122
|
+
// slashes and backslashes have lost all meaning for the web protocols (https, http, wss, ws)
|
|
81123
|
+
string = string.replace(/^(https?|ftp|wss?)?:+[/\\]*/i, '$1://');
|
|
81124
|
+
// slashes and backslashes have lost all meaning for scheme relative URLs
|
|
81125
|
+
string = string.replace(/^[/\\]{2,}/i, '//');
|
|
81126
|
+
|
|
81114
81127
|
// extract protocol
|
|
81115
81128
|
if (string.substring(0, 2) === '//') {
|
|
81116
81129
|
// relative-scheme
|
|
@@ -81125,7 +81138,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
81125
81138
|
if (parts.protocol && !parts.protocol.match(URI.protocol_expression)) {
|
|
81126
81139
|
// : may be within the path
|
|
81127
81140
|
parts.protocol = undefined;
|
|
81128
|
-
} else if (string.substring(pos + 1, pos + 3) === '//') {
|
|
81141
|
+
} else if (string.substring(pos + 1, pos + 3).replace(/\\/g, '/') === '//') {
|
|
81129
81142
|
string = string.substring(pos + 3);
|
|
81130
81143
|
|
|
81131
81144
|
// extract "user:pass@host:port"
|
|
@@ -81257,7 +81270,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
81257
81270
|
// no "=" is null according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#collect-url-parameters
|
|
81258
81271
|
value = v.length ? URI.decodeQuery(v.join('='), escapeQuerySpace) : null;
|
|
81259
81272
|
|
|
81260
|
-
if (
|
|
81273
|
+
if (name === '__proto__') {
|
|
81274
|
+
// ignore attempt at exploiting JavaScript internals
|
|
81275
|
+
continue;
|
|
81276
|
+
} else if (hasOwn.call(items, name)) {
|
|
81261
81277
|
if (typeof items[name] === 'string' || items[name] === null) {
|
|
81262
81278
|
items[name] = [items[name]];
|
|
81263
81279
|
}
|
|
@@ -81350,7 +81366,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
81350
81366
|
var t = '';
|
|
81351
81367
|
var unique, key, i, length;
|
|
81352
81368
|
for (key in data) {
|
|
81353
|
-
if (
|
|
81369
|
+
if (key === '__proto__') {
|
|
81370
|
+
// ignore attempt at exploiting JavaScript internals
|
|
81371
|
+
continue;
|
|
81372
|
+
} else if (hasOwn.call(data, key)) {
|
|
81354
81373
|
if (isArray(data[key])) {
|
|
81355
81374
|
unique = {};
|
|
81356
81375
|
for (i = 0, length = data[key].length; i < length; i++) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magda/minion-sdk",
|
|
3
3
|
"description": "MAGDA Minion SDK",
|
|
4
|
-
"version": "1.
|
|
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,8 +12,8 @@
|
|
|
12
12
|
"main": "dist/index.js",
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@magda/minion-framework": "^1.
|
|
16
|
-
"@magda/typescript-common": "^1.
|
|
15
|
+
"@magda/minion-framework": "^1.3.1-rc.0",
|
|
16
|
+
"@magda/typescript-common": "^1.3.1-rc.0",
|
|
17
17
|
"@microsoft/api-extractor": "^7.7.8",
|
|
18
18
|
"ts-loader": "^6.2.1",
|
|
19
19
|
"typescript": "^3.7.2",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@types/express": "^4.17.6",
|
|
25
|
-
"@types/urijs": "1.19.
|
|
25
|
+
"@types/urijs": "^1.19.19",
|
|
26
26
|
"@types/yargs": "^12.0.8"
|
|
27
27
|
},
|
|
28
28
|
"magda": {
|