@xyo-network/diviner-range 4.0.3 → 4.1.1
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/neutral/index.d.ts +19 -0
- package/dist/neutral/spec/Diviner.spec.d.ts +2 -0
- package/dist/neutral/spec/Diviner.spec.d.ts.map +1 -0
- package/package.json +12 -12
- package/dist/types/index.d.ts +0 -3
- /package/dist/{types → neutral}/Diviner.d.ts +0 -0
- /package/dist/{types → neutral}/Diviner.d.ts.map +0 -0
- /package/dist/{types → neutral}/index.d.ts.map +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AbstractDiviner } from '@xyo-network/diviner-abstract';
|
|
2
|
+
import { DivinerParams } from '@xyo-network/diviner-model';
|
|
3
|
+
import { RangeDivinerConfig, RangePayload, NumberPayload, BigIntPayload, BigIntRangePayload, NumberRangePayload } from '@xyo-network/diviner-range-model';
|
|
4
|
+
export * from '@xyo-network/diviner-range-model';
|
|
5
|
+
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
6
|
+
import { Schema } from '@xyo-network/payload-model';
|
|
7
|
+
|
|
8
|
+
type RangeDivinerParams = DivinerParams<AnyConfigSchema<RangeDivinerConfig>>;
|
|
9
|
+
declare class RangeDiviner<TParams extends RangeDivinerParams = RangeDivinerParams> extends AbstractDiviner<TParams, RangePayload, NumberPayload | BigIntPayload> {
|
|
10
|
+
static readonly configSchemas: Schema[];
|
|
11
|
+
static readonly defaultConfigSchema: Schema;
|
|
12
|
+
get ranges(): RangePayload[] | undefined;
|
|
13
|
+
protected static generateBigIntRange(range: BigIntRangePayload): BigIntPayload[];
|
|
14
|
+
protected static generateNumberRange(range: NumberRangePayload): NumberPayload[];
|
|
15
|
+
protected divineHandler(ranges?: RangePayload[]): (NumberPayload | BigIntPayload)[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { RangeDiviner };
|
|
19
|
+
export type { RangeDivinerParams };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Diviner.spec.d.ts","sourceRoot":"","sources":["../../../src/spec/Diviner.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-range",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,25 +21,25 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/neutral/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/hex": "^4.13.
|
|
33
|
-
"@xyo-network/diviner-abstract": "^4.
|
|
34
|
-
"@xyo-network/diviner-model": "^4.
|
|
35
|
-
"@xyo-network/diviner-range-model": "^4.
|
|
36
|
-
"@xyo-network/module-model": "^4.
|
|
37
|
-
"@xyo-network/payload-model": "^4.
|
|
32
|
+
"@xylabs/hex": "^4.13.15",
|
|
33
|
+
"@xyo-network/diviner-abstract": "^4.1.1",
|
|
34
|
+
"@xyo-network/diviner-model": "^4.1.1",
|
|
35
|
+
"@xyo-network/diviner-range-model": "^4.1.1",
|
|
36
|
+
"@xyo-network/module-model": "^4.1.1",
|
|
37
|
+
"@xyo-network/payload-model": "^4.1.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
41
|
-
"@xylabs/tsconfig": "^
|
|
42
|
-
"@xylabs/vitest-extended": "^4.13.
|
|
40
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.23",
|
|
41
|
+
"@xylabs/tsconfig": "^7.0.0-rc.23",
|
|
42
|
+
"@xylabs/vitest-extended": "^4.13.15",
|
|
43
43
|
"typescript": "^5.8.3",
|
|
44
44
|
"vitest": "^3.2.4"
|
|
45
45
|
},
|
package/dist/types/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|