@thirdweb-dev/service-utils 0.4.2-nightly-cb1c9937-20230808211645 → 0.4.2-nightly-73462ef1-20230809182033
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/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.cjs.dev.js +2 -2
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.cjs.prod.js +2 -2
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.esm.js +2 -2
- package/dist/{index-bb16a39e.cjs.prod.js → index-2a87d4b6.cjs.dev.js} +1 -1
- package/dist/{index-e83fdf2d.cjs.dev.js → index-3144e58f.cjs.prod.js} +1 -1
- package/dist/{index-60edcd2b.esm.js → index-70ede577.esm.js} +1 -1
- package/node/dist/thirdweb-dev-service-utils-node.cjs.dev.js +2 -2
- package/node/dist/thirdweb-dev-service-utils-node.cjs.prod.js +2 -2
- package/node/dist/thirdweb-dev-service-utils-node.esm.js +2 -2
- package/package.json +1 -1
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var index = require('../../dist/index-
|
5
|
+
var index = require('../../dist/index-2a87d4b6.cjs.dev.js');
|
6
6
|
var services = require('../../dist/services-a3f36057.cjs.dev.js');
|
7
7
|
var aws4fetch = require('aws4fetch');
|
8
8
|
var zod = require('zod');
|
@@ -173,7 +173,7 @@ async function extractAuthorizationData(authInput) {
|
|
173
173
|
const authHeader = headers.get("authorization");
|
174
174
|
if (authHeader) {
|
175
175
|
const [type, token] = authHeader.split(" ");
|
176
|
-
if (type.toLowerCase() === "bearer") {
|
176
|
+
if (type.toLowerCase() === "bearer" && !!token) {
|
177
177
|
jwt = token;
|
178
178
|
}
|
179
179
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var index = require('../../dist/index-
|
5
|
+
var index = require('../../dist/index-3144e58f.cjs.prod.js');
|
6
6
|
var services = require('../../dist/services-9e185105.cjs.prod.js');
|
7
7
|
var aws4fetch = require('aws4fetch');
|
8
8
|
var zod = require('zod');
|
@@ -173,7 +173,7 @@ async function extractAuthorizationData(authInput) {
|
|
173
173
|
const authHeader = headers.get("authorization");
|
174
174
|
if (authHeader) {
|
175
175
|
const [type, token] = authHeader.split(" ");
|
176
|
-
if (type.toLowerCase() === "bearer") {
|
176
|
+
if (type.toLowerCase() === "bearer" && !!token) {
|
177
177
|
jwt = token;
|
178
178
|
}
|
179
179
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a as authorize } from '../../dist/index-
|
1
|
+
import { a as authorize } from '../../dist/index-70ede577.esm.js';
|
2
2
|
export { b as SERVICES, S as SERVICE_DEFINITIONS, a as SERVICE_NAMES, g as getServiceByName } from '../../dist/services-86283509.esm.js';
|
3
3
|
import { AwsClient } from 'aws4fetch';
|
4
4
|
import { z } from 'zod';
|
@@ -169,7 +169,7 @@ async function extractAuthorizationData(authInput) {
|
|
169
169
|
const authHeader = headers.get("authorization");
|
170
170
|
if (authHeader) {
|
171
171
|
const [type, token] = authHeader.split(" ");
|
172
|
-
if (type.toLowerCase() === "bearer") {
|
172
|
+
if (type.toLowerCase() === "bearer" && !!token) {
|
173
173
|
jwt = token;
|
174
174
|
}
|
175
175
|
}
|
@@ -273,7 +273,7 @@ async function authorize(authData, serviceConfig, cacheOptions) {
|
|
273
273
|
authorized: false,
|
274
274
|
status: 500,
|
275
275
|
errorMessage: "Failed to get account information.",
|
276
|
-
errorCode: "
|
276
|
+
errorCode: "FAILED_TO_LOAD_ACCOUNT"
|
277
277
|
};
|
278
278
|
}
|
279
279
|
}
|
@@ -273,7 +273,7 @@ async function authorize(authData, serviceConfig, cacheOptions) {
|
|
273
273
|
authorized: false,
|
274
274
|
status: 500,
|
275
275
|
errorMessage: "Failed to get account information.",
|
276
|
-
errorCode: "
|
276
|
+
errorCode: "FAILED_TO_LOAD_ACCOUNT"
|
277
277
|
};
|
278
278
|
}
|
279
279
|
}
|
@@ -271,7 +271,7 @@ async function authorize(authData, serviceConfig, cacheOptions) {
|
|
271
271
|
authorized: false,
|
272
272
|
status: 500,
|
273
273
|
errorMessage: "Failed to get account information.",
|
274
|
-
errorCode: "
|
274
|
+
errorCode: "FAILED_TO_LOAD_ACCOUNT"
|
275
275
|
};
|
276
276
|
}
|
277
277
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var node_crypto = require('node:crypto');
|
6
|
-
var index = require('../../dist/index-
|
6
|
+
var index = require('../../dist/index-2a87d4b6.cjs.dev.js');
|
7
7
|
var services = require('../../dist/services-a3f36057.cjs.dev.js');
|
8
8
|
|
9
9
|
async function authorizeNode(authInput, serviceConfig) {
|
@@ -96,7 +96,7 @@ function extractAuthorizationData(authInput) {
|
|
96
96
|
const authorizationHeader = getHeader(headers, "authorization");
|
97
97
|
if (authorizationHeader) {
|
98
98
|
const [type, token] = authorizationHeader.split(" ");
|
99
|
-
if (type.toLowerCase() === "bearer") {
|
99
|
+
if (type.toLowerCase() === "bearer" && !!token) {
|
100
100
|
jwt = token;
|
101
101
|
}
|
102
102
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var node_crypto = require('node:crypto');
|
6
|
-
var index = require('../../dist/index-
|
6
|
+
var index = require('../../dist/index-3144e58f.cjs.prod.js');
|
7
7
|
var services = require('../../dist/services-9e185105.cjs.prod.js');
|
8
8
|
|
9
9
|
async function authorizeNode(authInput, serviceConfig) {
|
@@ -96,7 +96,7 @@ function extractAuthorizationData(authInput) {
|
|
96
96
|
const authorizationHeader = getHeader(headers, "authorization");
|
97
97
|
if (authorizationHeader) {
|
98
98
|
const [type, token] = authorizationHeader.split(" ");
|
99
|
-
if (type.toLowerCase() === "bearer") {
|
99
|
+
if (type.toLowerCase() === "bearer" && !!token) {
|
100
100
|
jwt = token;
|
101
101
|
}
|
102
102
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createHash } from 'node:crypto';
|
2
|
-
import { a as authorize } from '../../dist/index-
|
2
|
+
import { a as authorize } from '../../dist/index-70ede577.esm.js';
|
3
3
|
export { b as SERVICES, S as SERVICE_DEFINITIONS, a as SERVICE_NAMES, g as getServiceByName } from '../../dist/services-86283509.esm.js';
|
4
4
|
|
5
5
|
async function authorizeNode(authInput, serviceConfig) {
|
@@ -92,7 +92,7 @@ function extractAuthorizationData(authInput) {
|
|
92
92
|
const authorizationHeader = getHeader(headers, "authorization");
|
93
93
|
if (authorizationHeader) {
|
94
94
|
const [type, token] = authorizationHeader.split(" ");
|
95
|
-
if (type.toLowerCase() === "bearer") {
|
95
|
+
if (type.toLowerCase() === "bearer" && !!token) {
|
96
96
|
jwt = token;
|
97
97
|
}
|
98
98
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@thirdweb-dev/service-utils",
|
3
|
-
"version": "0.4.2-nightly-
|
3
|
+
"version": "0.4.2-nightly-73462ef1-20230809182033",
|
4
4
|
"main": "dist/thirdweb-dev-service-utils.cjs.js",
|
5
5
|
"module": "dist/thirdweb-dev-service-utils.esm.js",
|
6
6
|
"exports": {
|