New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zeitgeistpm/indexer

Package Overview
Dependencies
Maintainers
3
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zeitgeistpm/indexer - npm Package Compare versions

Comparing version 2.0.10 to 2.0.11

6

CHANGELOG.md
# @zeitgeistpm/indexer
## 2.0.11
### Patch Changes
- esm
## 2.0.10

@@ -4,0 +10,0 @@

10

dist/augments/index.js

@@ -1,5 +0,2 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.augments = void 0;
const ping_1 = require("./ping");
import { ping } from './ping';
/**

@@ -11,7 +8,6 @@ * Create the augmented api.

*/
const augments = (gql) => {
export const augments = (gql) => {
return {
ping: () => (0, ping_1.ping)(gql),
ping: () => ping(gql),
};
};
exports.augments = augments;

@@ -1,4 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ping = void 0;
/**

@@ -10,3 +7,3 @@ * Ping the indexer with a lightweight query and return the response time in ms.

*/
const ping = async (indexer) => {
export const ping = async (indexer) => {
const start = Date.now();

@@ -16,2 +13,1 @@ await indexer.pingQuery();

};
exports.ping = ping;

@@ -1,9 +0,3 @@

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSdk = exports.PoolsDocument = exports.PingQueryDocument = exports.MarketsDocument = exports.HistoricalAssetsDocument = exports.HistoricalAccountBalancesDocument = exports.AssetsDocument = exports.AccountBalancesDocument = exports.FullPoolFragmentDoc = exports.FullMarketFragmentDoc = exports.FullHistoricalAssetsFragmentDoc = exports.FullHistoricalAccountBalanceFragmentDoc = exports.FullAssetFragmentDoc = exports.FullAccountBalanceFragmentDoc = exports.PoolOrderByInput = exports.MarketOrderByInput = exports.HistoricalPoolOrderByInput = exports.HistoricalMarketOrderByInput = exports.HistoricalAssetOrderByInput = exports.HistoricalAccountBalanceOrderByInput = exports.AssetOrderByInput = exports.AccountOrderByInput = exports.AccountBalanceOrderByInput = void 0;
const graphql_tag_1 = __importDefault(require("graphql-tag"));
var AccountBalanceOrderByInput;
import gql from 'graphql-tag';
export var AccountBalanceOrderByInput;
(function (AccountBalanceOrderByInput) {

@@ -28,4 +22,4 @@ AccountBalanceOrderByInput["AccountAccountIdAsc"] = "account_accountId_ASC";

AccountBalanceOrderByInput["ValueDesc"] = "value_DESC";
})(AccountBalanceOrderByInput = exports.AccountBalanceOrderByInput || (exports.AccountBalanceOrderByInput = {}));
var AccountOrderByInput;
})(AccountBalanceOrderByInput || (AccountBalanceOrderByInput = {}));
export var AccountOrderByInput;
(function (AccountOrderByInput) {

@@ -42,4 +36,4 @@ AccountOrderByInput["AccountIdAsc"] = "accountId_ASC";

AccountOrderByInput["PvalueDesc"] = "pvalue_DESC";
})(AccountOrderByInput = exports.AccountOrderByInput || (exports.AccountOrderByInput = {}));
var AssetOrderByInput;
})(AccountOrderByInput || (AccountOrderByInput = {}));
export var AssetOrderByInput;
(function (AssetOrderByInput) {

@@ -56,4 +50,4 @@ AssetOrderByInput["AmountInPoolAsc"] = "amountInPool_ASC";

AssetOrderByInput["PriceDesc"] = "price_DESC";
})(AssetOrderByInput = exports.AssetOrderByInput || (exports.AssetOrderByInput = {}));
var HistoricalAccountBalanceOrderByInput;
})(AssetOrderByInput || (AssetOrderByInput = {}));
export var HistoricalAccountBalanceOrderByInput;
(function (HistoricalAccountBalanceOrderByInput) {

@@ -82,4 +76,4 @@ HistoricalAccountBalanceOrderByInput["AccountIdAsc"] = "accountId_ASC";

HistoricalAccountBalanceOrderByInput["ValueDesc"] = "value_DESC";
})(HistoricalAccountBalanceOrderByInput = exports.HistoricalAccountBalanceOrderByInput || (exports.HistoricalAccountBalanceOrderByInput = {}));
var HistoricalAssetOrderByInput;
})(HistoricalAccountBalanceOrderByInput || (HistoricalAccountBalanceOrderByInput = {}));
export var HistoricalAssetOrderByInput;
(function (HistoricalAssetOrderByInput) {

@@ -108,4 +102,4 @@ HistoricalAssetOrderByInput["AccountIdAsc"] = "accountId_ASC";

HistoricalAssetOrderByInput["ZtgTradedDesc"] = "ztgTraded_DESC";
})(HistoricalAssetOrderByInput = exports.HistoricalAssetOrderByInput || (exports.HistoricalAssetOrderByInput = {}));
var HistoricalMarketOrderByInput;
})(HistoricalAssetOrderByInput || (HistoricalAssetOrderByInput = {}));
export var HistoricalMarketOrderByInput;
(function (HistoricalMarketOrderByInput) {

@@ -132,4 +126,4 @@ HistoricalMarketOrderByInput["BlockNumberAsc"] = "blockNumber_ASC";

HistoricalMarketOrderByInput["TimestampDesc"] = "timestamp_DESC";
})(HistoricalMarketOrderByInput = exports.HistoricalMarketOrderByInput || (exports.HistoricalMarketOrderByInput = {}));
var HistoricalPoolOrderByInput;
})(HistoricalMarketOrderByInput || (HistoricalMarketOrderByInput = {}));
export var HistoricalPoolOrderByInput;
(function (HistoricalPoolOrderByInput) {

@@ -152,4 +146,4 @@ HistoricalPoolOrderByInput["BlockNumberAsc"] = "blockNumber_ASC";

HistoricalPoolOrderByInput["ZtgQtyDesc"] = "ztgQty_DESC";
})(HistoricalPoolOrderByInput = exports.HistoricalPoolOrderByInput || (exports.HistoricalPoolOrderByInput = {}));
var MarketOrderByInput;
})(HistoricalPoolOrderByInput || (HistoricalPoolOrderByInput = {}));
export var MarketOrderByInput;
(function (MarketOrderByInput) {

@@ -208,4 +202,4 @@ MarketOrderByInput["CreationAsc"] = "creation_ASC";

MarketOrderByInput["StatusDesc"] = "status_DESC";
})(MarketOrderByInput = exports.MarketOrderByInput || (exports.MarketOrderByInput = {}));
var PoolOrderByInput;
})(MarketOrderByInput || (MarketOrderByInput = {}));
export var PoolOrderByInput;
(function (PoolOrderByInput) {

@@ -238,4 +232,4 @@ PoolOrderByInput["AccountIdAsc"] = "accountId_ASC";

PoolOrderByInput["ZtgQtyDesc"] = "ztgQty_DESC";
})(PoolOrderByInput = exports.PoolOrderByInput || (exports.PoolOrderByInput = {}));
exports.FullAccountBalanceFragmentDoc = (0, graphql_tag_1.default) `
})(PoolOrderByInput || (PoolOrderByInput = {}));
export const FullAccountBalanceFragmentDoc = gql `
fragment FullAccountBalance on AccountBalance {

@@ -255,3 +249,3 @@ id

`;
exports.FullAssetFragmentDoc = (0, graphql_tag_1.default) `
export const FullAssetFragmentDoc = gql `
fragment FullAsset on Asset {

@@ -265,3 +259,3 @@ id

`;
exports.FullHistoricalAccountBalanceFragmentDoc = (0, graphql_tag_1.default) `
export const FullHistoricalAccountBalanceFragmentDoc = gql `
fragment FullHistoricalAccountBalance on HistoricalAccountBalance {

@@ -281,3 +275,3 @@ id

`;
exports.FullHistoricalAssetsFragmentDoc = (0, graphql_tag_1.default) `
export const FullHistoricalAssetsFragmentDoc = gql `
fragment FullHistoricalAssets on HistoricalAsset {

@@ -297,3 +291,3 @@ id

`;
exports.FullMarketFragmentDoc = (0, graphql_tag_1.default) `
export const FullMarketFragmentDoc = gql `
fragment FullMarket on Market {

@@ -344,3 +338,3 @@ id

`;
exports.FullPoolFragmentDoc = (0, graphql_tag_1.default) `
export const FullPoolFragmentDoc = gql `
fragment FullPool on Pool {

@@ -366,3 +360,3 @@ id

`;
exports.AccountBalancesDocument = (0, graphql_tag_1.default) `
export const AccountBalancesDocument = gql `
query accountBalances($where: AccountBalanceWhereInput, $order: [AccountBalanceOrderByInput!], $offset: Int, $limit: Int) {

@@ -373,4 +367,4 @@ accountBalances(where: $where, orderBy: $order, offset: $offset, limit: $limit) {

}
${exports.FullAccountBalanceFragmentDoc}`;
exports.AssetsDocument = (0, graphql_tag_1.default) `
${FullAccountBalanceFragmentDoc}`;
export const AssetsDocument = gql `
query assets($where: AssetWhereInput, $order: [AssetOrderByInput!], $offset: Int, $limit: Int) {

@@ -381,4 +375,4 @@ assets(where: $where, orderBy: $order, offset: $offset, limit: $limit) {

}
${exports.FullAssetFragmentDoc}`;
exports.HistoricalAccountBalancesDocument = (0, graphql_tag_1.default) `
${FullAssetFragmentDoc}`;
export const HistoricalAccountBalancesDocument = gql `
query historicalAccountBalances($where: HistoricalAccountBalanceWhereInput, $order: [HistoricalAccountBalanceOrderByInput!], $offset: Int, $limit: Int) {

@@ -394,4 +388,4 @@ historicalAccountBalances(

}
${exports.FullHistoricalAccountBalanceFragmentDoc}`;
exports.HistoricalAssetsDocument = (0, graphql_tag_1.default) `
${FullHistoricalAccountBalanceFragmentDoc}`;
export const HistoricalAssetsDocument = gql `
query historicalAssets($where: HistoricalAssetWhereInput, $order: [HistoricalAssetOrderByInput!], $offset: Int, $limit: Int) {

@@ -402,4 +396,4 @@ historicalAssets(where: $where, orderBy: $order, offset: $offset, limit: $limit) {

}
${exports.FullHistoricalAssetsFragmentDoc}`;
exports.MarketsDocument = (0, graphql_tag_1.default) `
${FullHistoricalAssetsFragmentDoc}`;
export const MarketsDocument = gql `
query markets($where: MarketWhereInput, $order: [MarketOrderByInput!], $limit: Int, $offset: Int) {

@@ -410,4 +404,4 @@ markets(where: $where, limit: $limit, offset: $offset, orderBy: $order) {

}
${exports.FullMarketFragmentDoc}`;
exports.PingQueryDocument = (0, graphql_tag_1.default) `
${FullMarketFragmentDoc}`;
export const PingQueryDocument = gql `
query pingQuery {

@@ -419,3 +413,3 @@ markets(limit: 1) {

`;
exports.PoolsDocument = (0, graphql_tag_1.default) `
export const PoolsDocument = gql `
query pools($where: PoolWhereInput, $order: [PoolOrderByInput!], $offset: Int, $limit: Int) {

@@ -426,29 +420,28 @@ pools(where: $where, orderBy: $order, offset: $offset, limit: $limit) {

}
${exports.FullPoolFragmentDoc}`;
${FullPoolFragmentDoc}`;
const defaultWrapper = (action, _operationName, _operationType) => action();
function getSdk(client, withWrapper = defaultWrapper) {
export function getSdk(client, withWrapper = defaultWrapper) {
return {
accountBalances(variables, requestHeaders) {
return withWrapper((wrappedRequestHeaders) => client.request(exports.AccountBalancesDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'accountBalances', 'query');
return withWrapper((wrappedRequestHeaders) => client.request(AccountBalancesDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'accountBalances', 'query');
},
assets(variables, requestHeaders) {
return withWrapper((wrappedRequestHeaders) => client.request(exports.AssetsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'assets', 'query');
return withWrapper((wrappedRequestHeaders) => client.request(AssetsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'assets', 'query');
},
historicalAccountBalances(variables, requestHeaders) {
return withWrapper((wrappedRequestHeaders) => client.request(exports.HistoricalAccountBalancesDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'historicalAccountBalances', 'query');
return withWrapper((wrappedRequestHeaders) => client.request(HistoricalAccountBalancesDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'historicalAccountBalances', 'query');
},
historicalAssets(variables, requestHeaders) {
return withWrapper((wrappedRequestHeaders) => client.request(exports.HistoricalAssetsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'historicalAssets', 'query');
return withWrapper((wrappedRequestHeaders) => client.request(HistoricalAssetsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'historicalAssets', 'query');
},
markets(variables, requestHeaders) {
return withWrapper((wrappedRequestHeaders) => client.request(exports.MarketsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'markets', 'query');
return withWrapper((wrappedRequestHeaders) => client.request(MarketsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'markets', 'query');
},
pingQuery(variables, requestHeaders) {
return withWrapper((wrappedRequestHeaders) => client.request(exports.PingQueryDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'pingQuery', 'query');
return withWrapper((wrappedRequestHeaders) => client.request(PingQueryDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'pingQuery', 'query');
},
pools(variables, requestHeaders) {
return withWrapper((wrappedRequestHeaders) => client.request(exports.PoolsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'pools', 'query');
return withWrapper((wrappedRequestHeaders) => client.request(PoolsDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'pools', 'query');
}
};
}
exports.getSdk = getSdk;

@@ -1,23 +0,6 @@

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.create = void 0;
const graphql_request_1 = require("graphql-request");
const augments_1 = require("./augments");
const sdk_1 = require("./graphql/sdk");
__exportStar(require("./graphql/sdk"), exports);
__exportStar(require("./types"), exports);
import { GraphQLClient } from 'graphql-request';
import { augments } from './augments';
import { getSdk } from './graphql/sdk';
export * from './graphql/sdk';
export * from './types';
/**

@@ -29,11 +12,10 @@ * Create a zeitgeist indexer client.

*/
const create = (config) => {
const client = new graphql_request_1.GraphQLClient(config.uri);
const gql = (0, sdk_1.getSdk)(client);
export const create = (config) => {
const client = new GraphQLClient(config.uri);
const gql = getSdk(client);
return {
client,
...gql,
...(0, augments_1.augments)(gql),
...augments(gql),
};
};
exports.create = create;

@@ -1,2 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export {};
{
"name": "@zeitgeistpm/indexer",
"version": "2.0.10",
"version": "2.0.11",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

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