@vendure/testing 2.1.7 → 2.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,22 +12,22 @@ const graphql_tag_1 = __importDefault(require("graphql-tag"));
12
12
  const node_fetch_1 = __importDefault(require("node-fetch"));
13
13
  const querystring_1 = require("querystring");
14
14
  const create_upload_post_data_1 = require("./utils/create-upload-post-data");
15
- const LOGIN = (0, graphql_tag_1.default) `
16
- mutation ($username: String!, $password: String!) {
17
- login(username: $username, password: $password) {
18
- ... on CurrentUser {
19
- id
20
- identifier
21
- channels {
22
- token
23
- }
24
- }
25
- ... on ErrorResult {
26
- errorCode
27
- message
28
- }
29
- }
30
- }
15
+ const LOGIN = (0, graphql_tag_1.default) `
16
+ mutation ($username: String!, $password: String!) {
17
+ login(username: $username, password: $password) {
18
+ ... on CurrentUser {
19
+ id
20
+ identifier
21
+ channels {
22
+ token
23
+ }
24
+ }
25
+ ... on ErrorResult {
26
+ errorCode
27
+ message
28
+ }
29
+ }
30
+ }
31
31
  `;
32
32
  /* eslint-disable no-console */
33
33
  /**
@@ -116,12 +116,12 @@ class SimpleGraphQLClient {
116
116
  var _a;
117
117
  // first log out as the current user
118
118
  if (this.authToken) {
119
- await this.query((0, graphql_tag_1.default) `
120
- mutation {
121
- logout {
122
- success
123
- }
124
- }
119
+ await this.query((0, graphql_tag_1.default) `
120
+ mutation {
121
+ logout {
122
+ success
123
+ }
124
+ }
125
125
  `);
126
126
  }
127
127
  const result = await this.query(LOGIN, { username, password });
@@ -144,12 +144,12 @@ class SimpleGraphQLClient {
144
144
  * Logs out so that the client is then treated as an anonymous user.
145
145
  */
146
146
  async asAnonymousUser() {
147
- await this.query((0, graphql_tag_1.default) `
148
- mutation {
149
- logout {
150
- success
151
- }
152
- }
147
+ await this.query((0, graphql_tag_1.default) `
148
+ mutation {
149
+ logout {
150
+ success
151
+ }
152
+ }
153
153
  `);
154
154
  }
155
155
  async makeGraphQlRequest(query, variables, queryParams) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendure/testing",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "End-to-end testing tools for Vendure projects",
5
5
  "keywords": [
6
6
  "vendure",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@graphql-typed-document-node/core": "^3.2.0",
40
40
  "@types/node-fetch": "^2.6.4",
41
- "@vendure/common": "^2.1.7",
41
+ "@vendure/common": "^2.1.8",
42
42
  "faker": "^4.1.0",
43
43
  "form-data": "^4.0.0",
44
44
  "graphql": "16.8.0",
@@ -49,11 +49,11 @@
49
49
  "devDependencies": {
50
50
  "@types/mysql": "^2.15.15",
51
51
  "@types/pg": "^7.14.5",
52
- "@vendure/core": "^2.1.7",
52
+ "@vendure/core": "^2.1.8",
53
53
  "mysql": "^2.18.1",
54
54
  "pg": "^8.4.0",
55
55
  "rimraf": "^3.0.0",
56
56
  "typescript": "4.9.5"
57
57
  },
58
- "gitHead": "7951ed0d3604a1616dd03c118504cccc108c831d"
58
+ "gitHead": "cf78e81421732eb46919706235937d4bb135160a"
59
59
  }