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

@polygraph/graphql-adapter

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polygraph/graphql-adapter - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

dist/index.d.ts
import { Schema } from '@polygraph/schema-utils';
export declare function polygraphql(schema: Schema, polygraphStore: any, query: string): Promise<import("graphql/execution/execute").ExecutionResultDataDefault>;
export declare function polygraphql(schema: Schema, polygraphStore: any, query: string): Promise<any>;

@@ -17,3 +17,3 @@ "use strict";

const built = yield query_builder_1.buildQuery(schema, query);
const response = polygraphStore.query(built);
const response = yield polygraphStore.get(built);
return response_parser_1.parseResponse(schema, response, query);

@@ -20,0 +20,0 @@ });

@@ -7,2 +7,2 @@ import { Schema } from '@polygraph/schema-utils';

*/
export declare function parseResponse(pgSchema: Schema, pgResponse: any, query: string): Promise<import("graphql/execution/execute").ExecutionResultDataDefault>;
export declare function parseResponse(pgSchema: Schema, pgResponse: any, query: string): Promise<any>;

@@ -36,3 +36,3 @@ "use strict";

}
return result.data;
return JSON.parse(JSON.stringify(result.data));
});

@@ -39,0 +39,0 @@ }

{
"name": "@polygraph/graphql-adapter",
"version": "0.0.7",
"version": "0.0.8",
"description": "An adapter that allows interaction with polygraph via graphql-like queries.",

@@ -49,3 +49,3 @@ "main": "dist/index.js",

},
"gitHead": "047e55648b596ffb302a49a21da8b1c6788a7f27"
"gitHead": "b9097c4d532723e8b4bd0b2109e46a87c39758d9"
}

@@ -7,5 +7,5 @@ import { buildQuery } from './query-builder';

const built = await buildQuery(schema, query);
const response = polygraphStore.query(built);
const response = await polygraphStore.get(built);
return parseResponse(schema, response, query);
}

@@ -43,3 +43,3 @@ import { Schema } from '@polygraph/schema-utils';

return result.data;
return JSON.parse(JSON.stringify(result.data));
}

@@ -46,0 +46,0 @@

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