@copart/ops-tool-kit 1.5.31 → 1.5.32
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/ops-tool-kit.js +10 -13
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -33,7 +33,7 @@ var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
|
33
33
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
34
34
|
|
|
35
35
|
const name$e = "@copart/ops-tool-kit";
|
|
36
|
-
const version$3 = "1.5.
|
|
36
|
+
const version$3 = "1.5.32";
|
|
37
37
|
const main = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -2584,13 +2584,11 @@ function set$1(target, path, value, options) {
|
|
|
2584
2584
|
|
|
2585
2585
|
let opts = options || {};
|
|
2586
2586
|
const isArray = Array.isArray(path);
|
|
2587
|
-
|
|
2588
2587
|
if (!isArray && typeof path !== 'string') {
|
|
2589
2588
|
return target;
|
|
2590
2589
|
}
|
|
2591
2590
|
|
|
2592
2591
|
let merge = opts.merge;
|
|
2593
|
-
|
|
2594
2592
|
if (merge && typeof merge !== 'function') {
|
|
2595
2593
|
merge = Object.assign;
|
|
2596
2594
|
}
|
|
@@ -2633,7 +2631,8 @@ function result(target, path, value, merge) {
|
|
|
2633
2631
|
function split(path, options) {
|
|
2634
2632
|
const id = createKey(path, options);
|
|
2635
2633
|
if (set$1.memo[id]) return set$1.memo[id];
|
|
2636
|
-
|
|
2634
|
+
|
|
2635
|
+
const char = (options && options.separator) ? options.separator : '.';
|
|
2637
2636
|
let keys = [];
|
|
2638
2637
|
let res = [];
|
|
2639
2638
|
|
|
@@ -2645,32 +2644,25 @@ function split(path, options) {
|
|
|
2645
2644
|
|
|
2646
2645
|
for (let i = 0; i < keys.length; i++) {
|
|
2647
2646
|
let prop = keys[i];
|
|
2648
|
-
|
|
2649
2647
|
while (prop && prop.slice(-1) === '\\' && keys[i + 1]) {
|
|
2650
2648
|
prop = prop.slice(0, -1) + char + keys[++i];
|
|
2651
2649
|
}
|
|
2652
|
-
|
|
2653
2650
|
res.push(prop);
|
|
2654
2651
|
}
|
|
2655
|
-
|
|
2656
2652
|
set$1.memo[id] = res;
|
|
2657
2653
|
return res;
|
|
2658
2654
|
}
|
|
2659
2655
|
|
|
2660
2656
|
function createKey(pattern, options) {
|
|
2661
2657
|
let id = pattern;
|
|
2662
|
-
|
|
2663
2658
|
if (typeof options === 'undefined') {
|
|
2664
2659
|
return id + '';
|
|
2665
2660
|
}
|
|
2666
|
-
|
|
2667
2661
|
const keys = Object.keys(options);
|
|
2668
|
-
|
|
2669
2662
|
for (let i = 0; i < keys.length; i++) {
|
|
2670
2663
|
const key = keys[i];
|
|
2671
2664
|
id += ';' + key + '=' + String(options[key]);
|
|
2672
2665
|
}
|
|
2673
|
-
|
|
2674
2666
|
return id;
|
|
2675
2667
|
}
|
|
2676
2668
|
|
|
@@ -7148,9 +7140,14 @@ function () {
|
|
|
7148
7140
|
switch (_context.prev = _context.next) {
|
|
7149
7141
|
case 0:
|
|
7150
7142
|
query = querystringify_1.stringify(createQuery(activeYardNumber));
|
|
7151
|
-
endpoint = storage$1.getLocalItem('opsportal-core:config').endpoints.
|
|
7143
|
+
endpoint = storage$1.getLocalItem('opsportal-core:config').endpoints.yardNumbersSearch;
|
|
7152
7144
|
_context.next = 4;
|
|
7153
|
-
return fetcher.get("".concat(endpoint, "?").concat(query)
|
|
7145
|
+
return fetcher.get("".concat(endpoint, "?").concat(query), {
|
|
7146
|
+
headers: {
|
|
7147
|
+
collection: 'yards',
|
|
7148
|
+
serviceName: 'opsportal'
|
|
7149
|
+
}
|
|
7150
|
+
});
|
|
7154
7151
|
|
|
7155
7152
|
case 4:
|
|
7156
7153
|
_ref2 = _context.sent;
|