@adobe/helix-onedrive-support 6.2.0 → 6.2.1

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.
@@ -9,7 +9,7 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  if: "!contains(github.event.head_commit.message, '[skip ci]')"
11
11
  steps:
12
- - uses: actions/checkout@v2
12
+ - uses: actions/checkout@v3
13
13
  - name: Use Node.js 14.x
14
14
  uses: actions/setup-node@v3
15
15
  with:
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [6.2.1](https://github.com/adobe/helix-onedrive-support/compare/v6.2.0...v6.2.1) (2022-03-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * use http1 for ms access ([#251](https://github.com/adobe/helix-onedrive-support/issues/251)) ([c91a629](https://github.com/adobe/helix-onedrive-support/commit/c91a629fa8c18c0dcdb2a0d21a225de940db05ea)), closes [#250](https://github.com/adobe/helix-onedrive-support/issues/250)
7
+
1
8
  # [6.2.0](https://github.com/adobe/helix-onedrive-support/compare/v6.1.5...v6.2.0) (2022-03-01)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-onedrive-support",
3
- "version": "6.2.0",
3
+ "version": "6.2.1",
4
4
  "description": "Helix OneDrive Support",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -35,13 +35,13 @@
35
35
  "commitizen": "4.2.4",
36
36
  "cz-conventional-changelog": "3.3.0",
37
37
  "dotenv": "16.0.0",
38
- "eslint": "8.10.0",
38
+ "eslint": "8.11.0",
39
39
  "eslint-plugin-header": "3.1.1",
40
40
  "eslint-plugin-import": "2.25.4",
41
41
  "jsdoc-to-markdown": "7.1.1",
42
42
  "junit-report-builder": "3.0.0",
43
- "lint-staged": "12.3.4",
44
- "mocha": "9.2.1",
43
+ "lint-staged": "12.3.5",
44
+ "mocha": "9.2.2",
45
45
  "mocha-multi-reporters": "1.5.1",
46
46
  "nock": "13.2.4",
47
47
  "nyc": "15.1.0",
package/src/OneDrive.js CHANGED
@@ -14,7 +14,7 @@
14
14
  const EventEmitter = require('events');
15
15
  const { promisify } = require('util');
16
16
  const { AuthenticationContext, MemoryCache } = require('adal-node');
17
- const fetchAPI = require('@adobe/helix-fetch');
17
+ const { fetch, reset } = require('@adobe/helix-fetch').keepAliveNoCache({ userAgent: 'helix-fetch' });
18
18
 
19
19
  const Workbook = require('./Workbook.js');
20
20
  const StatusCodeError = require('./StatusCodeError.js');
@@ -22,14 +22,6 @@ const { driveItemFromURL, driveItemToURL } = require('./utils.js');
22
22
  const { splitByExtension, sanitize, editDistance } = require('./fuzzy-helper.js');
23
23
  const SharePointSite = require('./SharePointSite.js');
24
24
 
25
- const { fetch, reset } = process.env.HELIX_FETCH_FORCE_HTTP1
26
- ? fetchAPI.context({
27
- alpnProtocols: [fetchAPI.ALPN_HTTP1_1],
28
- userAgent: 'helix-fetch', // static user agent for test recordings
29
- })
30
- /* istanbul ignore next */
31
- : fetchAPI;
32
-
33
25
  const AZ_AUTHORITY_HOST_URL = 'https://login.windows.net';
34
26
  const AZ_DEFAULT_RESOURCE = 'https://graph.microsoft.com'; // '00000002-0000-0000-c000-000000000000'; ??
35
27
  const AZ_DEFAULT_TENANT = 'common';
@@ -10,18 +10,9 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- const fetchAPI = require('@adobe/helix-fetch');
13
+ const { fetch } = require('@adobe/helix-fetch').keepAliveNoCache({ userAgent: 'helix-fetch' });
14
14
  const StatusCodeError = require('./StatusCodeError.js');
15
15
 
16
- /* istanbul ignore next */
17
- const { fetch } = process.env.HELIX_FETCH_FORCE_HTTP1
18
- ? fetchAPI.context({
19
- alpnProtocols: [fetchAPI.ALPN_HTTP1_1],
20
- userAgent: 'helix-fetch', // static user agent for test recordings
21
- })
22
- /* istanbul ignore next */
23
- : fetchAPI;
24
-
25
16
  /**
26
17
  * Helper class accessing folders and files using the SharePoint V1 API.
27
18
  */