Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mintbase-js/data

Package Overview
Dependencies
Maintainers
2
Versions
1320
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mintbase-js/data - npm Package Compare versions

Comparing version 0.0.4-modular-refactor.0 to 0.0.4-move-near-js-exports-to-auth.0

5

lib/constants.d.ts
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_";

18

lib/constants.js
"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

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc