@executor-js/sdk 1.5.15 → 1.5.17
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/dist/{chunk-EIHWBY6T.js → chunk-4XPVLX62.js} +36 -1
- package/dist/chunk-4XPVLX62.js.map +1 -0
- package/dist/{chunk-QEKKFEJL.js → chunk-5Q35SELN.js} +100 -33
- package/dist/chunk-5Q35SELN.js.map +1 -0
- package/dist/{chunk-SK3PCJHJ.js → chunk-EJKXSREX.js} +10 -1
- package/dist/chunk-EJKXSREX.js.map +1 -0
- package/dist/{chunk-6EED5LAL.js → chunk-PCSRC6WP.js} +1 -1
- package/dist/{chunk-6EED5LAL.js.map → chunk-PCSRC6WP.js.map} +1 -1
- package/dist/core-schema.d.ts +2 -0
- package/dist/core-schema.d.ts.map +1 -1
- package/dist/core-tools.d.ts.map +1 -1
- package/dist/core.js +4 -4
- package/dist/executor.d.ts.map +1 -1
- package/dist/host-internal.js +1 -1
- package/dist/index.js +3 -3
- package/dist/oauth-client.d.ts +5 -0
- package/dist/oauth-client.d.ts.map +1 -1
- package/dist/oauth-helpers.d.ts +1 -0
- package/dist/oauth-helpers.d.ts.map +1 -1
- package/dist/oauth-service.d.ts +4 -0
- package/dist/oauth-service.d.ts.map +1 -1
- package/dist/server-connection.d.ts +7 -0
- package/dist/server-connection.d.ts.map +1 -1
- package/dist/shared.js +2 -2
- package/dist/testing/oauth-test-server.d.ts +1 -0
- package/dist/testing/oauth-test-server.d.ts.map +1 -1
- package/dist/testing.js +13 -5
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-EIHWBY6T.js.map +0 -1
- package/dist/chunk-QEKKFEJL.js.map +0 -1
- package/dist/chunk-SK3PCJHJ.js.map +0 -1
package/dist/testing.js
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
collectTables,
|
|
6
6
|
createExecutor,
|
|
7
7
|
definePlugin
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-5Q35SELN.js";
|
|
9
|
+
import "./chunk-PCSRC6WP.js";
|
|
10
10
|
import "./chunk-I3X6242Q.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-4XPVLX62.js";
|
|
12
12
|
import {
|
|
13
13
|
ProviderItemId,
|
|
14
14
|
ProviderKey,
|
|
@@ -226304,6 +226304,12 @@ var serveOAuthTestServer = (options = {}) => Effect2.gen(function* () {
|
|
|
226304
226304
|
};
|
|
226305
226305
|
const supportRefresh = options.supportRefresh ?? true;
|
|
226306
226306
|
const scopes = options.scopes ?? defaultScopes;
|
|
226307
|
+
const omittedTokenResponseScopes = new Set(options.omitTokenResponseScopes ?? []);
|
|
226308
|
+
const tokenResponseScope = (scope) => {
|
|
226309
|
+
if (!scope) return void 0;
|
|
226310
|
+
const filtered = scope.split(/\s+/).filter((item) => item.length > 0 && !omittedTokenResponseScopes.has(item));
|
|
226311
|
+
return filtered.length > 0 ? filtered.join(" ") : void 0;
|
|
226312
|
+
};
|
|
226307
226313
|
const clients = /* @__PURE__ */ new Map();
|
|
226308
226314
|
const transactions = /* @__PURE__ */ new Map();
|
|
226309
226315
|
const authorizationCodes = /* @__PURE__ */ new Map();
|
|
@@ -226488,6 +226494,7 @@ var serveOAuthTestServer = (options = {}) => Effect2.gen(function* () {
|
|
|
226488
226494
|
scope: record.scope,
|
|
226489
226495
|
resource: record.resource
|
|
226490
226496
|
});
|
|
226497
|
+
const scope = tokenResponseScope(record.scope);
|
|
226491
226498
|
return jsonResponse(
|
|
226492
226499
|
200,
|
|
226493
226500
|
{
|
|
@@ -226495,7 +226502,7 @@ var serveOAuthTestServer = (options = {}) => Effect2.gen(function* () {
|
|
|
226495
226502
|
refresh_token: refreshToken,
|
|
226496
226503
|
token_type: "Bearer",
|
|
226497
226504
|
expires_in: 3600,
|
|
226498
|
-
...
|
|
226505
|
+
...scope ? { scope } : {}
|
|
226499
226506
|
},
|
|
226500
226507
|
{ "cache-control": "no-store" }
|
|
226501
226508
|
);
|
|
@@ -226514,6 +226521,7 @@ var serveOAuthTestServer = (options = {}) => Effect2.gen(function* () {
|
|
|
226514
226521
|
issuedAccessTokens,
|
|
226515
226522
|
(tokens) => /* @__PURE__ */ new Set([...tokens, nextAccessToken])
|
|
226516
226523
|
);
|
|
226524
|
+
const scope = tokenResponseScope(record.scope);
|
|
226517
226525
|
return jsonResponse(
|
|
226518
226526
|
200,
|
|
226519
226527
|
{
|
|
@@ -226521,7 +226529,7 @@ var serveOAuthTestServer = (options = {}) => Effect2.gen(function* () {
|
|
|
226521
226529
|
refresh_token: nextRefreshToken,
|
|
226522
226530
|
token_type: "Bearer",
|
|
226523
226531
|
expires_in: 3600,
|
|
226524
|
-
...
|
|
226532
|
+
...scope ? { scope } : {}
|
|
226525
226533
|
},
|
|
226526
226534
|
{ "cache-control": "no-store" }
|
|
226527
226535
|
);
|