glitch-javascript-sdk 1.0.0 → 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/cjs/index.js CHANGED
@@ -18900,12 +18900,16 @@ var Config = /** @class */ (function () {
18900
18900
  LabelManager.initialize(community);
18901
18901
  };
18902
18902
  /**
18903
- * Sets the root level domain so data can accessed across
18903
+ * Sets the root level domain so data can be accessed across
18904
18904
  * multiple subdomains
18905
18905
  *
18906
18906
  * @param domain The domain ie: example.com
18907
18907
  */
18908
18908
  Config.setRootDomain = function (domain) {
18909
+ if (!domain) {
18910
+ console.error("setRootDomain: domain is undefined or null");
18911
+ return;
18912
+ }
18909
18913
  var parts = domain.split('.');
18910
18914
  if (parts.length > 2) {
18911
18915
  parts.shift();
@@ -22364,8 +22368,8 @@ var Campaigns = /** @class */ (function () {
22364
22368
  *
22365
22369
  * @returns promise
22366
22370
  */
22367
- Campaigns.listInfluencerCampaignLinkClicks = function (campaign_id, params) {
22368
- return Requests.processRoute(CampaignsRoute.routes.listInfluencerCampaignLinkClicks, undefined, { campaign_id: campaign_id }, params);
22371
+ Campaigns.listInfluencerCampaignLinkClicks = function (campaign_id, user_id, params) {
22372
+ return Requests.processRoute(CampaignsRoute.routes.listInfluencerCampaignLinkClicks, undefined, { campaign_id: campaign_id, user_id: user_id }, params);
22369
22373
  };
22370
22374
  /**
22371
22375
  * Create a new campaign link.