@mintbase-js/data
Advanced tools
Comparing version 0.0.4-modular-refactor.0 to 0.0.4-move-near-js-exports-to-auth.0
export declare type NearDataEnv = 'mainnet' | 'testnet' | 'sandbox'; | ||
export declare const DataNetwork: { | ||
MAINNET: string; | ||
TESTNET: string; | ||
SANDBOX: string; | ||
}; | ||
export declare const NEAR_DATA_ENV: string; | ||
export declare const GRAPHQL_ENDPOINT: string; | ||
export declare const QUERY_OPS_PREFIX = "mintbase_js_data_"; |
"use strict"; | ||
var _a, _b; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.QUERY_OPS_PREFIX = exports.GRAPHQL_ENDPOINT = exports.NEAR_DATA_ENV = void 0; | ||
exports.QUERY_OPS_PREFIX = exports.GRAPHQL_ENDPOINT = exports.NEAR_DATA_ENV = exports.DataNetwork = void 0; | ||
exports.DataNetwork = { | ||
MAINNET: 'mainnet', | ||
TESTNET: 'testnet', | ||
SANDBOX: 'sandbox', | ||
}; | ||
let hostBasedNetworkDefault = exports.DataNetwork.MAINNET; | ||
if ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.window) === null || _a === void 0 ? void 0 : _a.location.host.includes(exports.DataNetwork.TESTNET)) { | ||
hostBasedNetworkDefault = exports.DataNetwork.TESTNET; | ||
} | ||
if ((_b = globalThis === null || globalThis === void 0 ? void 0 : globalThis.window) === null || _b === void 0 ? void 0 : _b.location.host.includes(exports.DataNetwork.SANDBOX)) { | ||
hostBasedNetworkDefault = exports.DataNetwork.SANDBOX; | ||
} | ||
exports.NEAR_DATA_ENV = process.env.NEAR_DATA_ENV || | ||
process.env.NEXT_PUBLIC_NEAR_DATA_ENV || | ||
'mainnet'; | ||
hostBasedNetworkDefault; | ||
exports.GRAPHQL_ENDPOINT = `https://interop-${exports.NEAR_DATA_ENV}.hasura.app/v1/graphql`; | ||
exports.QUERY_OPS_PREFIX = 'mintbase_js_data_'; | ||
//# sourceMappingURL=constants.js.map |
{ | ||
"name": "@mintbase-js/data", | ||
"version": "0.0.4-modular-refactor.0", | ||
"version": "0.0.4-move-near-js-exports-to-auth.0", | ||
"description": "Query wrappers for Mintbase JS SDK", | ||
@@ -30,3 +30,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "a54f81260ced94585f5d635c96caa7290feb21aa" | ||
"gitHead": "b7944059e7bf360fb3a8f4b410673af333640081" | ||
} |
Sorry, the diff of this file is not supported yet
329773
7221