@fogo/sessions-sdk 0.0.8 → 0.0.9

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/cjs/adapter.js CHANGED
@@ -122,15 +122,7 @@ const getDomain = (requestedDomain) => {
122
122
  }
123
123
  }
124
124
  else {
125
- if (detectedDomain === undefined ||
126
- detectedDomain === requestedDomain ||
127
- process.env.NODE_ENV !== "production" // eslint-disable-line n/no-process-env
128
- ) {
129
- return requestedDomain;
130
- }
131
- else {
132
- throw new DomainOverrideNotAllowedError();
133
- }
125
+ return requestedDomain;
134
126
  }
135
127
  };
136
128
  class PaymasterResponseError extends Error {
@@ -151,9 +143,3 @@ class DomainRequiredError extends Error {
151
143
  this.name = "DomainRequiredError";
152
144
  }
153
145
  }
154
- class DomainOverrideNotAllowedError extends Error {
155
- constructor() {
156
- super("You cannot create a session for a different domain.");
157
- this.name = "DomainOverrideNotAllowedError";
158
- }
159
- }
package/esm/adapter.js CHANGED
@@ -118,15 +118,7 @@ const getDomain = (requestedDomain) => {
118
118
  }
119
119
  }
120
120
  else {
121
- if (detectedDomain === undefined ||
122
- detectedDomain === requestedDomain ||
123
- process.env.NODE_ENV !== "production" // eslint-disable-line n/no-process-env
124
- ) {
125
- return requestedDomain;
126
- }
127
- else {
128
- throw new DomainOverrideNotAllowedError();
129
- }
121
+ return requestedDomain;
130
122
  }
131
123
  };
132
124
  class PaymasterResponseError extends Error {
@@ -147,9 +139,3 @@ class DomainRequiredError extends Error {
147
139
  this.name = "DomainRequiredError";
148
140
  }
149
141
  }
150
- class DomainOverrideNotAllowedError extends Error {
151
- constructor() {
152
- super("You cannot create a session for a different domain.");
153
- this.name = "DomainOverrideNotAllowedError";
154
- }
155
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fogo/sessions-sdk",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "A set of utilities for integrating with Fogo sessions",
5
5
  "keywords": [
6
6
  "fogo",