@mavogel/awscdk-rootmail 0.1.52 → 0.1.53

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 (39) hide show
  1. package/.jsii +10 -10
  2. package/lib/rootmail.js +1 -1
  3. package/lib/ses-receive.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js +1 -1
  5. package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +1 -1
  6. package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +1 -1
  7. package/node_modules/@aws-sdk/client-route-53/package.json +1 -1
  8. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
  9. package/node_modules/@aws-sdk/client-s3/package.json +2 -2
  10. package/node_modules/@aws-sdk/client-ses/dist-cjs/index.js +1 -1
  11. package/node_modules/@aws-sdk/client-ses/package.json +1 -1
  12. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +1 -1
  13. package/node_modules/@aws-sdk/client-ssm/package.json +1 -1
  14. package/node_modules/linkify-it/README.md +49 -86
  15. package/node_modules/linkify-it/build/index.cjs.js +636 -825
  16. package/node_modules/linkify-it/build/index.cjs.js.map +1 -0
  17. package/node_modules/linkify-it/build/index.d.ts +236 -0
  18. package/node_modules/linkify-it/build/index.mjs +538 -0
  19. package/node_modules/linkify-it/build/index.mjs.map +1 -0
  20. package/node_modules/linkify-it/package.json +23 -20
  21. package/node_modules/mailparser/CHANGELOG.md +7 -0
  22. package/node_modules/mailparser/dist/cjs/mail-parser.js +34 -14
  23. package/node_modules/mailparser/dist/esm/mail-parser.js +34 -14
  24. package/node_modules/mailparser/package.json +2 -2
  25. package/node_modules/uc.micro/README.md +18 -1
  26. package/node_modules/uc.micro/build/index.cjs.js +13 -18
  27. package/node_modules/uc.micro/build/index.d.ts +6 -0
  28. package/node_modules/uc.micro/build/index.mjs +8 -0
  29. package/node_modules/uc.micro/package.json +12 -17
  30. package/package.json +11 -11
  31. package/node_modules/linkify-it/index.mjs +0 -646
  32. package/node_modules/linkify-it/lib/re.mjs +0 -193
  33. package/node_modules/uc.micro/categories/Cc/regex.mjs +0 -1
  34. package/node_modules/uc.micro/categories/Cf/regex.mjs +0 -1
  35. package/node_modules/uc.micro/categories/P/regex.mjs +0 -1
  36. package/node_modules/uc.micro/categories/S/regex.mjs +0 -1
  37. package/node_modules/uc.micro/categories/Z/regex.mjs +0 -1
  38. package/node_modules/uc.micro/index.mjs +0 -8
  39. package/node_modules/uc.micro/properties/Any/regex.mjs +0 -1
package/.jsii CHANGED
@@ -8,17 +8,17 @@
8
8
  ]
9
9
  },
10
10
  "bundled": {
11
- "@aws-sdk/client-cloudwatch-logs": "^3.1169.0",
12
- "@aws-sdk/client-route-53": "^3.1169.0",
13
- "@aws-sdk/client-s3": "^3.1169.0",
14
- "@aws-sdk/client-ses": "^3.1169.0",
15
- "@aws-sdk/client-ssm": "^3.1169.0",
11
+ "@aws-sdk/client-cloudwatch-logs": "^3.1170.0",
12
+ "@aws-sdk/client-route-53": "^3.1170.0",
13
+ "@aws-sdk/client-s3": "^3.1170.0",
14
+ "@aws-sdk/client-ses": "^3.1170.0",
15
+ "@aws-sdk/client-ssm": "^3.1170.0",
16
16
  "cdk-nag": "^3.0.1",
17
- "mailparser": "^3.14.4",
17
+ "mailparser": "^3.14.5",
18
18
  "uuid": "^14.0.3"
19
19
  },
20
20
  "dependencies": {
21
- "@mavogel/mvc-projen": "^0.0.76",
21
+ "@mavogel/mvc-projen": "^0.0.79",
22
22
  "aws-cdk-lib": "^2.263.0",
23
23
  "constructs": "^10.5.1"
24
24
  },
@@ -9167,7 +9167,7 @@
9167
9167
  "stability": "experimental"
9168
9168
  },
9169
9169
  "homepage": "https://github.com/mavogel/awscdk-rootmail",
9170
- "jsiiVersion": "5.9.58 (build 68a8fa1)",
9170
+ "jsiiVersion": "5.9.60 (build 50865f3)",
9171
9171
  "keywords": [
9172
9172
  "aws",
9173
9173
  "cdk",
@@ -9620,6 +9620,6 @@
9620
9620
  "symbolId": "src/ses-receive:SESReceiveProps"
9621
9621
  }
9622
9622
  },
9623
- "version": "0.1.52",
9624
- "fingerprint": "ALSmApaJU/JytgC4lQcPUi4rppWdBpr9vZ1LBpx5HS8="
9623
+ "version": "0.1.53",
9624
+ "fingerprint": "oiUFBXp1lxzRqsSedxdCufjbt9qG5imMRxK3G+IP5Yc="
9625
9625
  }
package/lib/rootmail.js CHANGED
@@ -11,7 +11,7 @@ const ses_receive_1 = require("./ses-receive");
11
11
  * Rootmail construct
12
12
  */
13
13
  class Rootmail extends constructs_1.Construct {
14
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/awscdk-rootmail.Rootmail", version: "0.1.52" };
14
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/awscdk-rootmail.Rootmail", version: "0.1.53" };
15
15
  /**
16
16
  * The name parameter in SSM to store the domain name server.
17
17
  */
@@ -11,7 +11,7 @@ const ses_receipt_ruleset_activation_1 = require("./ses-receipt-ruleset-activati
11
11
  * SES Receive construct
12
12
  */
13
13
  class SESReceive extends constructs_1.Construct {
14
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/awscdk-rootmail.SESReceive", version: "0.1.52" };
14
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/awscdk-rootmail.SESReceive", version: "0.1.53" };
15
15
  constructor(scope, id, props) {
16
16
  super(scope, id);
17
17
  const filteredEmailSubjects = props.filteredEmailSubjects || [];
@@ -70,7 +70,7 @@ const commonParams = {
70
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
71
71
  };
72
72
 
73
- var version = "3.1168.0";
73
+ var version = "3.1169.0";
74
74
  var packageInfo = {
75
75
  version: version};
76
76
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch-logs",
3
- "version": "3.1169.0",
3
+ "version": "3.1170.0",
4
4
  "description": "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudwatch-logs",
6
6
  "license": "Apache-2.0",
@@ -70,7 +70,7 @@ const commonParams = {
70
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
71
71
  };
72
72
 
73
- var version = "3.1168.0";
73
+ var version = "3.1169.0";
74
74
  var packageInfo = {
75
75
  version: version};
76
76
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-route-53",
3
- "version": "3.1169.0",
3
+ "version": "3.1170.0",
4
4
  "description": "AWS SDK for JavaScript Route 53 Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-route-53",
6
6
  "license": "Apache-2.0",
@@ -4779,7 +4779,7 @@ var WriteGetObjectResponse$ = [9, n0, _WGOR,
4779
4779
  class CreateSessionCommand extends command(_ep4, _mw0, "CreateSession", CreateSession$) {
4780
4780
  }
4781
4781
 
4782
- var version = "3.1168.0";
4782
+ var version = "3.1169.0";
4783
4783
  var packageInfo = {
4784
4784
  version: version};
4785
4785
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3",
3
- "version": "3.1169.0",
3
+ "version": "3.1170.0",
4
4
  "description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3",
6
6
  "license": "Apache-2.0",
@@ -67,7 +67,7 @@
67
67
  "tslib": "^2.6.2"
68
68
  },
69
69
  "devDependencies": {
70
- "@aws-sdk/signature-v4-crt": "3.1169.0",
70
+ "@aws-sdk/signature-v4-crt": "3.1170.0",
71
71
  "@smithy/snapshot-testing": "^2.4.0",
72
72
  "@tsconfig/node20": "20.1.8",
73
73
  "@types/node": "^20.14.8",
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1168.0";
72
+ var version = "3.1169.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ses",
3
- "version": "3.1169.0",
3
+ "version": "3.1170.0",
4
4
  "description": "AWS SDK for JavaScript Ses Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ses",
6
6
  "license": "Apache-2.0",
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1168.0";
72
+ var version = "3.1169.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ssm",
3
- "version": "3.1169.0",
3
+ "version": "3.1170.0",
4
4
  "description": "AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ssm",
6
6
  "license": "Apache-2.0",
@@ -24,65 +24,39 @@ Install
24
24
  npm install linkify-it --save
25
25
  ```
26
26
 
27
- Browserification is also supported.
28
-
29
27
 
30
28
  Usage examples
31
29
  --------------
32
30
 
33
- ##### Example 1
34
-
35
31
  ```js
36
- import linkifyit from 'linkify-it';
37
- const linkify = linkifyit();
32
+ import { LinkifyIt } from 'linkify-it';
33
+ const linkify = new LinkifyIt({ fuzzyLink: true });
38
34
 
39
- // Reload full tlds list & add unofficial `.onion` domain.
40
35
  linkify
41
- .tlds(require('tlds')) // Reload with full tlds list
42
- .tlds('onion', true) // Add unofficial `.onion` domain
43
- .add('git:', 'http:') // Add `git:` protocol as "alias"
44
- .add('ftp:', null) // Disable `ftp:` protocol
45
- .set({ fuzzyIP: true }); // Enable IPs in fuzzy links (without schema)
46
-
47
- console.log(linkify.test('Site github.com!')); // true
48
-
49
- console.log(linkify.match('Site github.com!')); // [ {
50
- // schema: "",
51
- // index: 5,
52
- // lastIndex: 15,
53
- // raw: "github.com",
54
- // text: "github.com",
55
- // url: "http://github.com",
56
- // } ]
36
+ .tlds(require('tlds'))
37
+ .tlds('onion', true)
38
+ .add('ftp:', null)
39
+ .set({ fuzzyIP: true });
40
+
41
+ console.log(linkify.test('Site github.com!'));
42
+ // true
43
+
44
+ console.log(linkify.match('Site github.com!'));
45
+ // [ {
46
+ // schema: "",
47
+ // index: 5,
48
+ // lastIndex: 15,
49
+ // raw: "github.com",
50
+ // text: "github.com",
51
+ // url: "http://github.com",
52
+ // } ]
57
53
  ```
58
54
 
59
- ##### Example 2. Add twitter mentions handler
55
+ See more in examples folder:
60
56
 
61
- ```js
62
- linkify.add('@', {
63
- validate: function (text, pos, self) {
64
- const tail = text.slice(pos);
65
-
66
- if (!self.re.twitter) {
67
- self.re.twitter = new RegExp(
68
- `^([a-zA-Z0-9_]){1,15}(?!_)(?=$|${self.re.src_ZPCc})`
69
- );
70
- }
71
- if (self.re.twitter.test(tail)) {
72
- // Linkifier allows punctuation chars before prefix,
73
- // but we additionally disable `@` ("@@mention" is invalid)
74
- if (pos >= 2 && tail[pos - 2] === '@') {
75
- return false;
76
- }
77
- return tail.match(self.re.twitter)[0].length;
78
- }
79
- return 0;
80
- },
81
- normalize: function (match) {
82
- match.url = `https://twitter.com/${match.url.replace(/^@/, '')}`;
83
- }
84
- });
85
- ```
57
+ - [twitter mentions](examples/twitter.mjs)
58
+ - [CJK paired brackets in URL paths](examples/cjk-paired-brackets.mjs)
59
+ - [increased nested scopes depth](examples/nested-scopes-depth.mjs)
86
60
 
87
61
 
88
62
  API
@@ -90,39 +64,28 @@ API
90
64
 
91
65
  __[API documentation](http://markdown-it.github.io/linkify-it/doc)__
92
66
 
93
- ### new LinkifyIt(schemas, options)
67
+ ### new LinkifyIt(options)
94
68
 
95
- Creates new linkifier instance with optional additional schemas.
96
- Can be called without `new` keyword for convenience.
69
+ Creates new linkifier instance.
97
70
 
98
71
  By default understands:
99
72
 
100
73
  - `http(s)://...` , `ftp://...`, `mailto:...` & `//...` links
101
- - "fuzzy" links and emails (google.com, foo@bar.com).
102
-
103
- `schemas` is an object, where each key/value describes protocol/rule:
104
-
105
- - __key__ - link prefix (usually, protocol name with `:` at the end, `skype:`
106
- for example). `linkify-it` makes sure that prefix is not preceded with
107
- alphanumeric char.
108
- - __value__ - rule to check tail after link prefix
109
- - _String_ - just alias to existing rule
110
- - _Object_
111
- - _validate_ - either a `RegExp` (start with `^`, and don't include the
112
- link prefix itself), or a validator function which, given arguments
113
- _text_, _pos_, and _self_, returns the length of a match in _text_
114
- starting at index _pos_. _pos_ is the index right after the link prefix.
115
- _self_ can be used to access the linkify object to cache data.
116
- - _normalize_ - optional function to normalize text & url of matched result
117
- (for example, for twitter mentions).
74
+ - "fuzzy" emails (foo@bar.com).
118
75
 
119
76
  `options`:
120
77
 
121
- - __fuzzyLink__ - recognize URL-s without `http(s)://` head. Default `true`.
78
+ - __fuzzyLink__ - recognize URL-s without `http(s)://` head. Default `false`.
122
79
  - __fuzzyIP__ - allow IPs in fuzzy links above. Can conflict with some texts
123
80
  like version numbers. Default `false`.
124
81
  - __fuzzyEmail__ - recognize emails without `mailto:` prefix. Default `true`.
82
+ - __tlds__ - allowed TLDs list for fuzzy links. Replaces the default list
83
+ when set.
125
84
  - __---__ - set `true` to terminate link with `---` (if it's considered as long dash).
85
+ Default `false`.
86
+ - __rebuilder__ - custom `REBuilder` instance for patched regex fragments.
87
+ - __urlAuth__ - recognize authentication data in URLs. Default `false`.
88
+ - __maxLength__ - maximum link length. Default `10000`.
126
89
 
127
90
 
128
91
  ### .test(text)
@@ -130,13 +93,6 @@ By default understands:
130
93
  Searches linkifiable pattern and returns `true` on success or `false` on fail.
131
94
 
132
95
 
133
- ### .pretest(text)
134
-
135
- Quick check if link MAY BE can exist. Can be used to optimize more expensive
136
- `.test()` calls. Return `false` if link can not be found, `true` - if `.test()`
137
- call needed to know exactly.
138
-
139
-
140
96
  ### .testSchemaAt(text, name, offset)
141
97
 
142
98
  Similar to `.test()` but checks only specific protocol tail exactly at given
@@ -178,18 +134,25 @@ If that's not enough, you can reload defaults with more detailed zones list.
178
134
 
179
135
  ### .add(key, value)
180
136
 
181
- Add a new schema to the schemas object. As described in the constructor
182
- definition, `key` is a link prefix (`skype:`, for example), and `value`
183
- is a String to alias to another schema, or an Object with `validate` and
184
- optionally `normalize` definitions. To disable an existing rule, use
185
- `.add(key, null)`.
137
+ Add a new schema to the schemas object.
186
138
 
139
+ `key` is a link prefix (usually, protocol name with `:` at the end, `skype:`
140
+ for example). `linkify-it` makes sure that prefix is not preceded with
141
+ alphanumeric char.
187
142
 
188
- ### .set(options)
143
+ `value` is a rule to check tail after link prefix:
189
144
 
190
- Override default options. Missed properties will not be changed.
145
+ - _Object_
146
+ - _validate_ - validator function which, given arguments _text_, _pos_, and
147
+ _self_, returns the length of a match in _text_ starting at index _pos_.
148
+ _pos_ is the index right after the link prefix. _self_ can be used to
149
+ access the linkify object to cache data.
150
+ - _normalize_ - optional function to normalize text & url of matched result
151
+ (for example, for twitter mentions).
191
152
 
153
+ To disable an existing rule, use `.add(key, null)`.
192
154
 
193
- ## License
194
155
 
195
- [MIT](https://github.com/markdown-it/linkify-it/blob/master/LICENSE)
156
+ ### .set(options)
157
+
158
+ Override default options. Missed properties will not be changed.