@adobe/helix-onedrive-support 6.1.2 → 6.1.5

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.
@@ -11,7 +11,7 @@ jobs:
11
11
  steps:
12
12
  - uses: actions/checkout@v2
13
13
  - name: Use Node.js 14.x
14
- uses: actions/setup-node@v2
14
+ uses: actions/setup-node@v3
15
15
  with:
16
16
  node-version: '14.x'
17
17
  - run: npm install
package/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## [6.1.5](https://github.com/adobe/helix-onedrive-support/compare/v6.1.4...v6.1.5) (2022-02-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency @adobe/helix-fetch to v3.0.6 ([#245](https://github.com/adobe/helix-onedrive-support/issues/245)) ([3747762](https://github.com/adobe/helix-onedrive-support/commit/3747762bcc9ed235559703a59862028b1910b07d))
7
+
8
+ ## [6.1.4](https://github.com/adobe/helix-onedrive-support/compare/v6.1.3...v6.1.4) (2022-02-21)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * turn 403 in resolve into 404 ([#242](https://github.com/adobe/helix-onedrive-support/issues/242)) ([0fb36c3](https://github.com/adobe/helix-onedrive-support/commit/0fb36c35888f5c66e8841e5d6674ff2d36f87c81))
14
+
15
+ ## [6.1.3](https://github.com/adobe/helix-onedrive-support/compare/v6.1.2...v6.1.3) (2022-02-14)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **deps:** update dependency @adobe/helix-fetch to v3.0.5 ([c260921](https://github.com/adobe/helix-onedrive-support/commit/c260921ccbd51847e64ad0ea15f353efde614311))
21
+
1
22
  ## [6.1.2](https://github.com/adobe/helix-onedrive-support/compare/v6.1.1...v6.1.2) (2022-02-04)
2
23
 
3
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-onedrive-support",
3
- "version": "6.1.2",
3
+ "version": "6.1.5",
4
4
  "description": "Helix OneDrive Support",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -23,27 +23,27 @@
23
23
  },
24
24
  "homepage": "https://github.com/adobe/helix-onedrive-support#readme",
25
25
  "dependencies": {
26
- "@adobe/helix-fetch": "3.0.3",
26
+ "@adobe/helix-fetch": "3.0.6",
27
27
  "adal-node": "https://github.com/adobe-rnd/azure-activedirectory-library-for-nodejs.git#adobe"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@adobe/eslint-config-helix": "1.3.2",
31
31
  "@semantic-release/changelog": "6.0.1",
32
32
  "@semantic-release/git": "10.0.1",
33
- "ajv": "8.9.0",
33
+ "ajv": "8.10.0",
34
34
  "codecov": "3.8.3",
35
35
  "commitizen": "4.2.4",
36
36
  "cz-conventional-changelog": "3.3.0",
37
- "dotenv": "15.0.0",
38
- "eslint": "8.8.0",
37
+ "dotenv": "16.0.0",
38
+ "eslint": "8.10.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.2",
44
- "mocha": "9.2.0",
43
+ "lint-staged": "12.3.4",
44
+ "mocha": "9.2.1",
45
45
  "mocha-multi-reporters": "1.5.1",
46
- "nock": "13.2.2",
46
+ "nock": "13.2.4",
47
47
  "nyc": "15.1.0",
48
48
  "semantic-release": "19.0.2"
49
49
  },
package/src/OneDrive.js CHANGED
@@ -353,8 +353,8 @@ class OneDrive extends EventEmitter {
353
353
  try {
354
354
  return await this.doFetch(`/shares/${link}/driveItem`);
355
355
  } catch (e) {
356
- if (e.statusCode === 401) {
357
- // an inexistant share returns 401, we prefer to just say it wasn't found
356
+ if (e.statusCode === 401 || e.statusCode === 403) {
357
+ // an inexistent share returns either 401 or 403, we prefer to just say it wasn't found
358
358
  throw new StatusCodeError(e.message, 404, e.details);
359
359
  }
360
360
  throw e;