@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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('../../dist/index-f62d7e54.cjs.dev.js');
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-0c04091b.cjs.prod.js');
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-41ff3aa6.esm.js';
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,CAsGrB"}
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-f62d7e54.cjs.dev.js');
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-0c04091b.cjs.prod.js');
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-41ff3aa6.esm.js';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thirdweb-dev/service-utils",
3
- "version": "0.0.0-dev-405f532-20230802043001",
3
+ "version": "0.0.0-dev-48fe851-20230802074257",
4
4
  "main": "dist/thirdweb-dev-service-utils.cjs.js",
5
5
  "module": "dist/thirdweb-dev-service-utils.esm.js",
6
6
  "exports": {
@@ -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 (