@go-avro/avro-js 0.0.89 → 0.0.90
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/types/api/Label.d.ts +1 -0
- package/dist/types/api/Label.js +16 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/types/api/Label.js
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export const resolveLabels = (labels, ...refGroups) => {
|
|
2
|
+
const seen = new Set();
|
|
3
|
+
const resolved = [];
|
|
4
|
+
for (const refs of refGroups) {
|
|
5
|
+
for (const ref of refs ?? []) {
|
|
6
|
+
if (!ref)
|
|
7
|
+
continue;
|
|
8
|
+
const label = labels?.find((l) => l.id === ref || l.name === ref);
|
|
9
|
+
if (label && !seen.has(label.id)) {
|
|
10
|
+
seen.add(label.id);
|
|
11
|
+
resolved.push(label);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return resolved;
|
|
16
|
+
};
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AVRO_JS_VERSION = "0.0.
|
|
1
|
+
export declare const AVRO_JS_VERSION = "0.0.90";
|
package/dist/version.js
CHANGED