@xyo-network/payload-utils 5.3.30 → 5.4.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.
- package/README.md +0 -156
- package/dist/browser/index.d.ts +0 -2
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.mjs +1 -60
- package/dist/browser/index.mjs.map +1 -1
- package/dist/neutral/index.d.ts +0 -2
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +1 -60
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/node/index.d.ts +0 -2
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.mjs +1 -60
- package/dist/node/index.mjs.map +1 -1
- package/package.json +14 -21
- package/dist/browser/combinationsByBoundwitness.d.ts +0 -10
- package/dist/browser/combinationsByBoundwitness.d.ts.map +0 -1
- package/dist/browser/intraBoundwitnessSchemaCombinations.d.ts +0 -11
- package/dist/browser/intraBoundwitnessSchemaCombinations.d.ts.map +0 -1
- package/dist/neutral/combinationsByBoundwitness.d.ts +0 -10
- package/dist/neutral/combinationsByBoundwitness.d.ts.map +0 -1
- package/dist/neutral/intraBoundwitnessSchemaCombinations.d.ts +0 -11
- package/dist/neutral/intraBoundwitnessSchemaCombinations.d.ts.map +0 -1
- package/dist/node/combinationsByBoundwitness.d.ts +0 -10
- package/dist/node/combinationsByBoundwitness.d.ts.map +0 -1
- package/dist/node/intraBoundwitnessSchemaCombinations.d.ts +0 -11
- package/dist/node/intraBoundwitnessSchemaCombinations.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -38,162 +38,6 @@ bun add {{name}}
|
|
|
38
38
|
|
|
39
39
|
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
40
40
|
|
|
41
|
-
## Reference
|
|
42
|
-
|
|
43
|
-
### packages
|
|
44
|
-
|
|
45
|
-
### protocol
|
|
46
|
-
|
|
47
|
-
### packages
|
|
48
|
-
|
|
49
|
-
### payload
|
|
50
|
-
|
|
51
|
-
### packages
|
|
52
|
-
|
|
53
|
-
### utils
|
|
54
|
-
|
|
55
|
-
### .temp-typedoc
|
|
56
|
-
|
|
57
|
-
### functions
|
|
58
|
-
|
|
59
|
-
### <a id="combinationsByBoundwitness"></a>combinationsByBoundwitness
|
|
60
|
-
|
|
61
|
-
[**@xyo-network/payload-utils**](#../README)
|
|
62
|
-
|
|
63
|
-
***
|
|
64
|
-
|
|
65
|
-
```ts
|
|
66
|
-
function combinationsByBoundwitness(payloads): Promise<[{
|
|
67
|
-
schema: "network.xyo.boundwitness" & object;
|
|
68
|
-
addresses: Lowercase<string> & object & object[];
|
|
69
|
-
payload_hashes: BrandedHash[];
|
|
70
|
-
payload_schemas: BrandedSchema<string>[];
|
|
71
|
-
previous_hashes: (BrandedHash | null)[];
|
|
72
|
-
$destination?: Lowercase<string> & object & object;
|
|
73
|
-
$sourceQuery?: BrandedHash;
|
|
74
|
-
$signatures: (BrandedHex | null)[];
|
|
75
|
-
}, ...Payload[]][]>;
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Returns tuples of bound witnesses and their payloads from the supplied payloads. Omits
|
|
79
|
-
bound witnesses where the payloads were not included in the supplied payloads.
|
|
80
|
-
|
|
81
|
-
## Parameters
|
|
82
|
-
|
|
83
|
-
### payloads
|
|
84
|
-
|
|
85
|
-
`Payload`[]
|
|
86
|
-
|
|
87
|
-
An array of bound witnesses and payloads
|
|
88
|
-
|
|
89
|
-
## Returns
|
|
90
|
-
|
|
91
|
-
`Promise`\<\[\{
|
|
92
|
-
`schema`: `"network.xyo.boundwitness"` & `object`;
|
|
93
|
-
`addresses`: `Lowercase`\<`string`\> & `object` & `object`[];
|
|
94
|
-
`payload_hashes`: `BrandedHash`[];
|
|
95
|
-
`payload_schemas`: `BrandedSchema`\<`string`\>[];
|
|
96
|
-
`previous_hashes`: (`BrandedHash` \| `null`)[];
|
|
97
|
-
`$destination?`: `Lowercase`\<`string`\> & `object` & `object`;
|
|
98
|
-
`$sourceQuery?`: `BrandedHash`;
|
|
99
|
-
`$signatures`: (`BrandedHex` \| `null`)[];
|
|
100
|
-
\}, `...Payload[]`\][]\>
|
|
101
|
-
|
|
102
|
-
An array of tuples of bound witnesses and their payloads
|
|
103
|
-
|
|
104
|
-
### <a id="combinationsBySchema"></a>combinationsBySchema
|
|
105
|
-
|
|
106
|
-
[**@xyo-network/payload-utils**](#../README)
|
|
107
|
-
|
|
108
|
-
***
|
|
109
|
-
|
|
110
|
-
```ts
|
|
111
|
-
function combinationsBySchema(payloads, schemas): Promise<Payload[][]>;
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
Returns the unique combinations of payloads for the given schemas
|
|
115
|
-
|
|
116
|
-
## Parameters
|
|
117
|
-
|
|
118
|
-
### payloads
|
|
119
|
-
|
|
120
|
-
`Payload`[]
|
|
121
|
-
|
|
122
|
-
An array of payloads
|
|
123
|
-
|
|
124
|
-
### schemas
|
|
125
|
-
|
|
126
|
-
`string`[]
|
|
127
|
-
|
|
128
|
-
An array of schemas
|
|
129
|
-
|
|
130
|
-
## Returns
|
|
131
|
-
|
|
132
|
-
`Promise`\<`Payload`[][]\>
|
|
133
|
-
|
|
134
|
-
An array of unique combinations of payloads
|
|
135
|
-
|
|
136
|
-
### <a id="intraBoundwitnessSchemaCombinations"></a>intraBoundwitnessSchemaCombinations
|
|
137
|
-
|
|
138
|
-
[**@xyo-network/payload-utils**](#../README)
|
|
139
|
-
|
|
140
|
-
***
|
|
141
|
-
|
|
142
|
-
```ts
|
|
143
|
-
function intraBoundwitnessSchemaCombinations(boundwitness, schemas): BrandedHash[][];
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
Returns all the possible combinations of payloads for the supplied schemas within the bound witness
|
|
147
|
-
|
|
148
|
-
## Parameters
|
|
149
|
-
|
|
150
|
-
### boundwitness
|
|
151
|
-
|
|
152
|
-
The bound witness to search
|
|
153
|
-
|
|
154
|
-
### schema
|
|
155
|
-
|
|
156
|
-
`"network.xyo.boundwitness"` & `object`
|
|
157
|
-
|
|
158
|
-
### addresses
|
|
159
|
-
|
|
160
|
-
`Lowercase`\<`string`\> & `object` & `object`[]
|
|
161
|
-
|
|
162
|
-
### payload_hashes
|
|
163
|
-
|
|
164
|
-
`BrandedHash`[]
|
|
165
|
-
|
|
166
|
-
### payload_schemas
|
|
167
|
-
|
|
168
|
-
`BrandedSchema`\<`string`\>[]
|
|
169
|
-
|
|
170
|
-
### previous_hashes
|
|
171
|
-
|
|
172
|
-
(`BrandedHash` \| `null`)[]
|
|
173
|
-
|
|
174
|
-
### $destination?
|
|
175
|
-
|
|
176
|
-
`Lowercase`\<`string`\> & `object` & `object`
|
|
177
|
-
|
|
178
|
-
### $sourceQuery?
|
|
179
|
-
|
|
180
|
-
`BrandedHash`
|
|
181
|
-
|
|
182
|
-
### $signatures
|
|
183
|
-
|
|
184
|
-
(`BrandedHex` \| `null`)[]
|
|
185
|
-
|
|
186
|
-
### schemas
|
|
187
|
-
|
|
188
|
-
`Schema`[]
|
|
189
|
-
|
|
190
|
-
The schemas to search for unique combinations of
|
|
191
|
-
|
|
192
|
-
## Returns
|
|
193
|
-
|
|
194
|
-
`BrandedHash`[][]
|
|
195
|
-
|
|
196
|
-
The payload hashes corresponding to the unique combinations of the supplied schemas
|
|
197
41
|
|
|
198
42
|
|
|
199
43
|
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
// src/combinationsByBoundwitness.ts
|
|
2
|
-
import {
|
|
3
|
-
asHash,
|
|
4
|
-
difference,
|
|
5
|
-
exists
|
|
6
|
-
} from "@xylabs/sdk-js";
|
|
7
|
-
import { isBoundWitness } from "@xyo-network/boundwitness-model";
|
|
8
|
-
import { PayloadBuilder } from "@xyo-network/payload-builder";
|
|
9
|
-
var combinationsByBoundwitness = async (payloads) => {
|
|
10
|
-
const bws = new Set(payloads.filter((x) => isBoundWitness(x)));
|
|
11
|
-
const remaining = difference(new Set(payloads), bws);
|
|
12
|
-
const payloadDictionary = await PayloadBuilder.toHashMap([...remaining]);
|
|
13
|
-
const results = [];
|
|
14
|
-
for (const bw of bws) {
|
|
15
|
-
const { payload_hashes } = bw;
|
|
16
|
-
const p = payload_hashes.map((h) => payloadDictionary[asHash(h, true)]).filter(exists);
|
|
17
|
-
if (p.length === payload_hashes.length) {
|
|
18
|
-
const complete = [bw, ...p];
|
|
19
|
-
results.push(complete);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return results;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
1
|
// src/combinationsBySchema.ts
|
|
26
2
|
import { ObjectHasher } from "@xyo-network/hash";
|
|
27
3
|
var generateKeyForTuple = async (payloads) => {
|
|
@@ -57,42 +33,7 @@ var combinationsBySchema = async (payloads, schemas) => {
|
|
|
57
33
|
}
|
|
58
34
|
return combinations;
|
|
59
35
|
};
|
|
60
|
-
|
|
61
|
-
// src/intraBoundwitnessSchemaCombinations.ts
|
|
62
|
-
import { asHash as asHash2 } from "@xylabs/sdk-js";
|
|
63
|
-
var intraBoundwitnessSchemaCombinations = (boundwitness, schemas) => {
|
|
64
|
-
const indexMap = {};
|
|
65
|
-
for (const [index, element] of boundwitness.payload_schemas.entries()) {
|
|
66
|
-
if (!indexMap[element]) {
|
|
67
|
-
indexMap[element] = [];
|
|
68
|
-
}
|
|
69
|
-
indexMap[element].push(index);
|
|
70
|
-
}
|
|
71
|
-
let uniqueCombinations = [[]];
|
|
72
|
-
for (const element of schemas) {
|
|
73
|
-
const newCombinations = [];
|
|
74
|
-
const indices = indexMap[element] || [];
|
|
75
|
-
for (const combination of uniqueCombinations) {
|
|
76
|
-
for (const index of indices) {
|
|
77
|
-
if (!combination.includes(index)) {
|
|
78
|
-
const newCombination = [...combination, index];
|
|
79
|
-
if (newCombination.length === schemas.indexOf(element) + 1) {
|
|
80
|
-
newCombinations.push(newCombination);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
uniqueCombinations = newCombinations;
|
|
86
|
-
}
|
|
87
|
-
return uniqueCombinations.map((indexes) => {
|
|
88
|
-
return indexes.map((index) => {
|
|
89
|
-
return asHash2(boundwitness.payload_hashes[index], true);
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
36
|
export {
|
|
94
|
-
|
|
95
|
-
combinationsBySchema,
|
|
96
|
-
intraBoundwitnessSchemaCombinations
|
|
37
|
+
combinationsBySchema
|
|
97
38
|
};
|
|
98
39
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/combinationsBySchema.ts"],"sourcesContent":["import { ObjectHasher } from '@xyo-network/hash'\nimport type { Payload } from '@xyo-network/payload-model'\n\n/**\n * Generates a unique key for a tuple of payloads\n * @param payloads An array of payloads\n * @returns A string that is a unique key for the payloads\n */\nconst generateKeyForTuple = async (payloads: Payload[]): Promise<string> => {\n // return (await Promise.all(array.map((p) => PayloadBuilder.dataHash(p)))).join('|')\n await Promise.resolve() // Here to reserve the right to make this async\n return payloads.map(p => ObjectHasher.stringifyHashFields(p)).join('|')\n}\n\n/**\n * Returns the unique combinations of payloads for the given schemas\n * @param payloads An array of payloads\n * @param schemas An array of schemas\n * @returns An array of unique combinations of payloads\n */\nexport const combinationsBySchema = async (payloads: Payload[], schemas: string[]): Promise<Payload[][]> => {\n // Group payloads by schema\n const groupedPayloads: Record<string, Payload[]> = Object.fromEntries(schemas.map(schema => [schema, []]))\n for (const payload of payloads) {\n if (schemas.includes(payload.schema)) {\n groupedPayloads[payload.schema].push(payload)\n }\n }\n\n // Set to track seen (serialized) combinations for uniqueness check\n const seen = new Set<string>()\n // Start with an array containing an empty combination\n let combinations = [[]] as Payload[][]\n\n // Iterate over each schema\n for (const schema of schemas) {\n const newCombinations: Payload[][] = []\n // Iterate over existing combinations\n for (const combination of combinations) {\n // Iterate over payloads for the current schema\n for (const payload of groupedPayloads[schema]) {\n // Create a new combination by adding the current payload\n const newPerm = [...combination, payload]\n // Proceed with serialization only if the combination is complete\n if (newPerm.length === schemas.length) {\n // Serialize the new combination asynchronously\n const serialized = await generateKeyForTuple(newPerm)\n // Check if the serialized combination is unique\n if (!seen.has(serialized)) {\n // Add it to the set of seen combinations\n seen.add(serialized)\n // Add the new combination to the list of new combinations\n newCombinations.push(newPerm)\n }\n } else {\n // Add incomplete combinations to the list for further processing\n newCombinations.push(newPerm)\n }\n }\n }\n // Update the list of combinations for the next schema iteration\n combinations = newCombinations\n }\n\n // Return the unique combinations\n return combinations\n}\n"],"mappings":";AAAA,SAAS,oBAAoB;AAQ7B,IAAM,sBAAsB,OAAO,aAAyC;AAE1E,QAAM,QAAQ,QAAQ;AACtB,SAAO,SAAS,IAAI,OAAK,aAAa,oBAAoB,CAAC,CAAC,EAAE,KAAK,GAAG;AACxE;AAQO,IAAM,uBAAuB,OAAO,UAAqB,YAA4C;AAE1G,QAAM,kBAA6C,OAAO,YAAY,QAAQ,IAAI,YAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AACzG,aAAW,WAAW,UAAU;AAC9B,QAAI,QAAQ,SAAS,QAAQ,MAAM,GAAG;AACpC,sBAAgB,QAAQ,MAAM,EAAE,KAAK,OAAO;AAAA,IAC9C;AAAA,EACF;AAGA,QAAM,OAAO,oBAAI,IAAY;AAE7B,MAAI,eAAe,CAAC,CAAC,CAAC;AAGtB,aAAW,UAAU,SAAS;AAC5B,UAAM,kBAA+B,CAAC;AAEtC,eAAW,eAAe,cAAc;AAEtC,iBAAW,WAAW,gBAAgB,MAAM,GAAG;AAE7C,cAAM,UAAU,CAAC,GAAG,aAAa,OAAO;AAExC,YAAI,QAAQ,WAAW,QAAQ,QAAQ;AAErC,gBAAM,aAAa,MAAM,oBAAoB,OAAO;AAEpD,cAAI,CAAC,KAAK,IAAI,UAAU,GAAG;AAEzB,iBAAK,IAAI,UAAU;AAEnB,4BAAgB,KAAK,OAAO;AAAA,UAC9B;AAAA,QACF,OAAO;AAEL,0BAAgB,KAAK,OAAO;AAAA,QAC9B;AAAA,MACF;AAAA,IACF;AAEA,mBAAe;AAAA,EACjB;AAGA,SAAO;AACT;","names":[]}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
// src/combinationsByBoundwitness.ts
|
|
2
|
-
import {
|
|
3
|
-
asHash,
|
|
4
|
-
difference,
|
|
5
|
-
exists
|
|
6
|
-
} from "@xylabs/sdk-js";
|
|
7
|
-
import { isBoundWitness } from "@xyo-network/boundwitness-model";
|
|
8
|
-
import { PayloadBuilder } from "@xyo-network/payload-builder";
|
|
9
|
-
var combinationsByBoundwitness = async (payloads) => {
|
|
10
|
-
const bws = new Set(payloads.filter((x) => isBoundWitness(x)));
|
|
11
|
-
const remaining = difference(new Set(payloads), bws);
|
|
12
|
-
const payloadDictionary = await PayloadBuilder.toHashMap([...remaining]);
|
|
13
|
-
const results = [];
|
|
14
|
-
for (const bw of bws) {
|
|
15
|
-
const { payload_hashes } = bw;
|
|
16
|
-
const p = payload_hashes.map((h) => payloadDictionary[asHash(h, true)]).filter(exists);
|
|
17
|
-
if (p.length === payload_hashes.length) {
|
|
18
|
-
const complete = [bw, ...p];
|
|
19
|
-
results.push(complete);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return results;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
1
|
// src/combinationsBySchema.ts
|
|
26
2
|
import { ObjectHasher } from "@xyo-network/hash";
|
|
27
3
|
var generateKeyForTuple = async (payloads) => {
|
|
@@ -57,42 +33,7 @@ var combinationsBySchema = async (payloads, schemas) => {
|
|
|
57
33
|
}
|
|
58
34
|
return combinations;
|
|
59
35
|
};
|
|
60
|
-
|
|
61
|
-
// src/intraBoundwitnessSchemaCombinations.ts
|
|
62
|
-
import { asHash as asHash2 } from "@xylabs/sdk-js";
|
|
63
|
-
var intraBoundwitnessSchemaCombinations = (boundwitness, schemas) => {
|
|
64
|
-
const indexMap = {};
|
|
65
|
-
for (const [index, element] of boundwitness.payload_schemas.entries()) {
|
|
66
|
-
if (!indexMap[element]) {
|
|
67
|
-
indexMap[element] = [];
|
|
68
|
-
}
|
|
69
|
-
indexMap[element].push(index);
|
|
70
|
-
}
|
|
71
|
-
let uniqueCombinations = [[]];
|
|
72
|
-
for (const element of schemas) {
|
|
73
|
-
const newCombinations = [];
|
|
74
|
-
const indices = indexMap[element] || [];
|
|
75
|
-
for (const combination of uniqueCombinations) {
|
|
76
|
-
for (const index of indices) {
|
|
77
|
-
if (!combination.includes(index)) {
|
|
78
|
-
const newCombination = [...combination, index];
|
|
79
|
-
if (newCombination.length === schemas.indexOf(element) + 1) {
|
|
80
|
-
newCombinations.push(newCombination);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
uniqueCombinations = newCombinations;
|
|
86
|
-
}
|
|
87
|
-
return uniqueCombinations.map((indexes) => {
|
|
88
|
-
return indexes.map((index) => {
|
|
89
|
-
return asHash2(boundwitness.payload_hashes[index], true);
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
36
|
export {
|
|
94
|
-
|
|
95
|
-
combinationsBySchema,
|
|
96
|
-
intraBoundwitnessSchemaCombinations
|
|
37
|
+
combinationsBySchema
|
|
97
38
|
};
|
|
98
39
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/combinationsBySchema.ts"],"sourcesContent":["import { ObjectHasher } from '@xyo-network/hash'\nimport type { Payload } from '@xyo-network/payload-model'\n\n/**\n * Generates a unique key for a tuple of payloads\n * @param payloads An array of payloads\n * @returns A string that is a unique key for the payloads\n */\nconst generateKeyForTuple = async (payloads: Payload[]): Promise<string> => {\n // return (await Promise.all(array.map((p) => PayloadBuilder.dataHash(p)))).join('|')\n await Promise.resolve() // Here to reserve the right to make this async\n return payloads.map(p => ObjectHasher.stringifyHashFields(p)).join('|')\n}\n\n/**\n * Returns the unique combinations of payloads for the given schemas\n * @param payloads An array of payloads\n * @param schemas An array of schemas\n * @returns An array of unique combinations of payloads\n */\nexport const combinationsBySchema = async (payloads: Payload[], schemas: string[]): Promise<Payload[][]> => {\n // Group payloads by schema\n const groupedPayloads: Record<string, Payload[]> = Object.fromEntries(schemas.map(schema => [schema, []]))\n for (const payload of payloads) {\n if (schemas.includes(payload.schema)) {\n groupedPayloads[payload.schema].push(payload)\n }\n }\n\n // Set to track seen (serialized) combinations for uniqueness check\n const seen = new Set<string>()\n // Start with an array containing an empty combination\n let combinations = [[]] as Payload[][]\n\n // Iterate over each schema\n for (const schema of schemas) {\n const newCombinations: Payload[][] = []\n // Iterate over existing combinations\n for (const combination of combinations) {\n // Iterate over payloads for the current schema\n for (const payload of groupedPayloads[schema]) {\n // Create a new combination by adding the current payload\n const newPerm = [...combination, payload]\n // Proceed with serialization only if the combination is complete\n if (newPerm.length === schemas.length) {\n // Serialize the new combination asynchronously\n const serialized = await generateKeyForTuple(newPerm)\n // Check if the serialized combination is unique\n if (!seen.has(serialized)) {\n // Add it to the set of seen combinations\n seen.add(serialized)\n // Add the new combination to the list of new combinations\n newCombinations.push(newPerm)\n }\n } else {\n // Add incomplete combinations to the list for further processing\n newCombinations.push(newPerm)\n }\n }\n }\n // Update the list of combinations for the next schema iteration\n combinations = newCombinations\n }\n\n // Return the unique combinations\n return combinations\n}\n"],"mappings":";AAAA,SAAS,oBAAoB;AAQ7B,IAAM,sBAAsB,OAAO,aAAyC;AAE1E,QAAM,QAAQ,QAAQ;AACtB,SAAO,SAAS,IAAI,OAAK,aAAa,oBAAoB,CAAC,CAAC,EAAE,KAAK,GAAG;AACxE;AAQO,IAAM,uBAAuB,OAAO,UAAqB,YAA4C;AAE1G,QAAM,kBAA6C,OAAO,YAAY,QAAQ,IAAI,YAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AACzG,aAAW,WAAW,UAAU;AAC9B,QAAI,QAAQ,SAAS,QAAQ,MAAM,GAAG;AACpC,sBAAgB,QAAQ,MAAM,EAAE,KAAK,OAAO;AAAA,IAC9C;AAAA,EACF;AAGA,QAAM,OAAO,oBAAI,IAAY;AAE7B,MAAI,eAAe,CAAC,CAAC,CAAC;AAGtB,aAAW,UAAU,SAAS;AAC5B,UAAM,kBAA+B,CAAC;AAEtC,eAAW,eAAe,cAAc;AAEtC,iBAAW,WAAW,gBAAgB,MAAM,GAAG;AAE7C,cAAM,UAAU,CAAC,GAAG,aAAa,OAAO;AAExC,YAAI,QAAQ,WAAW,QAAQ,QAAQ;AAErC,gBAAM,aAAa,MAAM,oBAAoB,OAAO;AAEpD,cAAI,CAAC,KAAK,IAAI,UAAU,GAAG;AAEzB,iBAAK,IAAI,UAAU;AAEnB,4BAAgB,KAAK,OAAO;AAAA,UAC9B;AAAA,QACF,OAAO;AAEL,0BAAgB,KAAK,OAAO;AAAA,QAC9B;AAAA,MACF;AAAA,IACF;AAEA,mBAAe;AAAA,EACjB;AAGA,SAAO;AACT;","names":[]}
|
package/dist/node/index.d.ts
CHANGED
package/dist/node/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
// src/combinationsByBoundwitness.ts
|
|
2
|
-
import {
|
|
3
|
-
asHash,
|
|
4
|
-
difference,
|
|
5
|
-
exists
|
|
6
|
-
} from "@xylabs/sdk-js";
|
|
7
|
-
import { isBoundWitness } from "@xyo-network/boundwitness-model";
|
|
8
|
-
import { PayloadBuilder } from "@xyo-network/payload-builder";
|
|
9
|
-
var combinationsByBoundwitness = async (payloads) => {
|
|
10
|
-
const bws = new Set(payloads.filter((x) => isBoundWitness(x)));
|
|
11
|
-
const remaining = difference(new Set(payloads), bws);
|
|
12
|
-
const payloadDictionary = await PayloadBuilder.toHashMap([...remaining]);
|
|
13
|
-
const results = [];
|
|
14
|
-
for (const bw of bws) {
|
|
15
|
-
const { payload_hashes } = bw;
|
|
16
|
-
const p = payload_hashes.map((h) => payloadDictionary[asHash(h, true)]).filter(exists);
|
|
17
|
-
if (p.length === payload_hashes.length) {
|
|
18
|
-
const complete = [bw, ...p];
|
|
19
|
-
results.push(complete);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return results;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
1
|
// src/combinationsBySchema.ts
|
|
26
2
|
import { ObjectHasher } from "@xyo-network/hash";
|
|
27
3
|
var generateKeyForTuple = async (payloads) => {
|
|
@@ -57,42 +33,7 @@ var combinationsBySchema = async (payloads, schemas) => {
|
|
|
57
33
|
}
|
|
58
34
|
return combinations;
|
|
59
35
|
};
|
|
60
|
-
|
|
61
|
-
// src/intraBoundwitnessSchemaCombinations.ts
|
|
62
|
-
import { asHash as asHash2 } from "@xylabs/sdk-js";
|
|
63
|
-
var intraBoundwitnessSchemaCombinations = (boundwitness, schemas) => {
|
|
64
|
-
const indexMap = {};
|
|
65
|
-
for (const [index, element] of boundwitness.payload_schemas.entries()) {
|
|
66
|
-
if (!indexMap[element]) {
|
|
67
|
-
indexMap[element] = [];
|
|
68
|
-
}
|
|
69
|
-
indexMap[element].push(index);
|
|
70
|
-
}
|
|
71
|
-
let uniqueCombinations = [[]];
|
|
72
|
-
for (const element of schemas) {
|
|
73
|
-
const newCombinations = [];
|
|
74
|
-
const indices = indexMap[element] || [];
|
|
75
|
-
for (const combination of uniqueCombinations) {
|
|
76
|
-
for (const index of indices) {
|
|
77
|
-
if (!combination.includes(index)) {
|
|
78
|
-
const newCombination = [...combination, index];
|
|
79
|
-
if (newCombination.length === schemas.indexOf(element) + 1) {
|
|
80
|
-
newCombinations.push(newCombination);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
uniqueCombinations = newCombinations;
|
|
86
|
-
}
|
|
87
|
-
return uniqueCombinations.map((indexes) => {
|
|
88
|
-
return indexes.map((index) => {
|
|
89
|
-
return asHash2(boundwitness.payload_hashes[index], true);
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
36
|
export {
|
|
94
|
-
|
|
95
|
-
combinationsBySchema,
|
|
96
|
-
intraBoundwitnessSchemaCombinations
|
|
37
|
+
combinationsBySchema
|
|
97
38
|
};
|
|
98
39
|
//# sourceMappingURL=index.mjs.map
|
package/dist/node/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/combinationsBySchema.ts"],"sourcesContent":["import { ObjectHasher } from '@xyo-network/hash'\nimport type { Payload } from '@xyo-network/payload-model'\n\n/**\n * Generates a unique key for a tuple of payloads\n * @param payloads An array of payloads\n * @returns A string that is a unique key for the payloads\n */\nconst generateKeyForTuple = async (payloads: Payload[]): Promise<string> => {\n // return (await Promise.all(array.map((p) => PayloadBuilder.dataHash(p)))).join('|')\n await Promise.resolve() // Here to reserve the right to make this async\n return payloads.map(p => ObjectHasher.stringifyHashFields(p)).join('|')\n}\n\n/**\n * Returns the unique combinations of payloads for the given schemas\n * @param payloads An array of payloads\n * @param schemas An array of schemas\n * @returns An array of unique combinations of payloads\n */\nexport const combinationsBySchema = async (payloads: Payload[], schemas: string[]): Promise<Payload[][]> => {\n // Group payloads by schema\n const groupedPayloads: Record<string, Payload[]> = Object.fromEntries(schemas.map(schema => [schema, []]))\n for (const payload of payloads) {\n if (schemas.includes(payload.schema)) {\n groupedPayloads[payload.schema].push(payload)\n }\n }\n\n // Set to track seen (serialized) combinations for uniqueness check\n const seen = new Set<string>()\n // Start with an array containing an empty combination\n let combinations = [[]] as Payload[][]\n\n // Iterate over each schema\n for (const schema of schemas) {\n const newCombinations: Payload[][] = []\n // Iterate over existing combinations\n for (const combination of combinations) {\n // Iterate over payloads for the current schema\n for (const payload of groupedPayloads[schema]) {\n // Create a new combination by adding the current payload\n const newPerm = [...combination, payload]\n // Proceed with serialization only if the combination is complete\n if (newPerm.length === schemas.length) {\n // Serialize the new combination asynchronously\n const serialized = await generateKeyForTuple(newPerm)\n // Check if the serialized combination is unique\n if (!seen.has(serialized)) {\n // Add it to the set of seen combinations\n seen.add(serialized)\n // Add the new combination to the list of new combinations\n newCombinations.push(newPerm)\n }\n } else {\n // Add incomplete combinations to the list for further processing\n newCombinations.push(newPerm)\n }\n }\n }\n // Update the list of combinations for the next schema iteration\n combinations = newCombinations\n }\n\n // Return the unique combinations\n return combinations\n}\n"],"mappings":";AAAA,SAAS,oBAAoB;AAQ7B,IAAM,sBAAsB,OAAO,aAAyC;AAE1E,QAAM,QAAQ,QAAQ;AACtB,SAAO,SAAS,IAAI,OAAK,aAAa,oBAAoB,CAAC,CAAC,EAAE,KAAK,GAAG;AACxE;AAQO,IAAM,uBAAuB,OAAO,UAAqB,YAA4C;AAE1G,QAAM,kBAA6C,OAAO,YAAY,QAAQ,IAAI,YAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AACzG,aAAW,WAAW,UAAU;AAC9B,QAAI,QAAQ,SAAS,QAAQ,MAAM,GAAG;AACpC,sBAAgB,QAAQ,MAAM,EAAE,KAAK,OAAO;AAAA,IAC9C;AAAA,EACF;AAGA,QAAM,OAAO,oBAAI,IAAY;AAE7B,MAAI,eAAe,CAAC,CAAC,CAAC;AAGtB,aAAW,UAAU,SAAS;AAC5B,UAAM,kBAA+B,CAAC;AAEtC,eAAW,eAAe,cAAc;AAEtC,iBAAW,WAAW,gBAAgB,MAAM,GAAG;AAE7C,cAAM,UAAU,CAAC,GAAG,aAAa,OAAO;AAExC,YAAI,QAAQ,WAAW,QAAQ,QAAQ;AAErC,gBAAM,aAAa,MAAM,oBAAoB,OAAO;AAEpD,cAAI,CAAC,KAAK,IAAI,UAAU,GAAG;AAEzB,iBAAK,IAAI,UAAU;AAEnB,4BAAgB,KAAK,OAAO;AAAA,UAC9B;AAAA,QACF,OAAO;AAEL,0BAAgB,KAAK,OAAO;AAAA,QAC9B;AAAA,MACF;AAAA,IACF;AAEA,mBAAe;AAAA,EACjB;AAGA,SAAO;AACT;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/payload-utils",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -22,12 +22,10 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./dist/neutral/index.d.ts",
|
|
25
|
-
"import": "./dist/neutral/index.mjs",
|
|
26
25
|
"default": "./dist/neutral/index.mjs"
|
|
27
26
|
},
|
|
28
27
|
"./package.json": "./package.json"
|
|
29
28
|
},
|
|
30
|
-
"types": "dist/neutral/index.d.ts",
|
|
31
29
|
"files": [
|
|
32
30
|
"dist",
|
|
33
31
|
"!**/*.bench.*",
|
|
@@ -36,33 +34,28 @@
|
|
|
36
34
|
"README.md"
|
|
37
35
|
],
|
|
38
36
|
"dependencies": {
|
|
39
|
-
"@xyo-network/
|
|
40
|
-
"@xyo-network/payload-model": "~5.3.30"
|
|
37
|
+
"@xyo-network/payload-model": "~5.4.0"
|
|
41
38
|
},
|
|
42
39
|
"devDependencies": {
|
|
43
40
|
"@opentelemetry/api": "^1.9.1",
|
|
44
|
-
"@types/node": "^25.
|
|
45
|
-
"@xylabs/sdk-js": "^5.0.
|
|
46
|
-
"@xylabs/
|
|
47
|
-
"@xylabs/
|
|
48
|
-
"@xylabs/
|
|
49
|
-
"@xylabs/vitest-
|
|
50
|
-
"@xylabs/vitest-matchers": "~5.0.95",
|
|
51
|
-
"axios": "^1.14.0",
|
|
41
|
+
"@types/node": "^25.6.0",
|
|
42
|
+
"@xylabs/sdk-js": "^5.0.97",
|
|
43
|
+
"@xylabs/toolchain": "~7.10.8",
|
|
44
|
+
"@xylabs/tsconfig": "~7.10.8",
|
|
45
|
+
"@xylabs/vitest-extended": "~5.0.97",
|
|
46
|
+
"@xylabs/vitest-matchers": "~5.0.97",
|
|
52
47
|
"esbuild": "^0.28.0",
|
|
53
48
|
"pako": "~2.1.0",
|
|
54
49
|
"typescript": "~5.9.3",
|
|
55
|
-
"vite": "^8.0.
|
|
56
|
-
"vitest": "~4.1.
|
|
50
|
+
"vite": "^8.0.8",
|
|
51
|
+
"vitest": "~4.1.4",
|
|
57
52
|
"zod": "^4.3.6",
|
|
58
|
-
"@xyo-network/
|
|
59
|
-
"@xyo-network/
|
|
60
|
-
"@xyo-network/wasm": "~5.3.30"
|
|
53
|
+
"@xyo-network/wasm": "~5.4.0",
|
|
54
|
+
"@xyo-network/hash": "~5.4.0"
|
|
61
55
|
},
|
|
62
56
|
"peerDependencies": {
|
|
63
|
-
"@xylabs/sdk-js": "^5",
|
|
64
|
-
"@xyo-network/hash": "~5.
|
|
65
|
-
"@xyo-network/payload-builder": "~5.3.30"
|
|
57
|
+
"@xylabs/sdk-js": "^5.0.97",
|
|
58
|
+
"@xyo-network/hash": "~5.4"
|
|
66
59
|
},
|
|
67
60
|
"publishConfig": {
|
|
68
61
|
"access": "public"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
2
|
-
import type { Payload } from '@xyo-network/payload-model';
|
|
3
|
-
/**
|
|
4
|
-
* Returns tuples of bound witnesses and their payloads from the supplied payloads. Omits
|
|
5
|
-
* bound witnesses where the payloads were not included in the supplied payloads.
|
|
6
|
-
* @param payloads An array of bound witnesses and payloads
|
|
7
|
-
* @returns An array of tuples of bound witnesses and their payloads
|
|
8
|
-
*/
|
|
9
|
-
export declare const combinationsByBoundwitness: (payloads: Payload[]) => Promise<[BoundWitness, ...Payload[]][]>;
|
|
10
|
-
//# sourceMappingURL=combinationsByBoundwitness.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combinationsByBoundwitness.d.ts","sourceRoot":"","sources":["../../src/combinationsByBoundwitness.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAGnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GAAU,UAAU,OAAO,EAAE,KAAG,OAAO,CAAC,CAAC,YAAY,EAAE,GAAG,OAAO,EAAE,CAAC,EAAE,CAc5G,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type Hash } from '@xylabs/sdk-js';
|
|
2
|
-
import type { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
3
|
-
import type { Schema } from '@xyo-network/payload-model';
|
|
4
|
-
/**
|
|
5
|
-
* Returns all the possible combinations of payloads for the supplied schemas within the bound witness
|
|
6
|
-
* @param boundwitness The bound witness to search
|
|
7
|
-
* @param schemas The schemas to search for unique combinations of
|
|
8
|
-
* @returns The payload hashes corresponding to the unique combinations of the supplied schemas
|
|
9
|
-
*/
|
|
10
|
-
export declare const intraBoundwitnessSchemaCombinations: (boundwitness: BoundWitness, schemas: Schema[]) => Hash[][];
|
|
11
|
-
//# sourceMappingURL=intraBoundwitnessSchemaCombinations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intraBoundwitnessSchemaCombinations.d.ts","sourceRoot":"","sources":["../../src/intraBoundwitnessSchemaCombinations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAExD;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC,GAAI,cAAc,YAAY,EAAE,SAAS,MAAM,EAAE,KAAG,IAAI,EAAE,EA6CzG,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
2
|
-
import type { Payload } from '@xyo-network/payload-model';
|
|
3
|
-
/**
|
|
4
|
-
* Returns tuples of bound witnesses and their payloads from the supplied payloads. Omits
|
|
5
|
-
* bound witnesses where the payloads were not included in the supplied payloads.
|
|
6
|
-
* @param payloads An array of bound witnesses and payloads
|
|
7
|
-
* @returns An array of tuples of bound witnesses and their payloads
|
|
8
|
-
*/
|
|
9
|
-
export declare const combinationsByBoundwitness: (payloads: Payload[]) => Promise<[BoundWitness, ...Payload[]][]>;
|
|
10
|
-
//# sourceMappingURL=combinationsByBoundwitness.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combinationsByBoundwitness.d.ts","sourceRoot":"","sources":["../../src/combinationsByBoundwitness.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAGnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GAAU,UAAU,OAAO,EAAE,KAAG,OAAO,CAAC,CAAC,YAAY,EAAE,GAAG,OAAO,EAAE,CAAC,EAAE,CAc5G,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type Hash } from '@xylabs/sdk-js';
|
|
2
|
-
import type { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
3
|
-
import type { Schema } from '@xyo-network/payload-model';
|
|
4
|
-
/**
|
|
5
|
-
* Returns all the possible combinations of payloads for the supplied schemas within the bound witness
|
|
6
|
-
* @param boundwitness The bound witness to search
|
|
7
|
-
* @param schemas The schemas to search for unique combinations of
|
|
8
|
-
* @returns The payload hashes corresponding to the unique combinations of the supplied schemas
|
|
9
|
-
*/
|
|
10
|
-
export declare const intraBoundwitnessSchemaCombinations: (boundwitness: BoundWitness, schemas: Schema[]) => Hash[][];
|
|
11
|
-
//# sourceMappingURL=intraBoundwitnessSchemaCombinations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intraBoundwitnessSchemaCombinations.d.ts","sourceRoot":"","sources":["../../src/intraBoundwitnessSchemaCombinations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAExD;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC,GAAI,cAAc,YAAY,EAAE,SAAS,MAAM,EAAE,KAAG,IAAI,EAAE,EA6CzG,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
2
|
-
import type { Payload } from '@xyo-network/payload-model';
|
|
3
|
-
/**
|
|
4
|
-
* Returns tuples of bound witnesses and their payloads from the supplied payloads. Omits
|
|
5
|
-
* bound witnesses where the payloads were not included in the supplied payloads.
|
|
6
|
-
* @param payloads An array of bound witnesses and payloads
|
|
7
|
-
* @returns An array of tuples of bound witnesses and their payloads
|
|
8
|
-
*/
|
|
9
|
-
export declare const combinationsByBoundwitness: (payloads: Payload[]) => Promise<[BoundWitness, ...Payload[]][]>;
|
|
10
|
-
//# sourceMappingURL=combinationsByBoundwitness.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combinationsByBoundwitness.d.ts","sourceRoot":"","sources":["../../src/combinationsByBoundwitness.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAGnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GAAU,UAAU,OAAO,EAAE,KAAG,OAAO,CAAC,CAAC,YAAY,EAAE,GAAG,OAAO,EAAE,CAAC,EAAE,CAc5G,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type Hash } from '@xylabs/sdk-js';
|
|
2
|
-
import type { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
3
|
-
import type { Schema } from '@xyo-network/payload-model';
|
|
4
|
-
/**
|
|
5
|
-
* Returns all the possible combinations of payloads for the supplied schemas within the bound witness
|
|
6
|
-
* @param boundwitness The bound witness to search
|
|
7
|
-
* @param schemas The schemas to search for unique combinations of
|
|
8
|
-
* @returns The payload hashes corresponding to the unique combinations of the supplied schemas
|
|
9
|
-
*/
|
|
10
|
-
export declare const intraBoundwitnessSchemaCombinations: (boundwitness: BoundWitness, schemas: Schema[]) => Hash[][];
|
|
11
|
-
//# sourceMappingURL=intraBoundwitnessSchemaCombinations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intraBoundwitnessSchemaCombinations.d.ts","sourceRoot":"","sources":["../../src/intraBoundwitnessSchemaCombinations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAExD;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC,GAAI,cAAc,YAAY,EAAE,SAAS,MAAM,EAAE,KAAG,IAAI,EAAE,EA6CzG,CAAA"}
|