@thirdweb-dev/service-utils 0.2.0-nightly-c5761b99-20230714231618 → 0.2.0-nightly-0bfdedd4-20230714232451
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 -3
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.cjs.prod.js +2 -3
- package/cf-worker/dist/thirdweb-dev-service-utils-cf-worker.esm.js +2 -3
- package/dist/declarations/src/cf-worker/index.d.ts.map +1 -1
- package/dist/declarations/src/core/api.d.ts +1 -0
- package/dist/declarations/src/core/api.d.ts.map +1 -1
- package/dist/declarations/src/core/authorize/index.d.ts +0 -1
- package/dist/declarations/src/core/authorize/index.d.ts.map +1 -1
- package/dist/declarations/src/node/index.d.ts.map +1 -1
- package/dist/{index-03e2bf97.cjs.dev.js → index-6e980870.cjs.dev.js} +3 -1
- package/dist/{index-2facafef.cjs.prod.js → index-96491db6.cjs.prod.js} +3 -1
- package/dist/{index-e7c3b3be.esm.js → index-c332ae71.esm.js} +3 -1
- package/node/dist/thirdweb-dev-service-utils-node.cjs.dev.js +2 -3
- package/node/dist/thirdweb-dev-service-utils-node.cjs.prod.js +2 -3
- package/node/dist/thirdweb-dev-service-utils-node.esm.js +2 -3
- 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-6e980870.cjs.dev.js');
|
6
6
|
var services = require('../../dist/services-a3f36057.cjs.dev.js');
|
7
7
|
|
8
8
|
const DEFAULT_CACHE_TTL_SECONDS = 60;
|
@@ -94,8 +94,7 @@ async function extractAuthorizationData(authInput) {
|
|
94
94
|
origin,
|
95
95
|
bundleId,
|
96
96
|
secretKeyHash,
|
97
|
-
targetAddress: authInput.targetAddress
|
98
|
-
enforceAuth: authInput.enforcedAuth
|
97
|
+
targetAddress: authInput.targetAddress
|
99
98
|
};
|
100
99
|
}
|
101
100
|
async function hashSecretKey(secretKey) {
|
@@ -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-96491db6.cjs.prod.js');
|
6
6
|
var services = require('../../dist/services-9e185105.cjs.prod.js');
|
7
7
|
|
8
8
|
const DEFAULT_CACHE_TTL_SECONDS = 60;
|
@@ -94,8 +94,7 @@ async function extractAuthorizationData(authInput) {
|
|
94
94
|
origin,
|
95
95
|
bundleId,
|
96
96
|
secretKeyHash,
|
97
|
-
targetAddress: authInput.targetAddress
|
98
|
-
enforceAuth: authInput.enforcedAuth
|
97
|
+
targetAddress: authInput.targetAddress
|
99
98
|
};
|
100
99
|
}
|
101
100
|
async function hashSecretKey(secretKey) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a as authorize } from '../../dist/index-
|
1
|
+
import { a as authorize } from '../../dist/index-c332ae71.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;
|
@@ -90,8 +90,7 @@ async function extractAuthorizationData(authInput) {
|
|
90
90
|
origin,
|
91
91
|
bundleId,
|
92
92
|
secretKeyHash,
|
93
|
-
targetAddress: authInput.targetAddress
|
94
|
-
enforceAuth: authInput.enforcedAuth
|
93
|
+
targetAddress: authInput.targetAddress
|
95
94
|
};
|
96
95
|
}
|
97
96
|
async function hashSecretKey(secretKey) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../src/cf-worker","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AA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../../src/core","sources":["api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAmB;AAE9C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,WAAW,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,EAAE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;IAC5B,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,wBAAsB,uBAAuB,CAC3C,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,iBAAiB,GACxB,OAAO,CAAC,WAAW,CAAC,CAgBtB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../../src/core/authorize","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,iBAAiB,EAElB,kBAAe;AAGhB,OAAO,EAAE,mBAAmB,EAAE,mBAAgB;AAE9C,MAAM,MAAM,kBAAkB,G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ts","sourceRoot":"../../../../src/node","sources":["index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAuB,eAAe,EAAE,MAAM,WAAW,CAAC;AAEtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAA0B;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAoB;AAErD,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAAgC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAsB;AAEnD,oCAAiC;AAEjC,KAAK,iBAAiB,GAAG,iBAAiB,CAAC;AAE3C,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG;IACtC,GAAG,EAAE,eAAe,CAAC;CACtB,CAAC;AAEF,wBAAsB,aAAa,CACjC,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,iBAAiB,GAC/B,OAAO,CAAC,mBAAmB,CAAC,CAsB9B;AAaD,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,SAAS,GACnB,kBAAkB,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../src/node","sources":["index.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAuB,eAAe,EAAE,MAAM,WAAW,CAAC;AAEtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,mCAA0B;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAoB;AAErD,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAAgC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAsB;AAEnD,oCAAiC;AAEjC,KAAK,iBAAiB,GAAG,iBAAiB,CAAC;AAE3C,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG;IACtC,GAAG,EAAE,eAAe,CAAC;CACtB,CAAC;AAEF,wBAAsB,aAAa,CACjC,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,iBAAiB,GAC/B,OAAO,CAAC,mBAAmB,CAAC,CAsB9B;AAaD,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,SAAS,GACnB,kBAAkB,CAwEpB;AAED,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,UAE9C;AAED,wBAAgB,+BAA+B,CAAC,aAAa,EAAE,MAAM,UAEpE"}
|
@@ -160,9 +160,11 @@ async function authorize(authData, serviceConfig, cacheOptions) {
|
|
160
160
|
const {
|
161
161
|
clientId,
|
162
162
|
targetAddress,
|
163
|
-
enforceAuth,
|
164
163
|
secretKeyHash
|
165
164
|
} = authData;
|
165
|
+
const {
|
166
|
+
enforceAuth
|
167
|
+
} = serviceConfig;
|
166
168
|
|
167
169
|
// BACKWARDS COMPAT: if auth not enforced and
|
168
170
|
// we don't have auth credentials bypass
|
@@ -160,9 +160,11 @@ async function authorize(authData, serviceConfig, cacheOptions) {
|
|
160
160
|
const {
|
161
161
|
clientId,
|
162
162
|
targetAddress,
|
163
|
-
enforceAuth,
|
164
163
|
secretKeyHash
|
165
164
|
} = authData;
|
165
|
+
const {
|
166
|
+
enforceAuth
|
167
|
+
} = serviceConfig;
|
166
168
|
|
167
169
|
// BACKWARDS COMPAT: if auth not enforced and
|
168
170
|
// we don't have auth credentials bypass
|
@@ -158,9 +158,11 @@ async function authorize(authData, serviceConfig, cacheOptions) {
|
|
158
158
|
const {
|
159
159
|
clientId,
|
160
160
|
targetAddress,
|
161
|
-
enforceAuth,
|
162
161
|
secretKeyHash
|
163
162
|
} = authData;
|
163
|
+
const {
|
164
|
+
enforceAuth
|
165
|
+
} = serviceConfig;
|
164
166
|
|
165
167
|
// BACKWARDS COMPAT: if auth not enforced and
|
166
168
|
// we don't have auth credentials bypass
|
@@ -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-6e980870.cjs.dev.js');
|
7
7
|
var services = require('../../dist/services-a3f36057.cjs.dev.js');
|
8
8
|
|
9
9
|
async function authorizeNode(authInput, serviceConfig) {
|
@@ -97,8 +97,7 @@ function extractAuthorizationData(authInput) {
|
|
97
97
|
clientId,
|
98
98
|
origin,
|
99
99
|
bundleId,
|
100
|
-
targetAddress: authInput.targetAddress
|
101
|
-
enforceAuth: authInput.enforcedAuth
|
100
|
+
targetAddress: authInput.targetAddress
|
102
101
|
};
|
103
102
|
}
|
104
103
|
function hashSecretKey(secretKey) {
|
@@ -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-96491db6.cjs.prod.js');
|
7
7
|
var services = require('../../dist/services-9e185105.cjs.prod.js');
|
8
8
|
|
9
9
|
async function authorizeNode(authInput, serviceConfig) {
|
@@ -97,8 +97,7 @@ function extractAuthorizationData(authInput) {
|
|
97
97
|
clientId,
|
98
98
|
origin,
|
99
99
|
bundleId,
|
100
|
-
targetAddress: authInput.targetAddress
|
101
|
-
enforceAuth: authInput.enforcedAuth
|
100
|
+
targetAddress: authInput.targetAddress
|
102
101
|
};
|
103
102
|
}
|
104
103
|
function hashSecretKey(secretKey) {
|
@@ -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-c332ae71.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) {
|
@@ -93,8 +93,7 @@ function extractAuthorizationData(authInput) {
|
|
93
93
|
clientId,
|
94
94
|
origin,
|
95
95
|
bundleId,
|
96
|
-
targetAddress: authInput.targetAddress
|
97
|
-
enforceAuth: authInput.enforcedAuth
|
96
|
+
targetAddress: authInput.targetAddress
|
98
97
|
};
|
99
98
|
}
|
100
99
|
function hashSecretKey(secretKey) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@thirdweb-dev/service-utils",
|
3
|
-
"version": "0.2.0-nightly-
|
3
|
+
"version": "0.2.0-nightly-0bfdedd4-20230714232451",
|
4
4
|
"main": "dist/thirdweb-dev-service-utils.cjs.js",
|
5
5
|
"module": "dist/thirdweb-dev-service-utils.esm.js",
|
6
6
|
"exports": {
|