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

graphql-ruby-client

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-ruby-client - npm Package Compare versions

Comparing version 1.12.1 to 1.13.0

sync/preparePersistedQueryList.d.ts

5

CHANGELOG.md
# graphql-ruby-client
# 1.13.0 (23 Jan 2024)
- Sync: add support for `generate-persisted-query-manifest` files #4798
- createActionCableHandler: remove needless `perform("send", ...)` call #4793
# 1.12.1 (29 Dec 2023)

@@ -4,0 +9,0 @@

3

cli.js

@@ -11,3 +11,3 @@ #!/usr/bin/env node

if (argv.help || argv.h) {
console.log("usage: graphql-ruby-client sync <options>\n\n Read .graphql files and push the contained\n operations to a GraphQL::Pro::OperationStore\n\nrequired arguments:\n --url=<endpoint-url> URL where data should be POSTed\n --client=<client-name> Identifier for this client application\n\noptional arguments:\n --path=<path> Path to .graphql files (default is \"./**/*.graphql\")\n --outfile=<generated-filename> Target file for generated code\n --outfile-type=<type> Target type for generated code (default is \"js\")\n --secret=<secret> HMAC authentication key\n --relay-persisted-output=<path> Path to a .json file from \"relay-compiler ... --persist-output\"\n (Outfile generation is skipped by default.)\n --apollo-codegen-json-output=<path> Path to a .json file from \"apollo client:codegen ... --target json\"\n (Outfile generation is skipped by default.)\n --apollo-android-operation-output=<path> Path to a .json file from Apollo-Android's \"generateOperationOutput\" feature.\n (Outfile generation is skipped by default.)\n --mode=<mode> Treat files like a certain kind of project:\n relay: treat files like relay-compiler output\n project: treat files like a cohesive project (fragments are shared, names must be unique)\n file: treat each file like a stand-alone operation\n\n By default, this flag is set to:\n - \"relay\" if \"__generated__\" in the path\n - otherwise, \"project\"\n --header=<header>:<value> Add a header to the outgoing HTTP request\n (may be repeated)\n --changeset-version=<version> Populates `context[:changeset_version]` for this sync (for the GraphQL-Enterprise \"Changesets\" feature)\n --add-typename Automatically adds the \"__typename\" field to your queries\n --quiet Suppress status logging\n --verbose Print debug output\n --help Print this message\n");
console.log("usage: graphql-ruby-client sync <options>\n\n Read .graphql files and push the contained\n operations to a GraphQL::Pro::OperationStore\n\nrequired arguments:\n --url=<endpoint-url> URL where data should be POSTed\n --client=<client-name> Identifier for this client application\n\noptional arguments:\n --path=<path> Path to .graphql files (default is \"./**/*.graphql\")\n --outfile=<generated-filename> Target file for generated code\n --outfile-type=<type> Target type for generated code (default is \"js\")\n --secret=<secret> HMAC authentication key\n --relay-persisted-output=<path> Path to a .json file from \"relay-compiler ... --persist-output\"\n (Outfile generation is skipped by default.)\n --apollo-codegen-json-output=<path> Path to a .json file from \"apollo client:codegen ... --target json\"\n (Outfile generation is skipped by default.)\n --apollo-android-operation-output=<path> Path to a .json file from Apollo-Android's \"generateOperationOutput\" feature.\n (Outfile generation is skipped by default.)\n --apollo-persisted-query-manifest=<path> Path to a .json file from Apollo's \"generate-persisted-query-manifest\" tool.\n (Outfile generation is skipped by default.)\n --mode=<mode> Treat files like a certain kind of project:\n relay: treat files like relay-compiler output\n project: treat files like a cohesive project (fragments are shared, names must be unique)\n file: treat each file like a stand-alone operation\n\n By default, this flag is set to:\n - \"relay\" if \"__generated__\" in the path\n - otherwise, \"project\"\n --header=<header>:<value> Add a header to the outgoing HTTP request\n (may be repeated)\n --changeset-version=<version> Populates `context[:changeset_version]` for this sync (for the GraphQL-Enterprise \"Changesets\" feature)\n --add-typename Automatically adds the \"__typename\" field to your queries\n --quiet Suppress status logging\n --verbose Print debug output\n --help Print this message\n");
}

@@ -38,2 +38,3 @@ else {

apolloAndroidOperationOutput: argv["apollo-android-operation-output"],
apolloPersistedQueryManifest: argv["apollo-persisted-query-manifest"],
url: argv.url,

@@ -40,0 +41,0 @@ client: argv.client,

{
"name": "graphql-ruby-client",
"version": "1.12.1",
"version": "1.13.0",
"description": "JavaScript client for graphql-ruby",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -34,3 +34,2 @@ "use strict";

}
channel.perform('send', channelParams);
channel.perform("execute", channelParams);

@@ -37,0 +36,0 @@ },

@@ -7,2 +7,3 @@ import { ClientOperation } from "./generateClient";

apolloCodegenJsonOutput?: string;
apolloPersistedQueryManifest?: string;
secret?: string;

@@ -32,2 +33,3 @@ url?: string;

* @param {String} options.apolloCodegenJsonOutput - A path to a `.json` file from `apollo client:codegen ... --type json`
* @param {String} options.apolloPersistedQueryManifest - A path to a `.json` file from `generate-persisted-query-manifest`
* @param {String} options.secret - HMAC-SHA256 key which must match the server secret (default is no encryption)

@@ -34,0 +36,0 @@ * @param {String} options.url - Target URL for sending prepared queries. If omitted, then an outfile is generated without sending operations to the server.

@@ -11,2 +11,3 @@ "use strict";

var removeClientFields_1 = require("./removeClientFields");
var preparePersistedQueryList_1 = __importDefault(require("./preparePersistedQueryList"));
/**

@@ -20,2 +21,3 @@ * Find `.graphql` files in `path`,

* @param {String} options.apolloCodegenJsonOutput - A path to a `.json` file from `apollo client:codegen ... --type json`
* @param {String} options.apolloPersistedQueryManifest - A path to a `.json` file from `generate-persisted-query-manifest`
* @param {String} options.secret - HMAC-SHA256 key which must match the server secret (default is no encryption)

@@ -98,2 +100,7 @@ * @param {String} options.url - Target URL for sending prepared queries. If omitted, then an outfile is generated without sending operations to the server.

}
else if (options.apolloPersistedQueryManifest) {
var payload = {
operations: (0, preparePersistedQueryList_1.default)(options.apolloPersistedQueryManifest)
};
}
else {

@@ -114,3 +121,3 @@ var payload = (0, generateClient_1.gatherOperations)({

}
else if (options.relayPersistedOutput || options.apolloAndroidOperationOutput || options.apolloCodegenJsonOutput) {
else if (options.relayPersistedOutput || options.apolloAndroidOperationOutput || options.apolloCodegenJsonOutput || options.apolloPersistedQueryManifest) {
// These artifacts have embedded IDs in its generated files,

@@ -117,0 +124,0 @@ // no need to generate an outfile.

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