@adobe/helix-google-support 2.0.68 → 2.0.70
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 +14 -0
- package/package.json +4 -4
- package/src/GoogleClient.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [2.0.70](https://github.com/adobe/helix-google-support/compare/v2.0.69...v2.0.70) (2023-04-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency @adobe/helix-onedrive-support to v9.1.27 ([0d1d11c](https://github.com/adobe/helix-google-support/commit/0d1d11c34110b093daa83eaa346fc21369ce68e9))
|
|
7
|
+
|
|
8
|
+
## [2.0.69](https://github.com/adobe/helix-google-support/compare/v2.0.68...v2.0.69) (2023-04-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external major (major) ([#166](https://github.com/adobe/helix-google-support/issues/166)) ([8f26faa](https://github.com/adobe/helix-google-support/commit/8f26faa2c5ab2a23c1511fb643500814589745a1))
|
|
14
|
+
|
|
1
15
|
## [2.0.68](https://github.com/adobe/helix-google-support/compare/v2.0.67...v2.0.68) (2023-04-08)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-google-support",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.70",
|
|
4
4
|
"description": "Helix Google Support",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"reporter-options": "configFile=.mocha-multi.json"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@adobe/helix-onedrive-support": "9.1.
|
|
34
|
-
"googleapis": "
|
|
35
|
-
"lru-cache": "
|
|
33
|
+
"@adobe/helix-onedrive-support": "9.1.27",
|
|
34
|
+
"googleapis": "115.0.0",
|
|
35
|
+
"lru-cache": "9.0.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@adobe/eslint-config-helix": "2.0.2",
|
package/src/GoogleClient.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
-
import
|
|
12
|
+
import { LRUCache } from 'lru-cache';
|
|
13
13
|
import { google } from 'googleapis';
|
|
14
14
|
import {
|
|
15
15
|
editDistance, sanitizeName, splitByExtension,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import { StatusCodeError } from '@adobe/helix-onedrive-support';
|
|
18
18
|
import { GoogleTokenCache } from './GoogleTokenCache.js';
|
|
19
19
|
|
|
20
|
-
let lru = new
|
|
20
|
+
let lru = new LRUCache({ max: 1000, ttl: 60000 });
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @typedef DriveItemInfo {
|
|
@@ -71,7 +71,7 @@ export class GoogleClient {
|
|
|
71
71
|
* @param opts
|
|
72
72
|
*/
|
|
73
73
|
static setItemCacheOptions(opts) {
|
|
74
|
-
lru = new
|
|
74
|
+
lru = new LRUCache(opts);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/**
|