tyneq 1.0.0 → 1.0.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/README.md +67 -1
- package/dist/{TyneqCachedTerminalOperator.d.ts → TyneqCachedTerminalOperator-BrW77zIy.d.ts} +328 -173
- package/dist/{TyneqCachedTerminalOperator.d.cts → TyneqCachedTerminalOperator-EaNiNt61.d.cts} +328 -173
- package/dist/chunk-5R4AALC7.js +680 -0
- package/dist/chunk-C5PBY3ZU.cjs +46 -0
- package/dist/chunk-OWKUE3AC.cjs +680 -0
- package/dist/chunk-PCBN5AFG.js +46 -0
- package/dist/chunk-VJAICXA6.cjs +3788 -0
- package/dist/chunk-ZP6WMZCK.js +3788 -0
- package/dist/core-C54TSmgW.d.cts +1390 -0
- package/dist/core-C54TSmgW.d.ts +1390 -0
- package/dist/index.cjs +638 -843
- package/dist/index.d.cts +405 -605
- package/dist/index.d.ts +405 -605
- package/dist/index.js +630 -781
- package/dist/plugin/index.cjs +51 -24
- package/dist/plugin/index.d.cts +35 -38
- package/dist/plugin/index.d.ts +35 -38
- package/dist/plugin/index.js +51 -2
- package/dist/utility/index.cjs +18 -9
- package/dist/utility/index.d.cts +312 -2
- package/dist/utility/index.d.ts +312 -2
- package/dist/utility/index.js +18 -3
- package/package.json +5 -5
- package/dist/Lazy.cjs +0 -762
- package/dist/Lazy.cjs.map +0 -1
- package/dist/Lazy.js +0 -691
- package/dist/Lazy.js.map +0 -1
- package/dist/TyneqCachedTerminalOperator.cjs +0 -4950
- package/dist/TyneqCachedTerminalOperator.cjs.map +0 -1
- package/dist/TyneqCachedTerminalOperator.d.cts.map +0 -1
- package/dist/TyneqCachedTerminalOperator.d.ts.map +0 -1
- package/dist/TyneqCachedTerminalOperator.js +0 -4741
- package/dist/TyneqCachedTerminalOperator.js.map +0 -1
- package/dist/ValidationBuilder.cjs +0 -80
- package/dist/ValidationBuilder.cjs.map +0 -1
- package/dist/ValidationBuilder.d.cts +0 -319
- package/dist/ValidationBuilder.d.cts.map +0 -1
- package/dist/ValidationBuilder.d.ts +0 -319
- package/dist/ValidationBuilder.d.ts.map +0 -1
- package/dist/ValidationBuilder.js +0 -69
- package/dist/ValidationBuilder.js.map +0 -1
- package/dist/core.d.cts +0 -1393
- package/dist/core.d.cts.map +0 -1
- package/dist/core.d.ts +0 -1393
- package/dist/core.d.ts.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/plugin/index.d.cts.map +0 -1
- package/dist/plugin/index.d.ts.map +0 -1
package/dist/plugin/index.cjs
CHANGED
|
@@ -1,24 +1,51 @@
|
|
|
1
|
-
Object.defineProperty(exports,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
var _chunkVJAICXA6cjs = require('../chunk-VJAICXA6.cjs');
|
|
26
|
+
require('../chunk-OWKUE3AC.cjs');
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
exports.EnumeratorUtility = _chunkVJAICXA6cjs.EnumeratorUtility; exports.OperatorRegistry = _chunkVJAICXA6cjs.OperatorRegistry; exports.TyneqBaseEnumerator = _chunkVJAICXA6cjs.TyneqBaseEnumerator; exports.TyneqCachedEnumerator = _chunkVJAICXA6cjs.TyneqCachedEnumerator; exports.TyneqCachedTerminalOperator = _chunkVJAICXA6cjs.TyneqCachedTerminalOperator; exports.TyneqEnumerator = _chunkVJAICXA6cjs.TyneqEnumerator; exports.TyneqOrderedEnumerator = _chunkVJAICXA6cjs.TyneqOrderedEnumerator; exports.TyneqOrderedTerminalOperator = _chunkVJAICXA6cjs.TyneqOrderedTerminalOperator; exports.TyneqTerminalOperator = _chunkVJAICXA6cjs.TyneqTerminalOperator; exports.cachedOperator = _chunkVJAICXA6cjs.cachedOperator; exports.cachedTerminal = _chunkVJAICXA6cjs.cachedTerminal; exports.createCachedOperator = _chunkVJAICXA6cjs.createCachedOperator; exports.createCachedTerminalOperator = _chunkVJAICXA6cjs.createCachedTerminalOperator; exports.createGeneratorOperator = _chunkVJAICXA6cjs.createGeneratorOperator; exports.createOperator = _chunkVJAICXA6cjs.createOperator; exports.createOrderedOperator = _chunkVJAICXA6cjs.createOrderedOperator; exports.createOrderedTerminalOperator = _chunkVJAICXA6cjs.createOrderedTerminalOperator; exports.createTerminalOperator = _chunkVJAICXA6cjs.createTerminalOperator; exports.operator = _chunkVJAICXA6cjs.operator; exports.orderedOperator = _chunkVJAICXA6cjs.orderedOperator; exports.orderedTerminal = _chunkVJAICXA6cjs.orderedTerminal; exports.source = _chunkVJAICXA6cjs.source; exports.terminal = _chunkVJAICXA6cjs.terminal;
|
package/dist/plugin/index.d.cts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
export { O as OperatorRegistry, T as TyneqBaseEnumerator, a as TyneqCachedEnumerator, b as TyneqCachedTerminalOperator, c as TyneqEnumerator, d as TyneqOrderedEnumerator, e as TyneqOrderedTerminalOperator, f as TyneqTerminalOperator, g as cachedOperator, h as cachedTerminal, i as createCachedOperator, j as createCachedTerminalOperator, k as createGeneratorOperator, l as createOperator, m as createOrderedOperator, n as createOrderedTerminalOperator, o as createTerminalOperator, p as operator, q as orderedOperator, r as orderedTerminal, t as terminal } from '../TyneqCachedTerminalOperator-EaNiNt61.cjs';
|
|
2
|
+
import { O as OperatorSource, a as Optional, E as Enumerator } from '../core-C54TSmgW.cjs';
|
|
3
3
|
|
|
4
|
-
//#region src/plugin/decorators/source.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Options for the {@link source} decorator.
|
|
7
6
|
*/
|
|
8
7
|
interface SourceDecoratorOptions {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The operator name used to look up this source in the registry.
|
|
10
|
+
* Must match the `operatorName` on the `QueryPlanNode`.
|
|
11
|
+
* Defaults to the decorated method's name when omitted.
|
|
12
|
+
*/
|
|
13
|
+
readonly name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Whether this is a built-in (`"internal"`) or third-party (`"external"`) source.
|
|
16
|
+
* Defaults to `"external"`.
|
|
17
|
+
*/
|
|
18
|
+
readonly source?: OperatorSource;
|
|
20
19
|
}
|
|
21
20
|
/**
|
|
22
21
|
* Static method decorator that registers the decorated method as a source operator.
|
|
@@ -52,10 +51,9 @@ interface SourceDecoratorOptions {
|
|
|
52
51
|
* @group Decorators
|
|
53
52
|
*/
|
|
54
53
|
declare function source(options?: SourceDecoratorOptions): <TMethod extends (...args: any[]) => any>(method: TMethod, context: ClassMethodDecoratorContext & {
|
|
55
|
-
|
|
54
|
+
static: true;
|
|
56
55
|
}) => void;
|
|
57
|
-
|
|
58
|
-
//#region src/utility/EnumeratorUtility.d.ts
|
|
56
|
+
|
|
59
57
|
/**
|
|
60
58
|
* Low-level helpers for working with `Enumerator<T>` objects inside custom operator enumerators.
|
|
61
59
|
*
|
|
@@ -65,25 +63,24 @@ declare function source(options?: SourceDecoratorOptions): <TMethod extends (...
|
|
|
65
63
|
* @group Plugin Utilities
|
|
66
64
|
*/
|
|
67
65
|
declare class EnumeratorUtility {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
66
|
+
private constructor();
|
|
67
|
+
/**
|
|
68
|
+
* Calls `enumerator.return()` if it exists, swallowing any error.
|
|
69
|
+
* Safe to call on `null` or `undefined`.
|
|
70
|
+
*/
|
|
71
|
+
static tryDispose<TSource>(enumerator: Optional<Enumerator<TSource>>): void;
|
|
72
|
+
/** Wraps an `Enumerator<T>` in a minimal `Iterable<T>` adapter (no buffering). */
|
|
73
|
+
static toIterable<TSource>(enumerator: Enumerator<TSource>): Iterable<TSource>;
|
|
74
|
+
/** Gets an `Enumerator<T>` from any `Iterable<T>`. */
|
|
75
|
+
static fromIterable<TSource>(iterable: Iterable<TSource>): Enumerator<TSource>;
|
|
76
|
+
/**
|
|
77
|
+
* Advances the enumerator by one position and returns `true` if that position was done.
|
|
78
|
+
*
|
|
79
|
+
* **Warning:** this calls `next()` and irrevocably consumes one element.
|
|
80
|
+
* If the enumerator is not exhausted, the yielded element is discarded.
|
|
81
|
+
* Only call this when advancing past the current position is intentional.
|
|
82
|
+
*/
|
|
83
|
+
static checkAndConsume<TSource>(enumerator: Enumerator<TSource>): boolean;
|
|
86
84
|
}
|
|
87
|
-
|
|
88
|
-
export { EnumeratorUtility,
|
|
89
|
-
//# sourceMappingURL=index.d.cts.map
|
|
85
|
+
|
|
86
|
+
export { EnumeratorUtility, source };
|
package/dist/plugin/index.d.ts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
export { O as OperatorRegistry, T as TyneqBaseEnumerator, a as TyneqCachedEnumerator, b as TyneqCachedTerminalOperator, c as TyneqEnumerator, d as TyneqOrderedEnumerator, e as TyneqOrderedTerminalOperator, f as TyneqTerminalOperator, g as cachedOperator, h as cachedTerminal, i as createCachedOperator, j as createCachedTerminalOperator, k as createGeneratorOperator, l as createOperator, m as createOrderedOperator, n as createOrderedTerminalOperator, o as createTerminalOperator, p as operator, q as orderedOperator, r as orderedTerminal, t as terminal } from '../TyneqCachedTerminalOperator-BrW77zIy.js';
|
|
2
|
+
import { O as OperatorSource, a as Optional, E as Enumerator } from '../core-C54TSmgW.js';
|
|
3
3
|
|
|
4
|
-
//#region src/plugin/decorators/source.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Options for the {@link source} decorator.
|
|
7
6
|
*/
|
|
8
7
|
interface SourceDecoratorOptions {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The operator name used to look up this source in the registry.
|
|
10
|
+
* Must match the `operatorName` on the `QueryPlanNode`.
|
|
11
|
+
* Defaults to the decorated method's name when omitted.
|
|
12
|
+
*/
|
|
13
|
+
readonly name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Whether this is a built-in (`"internal"`) or third-party (`"external"`) source.
|
|
16
|
+
* Defaults to `"external"`.
|
|
17
|
+
*/
|
|
18
|
+
readonly source?: OperatorSource;
|
|
20
19
|
}
|
|
21
20
|
/**
|
|
22
21
|
* Static method decorator that registers the decorated method as a source operator.
|
|
@@ -52,10 +51,9 @@ interface SourceDecoratorOptions {
|
|
|
52
51
|
* @group Decorators
|
|
53
52
|
*/
|
|
54
53
|
declare function source(options?: SourceDecoratorOptions): <TMethod extends (...args: any[]) => any>(method: TMethod, context: ClassMethodDecoratorContext & {
|
|
55
|
-
|
|
54
|
+
static: true;
|
|
56
55
|
}) => void;
|
|
57
|
-
|
|
58
|
-
//#region src/utility/EnumeratorUtility.d.ts
|
|
56
|
+
|
|
59
57
|
/**
|
|
60
58
|
* Low-level helpers for working with `Enumerator<T>` objects inside custom operator enumerators.
|
|
61
59
|
*
|
|
@@ -65,25 +63,24 @@ declare function source(options?: SourceDecoratorOptions): <TMethod extends (...
|
|
|
65
63
|
* @group Plugin Utilities
|
|
66
64
|
*/
|
|
67
65
|
declare class EnumeratorUtility {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
66
|
+
private constructor();
|
|
67
|
+
/**
|
|
68
|
+
* Calls `enumerator.return()` if it exists, swallowing any error.
|
|
69
|
+
* Safe to call on `null` or `undefined`.
|
|
70
|
+
*/
|
|
71
|
+
static tryDispose<TSource>(enumerator: Optional<Enumerator<TSource>>): void;
|
|
72
|
+
/** Wraps an `Enumerator<T>` in a minimal `Iterable<T>` adapter (no buffering). */
|
|
73
|
+
static toIterable<TSource>(enumerator: Enumerator<TSource>): Iterable<TSource>;
|
|
74
|
+
/** Gets an `Enumerator<T>` from any `Iterable<T>`. */
|
|
75
|
+
static fromIterable<TSource>(iterable: Iterable<TSource>): Enumerator<TSource>;
|
|
76
|
+
/**
|
|
77
|
+
* Advances the enumerator by one position and returns `true` if that position was done.
|
|
78
|
+
*
|
|
79
|
+
* **Warning:** this calls `next()` and irrevocably consumes one element.
|
|
80
|
+
* If the enumerator is not exhausted, the yielded element is discarded.
|
|
81
|
+
* Only call this when advancing past the current position is intentional.
|
|
82
|
+
*/
|
|
83
|
+
static checkAndConsume<TSource>(enumerator: Enumerator<TSource>): boolean;
|
|
86
84
|
}
|
|
87
|
-
|
|
88
|
-
export { EnumeratorUtility,
|
|
89
|
-
//# sourceMappingURL=index.d.ts.map
|
|
85
|
+
|
|
86
|
+
export { EnumeratorUtility, source };
|
package/dist/plugin/index.js
CHANGED
|
@@ -1,2 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
EnumeratorUtility,
|
|
3
|
+
OperatorRegistry,
|
|
4
|
+
TyneqBaseEnumerator,
|
|
5
|
+
TyneqCachedEnumerator,
|
|
6
|
+
TyneqCachedTerminalOperator,
|
|
7
|
+
TyneqEnumerator,
|
|
8
|
+
TyneqOrderedEnumerator,
|
|
9
|
+
TyneqOrderedTerminalOperator,
|
|
10
|
+
TyneqTerminalOperator,
|
|
11
|
+
cachedOperator,
|
|
12
|
+
cachedTerminal,
|
|
13
|
+
createCachedOperator,
|
|
14
|
+
createCachedTerminalOperator,
|
|
15
|
+
createGeneratorOperator,
|
|
16
|
+
createOperator,
|
|
17
|
+
createOrderedOperator,
|
|
18
|
+
createOrderedTerminalOperator,
|
|
19
|
+
createTerminalOperator,
|
|
20
|
+
operator,
|
|
21
|
+
orderedOperator,
|
|
22
|
+
orderedTerminal,
|
|
23
|
+
source,
|
|
24
|
+
terminal
|
|
25
|
+
} from "../chunk-ZP6WMZCK.js";
|
|
26
|
+
import "../chunk-5R4AALC7.js";
|
|
27
|
+
export {
|
|
28
|
+
EnumeratorUtility,
|
|
29
|
+
OperatorRegistry,
|
|
30
|
+
TyneqBaseEnumerator,
|
|
31
|
+
TyneqCachedEnumerator,
|
|
32
|
+
TyneqCachedTerminalOperator,
|
|
33
|
+
TyneqEnumerator,
|
|
34
|
+
TyneqOrderedEnumerator,
|
|
35
|
+
TyneqOrderedTerminalOperator,
|
|
36
|
+
TyneqTerminalOperator,
|
|
37
|
+
cachedOperator,
|
|
38
|
+
cachedTerminal,
|
|
39
|
+
createCachedOperator,
|
|
40
|
+
createCachedTerminalOperator,
|
|
41
|
+
createGeneratorOperator,
|
|
42
|
+
createOperator,
|
|
43
|
+
createOrderedOperator,
|
|
44
|
+
createOrderedTerminalOperator,
|
|
45
|
+
createTerminalOperator,
|
|
46
|
+
operator,
|
|
47
|
+
orderedOperator,
|
|
48
|
+
orderedTerminal,
|
|
49
|
+
source,
|
|
50
|
+
terminal
|
|
51
|
+
};
|
package/dist/utility/index.cjs
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
Object.defineProperty(exports,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkC5PBY3ZUcjs = require('../chunk-C5PBY3ZU.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkOWKUE3ACcjs = require('../chunk-OWKUE3AC.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.ArgumentUtility = _chunkOWKUE3ACcjs.ArgumentUtility; exports.Lazy = _chunkOWKUE3ACcjs.Lazy; exports.ReflectionContext = _chunkOWKUE3ACcjs.ReflectionContext; exports.TypeGuardUtility = _chunkOWKUE3ACcjs.TypeGuardUtility; exports.ValidationBuilder = _chunkC5PBY3ZUcjs.ValidationBuilder; exports.reflect = _chunkOWKUE3ACcjs.reflect;
|