@hpcc-js/ddl-shim 2.17.16 → 2.17.20
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/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.es6.js +63 -9
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +63 -9
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +7 -6
- package/src/__package__.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/CHANGELOG.md +0 -1658
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
}(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var PKG_NAME = "@hpcc-js/ddl-shim";
|
|
8
|
-
var PKG_VERSION = "2.17.
|
|
9
|
-
var BUILD_VERSION = "2.
|
|
8
|
+
var PKG_VERSION = "2.17.20";
|
|
9
|
+
var BUILD_VERSION = "2.94.0";
|
|
10
10
|
|
|
11
11
|
function isWorkunitDatasource(ref) {
|
|
12
12
|
return ref.WUID !== undefined;
|
|
@@ -1100,7 +1100,7 @@
|
|
|
1100
1100
|
}
|
|
1101
1101
|
|
|
1102
1102
|
var uri_all = createCommonjsModule(function (module, exports) {
|
|
1103
|
-
/** @license URI.js v4.
|
|
1103
|
+
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
1104
1104
|
(function (global, factory) {
|
|
1105
1105
|
factory(exports) ;
|
|
1106
1106
|
}(commonjsGlobal, (function (exports) {
|
|
@@ -2023,9 +2023,9 @@
|
|
|
2023
2023
|
return "[" + $1 + ($2 ? "%25" + $2 : "") + "]";
|
|
2024
2024
|
}));
|
|
2025
2025
|
}
|
|
2026
|
-
if (typeof components.port === "number") {
|
|
2026
|
+
if (typeof components.port === "number" || typeof components.port === "string") {
|
|
2027
2027
|
uriTokens.push(":");
|
|
2028
|
-
uriTokens.push(components.port
|
|
2028
|
+
uriTokens.push(String(components.port));
|
|
2029
2029
|
}
|
|
2030
2030
|
return uriTokens.length ? uriTokens.join("") : undefined;
|
|
2031
2031
|
}
|
|
@@ -2228,8 +2228,9 @@
|
|
|
2228
2228
|
return components;
|
|
2229
2229
|
},
|
|
2230
2230
|
serialize: function serialize(components, options) {
|
|
2231
|
+
var secure = String(components.scheme).toLowerCase() === "https";
|
|
2231
2232
|
//normalize the default port
|
|
2232
|
-
if (components.port === (
|
|
2233
|
+
if (components.port === (secure ? 443 : 80) || components.port === "") {
|
|
2233
2234
|
components.port = undefined;
|
|
2234
2235
|
}
|
|
2235
2236
|
//normalize the empty path
|
|
@@ -2250,6 +2251,57 @@
|
|
|
2250
2251
|
serialize: handler.serialize
|
|
2251
2252
|
};
|
|
2252
2253
|
|
|
2254
|
+
function isSecure(wsComponents) {
|
|
2255
|
+
return typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
|
|
2256
|
+
}
|
|
2257
|
+
//RFC 6455
|
|
2258
|
+
var handler$2 = {
|
|
2259
|
+
scheme: "ws",
|
|
2260
|
+
domainHost: true,
|
|
2261
|
+
parse: function parse(components, options) {
|
|
2262
|
+
var wsComponents = components;
|
|
2263
|
+
//indicate if the secure flag is set
|
|
2264
|
+
wsComponents.secure = isSecure(wsComponents);
|
|
2265
|
+
//construct resouce name
|
|
2266
|
+
wsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : '');
|
|
2267
|
+
wsComponents.path = undefined;
|
|
2268
|
+
wsComponents.query = undefined;
|
|
2269
|
+
return wsComponents;
|
|
2270
|
+
},
|
|
2271
|
+
serialize: function serialize(wsComponents, options) {
|
|
2272
|
+
//normalize the default port
|
|
2273
|
+
if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
|
|
2274
|
+
wsComponents.port = undefined;
|
|
2275
|
+
}
|
|
2276
|
+
//ensure scheme matches secure flag
|
|
2277
|
+
if (typeof wsComponents.secure === 'boolean') {
|
|
2278
|
+
wsComponents.scheme = wsComponents.secure ? 'wss' : 'ws';
|
|
2279
|
+
wsComponents.secure = undefined;
|
|
2280
|
+
}
|
|
2281
|
+
//reconstruct path from resource name
|
|
2282
|
+
if (wsComponents.resourceName) {
|
|
2283
|
+
var _wsComponents$resourc = wsComponents.resourceName.split('?'),
|
|
2284
|
+
_wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2),
|
|
2285
|
+
path = _wsComponents$resourc2[0],
|
|
2286
|
+
query = _wsComponents$resourc2[1];
|
|
2287
|
+
|
|
2288
|
+
wsComponents.path = path && path !== '/' ? path : undefined;
|
|
2289
|
+
wsComponents.query = query;
|
|
2290
|
+
wsComponents.resourceName = undefined;
|
|
2291
|
+
}
|
|
2292
|
+
//forbid fragment component
|
|
2293
|
+
wsComponents.fragment = undefined;
|
|
2294
|
+
return wsComponents;
|
|
2295
|
+
}
|
|
2296
|
+
};
|
|
2297
|
+
|
|
2298
|
+
var handler$3 = {
|
|
2299
|
+
scheme: "wss",
|
|
2300
|
+
domainHost: handler$2.domainHost,
|
|
2301
|
+
parse: handler$2.parse,
|
|
2302
|
+
serialize: handler$2.serialize
|
|
2303
|
+
};
|
|
2304
|
+
|
|
2253
2305
|
var O = {};
|
|
2254
2306
|
//RFC 3986
|
|
2255
2307
|
var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + ( "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" ) + "]";
|
|
@@ -2279,7 +2331,7 @@
|
|
|
2279
2331
|
var decStr = pctDecChars(str);
|
|
2280
2332
|
return !decStr.match(UNRESERVED) ? str : decStr;
|
|
2281
2333
|
}
|
|
2282
|
-
var handler$
|
|
2334
|
+
var handler$4 = {
|
|
2283
2335
|
scheme: "mailto",
|
|
2284
2336
|
parse: function parse$$1(components, options) {
|
|
2285
2337
|
var mailtoComponents = components;
|
|
@@ -2367,7 +2419,7 @@
|
|
|
2367
2419
|
|
|
2368
2420
|
var URN_PARSE = /^([^\:]+)\:(.*)/;
|
|
2369
2421
|
//RFC 2141
|
|
2370
|
-
var handler$
|
|
2422
|
+
var handler$5 = {
|
|
2371
2423
|
scheme: "urn",
|
|
2372
2424
|
parse: function parse$$1(components, options) {
|
|
2373
2425
|
var matches = components.path && components.path.match(URN_PARSE);
|
|
@@ -2406,7 +2458,7 @@
|
|
|
2406
2458
|
|
|
2407
2459
|
var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
|
|
2408
2460
|
//RFC 4122
|
|
2409
|
-
var handler$
|
|
2461
|
+
var handler$6 = {
|
|
2410
2462
|
scheme: "urn:uuid",
|
|
2411
2463
|
parse: function parse(urnComponents, options) {
|
|
2412
2464
|
var uuidComponents = urnComponents;
|
|
@@ -2430,6 +2482,8 @@
|
|
|
2430
2482
|
SCHEMES[handler$2.scheme] = handler$2;
|
|
2431
2483
|
SCHEMES[handler$3.scheme] = handler$3;
|
|
2432
2484
|
SCHEMES[handler$4.scheme] = handler$4;
|
|
2485
|
+
SCHEMES[handler$5.scheme] = handler$5;
|
|
2486
|
+
SCHEMES[handler$6.scheme] = handler$6;
|
|
2433
2487
|
|
|
2434
2488
|
exports.SCHEMES = SCHEMES;
|
|
2435
2489
|
exports.pctEncChar = pctEncChar;
|