@builderbot/bot 1.3.15-alpha.10 → 1.3.15-alpha.13

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/index.cjs +41 -40
  2. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -28367,6 +28367,8 @@ function requireStreams () {
28367
28367
  return streams;
28368
28368
  }
28369
28369
 
28370
+ lib$2.exports;
28371
+
28370
28372
  var hasRequiredLib$2;
28371
28373
 
28372
28374
  function requireLib$2 () {
@@ -28378,22 +28380,21 @@ function requireLib$2 () {
28378
28380
 
28379
28381
  var bomHandling = requireBomHandling();
28380
28382
  var mergeModules = requireMergeExports();
28381
- var iconv = module.exports;
28382
28383
 
28383
28384
  // All codecs and aliases are kept here, keyed by encoding name/alias.
28384
28385
  // They are lazy loaded in `iconv.getCodec` from `encodings/index.js`.
28385
28386
  // Cannot initialize with { __proto__: null } because Boolean({ __proto__: null }) === true
28386
- iconv.encodings = null;
28387
+ module.exports.encodings = null;
28387
28388
 
28388
28389
  // Characters emitted in case of error.
28389
- iconv.defaultCharUnicode = "�";
28390
- iconv.defaultCharSingleByte = "?";
28390
+ module.exports.defaultCharUnicode = "�";
28391
+ module.exports.defaultCharSingleByte = "?";
28391
28392
 
28392
28393
  // Public API.
28393
- iconv.encode = function encode (str, encoding, options) {
28394
+ module.exports.encode = function encode (str, encoding, options) {
28394
28395
  str = "" + (str || ""); // Ensure string.
28395
28396
 
28396
- var encoder = iconv.getEncoder(encoding, options);
28397
+ var encoder = module.exports.getEncoder(encoding, options);
28397
28398
 
28398
28399
  var res = encoder.write(str);
28399
28400
  var trail = encoder.end();
@@ -28401,17 +28402,17 @@ function requireLib$2 () {
28401
28402
  return (trail && trail.length > 0) ? Buffer.concat([res, trail]) : res
28402
28403
  };
28403
28404
 
28404
- iconv.decode = function decode (buf, encoding, options) {
28405
+ module.exports.decode = function decode (buf, encoding, options) {
28405
28406
  if (typeof buf === "string") {
28406
- if (!iconv.skipDecodeWarning) {
28407
+ if (!module.exports.skipDecodeWarning) {
28407
28408
  console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding");
28408
- iconv.skipDecodeWarning = true;
28409
+ module.exports.skipDecodeWarning = true;
28409
28410
  }
28410
28411
 
28411
28412
  buf = Buffer.from("" + (buf || ""), "binary"); // Ensure buffer.
28412
28413
  }
28413
28414
 
28414
- var decoder = iconv.getDecoder(encoding, options);
28415
+ var decoder = module.exports.getDecoder(encoding, options);
28415
28416
 
28416
28417
  var res = decoder.write(buf);
28417
28418
  var trail = decoder.end();
@@ -28419,9 +28420,9 @@ function requireLib$2 () {
28419
28420
  return trail ? (res + trail) : res
28420
28421
  };
28421
28422
 
28422
- iconv.encodingExists = function encodingExists (enc) {
28423
+ module.exports.encodingExists = function encodingExists (enc) {
28423
28424
  try {
28424
- iconv.getCodec(enc);
28425
+ module.exports.getCodec(enc);
28425
28426
  return true
28426
28427
  } catch (e) {
28427
28428
  return false
@@ -28429,31 +28430,31 @@ function requireLib$2 () {
28429
28430
  };
28430
28431
 
28431
28432
  // Legacy aliases to convert functions
28432
- iconv.toEncoding = iconv.encode;
28433
- iconv.fromEncoding = iconv.decode;
28433
+ module.exports.toEncoding = module.exports.encode;
28434
+ module.exports.fromEncoding = module.exports.decode;
28434
28435
 
28435
28436
  // Search for a codec in iconv.encodings. Cache codec data in iconv._codecDataCache.
28436
- iconv._codecDataCache = { __proto__: null };
28437
+ module.exports._codecDataCache = { __proto__: null };
28437
28438
 
28438
- iconv.getCodec = function getCodec (encoding) {
28439
- if (!iconv.encodings) {
28439
+ module.exports.getCodec = function getCodec (encoding) {
28440
+ if (!module.exports.encodings) {
28440
28441
  var raw = requireEncodings();
28441
28442
  // TODO: In future versions when old nodejs support is removed can use object.assign
28442
- iconv.encodings = { __proto__: null }; // Initialize as empty object.
28443
- mergeModules(iconv.encodings, raw);
28443
+ module.exports.encodings = { __proto__: null }; // Initialize as empty object.
28444
+ mergeModules(module.exports.encodings, raw);
28444
28445
  }
28445
28446
 
28446
28447
  // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.
28447
- var enc = iconv._canonicalizeEncoding(encoding);
28448
+ var enc = module.exports._canonicalizeEncoding(encoding);
28448
28449
 
28449
28450
  // Traverse iconv.encodings to find actual codec.
28450
28451
  var codecOptions = {};
28451
28452
  while (true) {
28452
- var codec = iconv._codecDataCache[enc];
28453
+ var codec = module.exports._codecDataCache[enc];
28453
28454
 
28454
28455
  if (codec) { return codec }
28455
28456
 
28456
- var codecDef = iconv.encodings[enc];
28457
+ var codecDef = module.exports.encodings[enc];
28457
28458
 
28458
28459
  switch (typeof codecDef) {
28459
28460
  case "string": // Direct alias to other encoding.
@@ -28474,9 +28475,9 @@ function requireLib$2 () {
28474
28475
  // The codec function must load all tables and return object with .encoder and .decoder methods.
28475
28476
  // It'll be called only once (for each different options object).
28476
28477
  //
28477
- codec = new codecDef(codecOptions, iconv);
28478
+ codec = new codecDef(codecOptions, module.exports);
28478
28479
 
28479
- iconv._codecDataCache[codecOptions.encodingName] = codec; // Save it to be reused later.
28480
+ module.exports._codecDataCache[codecOptions.encodingName] = codec; // Save it to be reused later.
28480
28481
  return codec
28481
28482
 
28482
28483
  default:
@@ -28485,13 +28486,13 @@ function requireLib$2 () {
28485
28486
  }
28486
28487
  };
28487
28488
 
28488
- iconv._canonicalizeEncoding = function (encoding) {
28489
+ module.exports._canonicalizeEncoding = function (encoding) {
28489
28490
  // Canonicalize encoding name: strip all non-alphanumeric chars and appended year.
28490
28491
  return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "")
28491
28492
  };
28492
28493
 
28493
- iconv.getEncoder = function getEncoder (encoding, options) {
28494
- var codec = iconv.getCodec(encoding);
28494
+ module.exports.getEncoder = function getEncoder (encoding, options) {
28495
+ var codec = module.exports.getCodec(encoding);
28495
28496
  var encoder = new codec.encoder(options, codec);
28496
28497
 
28497
28498
  if (codec.bomAware && options && options.addBOM) { encoder = new bomHandling.PrependBOM(encoder, options); }
@@ -28499,8 +28500,8 @@ function requireLib$2 () {
28499
28500
  return encoder
28500
28501
  };
28501
28502
 
28502
- iconv.getDecoder = function getDecoder (encoding, options) {
28503
- var codec = iconv.getCodec(encoding);
28503
+ module.exports.getDecoder = function getDecoder (encoding, options) {
28504
+ var codec = module.exports.getCodec(encoding);
28504
28505
  var decoder = new codec.decoder(options, codec);
28505
28506
 
28506
28507
  if (codec.bomAware && !(options && options.stripBOM === false)) { decoder = new bomHandling.StripBOM(decoder, options); }
@@ -28513,26 +28514,26 @@ function requireLib$2 () {
28513
28514
  // up to 100Kb to the output bundle. To avoid unnecessary code bloat, we don't enable Streaming API in browser by default.
28514
28515
  // If you would like to enable it explicitly, please add the following code to your app:
28515
28516
  // > iconv.enableStreamingAPI(require('stream'));
28516
- iconv.enableStreamingAPI = function enableStreamingAPI (streamModule) {
28517
- if (iconv.supportsStreams) { return }
28517
+ module.exports.enableStreamingAPI = function enableStreamingAPI (streamModule) {
28518
+ if (module.exports.supportsStreams) { return }
28518
28519
 
28519
28520
  // Dependency-inject stream module to create IconvLite stream classes.
28520
28521
  var streams = requireStreams()(streamModule);
28521
28522
 
28522
28523
  // Not public API yet, but expose the stream classes.
28523
- iconv.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
28524
- iconv.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
28524
+ module.exports.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
28525
+ module.exports.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
28525
28526
 
28526
28527
  // Streaming API.
28527
- iconv.encodeStream = function encodeStream (encoding, options) {
28528
- return new iconv.IconvLiteEncoderStream(iconv.getEncoder(encoding, options), options)
28528
+ module.exports.encodeStream = function encodeStream (encoding, options) {
28529
+ return new module.exports.IconvLiteEncoderStream(module.exports.getEncoder(encoding, options), options)
28529
28530
  };
28530
28531
 
28531
- iconv.decodeStream = function decodeStream (encoding, options) {
28532
- return new iconv.IconvLiteDecoderStream(iconv.getDecoder(encoding, options), options)
28532
+ module.exports.decodeStream = function decodeStream (encoding, options) {
28533
+ return new module.exports.IconvLiteDecoderStream(module.exports.getDecoder(encoding, options), options)
28533
28534
  };
28534
28535
 
28535
- iconv.supportsStreams = true;
28536
+ module.exports.supportsStreams = true;
28536
28537
  };
28537
28538
 
28538
28539
  // Enable Streaming API automatically if 'stream' module is available and non-empty (the majority of environments).
@@ -28542,10 +28543,10 @@ function requireLib$2 () {
28542
28543
  } catch (e) {}
28543
28544
 
28544
28545
  if (streamModule && streamModule.Transform) {
28545
- iconv.enableStreamingAPI(streamModule);
28546
+ module.exports.enableStreamingAPI(streamModule);
28546
28547
  } else {
28547
28548
  // In rare cases where 'stream' module is not available by default, throw a helpful exception.
28548
- iconv.encodeStream = iconv.decodeStream = function () {
28549
+ module.exports.encodeStream = module.exports.decodeStream = function () {
28549
28550
  throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")
28550
28551
  };
28551
28552
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builderbot/bot",
3
- "version": "1.3.15-alpha.10",
3
+ "version": "1.3.15-alpha.13",
4
4
  "description": "core typescript",
5
5
  "author": "Leifer Mendez <leifer33@gmail.com>",
6
6
  "homepage": "https://github.com/codigoencasa/bot-whatsapp#readme",
@@ -62,5 +62,5 @@
62
62
  "optionalDependencies": {
63
63
  "sharp": "0.33.3"
64
64
  },
65
- "gitHead": "109321c1e266276e27016c28e40687a45b4572ea"
65
+ "gitHead": "bb1a450cc3526a326c69cfe5c273c3007fa24644"
66
66
  }