glitch-javascript-sdk 3.9.1 → 3.9.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.9.1",
3
+ "version": "3.9.2",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -46,6 +46,7 @@ export interface HostingDomain {
46
46
  verification_record_name?: string | null;
47
47
  verification_record_value?: string | null;
48
48
  certificate_status?: string | null;
49
+ billing_status?: 'active' | 'past_due' | 'unpaid' | 'cancelled' | null;
49
50
  annual_price_cents?: number | null;
50
51
  auto_renew: boolean;
51
52
  }
@@ -66,7 +67,9 @@ export interface HostingDatabase {
66
67
  high_availability_enabled: boolean;
67
68
  endpoint?: string | null;
68
69
  port?: number | null;
69
- binding_name: 'DATABASE_URL' | 'COSMOS_DATABASE';
70
+ binding_name: string;
71
+ billing_status: 'awaiting_payment' | 'active' | 'past_due' | 'unpaid' | 'cancelled' | 'expired' | 'failed';
72
+ billing_active: boolean;
70
73
  last_error?: string | null;
71
74
  }
72
75
 
@@ -33,7 +33,8 @@ const ready = Hosting.startPlaySession<Record<string, any>>({
33
33
  return session;
34
34
  }).catch((error) => {
35
35
  window.dispatchEvent(new CustomEvent('glitch:hosting-error', { detail: { message: error?.message || 'Hosting analytics could not start.' } }));
36
- throw error;
36
+ // Analytics must never prevent the uploaded game itself from loading.
37
+ return null as any;
37
38
  });
38
39
 
39
40
  window.GlitchHosting = {