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

ar-gql

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ar-gql - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

5

dist/index.d.ts
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;

2

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

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