@totemsdk/core 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/dist/util.js CHANGED
@@ -1 +1 @@
1
- export const bytesToHex = (b) => "0x" + [...b].map(x => x.toString(16).padStart(2, "0")).join("").toUpperCase();
1
+ export const bytesToHex = (b) => Array.from(b).map(x => x.toString(16).padStart(2, "0")).join("").toUpperCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@totemsdk/core",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Core cryptographic primitives for Totem SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -56,6 +56,7 @@
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  },
59
+ "license": "MIT",
59
60
  "scripts": {
60
61
  "build": "tsc",
61
62
  "clean": "rm -rf dist",
package/src/util.ts CHANGED
@@ -1 +1 @@
1
- export const bytesToHex = (b: Uint8Array) => "0x" + [...b].map(x => x.toString(16).padStart(2, "0")).join("").toUpperCase();
1
+ export const bytesToHex = (b: Uint8Array) => Array.from(b).map(x => x.toString(16).padStart(2, "0")).join("").toUpperCase();