@ar.io/sdk 4.0.0-solana.1 → 4.0.0-solana.3

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.
@@ -277,9 +277,7 @@ class SolanaANTReadable {
277
277
  try {
278
278
  const buf = Buffer.from(account.data[0], 'base64');
279
279
  const record = (0, deserialize_js_1.deserializeAntRecord)(buf);
280
- // Look up metadata by computing the undername hash
281
- const { createHash } = await Promise.resolve().then(() => __importStar(require('crypto')));
282
- const hash = createHash('sha256')
280
+ const hash = (0, crypto_1.createHash)('sha256')
283
281
  .update(record.undername.toLowerCase())
284
282
  .digest('hex');
285
283
  const meta = metaByHash.get(hash) ?? {};
@@ -17,4 +17,4 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.version = void 0;
19
19
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
20
- exports.version = '4.0.0-solana.1';
20
+ exports.version = '4.0.0-solana.3';
@@ -238,9 +238,7 @@ export class SolanaANTReadable {
238
238
  try {
239
239
  const buf = Buffer.from(account.data[0], 'base64');
240
240
  const record = deserializeAntRecord(buf);
241
- // Look up metadata by computing the undername hash
242
- const { createHash } = await import('crypto');
243
- const hash = createHash('sha256')
241
+ const hash = __createHash('sha256')
244
242
  .update(record.undername.toLowerCase())
245
243
  .digest('hex');
246
244
  const meta = metaByHash.get(hash) ?? {};
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
17
- export const version = '4.0.0-solana.1';
17
+ export const version = '4.0.0-solana.3';
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const version = "4.0.0-solana.0";
16
+ export declare const version = "4.0.0-solana.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "4.0.0-solana.1",
3
+ "version": "4.0.0-solana.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"