@mavogel/awscdk-rootmail 0.1.29 → 0.1.30

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 (74) hide show
  1. package/.jsii +9 -9
  2. package/lib/rootmail.js +1 -1
  3. package/lib/ses-receive.js +1 -1
  4. package/node_modules/@aws-sdk/checksums/package.json +3 -3
  5. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js +1 -1
  6. package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +6 -6
  7. package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +1 -1
  8. package/node_modules/@aws-sdk/client-route-53/package.json +6 -6
  9. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
  10. package/node_modules/@aws-sdk/client-s3/package.json +9 -9
  11. package/node_modules/@aws-sdk/client-ses/dist-cjs/index.js +1 -1
  12. package/node_modules/@aws-sdk/client-ses/package.json +6 -6
  13. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +1 -1
  14. package/node_modules/@aws-sdk/client-ssm/package.json +5 -5
  15. package/node_modules/@aws-sdk/core/package.json +2 -2
  16. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  17. package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
  18. package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
  19. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  20. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  21. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  22. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  23. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  24. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +3 -3
  25. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  26. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  27. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  28. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  29. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  30. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  31. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  32. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +13 -37
  33. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +44 -29
  34. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +12 -37
  35. package/node_modules/@smithy/core/dist-es/submodules/protocols/AbstractRpcV2Protocol.js +35 -0
  36. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +4 -1
  37. package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
  38. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +8 -31
  39. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
  40. package/node_modules/@smithy/core/dist-types/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
  41. package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +12 -0
  42. package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
  43. package/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
  44. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
  45. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
  46. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +12 -0
  47. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
  48. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
  49. package/node_modules/@smithy/core/package.json +1 -1
  50. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +48 -6
  51. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +9 -1
  52. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +20 -2
  53. package/node_modules/@smithy/node-http-handler/dist-es/resolve-default-socket-timeout.js +4 -0
  54. package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +16 -3
  55. package/node_modules/@smithy/node-http-handler/dist-types/resolve-default-socket-timeout.d.ts +4 -0
  56. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +6 -1
  57. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/resolve-default-socket-timeout.d.ts +4 -0
  58. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +6 -1
  59. package/node_modules/@smithy/node-http-handler/package.json +3 -3
  60. package/node_modules/bowser/README.md +26 -3
  61. package/node_modules/bowser/bowser.mjs +2225 -0
  62. package/node_modules/bowser/bundled.js +14 -1
  63. package/node_modules/bowser/es5.js +14 -1
  64. package/node_modules/bowser/index.d.mts +45 -0
  65. package/node_modules/bowser/package.json +90 -31
  66. package/node_modules/bowser/src/bowser.js +9 -1
  67. package/node_modules/bowser/src/constants.js +7 -0
  68. package/node_modules/bowser/src/parser-browsers.js +73 -7
  69. package/node_modules/bowser/src/parser-engines.js +12 -0
  70. package/node_modules/bowser/src/parser-os.js +3 -1
  71. package/node_modules/bowser/src/parser-platforms.js +3 -1
  72. package/node_modules/bowser/src/parser.js +22 -5
  73. package/node_modules/bowser/src/utils.js +16 -0
  74. package/package.json +9 -9
@@ -43,7 +43,9 @@ export default [
43
43
 
44
44
  /* Firefox on iPad */
45
45
  {
46
- test: [/Macintosh(.*?) FxiOS(.*?)\//],
46
+ test(parser) {
47
+ return Utils.isFirefoxOnIpad(parser.getUA());
48
+ },
47
49
  describe(ua) {
48
50
  const result = {
49
51
  name: OS_MAP.iOS,
@@ -323,7 +323,9 @@ export default [
323
323
 
324
324
  /* Firefox on iPad */
325
325
  {
326
- test: [/Macintosh(.*?) FxiOS(.*?)\//],
326
+ test(parser) {
327
+ return Utils.isFirefoxOnIpad(parser.getUA());
328
+ },
327
329
  describe() {
328
330
  return {
329
331
  type: PLATFORMS_MAP.tablet,
@@ -68,7 +68,8 @@ class Parser {
68
68
  * like `"iPhone"` or `"Kindle Fire HD 7"`
69
69
  * @property {Object} engine
70
70
  * @property {String|undefined} [engine.name]
71
- * Can be any of this: `WebKit`, `Blink`, `Gecko`, `Trident`, `Presto`, `EdgeHTML`
71
+ * Can be any of this: `WebKit`, `Blink`, `Gecko`, `Trident`, `Presto`, `EdgeHTML`,
72
+ * `LibWeb`
72
73
  * @property {String|undefined} [engine.version] String version of the engine
73
74
  */
74
75
  this.parsedResult = {};
@@ -131,7 +132,11 @@ class Parser {
131
132
  return undefined;
132
133
  }
133
134
  const brandLower = brandName.toLowerCase();
134
- const brand = this._hints.brands.find(
135
+ // `Utils.find`, not `Array.prototype.find`: the latter is ES6, and `es5.js`
136
+ // ships no polyfills, so it throws outright on the browsers that bundle
137
+ // targets. Every other lookup in this file already goes through the helper.
138
+ const brand = Utils.find(
139
+ this._hints.brands,
135
140
  b => b.brand && b.brand.toLowerCase() === brandLower,
136
141
  );
137
142
  return brand ? brand.version : undefined;
@@ -209,7 +214,6 @@ class Parser {
209
214
  return this.getBrowser().name || '';
210
215
  }
211
216
 
212
-
213
217
  /**
214
218
  * Get browser's version
215
219
  * @return {String} version of browser
@@ -441,7 +445,7 @@ class Parser {
441
445
 
442
446
  allDefinitions.forEach((key) => {
443
447
  const currentDefinition = checkTree[key];
444
- if (typeof currentDefinition === 'string') {
448
+ if (typeof currentDefinition === 'string' || Array.isArray(currentDefinition)) {
445
449
  browsers[key] = currentDefinition;
446
450
  browsersCounter += 1;
447
451
  } else if (typeof currentDefinition === 'object') {
@@ -480,7 +484,7 @@ class Parser {
480
484
  const matchingDefinition = Utils.find(browserNames, name => (this.isBrowser(name, true)));
481
485
 
482
486
  if (matchingDefinition !== void 0) {
483
- return this.compareVersion(browsers[matchingDefinition]);
487
+ return this.compareVersions(browsers[matchingDefinition]);
484
488
  }
485
489
  }
486
490
 
@@ -504,6 +508,19 @@ class Parser {
504
508
  return browserNameLower === defaultBrowserName;
505
509
  }
506
510
 
511
+ /**
512
+ * Check if browser version equals the version or equals one of versions
513
+ * @param {(string|string[])} versionsOrVersion versions strings array or version string
514
+ * @returns {boolean}
515
+ */
516
+ compareVersions(versionsOrVersion) {
517
+ if (typeof versionsOrVersion === 'string') {
518
+ return this.compareVersion(versionsOrVersion);
519
+ }
520
+
521
+ return versionsOrVersion.some(version => this.compareVersion(version));
522
+ }
523
+
507
524
  compareVersion(version) {
508
525
  let expectedResults = [0];
509
526
  let comparableVersion = version;
@@ -37,6 +37,22 @@ export default class Utils {
37
37
  return void (0);
38
38
  }
39
39
 
40
+ /**
41
+ * Check whether a UA is Firefox on iPad: "Macintosh", then later " FxiOS",
42
+ * then later a "/". Same result as /Macintosh(.*?) FxiOS(.*?)\//.test(ua),
43
+ * but linear: that regexp backtracks polynomially on crafted input.
44
+ * @param {String} ua
45
+ * @return {Boolean}
46
+ */
47
+ static isFirefoxOnIpad(ua) {
48
+ const macIndex = ua.indexOf('Macintosh');
49
+ if (macIndex === -1) {
50
+ return false;
51
+ }
52
+ const fxiosIndex = ua.indexOf(' FxiOS', macIndex + 'Macintosh'.length);
53
+ return fxiosIndex !== -1 && ua.indexOf('/', fxiosIndex + ' FxiOS'.length) !== -1;
54
+ }
55
+
40
56
  static getWindowsVersionName(version) {
41
57
  switch (version) {
42
58
  case 'NT': return 'NT';
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "organization": true
41
41
  },
42
42
  "devDependencies": {
43
- "@aws-cdk/integ-runner": "2.205.6",
43
+ "@aws-cdk/integ-runner": "2.205.8",
44
44
  "@aws-cdk/integ-tests-alpha": "2.263.0-alpha.0",
45
45
  "@commitlint/cli": "^20.1.0",
46
46
  "@commitlint/config-conventional": "^20.0.0",
@@ -69,7 +69,7 @@
69
69
  "jsii-pacmak": "^1.142.0",
70
70
  "jsii-rosetta": "~5.9.0",
71
71
  "jsonfile": "^6.2.1",
72
- "projen": "^0.104.8",
72
+ "projen": "^0.104.17",
73
73
  "ts-jest": "^29.4.15",
74
74
  "ts-node": "^10.9.2",
75
75
  "typescript": "^6.0.2"
@@ -79,12 +79,12 @@
79
79
  "constructs": "^10.5.1"
80
80
  },
81
81
  "dependencies": {
82
- "@aws-sdk/client-cloudwatch-logs": "^3.1156.0",
83
- "@aws-sdk/client-route-53": "^3.1156.0",
84
- "@aws-sdk/client-s3": "^3.1156.0",
85
- "@aws-sdk/client-ses": "^3.1156.0",
86
- "@aws-sdk/client-ssm": "^3.1156.0",
87
- "@mavogel/mvc-projen": "^0.0.63",
82
+ "@aws-sdk/client-cloudwatch-logs": "^3.1157.0",
83
+ "@aws-sdk/client-route-53": "^3.1157.0",
84
+ "@aws-sdk/client-s3": "^3.1157.0",
85
+ "@aws-sdk/client-ses": "^3.1157.0",
86
+ "@aws-sdk/client-ssm": "^3.1157.0",
87
+ "@mavogel/mvc-projen": "^0.0.67",
88
88
  "cdk-nag": "^3.0.1",
89
89
  "constructs": "^10.5.1",
90
90
  "mailparser": "^3.12.4",
@@ -122,7 +122,7 @@
122
122
  "publishConfig": {
123
123
  "access": "public"
124
124
  },
125
- "version": "0.1.29",
125
+ "version": "0.1.30",
126
126
  "jest": {
127
127
  "coverageProvider": "v8",
128
128
  "transformIgnorePatterns": [