addons-scanner-utils 14.0.0 → 15.0.0

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.
@@ -41,7 +41,6 @@ export type FunctionConfig = {
41
41
  * via `apiKeyEnvVarName`)
42
42
  *
43
43
  * **Authentication:**
44
- * - Bearer token: `Authorization: Bearer <api_key>` (deprecated)
45
44
  * - HMAC-SHA256: `Authorization: HMAC-SHA256 <digest>` (digest of request
46
45
  * body)
47
46
  */
@@ -50,7 +50,6 @@ const error_1 = require("./error");
50
50
  * via `apiKeyEnvVarName`)
51
51
  *
52
52
  * **Authentication:**
53
- * - Bearer token: `Authorization: Bearer <api_key>` (deprecated)
54
53
  * - HMAC-SHA256: `Authorization: HMAC-SHA256 <digest>` (digest of request
55
54
  * body)
56
55
  */
@@ -115,15 +114,6 @@ const createExpressApp = ({ _console = console, _process = process, apiKeyEnvVar
115
114
  return;
116
115
  }
117
116
  }
118
- else if (authorization.startsWith('Bearer ')) {
119
- if (!(0, safe_compare_1.default)(`Bearer ${apiKey}`, authorization)) {
120
- next((0, error_1.createAppError)({
121
- message: 'authentication has failed',
122
- status: 401,
123
- }));
124
- return;
125
- }
126
- }
127
117
  else {
128
118
  next((0, error_1.createAppError)({
129
119
  message: 'unsupported authorization scheme',
package/package.json CHANGED
@@ -1,9 +1,35 @@
1
1
  {
2
2
  "name": "addons-scanner-utils",
3
- "version": "14.0.0",
3
+ "version": "15.0.0",
4
4
  "description": "Various addons related helpers to build CLIs.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ },
12
+ "./functions": {
13
+ "types": "./dist/functions/index.d.ts",
14
+ "default": "./dist/functions/index.js"
15
+ },
16
+ "./functions/*": {
17
+ "types": "./dist/functions/*.d.ts",
18
+ "default": "./dist/functions/*.js"
19
+ },
20
+ "./io": {
21
+ "types": "./dist/io/index.d.ts",
22
+ "default": "./dist/io/index.js"
23
+ },
24
+ "./io/*": {
25
+ "types": "./dist/io/*.d.ts",
26
+ "default": "./dist/io/*.js"
27
+ },
28
+ "./*": {
29
+ "types": "./dist/*.d.ts",
30
+ "default": "./dist/*.js"
31
+ }
32
+ },
7
33
  "files": [
8
34
  "dist/**/*"
9
35
  ],