@adobe/helix-google-support 1.4.0 → 1.4.3

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## [1.4.3](https://github.com/adobe/helix-google-support/compare/v1.4.2...v1.4.3) (2022-05-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency @adobe/helix-onedrive-support to v8.0.2 ([#22](https://github.com/adobe/helix-google-support/issues/22)) ([6ade40f](https://github.com/adobe/helix-google-support/commit/6ade40f5ae3af5a971e8c7dab5ca6429a8b03d56))
7
+
8
+ ## [1.4.2](https://github.com/adobe/helix-google-support/compare/v1.4.1...v1.4.2) (2022-05-05)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency @adobe/helix-onedrive-support to v8.0.1 ([4e43fcb](https://github.com/adobe/helix-google-support/commit/4e43fcbced273a4bb68463ec5579a1442bdc535a))
14
+
15
+ ## [1.4.1](https://github.com/adobe/helix-google-support/compare/v1.4.0...v1.4.1) (2022-05-04)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * save refresh token ([#19](https://github.com/adobe/helix-google-support/issues/19)) ([f3fea7b](https://github.com/adobe/helix-google-support/commit/f3fea7ba0d868fd96288579463c842410b956dd5))
21
+
1
22
  # [1.4.0](https://github.com/adobe/helix-google-support/compare/v1.3.4...v1.4.0) (2022-05-04)
2
23
 
3
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-google-support",
3
- "version": "1.4.0",
3
+ "version": "1.4.3",
4
4
  "description": "Helix Google Support",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -31,7 +31,7 @@
31
31
  "reporter-options": "configFile=.mocha-multi.json"
32
32
  },
33
33
  "dependencies": {
34
- "@adobe/helix-onedrive-support": "8.0.0",
34
+ "@adobe/helix-onedrive-support": "8.0.2",
35
35
  "googleapis": "100.0.0",
36
36
  "lru-cache": "7.9.0"
37
37
  },
@@ -42,10 +42,10 @@
42
42
  "@semantic-release/npm": "9.0.1",
43
43
  "c8": "7.11.2",
44
44
  "codecov": "3.8.3",
45
- "eslint": "8.14.0",
45
+ "eslint": "8.15.0",
46
46
  "eslint-plugin-header": "3.1.1",
47
47
  "eslint-plugin-import": "2.26.0",
48
- "husky": "7.0.4",
48
+ "husky": "8.0.1",
49
49
  "junit-report-builder": "3.0.0",
50
50
  "lint-staged": "12.4.1",
51
51
  "mocha": "10.0.0",
@@ -107,7 +107,10 @@ export class GoogleClient {
107
107
  const originalRefreshTokenNoCache = this.auth.refreshTokenNoCache.bind(this.auth);
108
108
  this.auth.refreshTokenNoCache = async (...args) => {
109
109
  const ret = await originalRefreshTokenNoCache(...args);
110
- await this.cache.store(ret.tokens);
110
+ await this.cache.store({
111
+ refresh_token: this.auth.credentials.refresh_token,
112
+ ...ret.tokens,
113
+ });
111
114
  return ret;
112
115
  };
113
116
  }