glitch-javascript-sdk 1.0.1 → 1.0.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/dist/index.d.ts CHANGED
@@ -39,7 +39,7 @@ declare class Config {
39
39
  */
40
40
  static setCommunity(community: Record<string, any>): void;
41
41
  /**
42
- * Sets the root level domain so data can accessed across
42
+ * Sets the root level domain so data can be accessed across
43
43
  * multiple subdomains
44
44
  *
45
45
  * @param domain The domain ie: example.com
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -78,12 +78,16 @@ class Config {
78
78
  }
79
79
 
80
80
  /**
81
- * Sets the root level domain so data can accessed across
81
+ * Sets the root level domain so data can be accessed across
82
82
  * multiple subdomains
83
83
  *
84
84
  * @param domain The domain ie: example.com
85
85
  */
86
86
  public static setRootDomain(domain: string) {
87
+ if (!domain) {
88
+ console.error("setRootDomain: domain is undefined or null");
89
+ return;
90
+ }
87
91
 
88
92
  const parts = domain.split('.');
89
93