@koralabs/kora-labs-common 4.0.14 → 4.0.16

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.
@@ -2,6 +2,10 @@
2
2
  var _a, _b;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.AUTH_GRANT_DURATION = exports.IS_PRODUCTION = exports.IS_SERVER = void 0;
5
- exports.IS_SERVER = (typeof process !== 'undefined') && (typeof process.versions.node !== 'undefined');
6
- exports.IS_PRODUCTION = exports.IS_SERVER ? (((_a = process.env.NODE_ENV) === null || _a === void 0 ? void 0 : _a.trim()) === 'production' && ((_b = process.env.NETWORK) === null || _b === void 0 ? void 0 : _b.toLowerCase()) == 'mainnet') : !(window.location.host.includes('preview.') || window.location.host.includes('preprod.'));
5
+ exports.IS_SERVER = typeof process !== 'undefined' && typeof process.versions.node !== 'undefined';
6
+ exports.IS_PRODUCTION = exports.IS_SERVER
7
+ ? ((_a = process.env.NODE_ENV) === null || _a === void 0 ? void 0 : _a.trim()) === 'production' && ((_b = process.env.NETWORK) === null || _b === void 0 ? void 0 : _b.toLowerCase()) == 'mainnet'
8
+ : !(window.location.host.includes('preview.') ||
9
+ window.location.host.includes('preprod.') ||
10
+ window.location.host.includes('localhost'));
7
11
  exports.AUTH_GRANT_DURATION = 1000 * 60 * 60 * 24 * 30; // 30 days
@@ -179,7 +179,7 @@ export interface IPzDatum {
179
179
  };
180
180
  }
181
181
  export interface ISubHandleSettingsCreatorDefaults extends ICreatorDefaults {
182
- bg_image: string;
182
+ bg_image?: string;
183
183
  }
184
184
  export interface ISubHandleSettings {
185
185
  public_minting_enabled?: BoolInt;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koralabs/kora-labs-common",
3
- "version": "4.0.14",
3
+ "version": "4.0.16",
4
4
  "description": "Kora Labs Common Utilities",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",