@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.cjs.js CHANGED
@@ -60499,7 +60499,8 @@ exports.LogQuery = void 0;
60499
60499
  };
60500
60500
  }
60501
60501
  LogQuery.createOr = createOr;
60502
- function createLogQueryRequestBody(range, ors, severities = [], includes = [
60502
+ /** Fields the filter API returns unless a caller projects more; custom fields need an explicit include. */
60503
+ LogQuery.DEFAULT_INCLUDES = [
60503
60504
  '_id',
60504
60505
  'host',
60505
60506
  'logseverity',
@@ -60507,7 +60508,8 @@ exports.LogQuery = void 0;
60507
60508
  'timestamp',
60508
60509
  'file',
60509
60510
  'message',
60510
- ], size = 1000, sort = [{ sortKey: 'timestamp', sortOrder: 'Asc' }]) {
60511
+ ];
60512
+ function createLogQueryRequestBody(range, ors, severities = [], includes = [...LogQuery.DEFAULT_INCLUDES], size = 1000, sort = [{ sortKey: 'timestamp', sortOrder: 'Asc' }]) {
60511
60513
  const nonEmptySeverities = severities.filter((s) => s.length > 0);
60512
60514
  const severityClause = nonEmptySeverities.length > 0
60513
60515
  ? [
@@ -73852,46 +73854,55 @@ const coerce$1 = (version, options) => {
73852
73854
  };
73853
73855
  var coerce_1 = coerce$1;
73854
73856
 
73855
- class LRUCache {
73856
- constructor () {
73857
- this.max = 1000;
73858
- this.map = new Map();
73859
- }
73857
+ var lrucache;
73858
+ var hasRequiredLrucache;
73860
73859
 
73861
- get (key) {
73862
- const value = this.map.get(key);
73863
- if (value === undefined) {
73864
- return undefined
73865
- } else {
73866
- // Remove the key from the map and add it to the end
73867
- this.map.delete(key);
73868
- this.map.set(key, value);
73869
- return value
73870
- }
73871
- }
73860
+ function requireLrucache () {
73861
+ if (hasRequiredLrucache) return lrucache;
73862
+ hasRequiredLrucache = 1;
73872
73863
 
73873
- delete (key) {
73874
- return this.map.delete(key)
73875
- }
73864
+ class LRUCache {
73865
+ constructor () {
73866
+ this.max = 1000;
73867
+ this.map = new Map();
73868
+ }
73876
73869
 
73877
- set (key, value) {
73878
- const deleted = this.delete(key);
73870
+ get (key) {
73871
+ const value = this.map.get(key);
73872
+ if (value === undefined) {
73873
+ return undefined
73874
+ } else {
73875
+ // Remove the key from the map and add it to the end
73876
+ this.map.delete(key);
73877
+ this.map.set(key, value);
73878
+ return value
73879
+ }
73880
+ }
73879
73881
 
73880
- if (!deleted && value !== undefined) {
73881
- // If cache is full, delete the least recently used item
73882
- if (this.map.size >= this.max) {
73883
- const firstKey = this.map.keys().next().value;
73884
- this.delete(firstKey);
73885
- }
73882
+ delete (key) {
73883
+ return this.map.delete(key)
73884
+ }
73886
73885
 
73887
- this.map.set(key, value);
73888
- }
73886
+ set (key, value) {
73887
+ const deleted = this.delete(key);
73889
73888
 
73890
- return this
73891
- }
73892
- }
73889
+ if (!deleted && value !== undefined) {
73890
+ // If cache is full, delete the least recently used item
73891
+ if (this.map.size >= this.max) {
73892
+ const firstKey = this.map.keys().next().value;
73893
+ this.delete(firstKey);
73894
+ }
73893
73895
 
73894
- var lrucache = LRUCache;
73896
+ this.map.set(key, value);
73897
+ }
73898
+
73899
+ return this
73900
+ }
73901
+ }
73902
+
73903
+ lrucache = LRUCache;
73904
+ return lrucache;
73905
+ }
73895
73906
 
73896
73907
  var range;
73897
73908
  var hasRequiredRange;
@@ -74114,7 +74125,7 @@ function requireRange () {
74114
74125
 
74115
74126
  range = Range;
74116
74127
 
74117
- const LRU = lrucache;
74128
+ const LRU = requireLrucache();
74118
74129
  const cache = new LRU();
74119
74130
 
74120
74131
  const parseOptions = parseOptions_1;