diff --git a/packages/sdks/web-component/rollup.config.mjs b/packages/sdks/web-component/rollup.config.mjs index 54cdcdd6a..b2ebea223 100644 --- a/packages/sdks/web-component/rollup.config.mjs +++ b/packages/sdks/web-component/rollup.config.mjs @@ -54,7 +54,6 @@ export default [ dir: 'dist/cjs', format: 'cjs', preserveModules: true, - exports: 'named', }, ], plugins: [ diff --git a/packages/sdks/web-component/src/lib/descope-wc/DescopeWc.ts b/packages/sdks/web-component/src/lib/descope-wc/DescopeWc.ts index 1c402d2f2..d0fc714ff 100644 --- a/packages/sdks/web-component/src/lib/descope-wc/DescopeWc.ts +++ b/packages/sdks/web-component/src/lib/descope-wc/DescopeWc.ts @@ -67,6 +67,10 @@ class DescopeWc extends BaseDescopeWc { BaseDescopeWc.sdkConfigOverrides = config; } + static get sdkConfigOverrides() { + return BaseDescopeWc.sdkConfigOverrides; + } + flowState: State; stepState = new State({} as StepState, { diff --git a/packages/sdks/web-component/test/debugger.test.ts b/packages/sdks/web-component/test/debugger.test.ts index b0e72c232..89c7a4bc3 100644 --- a/packages/sdks/web-component/test/debugger.test.ts +++ b/packages/sdks/web-component/test/debugger.test.ts @@ -87,6 +87,12 @@ Object.defineProperty(window.history, 'replaceState', { }, }); +(globalThis).process = { + env: { + NODE_ENV: 'development', + }, +}; + describe('debugger', () => { beforeEach(() => { jest.useFakeTimers(); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1be865529..15af222be 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -882,7 +882,7 @@ importers: optionalDependencies: '@descope/web-js-sdk': specifier: '>=1' - version: 1.22.0 + version: link:../web-js-sdk devDependencies: '@babel/core': specifier: 7.23.9 @@ -9726,6 +9726,14 @@ packages: - nx dev: true + /@nrwl/devkit@19.3.2(nx@19.3.2): + resolution: {integrity: sha512-n3tFalVPUk1HAJ2VYNnF34yzB9j2+6swFUi4Y92PxD1vN7vrIXnNeaTx2qcee7JDjBpiJ7Zn0KLg2jwiH6hNwA==} + dependencies: + '@nx/devkit': 19.3.2(nx@19.3.2) + transitivePeerDependencies: + - nx + dev: true + /@nrwl/devkit@19.3.2(nx@19.5.2): resolution: {integrity: sha512-n3tFalVPUk1HAJ2VYNnF34yzB9j2+6swFUi4Y92PxD1vN7vrIXnNeaTx2qcee7JDjBpiJ7Zn0KLg2jwiH6hNwA==} dependencies: @@ -9923,7 +9931,7 @@ packages: peerDependencies: nx: '>= 17 <= 20' dependencies: - '@nrwl/devkit': 19.3.2(nx@19.5.2) + '@nrwl/devkit': 19.3.2(nx@19.3.2) ejs: 3.1.9 enquirer: 2.3.6 ignore: 5.3.2