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
34 changes: 33 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,39 @@
{
"root": true,
"plugins": ["@typescript-eslint", "@nx"],
"plugins": ["@typescript-eslint", "@nx", "header"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"excludedFiles": [
"**/*.spec.ts",
"**/*.spec.tsx",
"**/*.test.ts",
"**/*.test.tsx",
"**/*.spec.js",
"**/*.spec.jsx",
"**/*.test.js",
"**/*.test.jsx",
"**/*.test.mjs",
"**/*.spec.mjs",
"**/vite*.config.ts",
"**/vitest.setup.ts",
"**/playwright.config.ts",
"**/_polyfills/**",
"tools/**"
],
"rules": {
"header/header": [
"warn",
"block",
[
{
"pattern": "[\\s\\S]*Copyright[\\s\\S]*Ping Identity[\\s\\S]*",
"template": "\n * Copyright (c) <current_year> Ping Identity Corporation. All rights reserved.\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file for details.\n "
}
]
]
}
},
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged && npx nx affected:lint && npx nx affected:build
node tools/copyright/sync-header-years.mjs && npx lint-staged && npx nx affected:lint && npx nx affected:build
9 changes: 9 additions & 0 deletions e2e/autoscript-apps/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
/*
* @forgerock/javascript-sdk
*
* index.ts
*
* Copyright (c) 2021 - 2026 Ping Identity Corporation. All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import 'core-js/stable';
import 'regenerator-runtime';
5 changes: 5 additions & 0 deletions e2e/autoscript-suites/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2021 - 2026 Ping Identity Corporation. All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { workspaceRoot } from '@nx/devkit';
import { PlaywrightTestConfig } from '@playwright/test';
import { baseConfig } from './playwright.config';
Expand Down
5 changes: 5 additions & 0 deletions e2e/mock-api/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2021 - 2026 Ping Identity Corporation. All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
export const environment = {
production: true,
};
5 changes: 5 additions & 0 deletions e2e/mock-api/src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2021 - 2026 Ping Identity Corporation. All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
export const environment = {
AM_URL: 'https://openam-crbrl-01.forgeblocks.com/am/',
REALM_PATH: 'alpha',
Expand Down
5 changes: 5 additions & 0 deletions e2e/token-vault-suites/teardown.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2021 - 2026 Ping Identity Corporation. All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
export default () => {
console.log('tests finished');
};
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"ci:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm nx format:write --uncommitted",
"changeset": "changeset",
"commit": "git cz",
"copyright:check": "node ./tools/copyright/sync-header-years.mjs --check",
"copyright:sync": "node ./tools/copyright/sync-header-years.mjs",
"docs": "nx affected --target=typedoc",
"e2e": "CI=true nx affected:e2e",
"format:staged": "pretty-quick --staged",
Expand Down Expand Up @@ -83,6 +85,7 @@
"esbuild": "^0.19.2",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-playwright": "^1.5.1",
"eslint-plugin-prettier": "^5.1.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* @forgerock/javascript-sdk
*
* msw-mock-data.ts
*
* Copyright (c) 2025 - 2026 Ping Identity Corporation. All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { GeneralResponse } from '../services/index.js';
import type {
OathResponse,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/* eslint-disable no-useless-escape */
/*
* @forgerock/javascript-sdk
*
* script-text.mock.data.ts
*
* Copyright (c) 2020 - 2025 Ping Identity Corporation. All rights reserved.
* Copyright (c) 2020 - 2026 Ping Identity Corporation. All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
/* eslint-disable no-useless-escape */

import type { CallbackType } from '../auth/enums';

Expand Down
4 changes: 2 additions & 2 deletions packages/javascript-sdk/src/fr-webauthn/script-parser.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/* eslint-disable no-useless-escape */
/*
* @forgerock/javascript-sdk
*
* script-parser.ts
*
* Copyright (c) 2020 - 2025 Ping Identity Corporation. All rights reserved.
* Copyright (c) 2020 - 2026 Ping Identity Corporation. All rights reserved.
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
/* eslint-disable no-useless-escape */

import { WebAuthnOutcomeType } from './enums';
import { ensureArray, getIndexOne, parsePubKeyArray, parseCredentials } from './helpers';
Expand Down
22 changes: 20 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading