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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # accounts
2
2
 
3
+ ## 0.4.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 715d830: Moved trusted hosts list to `trusted-hosts.json` at the project root.
8
+
3
9
  ## 0.4.14
4
10
 
5
11
  ### Patch Changes
@@ -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":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,KAAK;;CAcoC,CAAA;AAEtD;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,WAMtE"}
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;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,WAAW,EAAE;QACX,WAAW;QACX,aAAa;QACb,aAAa;QACb,eAAe;QACf,uBAAuB;QACvB,qBAAqB;QACrB,yBAAyB;QACzB,aAAa;QACb,oBAAoB;QACpB,qBAAqB;QACrB,cAAc;KACf;CACmD,CAAA;AAEtD;;;;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"}
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
@@ -2,7 +2,7 @@
2
2
  "name": "accounts",
3
3
  "description": "Tempo Accounts SDK",
4
4
  "type": "module",
5
- "version": "0.4.14",
5
+ "version": "0.4.15",
6
6
  "dependencies": {
7
7
  "@remix-run/fetch-router": "~0.17.0",
8
8
  "idb-keyval": "^6.2.2",
@@ -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
+ }