Comparing version 1.2.5 to 1.2.6
@@ -1,1 +0,2 @@ | ||
export {}; | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,3 +0,6 @@ | ||
import txQuery from "./queries/tx"; | ||
export function arGql(endpointUrl) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GQLUrls = exports.arGql = void 0; | ||
const tx_1 = require("./queries/tx"); | ||
function arGql(endpointUrl) { | ||
//sanity check | ||
@@ -48,3 +51,3 @@ if (endpointUrl && !endpointUrl.match(/^https?:\/\/.*\/graphql$/)) { | ||
const tx = async (id) => { | ||
const res = await run(txQuery, { id }); | ||
const res = await run(tx_1.default, { id }); | ||
return res.data.transaction; | ||
@@ -66,6 +69,7 @@ }; | ||
} | ||
exports.arGql = arGql; | ||
/** some useful constants */ | ||
export const GQLUrls = { | ||
exports.GQLUrls = { | ||
goldsky: 'https://arweave-search.goldsky.com/graphql', | ||
arweave: 'https://arweave.net/graphql', | ||
}; |
@@ -1,2 +0,4 @@ | ||
export default ` | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = ` | ||
query($id: ID!) { | ||
@@ -3,0 +5,0 @@ transaction(id: $id) { |
{ | ||
"name": "ar-gql", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"main": "dist/index", | ||
@@ -5,0 +5,0 @@ "types": "dist/index", |
@@ -7,5 +7,6 @@ { | ||
"lib": ["ESNext", "DOM"], | ||
"target": "ES2021" | ||
"target": "ES2021", | ||
"module": "CommonJS", | ||
}, | ||
"include": ["src/**/*"] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9936
199
1