@eclesia/indexer-engine 2.5.7 → 2.5.8

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.
@@ -1,2 +1,2 @@
1
- export declare const decodeAttr: (x: Uint8Array | string) => string | undefined;
1
+ export declare const decodeAttr: (x: Uint8Array | string) => string;
2
2
  //# sourceMappingURL=text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/utils/text.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,GAAG,UAAU,GAAG,MAAM,uBAOhD,CAAC"}
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/utils/text.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,GAAG,UAAU,GAAG,MAAM,WAQhD,CAAC"}
@@ -5,8 +5,11 @@ const decodeAttr = (x) => {
5
5
  if (typeof x === "string") {
6
6
  return x;
7
7
  }
8
- if (x instanceof Uint8Array) {
9
- return Buffer.from(x).toString() ?? "";
8
+ else if (x instanceof Uint8Array) {
9
+ return Buffer.from(x).toString();
10
+ }
11
+ else {
12
+ return "";
10
13
  }
11
14
  };
12
15
  exports.decodeAttr = decodeAttr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclesia/indexer-engine",
3
- "version": "2.5.7",
3
+ "version": "2.5.8",
4
4
  "description": "Core eclesia indexer engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",