@dereekb/nestjs 13.43.0 → 14.0.0

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.
@@ -7,10 +7,12 @@ function _array_without_holes(arr) {
7
7
  if (Array.isArray(arr)) return _array_like_to_array(arr);
8
8
  }
9
9
  function _iterable_to_array(iter) {
10
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
10
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
11
+ return Array.from(iter);
12
+ }
11
13
  }
12
14
  function _non_iterable_spread() {
13
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
14
16
  }
15
17
  function _to_consumable_array(arr) {
16
18
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/eslint",
3
- "version": "13.43.0",
3
+ "version": "14.0.0",
4
4
  "type": "module",
5
5
  "peerDependencies": {
6
- "@dereekb/util": "13.43.0",
7
- "@typescript-eslint/utils": "8.59.3"
6
+ "@dereekb/util": "14.0.0",
7
+ "@typescript-eslint/utils": "8.69.0"
8
8
  },
9
9
  "devDependencies": {
10
- "@angular/core": "21.2.11",
11
- "@nestjs/common": "^11.1.19",
12
- "@nestjs/core": "^11.1.19",
13
- "@typescript-eslint/parser": "8.59.3",
14
- "eslint": "10.4.0"
10
+ "@angular/core": "22.1.4",
11
+ "@nestjs/common": "^12.0.1",
12
+ "@nestjs/core": "^12.0.1",
13
+ "@typescript-eslint/parser": "8.69.0",
14
+ "eslint": "10.9.1"
15
15
  },
16
16
  "exports": {
17
17
  "./package.json": "./package.json",
package/index.esm.js CHANGED
@@ -18,11 +18,8 @@ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
18
18
  reject(error);
19
19
  return;
20
20
  }
21
- if (info.done) {
22
- resolve(value);
23
- } else {
24
- Promise.resolve(value).then(_next, _throw);
25
- }
21
+ if (info.done) resolve(value);
22
+ else Promise.resolve(value).then(_next, _throw);
26
23
  }
27
24
  function _async_to_generator$2(fn) {
28
25
  return function() {
@@ -248,11 +245,8 @@ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
248
245
  reject(error);
249
246
  return;
250
247
  }
251
- if (info.done) {
252
- resolve(value);
253
- } else {
254
- Promise.resolve(value).then(_next, _throw);
255
- }
248
+ if (info.done) resolve(value);
249
+ else Promise.resolve(value).then(_next, _throw);
256
250
  }
257
251
  function _async_to_generator$1(fn) {
258
252
  return function() {
@@ -512,9 +506,7 @@ typeof SuppressedError === "function" ? SuppressedError : function(error, suppre
512
506
  };
513
507
 
514
508
  function _class_call_check$7(instance, Constructor) {
515
- if (!(instance instanceof Constructor)) {
516
- throw new TypeError("Cannot call a class as a function");
517
- }
509
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
518
510
  }
519
511
  function _defineProperties$5(target, props) {
520
512
  for(var i = 0; i < props.length; i++){
@@ -557,9 +549,7 @@ JsonBodyMiddleware = __decorate([
557
549
  ], JsonBodyMiddleware);
558
550
 
559
551
  function _class_call_check$6(instance, Constructor) {
560
- if (!(instance instanceof Constructor)) {
561
- throw new TypeError("Cannot call a class as a function");
562
- }
552
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
563
553
  }
564
554
  function _defineProperties$4(target, props) {
565
555
  for(var i = 0; i < props.length; i++){
@@ -595,9 +585,7 @@ RawBodyMiddleware = __decorate([
595
585
  ], RawBodyMiddleware);
596
586
 
597
587
  function _assert_this_initialized(self) {
598
- if (self === void 0) {
599
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
600
- }
588
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
601
589
  return self;
602
590
  }
603
591
  function _call_super(_this, derived, args) {
@@ -605,9 +593,7 @@ function _call_super(_this, derived, args) {
605
593
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
606
594
  }
607
595
  function _class_call_check$5(instance, Constructor) {
608
- if (!(instance instanceof Constructor)) {
609
- throw new TypeError("Cannot call a class as a function");
610
- }
596
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
611
597
  }
612
598
  function _defineProperties$3(target, props) {
613
599
  for(var i = 0; i < props.length; i++){
@@ -630,22 +616,17 @@ function _define_property$4(obj, key, value) {
630
616
  configurable: true,
631
617
  writable: true
632
618
  });
633
- } else {
634
- obj[key] = value;
635
- }
619
+ } else obj[key] = value;
636
620
  return obj;
637
621
  }
638
622
  function _get(target, property, receiver) {
639
- if (typeof Reflect !== "undefined" && Reflect.get) {
640
- _get = Reflect.get;
641
- } else {
623
+ if (typeof Reflect !== "undefined" && Reflect.get) _get = Reflect.get;
624
+ else {
642
625
  _get = function get(target, property, receiver) {
643
626
  var base = _super_prop_base(target, property);
644
627
  if (!base) return;
645
628
  var desc = Object.getOwnPropertyDescriptor(base, property);
646
- if (desc.get) {
647
- return desc.get.call(receiver || target);
648
- }
629
+ if (desc.get) return desc.get.call(receiver || target);
649
630
  return desc.value;
650
631
  };
651
632
  }
@@ -670,10 +651,16 @@ function _inherits(subClass, superClass) {
670
651
  });
671
652
  if (superClass) _set_prototype_of(subClass, superClass);
672
653
  }
654
+ function _is_native_reflect_construct() {
655
+ try {
656
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
657
+ } catch (_) {}
658
+ return (_is_native_reflect_construct = function() {
659
+ return !!result;
660
+ })();
661
+ }
673
662
  function _possible_constructor_return(self, call) {
674
- if (call && (_type_of$1(call) === "object" || typeof call === "function")) {
675
- return call;
676
- }
663
+ if (call && (_type_of$1(call) === "object" || typeof call === "function")) return call;
677
664
  return _assert_this_initialized(self);
678
665
  }
679
666
  function _set_prototype_of(o, p) {
@@ -694,14 +681,6 @@ function _type_of$1(obj) {
694
681
  "@swc/helpers - typeof";
695
682
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
696
683
  }
697
- function _is_native_reflect_construct() {
698
- try {
699
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
700
- } catch (_) {}
701
- return (_is_native_reflect_construct = function() {
702
- return !!result;
703
- })();
704
- }
705
684
  var DEFAULT_BASE_WEBHOOK_PATH = '/webhook';
706
685
  var DEFAULT_WEBHOOK_MIDDLEWARE_ROUTE_INFO = {
707
686
  path: "".concat(DEFAULT_BASE_WEBHOOK_PATH, "/{*path}"),
@@ -810,9 +789,7 @@ function _type_of(obj) {
810
789
  */ var CLIENT_WEB_APP_URL_ENV_VAR = 'CLIENT_WEB_APP_URL';
811
790
 
812
791
  function _class_call_check$4(instance, Constructor) {
813
- if (!(instance instanceof Constructor)) {
814
- throw new TypeError("Cannot call a class as a function");
815
- }
792
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
816
793
  }
817
794
  function _defineProperties$2(target, props) {
818
795
  for(var i = 0; i < props.length; i++){
@@ -835,9 +812,7 @@ function _define_property$3(obj, key, value) {
835
812
  configurable: true,
836
813
  writable: true
837
814
  });
838
- } else {
839
- obj[key] = value;
840
- }
815
+ } else obj[key] = value;
841
816
  return obj;
842
817
  }
843
818
  /**
@@ -869,9 +844,7 @@ function _define_property$3(obj, key, value) {
869
844
  ();
870
845
 
871
846
  function _class_call_check$3(instance, Constructor) {
872
- if (!(instance instanceof Constructor)) {
873
- throw new TypeError("Cannot call a class as a function");
874
- }
847
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
875
848
  }
876
849
  function _defineProperties$1(target, props) {
877
850
  for(var i = 0; i < props.length; i++){
@@ -894,9 +867,7 @@ function _define_property$2(obj, key, value) {
894
867
  configurable: true,
895
868
  writable: true
896
869
  });
897
- } else {
898
- obj[key] = value;
899
- }
870
+ } else obj[key] = value;
900
871
  return obj;
901
872
  }
902
873
  /**
@@ -935,9 +906,7 @@ ClientAppService = __decorate([
935
906
  ], ClientAppService);
936
907
 
937
908
  function _class_call_check$2(instance, Constructor) {
938
- if (!(instance instanceof Constructor)) {
939
- throw new TypeError("Cannot call a class as a function");
940
- }
909
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
941
910
  }
942
911
  /**
943
912
  * Factory that creates a ClientAppServiceConfig from environment variables.
@@ -986,9 +955,7 @@ ClientAppModule = __decorate([
986
955
  ], ClientAppModule);
987
956
 
988
957
  function _class_call_check$1(instance, Constructor) {
989
- if (!(instance instanceof Constructor)) {
990
- throw new TypeError("Cannot call a class as a function");
991
- }
958
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
992
959
  }
993
960
  /**
994
961
  * A server environment configuration.
@@ -1028,9 +995,7 @@ function _class_call_check$1(instance, Constructor) {
1028
995
  }
1029
996
 
1030
997
  function _class_call_check(instance, Constructor) {
1031
- if (!(instance instanceof Constructor)) {
1032
- throw new TypeError("Cannot call a class as a function");
1033
- }
998
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
1034
999
  }
1035
1000
  function _defineProperties(target, props) {
1036
1001
  for(var i = 0; i < props.length; i++){
@@ -1053,9 +1018,7 @@ function _define_property$1(obj, key, value) {
1053
1018
  configurable: true,
1054
1019
  writable: true
1055
1020
  });
1056
- } else {
1057
- obj[key] = value;
1058
- }
1021
+ } else obj[key] = value;
1059
1022
  return obj;
1060
1023
  }
1061
1024
  var ServerEnvironmentService = /*#__PURE__*/ function() {
@@ -1202,11 +1165,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
1202
1165
  reject(error);
1203
1166
  return;
1204
1167
  }
1205
- if (info.done) {
1206
- resolve(value);
1207
- } else {
1208
- Promise.resolve(value).then(_next, _throw);
1209
- }
1168
+ if (info.done) resolve(value);
1169
+ else Promise.resolve(value).then(_next, _throw);
1210
1170
  }
1211
1171
  function _async_to_generator(fn) {
1212
1172
  return function() {
@@ -1231,9 +1191,7 @@ function _define_property(obj, key, value) {
1231
1191
  configurable: true,
1232
1192
  writable: true
1233
1193
  });
1234
- } else {
1235
- obj[key] = value;
1236
- }
1194
+ } else obj[key] = value;
1237
1195
  return obj;
1238
1196
  }
1239
1197
  function _iterable_to_array_limit$1(arr, i) {
@@ -1261,7 +1219,7 @@ function _iterable_to_array_limit$1(arr, i) {
1261
1219
  return _arr;
1262
1220
  }
1263
1221
  function _non_iterable_rest$1() {
1264
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1222
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1265
1223
  }
1266
1224
  function _object_spread(target) {
1267
1225
  for(var i = 1; i < arguments.length; i++){
@@ -1288,9 +1246,8 @@ function ownKeys(object, enumerableOnly) {
1288
1246
  }
1289
1247
  function _object_spread_props(target, source) {
1290
1248
  source = source != null ? source : {};
1291
- if (Object.getOwnPropertyDescriptors) {
1292
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1293
- } else {
1249
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1250
+ else {
1294
1251
  ownKeys(Object(source)).forEach(function(key) {
1295
1252
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1296
1253
  });
@@ -1300,14 +1257,6 @@ function _object_spread_props(target, source) {
1300
1257
  function _sliced_to_array$1(arr, i) {
1301
1258
  return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
1302
1259
  }
1303
- function _unsupported_iterable_to_array$1(o, minLen) {
1304
- if (!o) return;
1305
- if (typeof o === "string") return _array_like_to_array$1(o, minLen);
1306
- var n = Object.prototype.toString.call(o).slice(8, -1);
1307
- if (n === "Object" && o.constructor) n = o.constructor.name;
1308
- if (n === "Map" || n === "Set") return Array.from(n);
1309
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
1310
- }
1311
1260
  function _ts_generator(thisArg, body) {
1312
1261
  var f, y, t, _ = {
1313
1262
  label: 0,
@@ -1407,6 +1356,14 @@ function _ts_generator(thisArg, body) {
1407
1356
  };
1408
1357
  }
1409
1358
  }
1359
+ function _unsupported_iterable_to_array$1(o, minLen) {
1360
+ if (!o) return;
1361
+ if (typeof o === "string") return _array_like_to_array$1(o, minLen);
1362
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1363
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1364
+ if (n === "Map" || n === "Set") return Array.from(n);
1365
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
1366
+ }
1410
1367
  /**
1411
1368
  * Default file mode used by the JSON-file caches when none is provided.
1412
1369
  *
@@ -1965,15 +1922,13 @@ function _iterable_to_array_limit(arr, i) {
1965
1922
  return _arr;
1966
1923
  }
1967
1924
  function _non_iterable_rest() {
1968
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1925
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1969
1926
  }
1970
1927
  function _sliced_to_array(arr, i) {
1971
1928
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
1972
1929
  }
1973
1930
  function _tagged_template_literal(strings, raw) {
1974
- if (!raw) {
1975
- raw = strings.slice(0);
1976
- }
1931
+ if (!raw) raw = strings.slice(0);
1977
1932
  return Object.freeze(Object.defineProperties(strings, {
1978
1933
  raw: {
1979
1934
  value: Object.freeze(raw)
@@ -21,18 +21,14 @@ function _define_property$5(obj, key, value) {
21
21
  configurable: true,
22
22
  writable: true
23
23
  });
24
- } else {
25
- obj[key] = value;
26
- }
24
+ } else obj[key] = value;
27
25
  return obj;
28
26
  }
29
27
  function _instanceof(left, right) {
30
28
  "@swc/helpers - instanceof";
31
29
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
32
30
  return !!right[Symbol.hasInstance](left);
33
- } else {
34
- return left instanceof right;
35
- }
31
+ } else return left instanceof right;
36
32
  }
37
33
  function _iterable_to_array_limit$1(arr, i) {
38
34
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
@@ -59,7 +55,7 @@ function _iterable_to_array_limit$1(arr, i) {
59
55
  return _arr;
60
56
  }
61
57
  function _non_iterable_rest$1() {
62
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
58
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
63
59
  }
64
60
  function _object_spread$3(target) {
65
61
  for(var i = 1; i < arguments.length; i++){
@@ -86,9 +82,8 @@ function ownKeys$1(object, enumerableOnly) {
86
82
  }
87
83
  function _object_spread_props$1(target, source) {
88
84
  source = source != null ? source : {};
89
- if (Object.getOwnPropertyDescriptors) {
90
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
91
- } else {
85
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
86
+ else {
92
87
  ownKeys$1(Object(source)).forEach(function(key) {
93
88
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
94
89
  });
@@ -356,9 +351,7 @@ typeof SuppressedError === "function" ? SuppressedError : function(error, suppre
356
351
  };
357
352
 
358
353
  function _class_call_check$3(instance, Constructor) {
359
- if (!(instance instanceof Constructor)) {
360
- throw new TypeError("Cannot call a class as a function");
361
- }
354
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
362
355
  }
363
356
  function _defineProperties$2(target, props) {
364
357
  for(var i = 0; i < props.length; i++){
@@ -381,9 +374,7 @@ function _define_property$4(obj, key, value) {
381
374
  configurable: true,
382
375
  writable: true
383
376
  });
384
- } else {
385
- obj[key] = value;
386
- }
377
+ } else obj[key] = value;
387
378
  return obj;
388
379
  }
389
380
  var MailgunServiceConfig = /*#__PURE__*/ function() {
@@ -427,9 +418,7 @@ var MailgunServiceConfig = /*#__PURE__*/ function() {
427
418
  ();
428
419
 
429
420
  function _class_call_check$2(instance, Constructor) {
430
- if (!(instance instanceof Constructor)) {
431
- throw new TypeError("Cannot call a class as a function");
432
- }
421
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
433
422
  }
434
423
  function _defineProperties$1(target, props) {
435
424
  for(var i = 0; i < props.length; i++){
@@ -452,9 +441,7 @@ function _define_property$3(obj, key, value) {
452
441
  configurable: true,
453
442
  writable: true
454
443
  });
455
- } else {
456
- obj[key] = value;
457
- }
444
+ } else obj[key] = value;
458
445
  return obj;
459
446
  }
460
447
  function _object_spread$2(target) {
@@ -573,11 +560,8 @@ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
573
560
  reject(error);
574
561
  return;
575
562
  }
576
- if (info.done) {
577
- resolve(value);
578
- } else {
579
- Promise.resolve(value).then(_next, _throw);
580
- }
563
+ if (info.done) resolve(value);
564
+ else Promise.resolve(value).then(_next, _throw);
581
565
  }
582
566
  function _async_to_generator$1(fn) {
583
567
  return function() {
@@ -602,9 +586,7 @@ function _define_property$2(obj, key, value) {
602
586
  configurable: true,
603
587
  writable: true
604
588
  });
605
- } else {
606
- obj[key] = value;
607
- }
589
+ } else obj[key] = value;
608
590
  return obj;
609
591
  }
610
592
  function _iterable_to_array_limit(arr, i) {
@@ -632,7 +614,7 @@ function _iterable_to_array_limit(arr, i) {
632
614
  return _arr;
633
615
  }
634
616
  function _non_iterable_rest() {
635
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
617
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
636
618
  }
637
619
  function _object_spread$1(target) {
638
620
  for(var i = 1; i < arguments.length; i++){
@@ -652,14 +634,6 @@ function _object_spread$1(target) {
652
634
  function _sliced_to_array(arr, i) {
653
635
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest();
654
636
  }
655
- function _unsupported_iterable_to_array$1(o, minLen) {
656
- if (!o) return;
657
- if (typeof o === "string") return _array_like_to_array$1(o, minLen);
658
- var n = Object.prototype.toString.call(o).slice(8, -1);
659
- if (n === "Object" && o.constructor) n = o.constructor.name;
660
- if (n === "Map" || n === "Set") return Array.from(n);
661
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
662
- }
663
637
  function _ts_generator$1(thisArg, body) {
664
638
  var f, y, t, _ = {
665
639
  label: 0,
@@ -759,6 +733,14 @@ function _ts_generator$1(thisArg, body) {
759
733
  };
760
734
  }
761
735
  }
736
+ function _unsupported_iterable_to_array$1(o, minLen) {
737
+ if (!o) return;
738
+ if (typeof o === "string") return _array_like_to_array$1(o, minLen);
739
+ var n = Object.prototype.toString.call(o).slice(8, -1);
740
+ if (n === "Object" && o.constructor) n = o.constructor.name;
741
+ if (n === "Map" || n === "Set") return Array.from(n);
742
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
743
+ }
762
744
  /**
763
745
  * The default number of events to read back when inspecting a recipient's recent activity.
764
746
  */ var DEFAULT_MAILGUN_RECENT_EVENTS_LIMIT = 25;
@@ -1163,11 +1145,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
1163
1145
  reject(error);
1164
1146
  return;
1165
1147
  }
1166
- if (info.done) {
1167
- resolve(value);
1168
- } else {
1169
- Promise.resolve(value).then(_next, _throw);
1170
- }
1148
+ if (info.done) resolve(value);
1149
+ else Promise.resolve(value).then(_next, _throw);
1171
1150
  }
1172
1151
  function _async_to_generator(fn) {
1173
1152
  return function() {
@@ -1185,9 +1164,7 @@ function _async_to_generator(fn) {
1185
1164
  };
1186
1165
  }
1187
1166
  function _class_call_check$1(instance, Constructor) {
1188
- if (!(instance instanceof Constructor)) {
1189
- throw new TypeError("Cannot call a class as a function");
1190
- }
1167
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
1191
1168
  }
1192
1169
  function _defineProperties(target, props) {
1193
1170
  for(var i = 0; i < props.length; i++){
@@ -1210,9 +1187,7 @@ function _define_property$1(obj, key, value) {
1210
1187
  configurable: true,
1211
1188
  writable: true
1212
1189
  });
1213
- } else {
1214
- obj[key] = value;
1215
- }
1190
+ } else obj[key] = value;
1216
1191
  return obj;
1217
1192
  }
1218
1193
  function _ts_generator(thisArg, body) {
@@ -1412,9 +1387,7 @@ MailgunService = __decorate([
1412
1387
  ], MailgunService);
1413
1388
 
1414
1389
  function _class_call_check(instance, Constructor) {
1415
- if (!(instance instanceof Constructor)) {
1416
- throw new TypeError("Cannot call a class as a function");
1417
- }
1390
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
1418
1391
  }
1419
1392
  var mailgunLogger = new Logger('MailgunServiceModule');
1420
1393
  /**
@@ -1524,16 +1497,16 @@ function _define_property(obj, key, value) {
1524
1497
  configurable: true,
1525
1498
  writable: true
1526
1499
  });
1527
- } else {
1528
- obj[key] = value;
1529
- }
1500
+ } else obj[key] = value;
1530
1501
  return obj;
1531
1502
  }
1532
1503
  function _iterable_to_array(iter) {
1533
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1504
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
1505
+ return Array.from(iter);
1506
+ }
1534
1507
  }
1535
1508
  function _non_iterable_spread() {
1536
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1509
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1537
1510
  }
1538
1511
  function _object_spread(target) {
1539
1512
  for(var i = 1; i < arguments.length; i++){
@@ -1560,9 +1533,8 @@ function ownKeys(object, enumerableOnly) {
1560
1533
  }
1561
1534
  function _object_spread_props(target, source) {
1562
1535
  source = source != null ? source : {};
1563
- if (Object.getOwnPropertyDescriptors) {
1564
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1565
- } else {
1536
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1537
+ else {
1566
1538
  ownKeys(Object(source)).forEach(function(key) {
1567
1539
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1568
1540
  });
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@dereekb/nestjs/mailgun",
3
- "version": "13.43.0",
3
+ "version": "14.0.0",
4
4
  "type": "module",
5
5
  "peerDependencies": {
6
- "@dereekb/date": "13.43.0",
7
- "@dereekb/model": "13.43.0",
8
- "@dereekb/nestjs": "13.43.0",
9
- "@dereekb/rxjs": "13.43.0",
10
- "@dereekb/util": "13.43.0",
11
- "@nestjs/common": "^11.1.19",
12
- "@nestjs/config": "^4.0.4",
6
+ "@dereekb/date": "14.0.0",
7
+ "@dereekb/model": "14.0.0",
8
+ "@dereekb/nestjs": "14.0.0",
9
+ "@dereekb/rxjs": "14.0.0",
10
+ "@dereekb/util": "14.0.0",
11
+ "@nestjs/common": "^12.0.1",
12
+ "@nestjs/config": "^12.0.0",
13
13
  "form-data": "^4.0.5",
14
- "mailgun.js": "^12.9.0"
14
+ "mailgun.js": "^14.0.0"
15
15
  },
16
16
  "exports": {
17
17
  "./package.json": "./package.json",
@@ -1,6 +1,24 @@
1
1
  import { type ArrayOrValue, type EmailAddress, type EmailAddressDomain, type NameEmailPair, type EmailParticipantString, type Maybe } from '@dereekb/util';
2
- import { type CustomFileData, type MailgunMessageData, type MessagesSendResult } from 'node_modules/mailgun.js/Types/Types/Messages/Messages';
3
- import { type APIResponse } from 'node_modules/mailgun.js/Types/Types/Common/ApiResponse';
2
+ import { type MailgunMessagesClient, type MailgunDomainsClient } from './mailgun.type';
3
+ /**
4
+ * mailgun.js declares no `exports` map entry for its `Types/` tree, so importing these directly
5
+ * emits a `node_modules/mailgun.js/...` specifier into this package's `.d.ts` that no downstream
6
+ * consumer can resolve. Each is instead derived from a public client method, matching the
7
+ * `ReturnType`/`Parameters` convention already used across `mailgun.type.ts`.
8
+ */
9
+ type MailgunMessageData = Parameters<MailgunMessagesClient['create']>[1];
10
+ type MessagesSendResult = Awaited<ReturnType<MailgunMessagesClient['create']>>;
11
+ /**
12
+ * The object-with-`data` member of mailgun's `attachment` union — i.e. its `CustomFile`.
13
+ */
14
+ type CustomFile = Extract<NonNullable<MailgunMessageData['attachment']>, {
15
+ data: unknown;
16
+ }>;
17
+ type CustomFileData = CustomFile['data'];
18
+ /**
19
+ * mailgun's generic `{ status, body }` envelope, reached via a method that returns it verbatim.
20
+ */
21
+ type APIResponse = Awaited<ReturnType<MailgunDomainsClient['assignIp']>>;
4
22
  export type MailgunSenderDomainString = EmailAddressDomain;
5
23
  export type MailgunTemplateKey = string;
6
24
  /**
@@ -216,3 +234,4 @@ export declare function convertMailgunRecipientToString(recipient: MailgunRecipi
216
234
  * @throws {Error} When `value` has an unsupported runtime type.
217
235
  */
218
236
  export declare function encodeMailgunTemplateVariableValue(value: unknown): Maybe<string>;
237
+ export {};
@@ -1,6 +1,12 @@
1
1
  import type Mailgun from 'mailgun.js';
2
- import { type MailgunClientOptions } from 'node_modules/mailgun.js/Types/Types/MailgunClient/MailgunClientOptions';
3
- export type MailgunOptions = MailgunClientOptions;
2
+ /**
3
+ * Options accepted by `Mailgun.client()`.
4
+ *
5
+ * Derived from the public surface rather than deep-imported: mailgun.js declares no `exports` map
6
+ * entry for its `Types/` tree, so a direct import of `MailgunClientOptions` is unresolvable for any
7
+ * downstream consumer of this package's emitted `.d.ts`.
8
+ */
9
+ export type MailgunOptions = Parameters<Mailgun['client']>[0];
4
10
  export type MailgunClient = ReturnType<Mailgun['client']>;
5
11
  export type MailgunMessagesClient = MailgunClient['messages'];
6
12
  export type MailgunSuppressionsClient = MailgunClient['suppressions'];