From 1e85cf7926bb3f625553cbf1512edf03da151de8 Mon Sep 17 00:00:00 2001 From: chris48s <chris48s@users.noreply.github.com> Date: Fri, 23 Jun 2023 19:47:40 +0100 Subject: [PATCH] upgrade to graphql 16 (#9290) * upgrade to graphql 16 * update base graphql tests --- core/base-service/base-graphql.spec.js | 4 ++-- package-lock.json | 16 ++++++++-------- package.json | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/core/base-service/base-graphql.spec.js b/core/base-service/base-graphql.spec.js index 99b5a55824..7cfbef8da2 100644 --- a/core/base-service/base-graphql.spec.js +++ b/core/base-service/base-graphql.spec.js @@ -48,7 +48,7 @@ describe('BaseGraphqlService', function () { expect(requestFetcher).to.have.been.calledOnceWith( 'http://example.com/graphql', { - body: '{"query":"{\\n requiredString\\n}\\n","variables":{}}', + body: '{"query":"{\\n requiredString\\n}","variables":{}}', headers: { Accept: 'application/json' }, method: 'POST', } @@ -80,7 +80,7 @@ describe('BaseGraphqlService', function () { expect(requestFetcher).to.have.been.calledOnceWith( 'http://example.com/graphql', { - body: '{"query":"{\\n requiredString\\n}\\n","variables":{}}', + body: '{"query":"{\\n requiredString\\n}","variables":{}}', headers: { Accept: 'application/json' }, method: 'POST', searchParams: { queryParam: 123 }, diff --git a/package-lock.json b/package-lock.json index 0dab8ec5d6..de8ec55404 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "glob": "^10.2.7", "global-agent": "^3.0.0", "got": "^13.0.0", - "graphql": "^15.6.1", + "graphql": "16.6.0", "graphql-tag": "^2.12.6", "joi": "17.9.2", "joi-extension-semver": "5.0.0", @@ -13322,11 +13322,11 @@ } }, "node_modules/graphql": { - "version": "15.8.0", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.8.0.tgz", - "integrity": "sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw==", + "version": "16.6.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.6.0.tgz", + "integrity": "sha512-KPIBPDlW7NxrbT/eh4qPXz5FiFdL5UbaA0XUNz2Rp3Z3hqBSkbj0GVjwFDztsWVauZUWsbKHgMg++sk8UX0bkw==", "engines": { - "node": ">= 10.x" + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" } }, "node_modules/graphql-tag": { @@ -37889,9 +37889,9 @@ } }, "graphql": { - "version": "15.8.0", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-15.8.0.tgz", - "integrity": "sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw==" + "version": "16.6.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.6.0.tgz", + "integrity": "sha512-KPIBPDlW7NxrbT/eh4qPXz5FiFdL5UbaA0XUNz2Rp3Z3hqBSkbj0GVjwFDztsWVauZUWsbKHgMg++sk8UX0bkw==" }, "graphql-tag": { "version": "2.12.6", diff --git a/package.json b/package.json index ee14060047..d8a53cc308 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "glob": "^10.2.7", "global-agent": "^3.0.0", "got": "^13.0.0", - "graphql": "^15.6.1", + "graphql": "16.6.0", "graphql-tag": "^2.12.6", "joi": "17.9.2", "joi-extension-semver": "5.0.0", -- GitLab