Socket
Socket
Sign inDemoInstall

@alpaca-travel/graph-methods

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.14-alpha.0 to 0.0.15-alpha.0

25

dist/api.d.ts

@@ -0,1 +1,18 @@

interface Query {
query: string;
variables?: Variables;
}
interface Variables {
[key: string]: any;
}
interface Network {
query(query: Query): Promise<any[]>;
}
interface Container {
get(key: string): Promise<any>;
getParam(key: string): any;
}
interface Client {
query(query: Query): Promise<any[]>;
}
export interface QueryOptions {

@@ -5,5 +22,5 @@ variables: Variables;

interface ApiOptions {
network: Network;
container: Container;
client: Client;
network?: Network;
container?: Container;
client?: Client;
}

@@ -15,3 +32,3 @@ export default class Api {

static get(operationKey: string): string;
constructor(options: ApiOptions);
constructor(options?: ApiOptions);
query(operationKey: string, options: QueryOptions): Promise<any>;

@@ -18,0 +35,0 @@ createAnonymousItinerary(options: QueryOptions): Promise<any[]>;

6

package.json
{
"name": "@alpaca-travel/graph-methods",
"version": "0.0.14-alpha.0",
"version": "0.0.15-alpha.0",
"description": "Simple GraphQL queries and mutations exposed as JS API",
"homepage": "https://github.com/AlpacaTravel/graph-methods",
"homepage": "https://github.com/AlpacaTravel/graph-sdk",
"repository": {

@@ -59,3 +59,3 @@ "type": "git",

},
"gitHead": "80ac4551d99e87abfea0d92e7f4224dc11fd8d59"
"gitHead": "ac2ddfd642fbdadd314599ece7e161caa3547c59"
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc