accounts 0.4.14 → 0.4.15
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/CHANGELOG.md +6 -0
- package/dist/core/TrustedHosts.d.ts +1 -3
- package/dist/core/TrustedHosts.d.ts.map +1 -1
- package/dist/core/TrustedHosts.js +2 -15
- package/dist/core/TrustedHosts.js.map +1 -1
- package/dist/trusted-hosts.json +15 -0
- package/package.json +1 -1
- package/src/core/TrustedHosts.ts +3 -15
- package/src/trusted-hosts.json +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
* list of third-party origins that the dialog trusts to embed it.
|
|
6
6
|
* Supports wildcard patterns (e.g. `*.workers.dev`).
|
|
7
7
|
*/
|
|
8
|
-
export declare const hosts:
|
|
9
|
-
readonly 'tempo.xyz': readonly ["localhost", "*.localhost", "*.tempo.xyz", "promptgolf.sh", "app.polyhedge.capital", "tempodex.vercel.app", "currencycompetition.com", "tempai.town", "print-a-tshirt.com", "*.porto.workers.dev", "benedict.dev"];
|
|
10
|
-
};
|
|
8
|
+
export declare const hosts: Record<string, readonly string[]>;
|
|
11
9
|
/**
|
|
12
10
|
* Returns `true` if `hostname` matches any pattern in `trustedHosts`.
|
|
13
11
|
* Patterns starting with `*.` match any subdomain suffix
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrustedHosts.d.ts","sourceRoot":"","sources":["../../src/core/TrustedHosts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TrustedHosts.d.ts","sourceRoot":"","sources":["../../src/core/TrustedHosts.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAU,CAAA;AAE9D;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,WAMtE"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _hosts from '../trusted-hosts.json' with { type: 'json' };
|
|
1
2
|
/**
|
|
2
3
|
* Trusted host mappings for dialog adapters.
|
|
3
4
|
*
|
|
@@ -5,21 +6,7 @@
|
|
|
5
6
|
* list of third-party origins that the dialog trusts to embed it.
|
|
6
7
|
* Supports wildcard patterns (e.g. `*.workers.dev`).
|
|
7
8
|
*/
|
|
8
|
-
export const hosts =
|
|
9
|
-
'tempo.xyz': [
|
|
10
|
-
'localhost',
|
|
11
|
-
'*.localhost',
|
|
12
|
-
'*.tempo.xyz',
|
|
13
|
-
'promptgolf.sh',
|
|
14
|
-
'app.polyhedge.capital',
|
|
15
|
-
'tempodex.vercel.app',
|
|
16
|
-
'currencycompetition.com',
|
|
17
|
-
'tempai.town',
|
|
18
|
-
'print-a-tshirt.com',
|
|
19
|
-
'*.porto.workers.dev',
|
|
20
|
-
'benedict.dev',
|
|
21
|
-
],
|
|
22
|
-
};
|
|
9
|
+
export const hosts = _hosts;
|
|
23
10
|
/**
|
|
24
11
|
* Returns `true` if `hostname` matches any pattern in `trustedHosts`.
|
|
25
12
|
* Patterns starting with `*.` match any subdomain suffix
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrustedHosts.js","sourceRoot":"","sources":["../../src/core/TrustedHosts.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"TrustedHosts.js","sourceRoot":"","sources":["../../src/core/TrustedHosts.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAEhE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,KAAK,GAAsC,MAAM,CAAA;AAE9D;;;;GAIG;AACH,MAAM,UAAU,KAAK,CAAC,YAA+B,EAAE,QAAgB;IACrE,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;QACnC,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;YAC1B,OAAO,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,CAAA;QACpF,OAAO,OAAO,KAAK,QAAQ,CAAA;IAC7B,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tempo.xyz": [
|
|
3
|
+
"localhost",
|
|
4
|
+
"*.localhost",
|
|
5
|
+
"*.tempo.xyz",
|
|
6
|
+
"promptgolf.sh",
|
|
7
|
+
"app.polyhedge.capital",
|
|
8
|
+
"tempodex.vercel.app",
|
|
9
|
+
"currencycompetition.com",
|
|
10
|
+
"tempai.town",
|
|
11
|
+
"print-a-tshirt.com",
|
|
12
|
+
"*.porto.workers.dev",
|
|
13
|
+
"benedict.dev"
|
|
14
|
+
]
|
|
15
|
+
}
|
package/package.json
CHANGED
package/src/core/TrustedHosts.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import _hosts from '../trusted-hosts.json' with { type: 'json' }
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Trusted host mappings for dialog adapters.
|
|
3
5
|
*
|
|
@@ -5,21 +7,7 @@
|
|
|
5
7
|
* list of third-party origins that the dialog trusts to embed it.
|
|
6
8
|
* Supports wildcard patterns (e.g. `*.workers.dev`).
|
|
7
9
|
*/
|
|
8
|
-
export const hosts =
|
|
9
|
-
'tempo.xyz': [
|
|
10
|
-
'localhost',
|
|
11
|
-
'*.localhost',
|
|
12
|
-
'*.tempo.xyz',
|
|
13
|
-
'promptgolf.sh',
|
|
14
|
-
'app.polyhedge.capital',
|
|
15
|
-
'tempodex.vercel.app',
|
|
16
|
-
'currencycompetition.com',
|
|
17
|
-
'tempai.town',
|
|
18
|
-
'print-a-tshirt.com',
|
|
19
|
-
'*.porto.workers.dev',
|
|
20
|
-
'benedict.dev',
|
|
21
|
-
],
|
|
22
|
-
} as const satisfies Record<string, readonly string[]>
|
|
10
|
+
export const hosts: Record<string, readonly string[]> = _hosts
|
|
23
11
|
|
|
24
12
|
/**
|
|
25
13
|
* Returns `true` if `hostname` matches any pattern in `trustedHosts`.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tempo.xyz": [
|
|
3
|
+
"localhost",
|
|
4
|
+
"*.localhost",
|
|
5
|
+
"*.tempo.xyz",
|
|
6
|
+
"promptgolf.sh",
|
|
7
|
+
"app.polyhedge.capital",
|
|
8
|
+
"tempodex.vercel.app",
|
|
9
|
+
"currencycompetition.com",
|
|
10
|
+
"tempai.town",
|
|
11
|
+
"print-a-tshirt.com",
|
|
12
|
+
"*.porto.workers.dev",
|
|
13
|
+
"benedict.dev"
|
|
14
|
+
]
|
|
15
|
+
}
|