Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/gentle-squids-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@forgerock/javascript-sdk': patch
---

remove SharedArray buffer type from webauthn types. A webauthn type should never be a SharedArrayBuffer per spec. https://github.com/microsoft/TypeScript/issues/62168
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,5 @@ outputs/*
e2e/mock-api-v2/html/*

vitest.config.*.timestamp*
.cursor/rules/nx-rules.mdc
.github/instructions/nx.instructions.md
17 changes: 16 additions & 1 deletion e2e/autoscript-apps/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["**/*"]
"ignorePatterns": [
"**/vite.config.*.timestamp*",
"**/vitest.config.*.timestamp*",
"**/*.png"
],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function autoscript() {
// in central login we use an auth query param for the return of our mock 401 request
// this is to prevent the evaluation of the page before we have technically authenticated
const auth = url.searchParams.get('auth') || false;
let wellknown =
const wellknown =
url.searchParams.get('wellknown') || 'http://localhost:9443/am/.well-known/oidc-configuration';

let tokenStore = url.searchParams.get('tokenStore') || 'localStorage';
Expand Down
2 changes: 1 addition & 1 deletion e2e/autoscript-apps/src/authn-protect/autoscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function autoscript() {
),
mergeMap(({ step, data }) => {
const cb = step.getCallbackOfType('PingOneProtectEvaluationCallback');
let pauseFlag = pauseBehaviorData === 'true' ? true : false;
const pauseFlag = pauseBehaviorData === 'true' ? true : false;
let shouldPause = false;

if (pauseFlag) {
Expand Down
4 changes: 0 additions & 4 deletions e2e/autoscript-suites/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
}
}
},
"cbt": {
"command": "pnpm browserstack-node-sdk playwright test --config ./e2e/autoscript-suites/playwright.config.cbt.ts",
"cwd": "e2e/autoscript-suites"
},
"lint": {
"options": {
"fix": true,
Expand Down
8 changes: 7 additions & 1 deletion e2e/mock-api-v2/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*", "README.md", ".DS_Store"],
"ignorePatterns": [
"!**/*",
"README.md",
".DS_Store",
"**/vite.config.*.timestamp*",
"**/vitest.config.*.timestamp*"
],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
Expand Down
7 changes: 6 additions & 1 deletion e2e/token-vault-app/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*", "public"],
"ignorePatterns": [
"!**/*",
"public",
"**/vite.config.*.timestamp*",
"**/vitest.config.*.timestamp*"
],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
Expand Down
6 changes: 5 additions & 1 deletion e2e/token-vault-interceptor/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"ignorePatterns": [
"!**/*",
"**/vite.config.*.timestamp*",
"**/vitest.config.*.timestamp*"
],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
Expand Down
3 changes: 2 additions & 1 deletion e2e/token-vault-interceptor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "@forgerock/token-vault-interceptor",
"version": "0.0.1",
"dependencies": {
"@forgerock/token-vault": "workspace:*"
"@forgerock/token-vault": "workspace:*",
"vitest": "^1.4.0"
},
"main": "./dist/index.iife.js",
"module": "./dist/index.iife.js",
Expand Down
15 changes: 0 additions & 15 deletions e2e/token-vault-interceptor/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types='vitest' />
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';

Expand All @@ -25,18 +24,4 @@ export default defineConfig({
tsconfigPath: './tsconfig.lib.json',
}),
],

test: {
watch: false,
globals: true,
environment: 'node',
passWithNoTests: true,
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],

reporters: ['default', 'json', 'html'],
coverage: {
reportsDirectory: './coverage',
provider: 'v8',
},
},
});
16 changes: 16 additions & 0 deletions e2e/token-vault-interceptor/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
watch: false,
globals: true,
environment: 'node',
passWithNoTests: true,
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
reporters: ['default', 'json', 'html'],
coverage: {
reportsDirectory: './coverage',
provider: 'v8',
},
},
});
6 changes: 5 additions & 1 deletion e2e/token-vault-proxy/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"ignorePatterns": [
"!**/*",
"**/vite.config.*.timestamp*",
"**/vitest.config.*.timestamp*"
],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
Expand Down
84 changes: 27 additions & 57 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,18 @@
]
},
"targetDefaults": {
"e2e-ci": {
"dependsOn": ["^build"]
},
"e2e-ci": { "dependsOn": ["^build"] },
"nx-release-publish": {
"options": {
"packageRoot": "packages/{projectName}"
}
"options": { "packageRoot": "packages/{projectName}" }
},
"docs": {
"dependsOn": ["build", "^build", "^docs"],
"cache": true,
"outputs": ["{projectRoot}/docs"]
},
"serve": {
"cache": false,
"dependsOn": ["^build"]
},
"e2e": {
"dependsOn": ["^build"],
"cache": true
},
"test": {
"dependsOn": ["^build"]
},
"serve": { "cache": false, "dependsOn": ["^build"] },
"e2e": { "dependsOn": ["^build"], "cache": true },
"test": { "dependsOn": ["^build"] },
"build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
Expand All @@ -46,20 +34,14 @@
"outputs": ["{projectRoot}/coverage"],
"cache": true
},
"@nx/eslint:lint": {
"dependsOn": ["^build", "^lint"],
"cache": true
},
"@nx/eslint:lint": { "dependsOn": ["^build", "^lint"], "cache": true },
"@nx/vite:build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
"cache": true,
"outputs": ["{projectRoot}/dist"]
},
"@nx/playwright:run": {
"dependsOn": ["^build"],
"cache": true
},
"@nx/playwright:run": { "dependsOn": ["^build"], "cache": true },
"@nx/esbuild:esbuild": {
"inputs": ["production", "^production"],
"dependsOn": ["^build"],
Expand All @@ -78,69 +60,56 @@
}
},
"parallel": 1,
"workspaceLayout": {
"appsDir": "",
"libsDir": ""
},
"workspaceLayout": { "appsDir": "", "libsDir": "" },
"release": {
"projects": ["packages/*"],
"releaseTagPattern": "v{version}",
"version": {
"preVersionCommand": "npx nx run-many -t build",
"generatorOptions": {
"currentVersionResolver": "git-tag",
"specifierSource": "conventional-commits"
}
"specifierSource": "conventional-commits",
"currentVersionResolver": "git-tag",
"preserveLocalDependencyProtocols": false
},
"changelog": {
"git": {
"commit": true,
"tag": true
},
"workspaceChangelog": {
"createRelease": "github"
},
"git": { "commit": true, "tag": true },
"workspaceChangelog": { "createRelease": "github" },
"projectChangelogs": true
},
"releaseTag": {
"pattern": "v{version}"
}
},
"plugins": [
{
"plugin": "@nx/playwright/plugin",
"options": {
"ciTargetName": "e2e-ci",
"targetName": "e2e"
},
"options": { "ciTargetName": "e2e-ci", "targetName": "e2e" },
"include": ["e2e/**/**/*"]
},
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "lint"
}
},
{ "plugin": "@nx/eslint/plugin", "options": { "targetName": "lint" } },
{
"plugin": "@nx/vite/plugin",
"options": {
"buildTargetName": "build",
"buildTargetName": "build-interceptor",
"serveTargetName": "serve",
"previewTargetName": "preview",
"testTargetName": "test",
"serveStaticTargetName": "serve-static",
"typecheckTargetName": "typecheck"
},
"include": ["e2e/**/*", "packages/**/*"]
"include": ["e2e/token-vault-interceptor/**/*"],
"exclude": ["e2e/**/*", "packages/**/*"]
},
{
"plugin": "@nx/vite/plugin",
"options": {
"buildTargetName": "build-interceptor",
"buildTargetName": "build",
"serveTargetName": "serve",
"previewTargetName": "preview",
"testTargetName": "test",
"serveStaticTargetName": "serve-static",
"typecheckTargetName": "typecheck"
},
"include": ["e2e/token-vault-app/**/*"]
"include": ["e2e/**/*", "packages/**/*"],
"exclude": ["e2e/token-vault-interceptor/**/*"]
},
{
"plugin": "@nx/vite/plugin",
Expand All @@ -152,12 +121,13 @@
"serveStaticTargetName": "vite:serve-static",
"typecheckTargetName": "vite:typecheck"
},
"include": ["packages/**/*", "e2e/**/*"]
"include": ["packages/**/*", "e2e/**/*"],
"exclude": ["e2e/token-vault-interceptor/**/*"]
}
],
"defaultProject": "javascript-sdk",
"useDaemonProcess": true,
"useInferencePlugins": true,
"defaultBase": "develop",
"useLegacyCache": true
"nxCloudId": "691f769b1b6c37fb36143efb"
}
Loading
Loading