@chainfuse/helpers 0.1.6 → 0.1.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.
Files changed (2) hide show
  1. package/dist/buffers.mjs +3 -3
  2. package/package.json +5 -5
package/dist/buffers.mjs CHANGED
@@ -60,7 +60,7 @@ export class BufferHelpers {
60
60
  return Promise.all([CryptoHelpers.secretBytes(16), import('uuid')]).then(([random, { v7: uuidv7 }]) => {
61
61
  const uuid = uuidv7({ random });
62
62
  const uuidHex = uuid.replaceAll('-', '');
63
- return this.bufferFromHex(uuidHex).then((blob) => ({
63
+ return this.hexToBuffer(uuidHex).then((blob) => ({
64
64
  utf8: uuid,
65
65
  hex: uuidHex,
66
66
  blob,
@@ -77,7 +77,7 @@ export class BufferHelpers {
77
77
  input = input.split('_')[1];
78
78
  hex = hex.split('_')[1];
79
79
  }
80
- return this.bufferFromHex(hex).then((blob) => ({
80
+ return this.hexToBuffer(hex).then((blob) => ({
81
81
  utf8: input,
82
82
  hex,
83
83
  blob,
@@ -85,7 +85,7 @@ export class BufferHelpers {
85
85
  }
86
86
  else {
87
87
  const hex = input;
88
- return this.bufferFromHex(hex).then((blob) => ({
88
+ return this.hexToBuffer(hex).then((blob) => ({
89
89
  utf8: `${hex.substring(0, 8)}-${hex.substring(8, 12)}-${hex.substring(12, 16)}-${hex.substring(16, 20)}-${hex.substring(20)}`,
90
90
  hex,
91
91
  blob,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/helpers",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "",
5
5
  "author": "ChainFuse",
6
6
  "homepage": "https://github.com/ChainFuse/packages/tree/main/packages/helpers#readme",
@@ -51,11 +51,11 @@
51
51
  "dependencies": {
52
52
  "chalk": "^5.3.0",
53
53
  "cloudflare": "^3.5.0",
54
- "uuid": "^11.0.2"
54
+ "uuid": "^11.0.3"
55
55
  },
56
56
  "devDependencies": {
57
- "@chainfuse/types": "^1.1.3",
58
- "@types/node": "^22.8.6"
57
+ "@chainfuse/types": "^1.1.5",
58
+ "@types/node": "^22.9.0"
59
59
  },
60
- "gitHead": "f285c56d4fff071c73296125a60dd2af55b865bf"
60
+ "gitHead": "bd7a7c6300bbe005b6e8b6a973b1bf4eb7e015e9"
61
61
  }