@unicitylabs/nostr-js-sdk 0.3.1 → 0.3.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.
@@ -5379,6 +5379,7 @@
5379
5379
  '#p';
5380
5380
  '#t';
5381
5381
  '#d';
5382
+ '#h';
5382
5383
  since;
5383
5384
  until;
5384
5385
  limit;
@@ -5402,6 +5403,8 @@
5402
5403
  this['#t'] = [...data['#t']];
5403
5404
  if (data['#d'])
5404
5405
  this['#d'] = [...data['#d']];
5406
+ if (data['#h'])
5407
+ this['#h'] = [...data['#h']];
5405
5408
  if (data.since !== undefined)
5406
5409
  this.since = data.since;
5407
5410
  if (data.until !== undefined)
@@ -5438,6 +5441,8 @@
5438
5441
  result['#t'] = this['#t'];
5439
5442
  if (this['#d'] && this['#d'].length > 0)
5440
5443
  result['#d'] = this['#d'];
5444
+ if (this['#h'] && this['#h'].length > 0)
5445
+ result['#h'] = this['#h'];
5441
5446
  if (this.since !== undefined)
5442
5447
  result.since = this.since;
5443
5448
  if (this.until !== undefined)
@@ -5524,6 +5529,15 @@
5524
5529
  }
5525
5530
  return this;
5526
5531
  }
5532
+ hTags(hTagsOrFirst, ...rest) {
5533
+ if (Array.isArray(hTagsOrFirst)) {
5534
+ this.data['#h'] = [...hTagsOrFirst];
5535
+ }
5536
+ else {
5537
+ this.data['#h'] = [hTagsOrFirst, ...rest];
5538
+ }
5539
+ return this;
5540
+ }
5527
5541
  /**
5528
5542
  * Set minimum timestamp (inclusive).
5529
5543
  * @param since Unix timestamp in seconds