@thirdweb-dev/service-utils 0.0.0-dev-405f532-20230802043001 → 0.0.0-dev-48fe851-20230802074257
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 +1 -1
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.cjs.prod.js +1 -1
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.esm.js +1 -1
- package/dist/declarations/src/core/authorize/client.d.ts.map +1 -1
- package/node/dist/thirdweb-dev-service-utils-node.cjs.dev.js +1 -1
- package/node/dist/thirdweb-dev-service-utils-node.cjs.prod.js +1 -1
- package/node/dist/thirdweb-dev-service-utils-node.esm.js +1 -1
- package/package.json +1 -1
- package/dist/{index-41ff3aa6.esm.js → index-3a529ebb.esm.js} +5 -5
- package/dist/{index-0c04091b.cjs.prod.js → index-8a9496b0.cjs.dev.js} +5 -5
- package/dist/{index-f62d7e54.cjs.dev.js → index-92289057.cjs.prod.js} +5 -5
@@ -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-8a9496b0.cjs.dev.js');
|
6
6
|
var services = require('../../dist/services-a3f36057.cjs.dev.js');
|
7
7
|
|
8
8
|
const DEFAULT_CACHE_TTL_SECONDS = 60;
|
@@ -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-92289057.cjs.prod.js');
|
6
6
|
var services = require('../../dist/services-9e185105.cjs.prod.js');
|
7
7
|
|
8
8
|
const DEFAULT_CACHE_TTL_SECONDS = 60;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a as authorize } from '../../dist/index-
|
1
|
+
import { a as authorize } from '../../dist/index-3a529ebb.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
|
|
4
4
|
const DEFAULT_CACHE_TTL_SECONDS = 60;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"../../../../../src/core/authorize","sources":["client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,0BAA0B,GAAG;IACvC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,wBAAgB,eAAe,CAC7B,WAAW,EAAE,0BAA0B,EACvC,UAAU,EAAE,cAAc,GACzB,mBAAmB,
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"../../../../../src/core/authorize","sources":["client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,0BAA0B,GAAG;IACvC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,wBAAgB,eAAe,CAC7B,WAAW,EAAE,0BAA0B,EACvC,UAAU,EAAE,cAAc,GACzB,mBAAmB,CAuGrB"}
|
@@ -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-8a9496b0.cjs.dev.js');
|
7
7
|
var services = require('../../dist/services-a3f36057.cjs.dev.js');
|
8
8
|
|
9
9
|
async function authorizeNode(authInput, serviceConfig) {
|
@@ -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-92289057.cjs.prod.js');
|
7
7
|
var services = require('../../dist/services-9e185105.cjs.prod.js');
|
8
8
|
|
9
9
|
async function authorizeNode(authInput, serviceConfig) {
|
@@ -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-3a529ebb.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) {
|
package/package.json
CHANGED
@@ -59,6 +59,11 @@ function authorizeClient(authOptions, apiKeyMeta) {
|
|
59
59
|
}
|
60
60
|
};
|
61
61
|
|
62
|
+
// check for public restrictions
|
63
|
+
if (domains.includes("*")) {
|
64
|
+
return authResult;
|
65
|
+
}
|
66
|
+
|
62
67
|
// check for secretHash
|
63
68
|
if (providedSecretHash) {
|
64
69
|
if (secretHash !== providedSecretHash) {
|
@@ -72,11 +77,6 @@ function authorizeClient(authOptions, apiKeyMeta) {
|
|
72
77
|
return authResult;
|
73
78
|
}
|
74
79
|
|
75
|
-
// check for public restrictions
|
76
|
-
if (domains.includes("*")) {
|
77
|
-
return authResult;
|
78
|
-
}
|
79
|
-
|
80
80
|
// validate domains
|
81
81
|
if (origin) {
|
82
82
|
if (
|
@@ -61,6 +61,11 @@ function authorizeClient(authOptions, apiKeyMeta) {
|
|
61
61
|
}
|
62
62
|
};
|
63
63
|
|
64
|
+
// check for public restrictions
|
65
|
+
if (domains.includes("*")) {
|
66
|
+
return authResult;
|
67
|
+
}
|
68
|
+
|
64
69
|
// check for secretHash
|
65
70
|
if (providedSecretHash) {
|
66
71
|
if (secretHash !== providedSecretHash) {
|
@@ -74,11 +79,6 @@ function authorizeClient(authOptions, apiKeyMeta) {
|
|
74
79
|
return authResult;
|
75
80
|
}
|
76
81
|
|
77
|
-
// check for public restrictions
|
78
|
-
if (domains.includes("*")) {
|
79
|
-
return authResult;
|
80
|
-
}
|
81
|
-
|
82
82
|
// validate domains
|
83
83
|
if (origin) {
|
84
84
|
if (
|
@@ -61,6 +61,11 @@ function authorizeClient(authOptions, apiKeyMeta) {
|
|
61
61
|
}
|
62
62
|
};
|
63
63
|
|
64
|
+
// check for public restrictions
|
65
|
+
if (domains.includes("*")) {
|
66
|
+
return authResult;
|
67
|
+
}
|
68
|
+
|
64
69
|
// check for secretHash
|
65
70
|
if (providedSecretHash) {
|
66
71
|
if (secretHash !== providedSecretHash) {
|
@@ -74,11 +79,6 @@ function authorizeClient(authOptions, apiKeyMeta) {
|
|
74
79
|
return authResult;
|
75
80
|
}
|
76
81
|
|
77
|
-
// check for public restrictions
|
78
|
-
if (domains.includes("*")) {
|
79
|
-
return authResult;
|
80
|
-
}
|
81
|
-
|
82
82
|
// validate domains
|
83
83
|
if (origin) {
|
84
84
|
if (
|