@mavogel/awscdk-rootmail 0.1.38 → 0.1.39

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 (94) hide show
  1. package/.jsii +8 -8
  2. package/lib/rootmail.js +1 -1
  3. package/lib/ses-receive.js +1 -1
  4. package/node_modules/@aws-sdk/checksums/package.json +2 -2
  5. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js +3 -2
  6. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-es/runtimeConfig.js +2 -1
  7. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/runtimeConfig.d.ts +1 -0
  8. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  9. package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +3 -3
  10. package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +3 -2
  11. package/node_modules/@aws-sdk/client-route-53/dist-es/runtimeConfig.js +2 -1
  12. package/node_modules/@aws-sdk/client-route-53/dist-types/runtimeConfig.d.ts +1 -0
  13. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  14. package/node_modules/@aws-sdk/client-route-53/package.json +3 -3
  15. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
  16. package/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +1 -1
  17. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3Client.d.ts +1 -1
  18. package/node_modules/@aws-sdk/client-s3/package.json +6 -6
  19. package/node_modules/@aws-sdk/client-ses/dist-cjs/index.js +3 -2
  20. package/node_modules/@aws-sdk/client-ses/dist-es/runtimeConfig.js +2 -1
  21. package/node_modules/@aws-sdk/client-ses/dist-types/runtimeConfig.d.ts +1 -0
  22. package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  23. package/node_modules/@aws-sdk/client-ses/package.json +3 -3
  24. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +3 -2
  25. package/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.js +2 -1
  26. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.d.ts +1 -0
  27. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  28. package/node_modules/@aws-sdk/client-ssm/package.json +3 -3
  29. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +12 -0
  30. package/node_modules/@aws-sdk/core/dist-es/submodules/client/getDefaultSocketTimeout.js +10 -0
  31. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.browser.js +1 -0
  32. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.js +1 -0
  33. package/node_modules/@aws-sdk/core/dist-es/submodules/client/index.native.js +1 -0
  34. package/node_modules/@aws-sdk/core/dist-types/submodules/client/getDefaultSocketTimeout.d.ts +11 -0
  35. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.browser.d.ts +1 -0
  36. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.d.ts +1 -0
  37. package/node_modules/@aws-sdk/core/dist-types/submodules/client/index.native.d.ts +1 -0
  38. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/getDefaultSocketTimeout.d.ts +4 -0
  39. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +1 -0
  40. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +1 -0
  41. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +1 -0
  42. package/node_modules/@aws-sdk/core/package.json +1 -1
  43. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  44. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  45. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  46. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  47. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  48. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  49. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  50. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  51. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
  52. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +3 -2
  53. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +3 -2
  54. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +3 -2
  55. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +3 -2
  56. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +3 -2
  57. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -1
  58. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -1
  59. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -1
  60. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -1
  61. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +2 -1
  62. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
  63. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +1 -0
  64. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +1 -0
  65. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
  66. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -0
  67. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +1 -0
  68. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +1 -0
  69. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +1 -0
  70. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +1 -0
  71. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +1 -0
  72. package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
  73. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  74. package/node_modules/@zone-eu/mailsplit/package.json +5 -5
  75. package/node_modules/encoding-japanese/README.md +10 -5
  76. package/node_modules/encoding-japanese/encoding.js +761 -3168
  77. package/node_modules/encoding-japanese/encoding.min.js +3 -3
  78. package/node_modules/encoding-japanese/index.d.ts +39 -25
  79. package/node_modules/encoding-japanese/package.json +6 -6
  80. package/node_modules/encoding-japanese/src/config.js +7 -33
  81. package/node_modules/encoding-japanese/src/encoding-convert.js +332 -279
  82. package/node_modules/encoding-japanese/src/encoding-table.js +108 -5
  83. package/node_modules/encoding-japanese/src/index.js +61 -49
  84. package/node_modules/encoding-japanese/src/utf8-to-jis-alias-table.js +3 -1
  85. package/node_modules/encoding-japanese/src/utf8-to-jis-table.js +91 -1492
  86. package/node_modules/encoding-japanese/src/utf8-to-jisx0212-table.js +76 -1220
  87. package/node_modules/encoding-japanese/src/util.js +70 -62
  88. package/node_modules/libmime/CHANGELOG.md +7 -0
  89. package/node_modules/libmime/package.json +6 -6
  90. package/node_modules/mailparser/CHANGELOG.md +7 -0
  91. package/node_modules/mailparser/package.json +8 -5
  92. package/package.json +7 -7
  93. package/node_modules/encoding-japanese/src/jis-to-utf8-table.js +0 -5
  94. package/node_modules/encoding-japanese/src/jisx0212-to-utf8-table.js +0 -5
@@ -18,6 +18,13 @@ export type Encoding =
18
18
  | "SJIS"
19
19
  | "UNICODE"
20
20
  | "AUTO";
21
+
22
+ // `string & {}` accepts other aliases (such as "Shift_JIS" and "utf-8").
23
+ export type EncodingName =
24
+ | Encoding
25
+ | Lowercase<Encoding>
26
+ | (string & {});
27
+
21
28
  type IntArrayType =
22
29
  | readonly number[]
23
30
  | Uint8Array
@@ -26,6 +33,13 @@ type IntArrayType =
26
33
  | Int8Array
27
34
  | Int16Array
28
35
  | Int32Array;
36
+
37
+ type FallbackType =
38
+ | 'html-entity'
39
+ | 'html-entity-hex'
40
+ | 'ignore'
41
+ | 'error';
42
+
29
43
  type EncodingDetection = Encoding | false;
30
44
 
31
45
  export type ConvertOptions =
@@ -35,65 +49,65 @@ export type ConvertOptions =
35
49
  | ConvertUnknownOptions;
36
50
 
37
51
  export interface ConvertStringOptions {
38
- to: Encoding;
39
- from?: Encoding | undefined;
52
+ to: EncodingName;
53
+ from?: EncodingName | undefined;
40
54
  type: "string";
41
- fallback?: "html-entity" | "html-entity-hex" | "ignore" | "error";
55
+ fallback?: FallbackType;
42
56
  bom?: boolean | string | undefined;
43
57
  }
44
58
 
45
59
  export interface ConvertArrayBufferOptions {
46
- to: Encoding;
47
- from?: Encoding | undefined;
60
+ to: EncodingName;
61
+ from?: EncodingName | undefined;
48
62
  type: "arraybuffer";
49
- fallback?: "html-entity" | "html-entity-hex" | "ignore" | "error";
63
+ fallback?: FallbackType;
50
64
  bom?: boolean | string | undefined;
51
65
  }
52
66
 
53
67
  export interface ConvertArrayOptions {
54
- to: Encoding;
55
- from?: Encoding | undefined;
68
+ to: EncodingName;
69
+ from?: EncodingName | undefined;
56
70
  type: "array";
57
- fallback?: "html-entity" | "html-entity-hex" | "ignore" | "error";
71
+ fallback?: FallbackType;
58
72
  bom?: boolean | string | undefined;
59
73
  }
60
74
 
61
75
  export interface ConvertUnknownOptions {
62
- to: Encoding;
63
- from?: Encoding | undefined;
64
- fallback?: "html-entity" | "html-entity-hex" | "ignore" | "error";
76
+ to: EncodingName;
77
+ from?: EncodingName | undefined;
78
+ fallback?: FallbackType;
65
79
  bom?: boolean | string | undefined;
66
80
  }
67
81
 
68
- export function detect(data: IntArrayType | string, encodings?: Encoding | Encoding[]): EncodingDetection;
69
- export function convert(data: IntArrayType, to: Encoding, from?: Encoding): number[];
70
- export function convert(data: string, to: Encoding, from?: Encoding): string;
82
+ export function detect(data: IntArrayType | string, encodings?: EncodingName | EncodingName[]): EncodingDetection;
83
+ export function convert(data: IntArrayType, to: EncodingName, from?: EncodingName): number[];
84
+ export function convert(data: string, to: EncodingName, from?: EncodingName): string;
71
85
  export function convert(data: IntArrayType | string, options: ConvertStringOptions): string;
72
86
  export function convert(data: IntArrayType | string, options: ConvertArrayBufferOptions): Uint16Array;
73
87
  export function convert(data: IntArrayType | string, options: ConvertArrayOptions): number[];
74
88
  export function convert(data: string, options: ConvertUnknownOptions): string;
75
89
  export function convert(data: IntArrayType, options: ConvertUnknownOptions): number[];
76
- export function urlEncode(data: IntArrayType): string;
90
+ export function urlEncode(data: IntArrayType | string): string;
77
91
  export function urlDecode(data: string): number[];
78
- export function base64Encode(data: IntArrayType): string;
92
+ export function base64Encode(data: IntArrayType | string): string;
79
93
  export function base64Decode(data: string): number[];
80
94
  export function codeToString(data: IntArrayType): string;
81
95
  export function stringToCode(data: string): number[];
82
- export function toHankakuCase(data: readonly number[]): number[];
96
+ export function toHankakuCase(data: IntArrayType): number[];
83
97
  export function toHankakuCase(data: string): string;
84
- export function toZenkakuCase(data: readonly number[]): number[];
98
+ export function toZenkakuCase(data: IntArrayType): number[];
85
99
  export function toZenkakuCase(data: string): string;
86
- export function toHiraganaCase(data: readonly number[]): number[];
100
+ export function toHiraganaCase(data: IntArrayType): number[];
87
101
  export function toHiraganaCase(data: string): string;
88
- export function toKatakanaCase(data: readonly number[]): number[];
102
+ export function toKatakanaCase(data: IntArrayType): number[];
89
103
  export function toKatakanaCase(data: string): string;
90
- export function toHankanaCase(data: readonly number[]): number[];
104
+ export function toHankanaCase(data: IntArrayType): number[];
91
105
  export function toHankanaCase(data: string): string;
92
- export function toZenkanaCase(data: readonly number[]): number[];
106
+ export function toZenkanaCase(data: IntArrayType): number[];
93
107
  export function toZenkanaCase(data: string): string;
94
- export function toHankakuSpace(data: readonly number[]): number[];
108
+ export function toHankakuSpace(data: IntArrayType): number[];
95
109
  export function toHankakuSpace(data: string): string;
96
- export function toZenkakuSpace(data: readonly number[]): number[];
110
+ export function toZenkakuSpace(data: IntArrayType): number[];
97
111
  export function toZenkakuSpace(data: string): string;
98
112
 
99
113
  export const version: string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "encoding-japanese",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "Convert and detect character encodings in JavaScript",
5
5
  "main": "src/index.js",
6
6
  "types": "index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "scripts": {
14
14
  "build": "npm run compile && npm run minify",
15
15
  "compile": "browserify src/index.js -o encoding.js -s Encoding -p [ bannerify --file src/banner.js ] --no-bundle-external --bare",
16
- "minify": "uglifyjs encoding.js -o encoding.min.js --comments -c -m -b ascii_only=true,beautify=false",
16
+ "minify": "uglifyjs encoding.js -o encoding.min.js --comments -c -m -b ascii_only=true,beautify=false --no-module --ie",
17
17
  "lint": "eslint .",
18
18
  "test": "npm run build && npm run test:types && mocha tests/test",
19
19
  "test:types": "tsc --project tsconfig.types.json",
@@ -26,7 +26,7 @@
26
26
  "type": "git",
27
27
  "url": "https://github.com/polygonplanet/encoding.js.git"
28
28
  },
29
- "author": "polygonplanet <polygon.planet.aqua@gmail.com>",
29
+ "author": "polygonplanet",
30
30
  "license": "MIT",
31
31
  "bugs": {
32
32
  "url": "https://github.com/polygonplanet/encoding.js/issues"
@@ -57,11 +57,11 @@
57
57
  "devDependencies": {
58
58
  "@eslint/js": "^10.0.1",
59
59
  "@stylistic/eslint-plugin": "^5.10.0",
60
- "@types/node": "^26.5.0",
60
+ "@types/node": "^26.6.6",
61
61
  "bannerify": "^1.0.1",
62
62
  "browserify": "^17.0.1",
63
- "eslint": "^10.9.1",
64
- "globals": "^17.12.0",
63
+ "eslint": "^10.14.0",
64
+ "globals": "^17.14.0",
65
65
  "mocha": "^11.8.0",
66
66
  "package-json-versionify": "^1.0.4",
67
67
  "typescript": "^7.0.2",
@@ -1,5 +1,4 @@
1
- var util = require('./util');
2
- var EncodingTable = require('./encoding-table');
1
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
3
2
 
4
3
  // Fallback character when a character can't be represented
5
4
  exports.FALLBACK_CHARACTER = 63; // '?'
@@ -78,7 +77,12 @@ exports.EncodingAliases = EncodingAliases;
78
77
  exports.EncodingOrders = (function() {
79
78
  var aliases = EncodingAliases;
80
79
 
81
- var names = util.objectKeys(EncodingNames);
80
+ var names = [];
81
+ for (var key in EncodingNames) {
82
+ if (hasOwnProperty.call(EncodingNames, key)) {
83
+ names[names.length] = key;
84
+ }
85
+ }
82
86
  var orders = [];
83
87
  var name, encoding, j, l;
84
88
 
@@ -107,33 +111,3 @@ exports.EncodingOrders = (function() {
107
111
 
108
112
  return orders;
109
113
  }());
110
-
111
- function init_JIS_TO_UTF8_TABLE() {
112
- if (EncodingTable.JIS_TO_UTF8_TABLE === null) {
113
- EncodingTable.JIS_TO_UTF8_TABLE = {};
114
-
115
- var keys = util.objectKeys(EncodingTable.UTF8_TO_JIS_TABLE);
116
- var i = 0;
117
- var len = keys.length;
118
- var key, value;
119
-
120
- for (; i < len; i++) {
121
- key = keys[i];
122
- value = EncodingTable.UTF8_TO_JIS_TABLE[key];
123
- if (value > 0x5F) {
124
- EncodingTable.JIS_TO_UTF8_TABLE[value] = key | 0;
125
- }
126
- }
127
-
128
- EncodingTable.JISX0212_TO_UTF8_TABLE = {};
129
- keys = util.objectKeys(EncodingTable.UTF8_TO_JISX0212_TABLE);
130
- len = keys.length;
131
-
132
- for (i = 0; i < len; i++) {
133
- key = keys[i];
134
- value = EncodingTable.UTF8_TO_JISX0212_TABLE[key];
135
- EncodingTable.JISX0212_TO_UTF8_TABLE[value] = key | 0;
136
- }
137
- }
138
- }
139
- exports.init_JIS_TO_UTF8_TABLE = init_JIS_TO_UTF8_TABLE;