@azure/storage-blob 12.25.0-alpha.20240822.1 → 12.25.0-alpha.20240823.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -17636,6 +17636,7 @@ class AvroType {
17636
17636
  /**
17637
17637
  * Determines the AvroType from the Avro Schema.
17638
17638
  */
17639
+ // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
17639
17640
  static fromSchema(schema) {
17640
17641
  if (typeof schema === "string") {
17641
17642
  return AvroType.fromStringSchema(schema);
@@ -17671,7 +17672,7 @@ class AvroType {
17671
17672
  try {
17672
17673
  return AvroType.fromStringSchema(type);
17673
17674
  }
17674
- catch (err) {
17675
+ catch (_a) {
17675
17676
  // eslint-disable-line no-empty
17676
17677
  }
17677
17678
  switch (type) {
@@ -17716,6 +17717,7 @@ class AvroPrimitiveType extends AvroType {
17716
17717
  super();
17717
17718
  this._primitive = primitive;
17718
17719
  }
17720
+ // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
17719
17721
  read(stream, options = {}) {
17720
17722
  switch (this._primitive) {
17721
17723
  case AvroPrimitive.NULL:
@@ -17744,6 +17746,7 @@ class AvroEnumType extends AvroType {
17744
17746
  super();
17745
17747
  this._symbols = symbols;
17746
17748
  }
17749
+ // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
17747
17750
  async read(stream, options = {}) {
17748
17751
  const value = await AvroParser.readInt(stream, options);
17749
17752
  return this._symbols[value];
@@ -17755,7 +17758,6 @@ class AvroUnionType extends AvroType {
17755
17758
  this._types = types;
17756
17759
  }
17757
17760
  async read(stream, options = {}) {
17758
- // eslint-disable-line @typescript-eslint/ban-types
17759
17761
  const typeIndex = await AvroParser.readInt(stream, options);
17760
17762
  return this._types[typeIndex].read(stream, options);
17761
17763
  }
@@ -17765,6 +17767,7 @@ class AvroMapType extends AvroType {
17765
17767
  super();
17766
17768
  this._itemType = itemType;
17767
17769
  }
17770
+ // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
17768
17771
  read(stream, options = {}) {
17769
17772
  const readItemMethod = (s, opts) => {
17770
17773
  return this._itemType.read(s, opts);
@@ -17778,7 +17781,9 @@ class AvroRecordType extends AvroType {
17778
17781
  this._fields = fields;
17779
17782
  this._name = name;
17780
17783
  }
17784
+ // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
17781
17785
  async read(stream, options = {}) {
17786
+ // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
17782
17787
  const record = {};
17783
17788
  record["$schema"] = this._name;
17784
17789
  for (const key in this._fields) {
@@ -17892,7 +17897,7 @@ class AvroReader {
17892
17897
  abortSignal: options.abortSignal,
17893
17898
  }));
17894
17899
  }
17895
- catch (err) {
17900
+ catch (_a) {
17896
17901
  // We hit the end of the stream.
17897
17902
  this._itemsRemainingInBlock = 0;
17898
17903
  }