@mavogel/awscdk-rootmail 0.1.29 → 0.1.31
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.
- package/.jsii +9 -9
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/node_modules/@aws-sdk/checksums/package.json +3 -3
- package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +6 -6
- package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-route-53/package.json +6 -6
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-s3/package.json +9 -9
- package/node_modules/@aws-sdk/client-ses/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-ses/package.json +6 -6
- package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-ssm/package.json +5 -5
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +13 -37
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +44 -29
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +12 -37
- package/node_modules/@smithy/core/dist-es/submodules/protocols/AbstractRpcV2Protocol.js +35 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/SmithyRpcV2JsonProtocol.js +8 -31
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
- package/node_modules/@smithy/core/dist-types/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +5 -14
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/AbstractRpcV2Protocol.d.ts +45 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +12 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/json/SmithyRpcV2JsonProtocol.d.ts +5 -14
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +48 -6
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +9 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +20 -2
- package/node_modules/@smithy/node-http-handler/dist-es/resolve-default-socket-timeout.js +4 -0
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +16 -3
- package/node_modules/@smithy/node-http-handler/dist-types/resolve-default-socket-timeout.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +6 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/resolve-default-socket-timeout.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +6 -1
- package/node_modules/@smithy/node-http-handler/package.json +3 -3
- package/node_modules/bowser/README.md +26 -3
- package/node_modules/bowser/bowser.mjs +2225 -0
- package/node_modules/bowser/bundled.js +14 -1
- package/node_modules/bowser/es5.js +14 -1
- package/node_modules/bowser/index.d.mts +45 -0
- package/node_modules/bowser/package.json +90 -31
- package/node_modules/bowser/src/bowser.js +9 -1
- package/node_modules/bowser/src/constants.js +7 -0
- package/node_modules/bowser/src/parser-browsers.js +73 -7
- package/node_modules/bowser/src/parser-engines.js +12 -0
- package/node_modules/bowser/src/parser-os.js +3 -1
- package/node_modules/bowser/src/parser-platforms.js +3 -1
- package/node_modules/bowser/src/parser.js +22 -5
- package/node_modules/bowser/src/utils.js +16 -0
- package/package.json +9 -9
|
@@ -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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
83
|
-
"@aws-sdk/client-route-53": "^3.
|
|
84
|
-
"@aws-sdk/client-s3": "^3.
|
|
85
|
-
"@aws-sdk/client-ses": "^3.
|
|
86
|
-
"@aws-sdk/client-ssm": "^3.
|
|
87
|
-
"@mavogel/mvc-projen": "^0.0.
|
|
82
|
+
"@aws-sdk/client-cloudwatch-logs": "^3.1158.0",
|
|
83
|
+
"@aws-sdk/client-route-53": "^3.1158.0",
|
|
84
|
+
"@aws-sdk/client-s3": "^3.1158.0",
|
|
85
|
+
"@aws-sdk/client-ses": "^3.1158.0",
|
|
86
|
+
"@aws-sdk/client-ssm": "^3.1158.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.
|
|
125
|
+
"version": "0.1.31",
|
|
126
126
|
"jest": {
|
|
127
127
|
"coverageProvider": "v8",
|
|
128
128
|
"transformIgnorePatterns": [
|