@dx-do/client 7.12.1 → 7.12.2

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.esm.js CHANGED
@@ -60477,7 +60477,8 @@ var LogQuery;
60477
60477
  };
60478
60478
  }
60479
60479
  LogQuery.createOr = createOr;
60480
- function createLogQueryRequestBody(range, ors, severities = [], includes = [
60480
+ /** Fields the filter API returns unless a caller projects more; custom fields need an explicit include. */
60481
+ LogQuery.DEFAULT_INCLUDES = [
60481
60482
  '_id',
60482
60483
  'host',
60483
60484
  'logseverity',
@@ -60485,7 +60486,8 @@ var LogQuery;
60485
60486
  'timestamp',
60486
60487
  'file',
60487
60488
  'message',
60488
- ], size = 1000, sort = [{ sortKey: 'timestamp', sortOrder: 'Asc' }]) {
60489
+ ];
60490
+ function createLogQueryRequestBody(range, ors, severities = [], includes = [...LogQuery.DEFAULT_INCLUDES], size = 1000, sort = [{ sortKey: 'timestamp', sortOrder: 'Asc' }]) {
60489
60491
  const nonEmptySeverities = severities.filter((s) => s.length > 0);
60490
60492
  const severityClause = nonEmptySeverities.length > 0
60491
60493
  ? [
@@ -73830,46 +73832,55 @@ const coerce$1 = (version, options) => {
73830
73832
  };
73831
73833
  var coerce_1 = coerce$1;
73832
73834
 
73833
- class LRUCache {
73834
- constructor () {
73835
- this.max = 1000;
73836
- this.map = new Map();
73837
- }
73835
+ var lrucache;
73836
+ var hasRequiredLrucache;
73838
73837
 
73839
- get (key) {
73840
- const value = this.map.get(key);
73841
- if (value === undefined) {
73842
- return undefined
73843
- } else {
73844
- // Remove the key from the map and add it to the end
73845
- this.map.delete(key);
73846
- this.map.set(key, value);
73847
- return value
73848
- }
73849
- }
73838
+ function requireLrucache () {
73839
+ if (hasRequiredLrucache) return lrucache;
73840
+ hasRequiredLrucache = 1;
73850
73841
 
73851
- delete (key) {
73852
- return this.map.delete(key)
73853
- }
73842
+ class LRUCache {
73843
+ constructor () {
73844
+ this.max = 1000;
73845
+ this.map = new Map();
73846
+ }
73854
73847
 
73855
- set (key, value) {
73856
- const deleted = this.delete(key);
73848
+ get (key) {
73849
+ const value = this.map.get(key);
73850
+ if (value === undefined) {
73851
+ return undefined
73852
+ } else {
73853
+ // Remove the key from the map and add it to the end
73854
+ this.map.delete(key);
73855
+ this.map.set(key, value);
73856
+ return value
73857
+ }
73858
+ }
73857
73859
 
73858
- if (!deleted && value !== undefined) {
73859
- // If cache is full, delete the least recently used item
73860
- if (this.map.size >= this.max) {
73861
- const firstKey = this.map.keys().next().value;
73862
- this.delete(firstKey);
73863
- }
73860
+ delete (key) {
73861
+ return this.map.delete(key)
73862
+ }
73864
73863
 
73865
- this.map.set(key, value);
73866
- }
73864
+ set (key, value) {
73865
+ const deleted = this.delete(key);
73867
73866
 
73868
- return this
73869
- }
73870
- }
73867
+ if (!deleted && value !== undefined) {
73868
+ // If cache is full, delete the least recently used item
73869
+ if (this.map.size >= this.max) {
73870
+ const firstKey = this.map.keys().next().value;
73871
+ this.delete(firstKey);
73872
+ }
73871
73873
 
73872
- var lrucache = LRUCache;
73874
+ this.map.set(key, value);
73875
+ }
73876
+
73877
+ return this
73878
+ }
73879
+ }
73880
+
73881
+ lrucache = LRUCache;
73882
+ return lrucache;
73883
+ }
73873
73884
 
73874
73885
  var range;
73875
73886
  var hasRequiredRange;
@@ -74092,7 +74103,7 @@ function requireRange () {
74092
74103
 
74093
74104
  range = Range;
74094
74105
 
74095
- const LRU = lrucache;
74106
+ const LRU = requireLrucache();
74096
74107
  const cache = new LRU();
74097
74108
 
74098
74109
  const parseOptions = parseOptions_1;