Comparing version 1.0.0 to 1.0.1
import GQLResultInterface, { GQLEdgeInterface, GQLNodeInterface } from "./faces"; | ||
export default function arGql(endpointUrl?: string): { | ||
export interface ArGql { | ||
run: (query: string, variables?: Record<string, unknown>) => Promise<GQLResultInterface>; | ||
@@ -10,2 +10,3 @@ all: (query: string, variables?: Record<string, unknown>) => Promise<GQLEdgeInterface[]>; | ||
}; | ||
}; | ||
} | ||
export default function arGql(endpointUrl?: string): ArGql; |
{ | ||
"name": "ar-gql", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "dist/index", | ||
@@ -5,0 +5,0 @@ "types": "dist/index", |
@@ -7,3 +7,11 @@ import GQLResultInterface, { | ||
export default function arGql(endpointUrl?: string){ | ||
export interface ArGql { | ||
run: (query: string, variables?: Record<string, unknown>) => Promise<GQLResultInterface> | ||
all: (query: string, variables?: Record<string, unknown>) => Promise<GQLEdgeInterface[]> | ||
tx: (id: string) => Promise<GQLNodeInterface> | ||
fetchTxTag: (id: string, name: string) => Promise<string | undefined> | ||
getConfig: () => { endpointUrl: string } | ||
} | ||
export default function arGql(endpointUrl?: string): ArGql { | ||
//sanity check | ||
@@ -10,0 +18,0 @@ if(endpointUrl && !endpointUrl.match(/^https?:\/\/.*\/graphql$/)){ |
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
20254
485