@agentuity/runtime 0.0.44 → 0.0.46
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/dist/io/email.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/io/email.ts +3 -3
package/dist/io/email.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../src/io/email.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,OAAO,
|
|
1
|
+
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../src/io/email.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,OAAO,EAAoC,MAAM,YAAY,CAAC;AAE7F;;;;;GAKG;AACH,qBAAa,KAAK;IACjB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAa;gBAE1B,IAAI,EAAE,UAAU;IAI5B,QAAQ,IAAI,MAAM;IAIlB;;OAEG;IACH,IAAI,IAAI,IAAI,GAAG,IAAI;IAInB;;OAEG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAI1B;;OAEG;IACH,OAAO,IAAI,OAAO;IAIlB;;;;OAIG;IACH,EAAE,IAAI,MAAM,GAAG,IAAI;IAgBnB;;OAEG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAI1B;;OAEG;IACH,QAAQ,IAAI,MAAM,GAAG,IAAI;IAIzB;;OAEG;IACH,OAAO,IAAI,MAAM,GAAG,IAAI;IAaxB;;OAEG;IACH,MAAM,IAAI,MAAM,GAAG,IAAI;IAavB;;OAEG;IACH,OAAO,IAAI,MAAM,GAAG,IAAI;IAIxB;;OAEG;IACH,IAAI,IAAI,MAAM,GAAG,IAAI;IAIrB;;OAEG;IACH,IAAI,IAAI,MAAM,GAAG,IAAI;IAIrB;;;;;OAKG;IACH,WAAW,IAAI,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;CAS/D;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAoB7D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentuity/runtime",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.46",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Agentuity employees and contributors",
|
|
6
6
|
"type": "module",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"prepublishOnly": "bun run clean && bun run build"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@agentuity/core": "0.0.
|
|
29
|
-
"@agentuity/server": "0.0.
|
|
28
|
+
"@agentuity/core": "0.0.46",
|
|
29
|
+
"@agentuity/server": "0.0.46",
|
|
30
30
|
"@opentelemetry/api": "^1.9.0",
|
|
31
31
|
"@opentelemetry/api-logs": "^0.207.0",
|
|
32
32
|
"@opentelemetry/auto-instrumentations-node": "^0.66.0",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"@opentelemetry/sdk-trace-base": "^2.2.0",
|
|
44
44
|
"@opentelemetry/semantic-conventions": "^1.37.0",
|
|
45
45
|
"@traceloop/node-server-sdk": "^0.19.1",
|
|
46
|
-
"mailparser": "^3.7.1"
|
|
46
|
+
"mailparser": "^3.7.1",
|
|
47
|
+
"@types/mailparser": "^3.4.6"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
50
|
"hono": "^4.10.3"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
|
-
"@types/mailparser": "^3.4.6",
|
|
53
53
|
"@types/react": "^19.2.2",
|
|
54
54
|
"@types/react-dom": "^19.2.2",
|
|
55
55
|
"react": "^19.2.0",
|
package/src/io/email.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ParsedMail, type Headers, simpleParser } from 'mailparser';
|
|
1
|
+
import { type ParsedMail, type Headers, simpleParser, type AddressObject } from 'mailparser';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A class representing an email with common information for processing.
|
|
@@ -49,8 +49,8 @@ export class Email {
|
|
|
49
49
|
}
|
|
50
50
|
if (Array.isArray(this._message.to)) {
|
|
51
51
|
return this._message.to
|
|
52
|
-
.map((addr) => (addr.text ?? '').trim())
|
|
53
|
-
.filter((text) => text.length > 0)
|
|
52
|
+
.map((addr: AddressObject) => (addr.text ?? '').trim())
|
|
53
|
+
.filter((text: string) => text.length > 0)
|
|
54
54
|
.join(', ');
|
|
55
55
|
}
|
|
56
56
|
if (typeof this._message.to === 'object' && 'text' in this._message.to) {
|