@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/testing.js CHANGED
@@ -5,10 +5,10 @@ import {
5
5
  collectTables,
6
6
  createExecutor,
7
7
  definePlugin
8
- } from "./chunk-QEKKFEJL.js";
9
- import "./chunk-6EED5LAL.js";
8
+ } from "./chunk-5Q35SELN.js";
9
+ import "./chunk-PCSRC6WP.js";
10
10
  import "./chunk-I3X6242Q.js";
11
- import "./chunk-EIHWBY6T.js";
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
- ...record.scope ? { scope: record.scope } : {}
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
- ...record.scope ? { scope: record.scope } : {}
226532
+ ...scope ? { scope } : {}
226525
226533
  },
226526
226534
  { "cache-control": "no-store" }
226527
226535
  );