@hpcc-js/ddl-shim 2.17.15 → 2.17.19

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 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.15";
9
- var BUILD_VERSION = "2.34.0";
8
+ var PKG_VERSION = "2.17.19";
9
+ var BUILD_VERSION = "2.88.0";
10
10
 
11
11
  function isWorkunitDatasource(ref) {
12
12
  return ref.WUID !== undefined;
@@ -142,12 +142,14 @@
142
142
  return __assign.apply(this, arguments);
143
143
  };
144
144
 
145
- function __spreadArrays() {
146
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
147
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
148
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
149
- r[k] = a[j];
150
- return r;
145
+ function __spreadArray(to, from, pack) {
146
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
147
+ if (ar || !(i in from)) {
148
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
149
+ ar[i] = from[i];
150
+ }
151
+ }
152
+ return to.concat(ar || from);
151
153
  }
152
154
 
153
155
  var classMappings = {
@@ -594,7 +596,7 @@
594
596
  this._ddl2DataviewActivities[viz.id].project.transformations = projectTransformations;
595
597
  }
596
598
  if (aggrFields.length) {
597
- this._ddl2DataviewActivities[viz.id].groupBy.groupByIDs = __spreadArrays(groupByColumns);
599
+ this._ddl2DataviewActivities[viz.id].groupBy.groupByIDs = __spreadArray([], groupByColumns);
598
600
  this._ddl2DataviewActivities[viz.id].groupBy.aggregates = aggrFields;
599
601
  }
600
602
  }
@@ -1098,7 +1100,7 @@
1098
1100
  }
1099
1101
 
1100
1102
  var uri_all = createCommonjsModule(function (module, exports) {
1101
- /** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
1103
+ /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
1102
1104
  (function (global, factory) {
1103
1105
  factory(exports) ;
1104
1106
  }(commonjsGlobal, (function (exports) {
@@ -2021,9 +2023,9 @@
2021
2023
  return "[" + $1 + ($2 ? "%25" + $2 : "") + "]";
2022
2024
  }));
2023
2025
  }
2024
- if (typeof components.port === "number") {
2026
+ if (typeof components.port === "number" || typeof components.port === "string") {
2025
2027
  uriTokens.push(":");
2026
- uriTokens.push(components.port.toString(10));
2028
+ uriTokens.push(String(components.port));
2027
2029
  }
2028
2030
  return uriTokens.length ? uriTokens.join("") : undefined;
2029
2031
  }
@@ -2226,8 +2228,9 @@
2226
2228
  return components;
2227
2229
  },
2228
2230
  serialize: function serialize(components, options) {
2231
+ var secure = String(components.scheme).toLowerCase() === "https";
2229
2232
  //normalize the default port
2230
- if (components.port === (String(components.scheme).toLowerCase() !== "https" ? 80 : 443) || components.port === "") {
2233
+ if (components.port === (secure ? 443 : 80) || components.port === "") {
2231
2234
  components.port = undefined;
2232
2235
  }
2233
2236
  //normalize the empty path
@@ -2248,6 +2251,57 @@
2248
2251
  serialize: handler.serialize
2249
2252
  };
2250
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
+
2251
2305
  var O = {};
2252
2306
  //RFC 3986
2253
2307
  var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + ( "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" ) + "]";
@@ -2277,7 +2331,7 @@
2277
2331
  var decStr = pctDecChars(str);
2278
2332
  return !decStr.match(UNRESERVED) ? str : decStr;
2279
2333
  }
2280
- var handler$2 = {
2334
+ var handler$4 = {
2281
2335
  scheme: "mailto",
2282
2336
  parse: function parse$$1(components, options) {
2283
2337
  var mailtoComponents = components;
@@ -2365,7 +2419,7 @@
2365
2419
 
2366
2420
  var URN_PARSE = /^([^\:]+)\:(.*)/;
2367
2421
  //RFC 2141
2368
- var handler$3 = {
2422
+ var handler$5 = {
2369
2423
  scheme: "urn",
2370
2424
  parse: function parse$$1(components, options) {
2371
2425
  var matches = components.path && components.path.match(URN_PARSE);
@@ -2404,7 +2458,7 @@
2404
2458
 
2405
2459
  var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
2406
2460
  //RFC 4122
2407
- var handler$4 = {
2461
+ var handler$6 = {
2408
2462
  scheme: "urn:uuid",
2409
2463
  parse: function parse(urnComponents, options) {
2410
2464
  var uuidComponents = urnComponents;
@@ -2428,6 +2482,8 @@
2428
2482
  SCHEMES[handler$2.scheme] = handler$2;
2429
2483
  SCHEMES[handler$3.scheme] = handler$3;
2430
2484
  SCHEMES[handler$4.scheme] = handler$4;
2485
+ SCHEMES[handler$5.scheme] = handler$5;
2486
+ SCHEMES[handler$6.scheme] = handler$6;
2431
2487
 
2432
2488
  exports.SCHEMES = SCHEMES;
2433
2489
  exports.pctEncChar = pctEncChar;