@accounts/graphql-client
Advanced tools
Comparing version 0.25.0 to 0.25.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var graphql_1 = require("graphql"); | ||
var language_1 = require("graphql/language"); | ||
var graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag")); | ||
var add_email_mutation_1 = require("./graphql/add-email.mutation"); | ||
var authenticate_with_service_mutation_1 = require("./graphql/authenticate-with-service.mutation"); | ||
@@ -141,3 +142,3 @@ var change_password_mutation_1 = require("./graphql/change-password.mutation"); | ||
return tslib_1.__generator(this, function (_a) { | ||
return [2 /*return*/, this.mutate(change_password_mutation_1.changePasswordMutation, 'addEmail', { newEmail: newEmail })]; | ||
return [2 /*return*/, this.mutate(add_email_mutation_1.addEmailMutation, 'addEmail', { newEmail: newEmail })]; | ||
}); | ||
@@ -222,3 +223,3 @@ }); | ||
if (errors) { | ||
throw new GraphQLErrorList_1.GraphQLErrorList(errors, "in mutation: \r\n " + graphql_1.print(mutation)); | ||
throw new GraphQLErrorList_1.GraphQLErrorList(errors, "in mutation: \r\n " + language_1.print(mutation)); | ||
} | ||
@@ -254,3 +255,3 @@ return [2 /*return*/, data[resultField]]; | ||
if (errors) { | ||
throw new GraphQLErrorList_1.GraphQLErrorList(errors, "in query: \r\n " + graphql_1.print(query)); | ||
throw new GraphQLErrorList_1.GraphQLErrorList(errors, "in query: \r\n " + language_1.print(query)); | ||
} | ||
@@ -257,0 +258,0 @@ return [2 /*return*/, data[resultField]]; |
@@ -1,2 +0,2 @@ | ||
import { GraphQLError } from 'graphql'; | ||
import { GraphQLError } from 'graphql/error/GraphQLError'; | ||
export declare class GraphQLErrorList extends Error { | ||
@@ -3,0 +3,0 @@ errors: readonly GraphQLError[]; |
{ | ||
"name": "@accounts/graphql-client", | ||
"version": "0.25.0", | ||
"version": "0.25.1", | ||
"description": "GraphQL client transport for accounts", | ||
@@ -33,8 +33,11 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@accounts/client": "^0.25.0", | ||
"@accounts/types": "^0.25.0", | ||
"@accounts/client": "^0.25.1", | ||
"@accounts/types": "^0.25.1", | ||
"graphql-tag": "^2.10.0", | ||
"tslib": "1.10.0" | ||
}, | ||
"gitHead": "0d481c1243a59193bae525c1b6e7b46c34281e67" | ||
"peerDependencies": { | ||
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0" | ||
}, | ||
"gitHead": "18c02edee2a382236923b4b6c221362dba3c7bb9" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40548
60
507
5
+ Addedgraphql@14.7.0(transitive)
+ Addediterall@1.3.0(transitive)
- Removedgraphql@16.9.0(transitive)
Updated@accounts/client@^0.25.1
Updated@accounts/types@^0.25.1