@hpcc-js/util 2.52.0 → 3.1.0

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.
Files changed (126) hide show
  1. package/dist/index.js +1 -2590
  2. package/dist/index.js.map +7 -1
  3. package/package.json +27 -31
  4. package/src/__package__.ts +2 -2
  5. package/src/array.ts +1 -2
  6. package/src/cache.ts +1 -1
  7. package/src/debounce.ts +4 -4
  8. package/src/dispatch.ts +5 -5
  9. package/src/graph2.ts +1 -1
  10. package/src/index.ts +21 -21
  11. package/src/logging.ts +2 -2
  12. package/src/saxParser.ts +4 -4
  13. package/src/stateful.ts +4 -4
  14. package/src/url.ts +1 -1
  15. package/types/__package__.d.ts +2 -3
  16. package/types/array.d.ts +0 -1
  17. package/types/cache.d.ts +0 -1
  18. package/types/debounce.d.ts +0 -1
  19. package/types/dictionary.d.ts +0 -1
  20. package/types/dispatch.d.ts +1 -2
  21. package/types/esp.d.ts +0 -1
  22. package/types/graph.d.ts +0 -1
  23. package/types/graph2.d.ts +0 -1
  24. package/types/hashSum.d.ts +0 -1
  25. package/types/immutable.d.ts +0 -1
  26. package/types/index.d.ts +21 -22
  27. package/types/logging.d.ts +0 -1
  28. package/types/math.d.ts +0 -1
  29. package/types/object.d.ts +0 -1
  30. package/types/observer.d.ts +0 -1
  31. package/types/platform.d.ts +0 -1
  32. package/types/saxParser.d.ts +4 -5
  33. package/types/stack.d.ts +0 -1
  34. package/types/stateful.d.ts +1 -2
  35. package/types/string.d.ts +0 -1
  36. package/types/url.d.ts +0 -1
  37. package/dist/index.min.js +0 -2
  38. package/dist/index.min.js.map +0 -1
  39. package/lib-es6/__package__.js +0 -4
  40. package/lib-es6/__package__.js.map +0 -1
  41. package/lib-es6/array.js +0 -85
  42. package/lib-es6/array.js.map +0 -1
  43. package/lib-es6/cache.js +0 -61
  44. package/lib-es6/cache.js.map +0 -1
  45. package/lib-es6/debounce.js +0 -86
  46. package/lib-es6/debounce.js.map +0 -1
  47. package/lib-es6/dictionary.js +0 -62
  48. package/lib-es6/dictionary.js.map +0 -1
  49. package/lib-es6/dispatch.js +0 -102
  50. package/lib-es6/dispatch.js.map +0 -1
  51. package/lib-es6/esp.js +0 -33
  52. package/lib-es6/esp.js.map +0 -1
  53. package/lib-es6/graph.js +0 -349
  54. package/lib-es6/graph.js.map +0 -1
  55. package/lib-es6/graph2.js +0 -619
  56. package/lib-es6/graph2.js.map +0 -1
  57. package/lib-es6/hashSum.js +0 -50
  58. package/lib-es6/hashSum.js.map +0 -1
  59. package/lib-es6/immutable.js +0 -148
  60. package/lib-es6/immutable.js.map +0 -1
  61. package/lib-es6/index.js +0 -22
  62. package/lib-es6/index.js.map +0 -1
  63. package/lib-es6/logging.js +0 -179
  64. package/lib-es6/logging.js.map +0 -1
  65. package/lib-es6/math.js +0 -91
  66. package/lib-es6/math.js.map +0 -1
  67. package/lib-es6/object.js +0 -122
  68. package/lib-es6/object.js.map +0 -1
  69. package/lib-es6/observer.js +0 -80
  70. package/lib-es6/observer.js.map +0 -1
  71. package/lib-es6/platform.js +0 -18
  72. package/lib-es6/platform.js.map +0 -1
  73. package/lib-es6/saxParser.js +0 -126
  74. package/lib-es6/saxParser.js.map +0 -1
  75. package/lib-es6/stack.js +0 -42
  76. package/lib-es6/stack.js.map +0 -1
  77. package/lib-es6/stateful.js +0 -171
  78. package/lib-es6/stateful.js.map +0 -1
  79. package/lib-es6/string.js +0 -23
  80. package/lib-es6/string.js.map +0 -1
  81. package/lib-es6/url.js +0 -33
  82. package/lib-es6/url.js.map +0 -1
  83. package/types/__package__.d.ts.map +0 -1
  84. package/types/array.d.ts.map +0 -1
  85. package/types/cache.d.ts.map +0 -1
  86. package/types/debounce.d.ts.map +0 -1
  87. package/types/dictionary.d.ts.map +0 -1
  88. package/types/dispatch.d.ts.map +0 -1
  89. package/types/esp.d.ts.map +0 -1
  90. package/types/graph.d.ts.map +0 -1
  91. package/types/graph2.d.ts.map +0 -1
  92. package/types/hashSum.d.ts.map +0 -1
  93. package/types/immutable.d.ts.map +0 -1
  94. package/types/index.d.ts.map +0 -1
  95. package/types/logging.d.ts.map +0 -1
  96. package/types/math.d.ts.map +0 -1
  97. package/types/object.d.ts.map +0 -1
  98. package/types/observer.d.ts.map +0 -1
  99. package/types/platform.d.ts.map +0 -1
  100. package/types/saxParser.d.ts.map +0 -1
  101. package/types/stack.d.ts.map +0 -1
  102. package/types/stateful.d.ts.map +0 -1
  103. package/types/string.d.ts.map +0 -1
  104. package/types/url.d.ts.map +0 -1
  105. package/types-3.4/__package__.d.ts +0 -4
  106. package/types-3.4/array.d.ts +0 -14
  107. package/types-3.4/cache.d.ts +0 -21
  108. package/types-3.4/debounce.d.ts +0 -13
  109. package/types-3.4/dictionary.d.ts +0 -21
  110. package/types-3.4/dispatch.d.ts +0 -27
  111. package/types-3.4/esp.d.ts +0 -2
  112. package/types-3.4/graph.d.ts +0 -74
  113. package/types-3.4/graph2.d.ts +0 -112
  114. package/types-3.4/hashSum.d.ts +0 -2
  115. package/types-3.4/immutable.d.ts +0 -4
  116. package/types-3.4/index.d.ts +0 -22
  117. package/types-3.4/logging.d.ts +0 -58
  118. package/types-3.4/math.d.ts +0 -71
  119. package/types-3.4/object.d.ts +0 -52
  120. package/types-3.4/observer.d.ts +0 -19
  121. package/types-3.4/platform.d.ts +0 -6
  122. package/types-3.4/saxParser.d.ts +0 -29
  123. package/types-3.4/stack.d.ts +0 -29
  124. package/types-3.4/stateful.d.ts +0 -34
  125. package/types-3.4/string.d.ts +0 -3
  126. package/types-3.4/url.d.ts +0 -3
@@ -1,19 +0,0 @@
1
- /**
2
- * IObserverHandle - Reference to an observing instance
3
- */
4
- export interface IObserverHandle {
5
- release(): void;
6
- unwatch(): void;
7
- }
8
- export type CallbackFunction = (...args: any[]) => void;
9
- export type EventID = string;
10
- export declare class Observable<T extends EventID> {
11
- private _eventObservers;
12
- constructor(...events: T[]);
13
- addObserver(eventID: T, callback: CallbackFunction): IObserverHandle;
14
- removeObserver(eventID: T, callback: CallbackFunction): this;
15
- dispatchEvent(eventID: T, ...args: any[]): this;
16
- private _hasObserver;
17
- hasObserver(_eventID?: T): boolean;
18
- }
19
- //# sourceMappingURL=observer.d.ts.map
@@ -1,6 +0,0 @@
1
- export declare const root: any;
2
- export declare const isBrowser: boolean;
3
- export declare const isNode: boolean;
4
- export declare const isCI: boolean;
5
- export declare function getScriptSrc(partial: string): string;
6
- //# sourceMappingURL=platform.d.ts.map
@@ -1,29 +0,0 @@
1
- import { StringAnyMap } from "./dictionary";
2
- import { Stack } from "./stack";
3
- export declare class XMLNode {
4
- name: string;
5
- $: StringAnyMap;
6
- protected _children: XMLNode[];
7
- content: string;
8
- constructor(name: string);
9
- appendAttribute(key: string, val: string): void;
10
- appendContent(content: string): void;
11
- appendChild(child: XMLNode): void;
12
- children(tag?: string): XMLNode[];
13
- }
14
- export declare class SAXStackParser {
15
- root: XMLNode;
16
- stack: Stack<XMLNode>;
17
- constructor();
18
- private walkDoc;
19
- private _startXMLNode;
20
- parse(xml: string): void;
21
- startDocument(): void;
22
- endDocument(): void;
23
- startXMLNode(node: XMLNode): void;
24
- endXMLNode(node: XMLNode): void;
25
- attributes(key: string, val: any): void;
26
- characters(text: string): void;
27
- }
28
- export declare function xml2json(xml: string): XMLNode;
29
- //# sourceMappingURL=saxParser.d.ts.map
@@ -1,29 +0,0 @@
1
- /**
2
- * A generic Stack
3
- */
4
- export declare class Stack<T> {
5
- private stack;
6
- /**
7
- * Push element onto the stack
8
- *
9
- * @param e - element to push
10
- */
11
- push(e: T): T;
12
- /**
13
- * Pop element off the stack
14
- */
15
- pop(): T | undefined;
16
- /**
17
- * Top item on the stack
18
- *
19
- * @returns Top element on the stack
20
- */
21
- top(): T | undefined;
22
- /**
23
- * Depth of stack
24
- *
25
- * @returns Depth
26
- */
27
- depth(): number;
28
- }
29
- //# sourceMappingURL=stack.d.ts.map
@@ -1,34 +0,0 @@
1
- import { IObserverHandle } from "./dispatch";
2
- export interface IEvent {
3
- id: string;
4
- oldValue: any;
5
- newValue: any;
6
- }
7
- export type StatePropCallback = (changes: IEvent) => void;
8
- export type StateCallback = (changes: IEvent[]) => void;
9
- export type StateEvents = "propChanged" | "changed";
10
- export declare class StateObject<U, I> {
11
- private _espState;
12
- private _dispatch;
13
- private _monitorHandle?;
14
- protected _monitorTickCount: number;
15
- protected clear(newVals?: Partial<I>): void;
16
- protected get(): U;
17
- protected get<K extends keyof U>(key: K, defValue?: U[K]): U[K];
18
- protected set(newVals: I): void;
19
- protected set<K extends keyof U>(key: K, newVal: U[K], batchMode?: boolean): void;
20
- private setSingle;
21
- private setAll;
22
- protected has<K extends keyof U>(key: K): boolean;
23
- addObserver(eventID: StateEvents, callback: StateCallback): IObserverHandle;
24
- addObserver(eventID: StateEvents, propID: keyof U, callback: StatePropCallback): IObserverHandle;
25
- on(eventID: StateEvents, callback: StateCallback): this;
26
- on(eventID: StateEvents, propID: keyof U, callback: StatePropCallback): this;
27
- protected isCallback(propIDOrCallback: StateCallback | keyof U): propIDOrCallback is StateCallback;
28
- protected hasEventListener(): boolean;
29
- protected refresh(full?: boolean): Promise<this>;
30
- protected _monitor(): void;
31
- protected _monitorTimeoutDuration(): number;
32
- watch(callback: StateCallback, triggerChange?: boolean): IObserverHandle;
33
- }
34
- //# sourceMappingURL=stateful.d.ts.map
@@ -1,3 +0,0 @@
1
- export declare function trim(str: string, char: string): string;
2
- export declare function endsWith(origString: string, searchString: string, position?: number): boolean;
3
- //# sourceMappingURL=string.d.ts.map
@@ -1,3 +0,0 @@
1
- export declare function join(...segments: string[]): string;
2
- export declare function dirname(path: string): string;
3
- //# sourceMappingURL=url.d.ts.map