Skip to content

Commit e72bf3d

Browse files
committed
chore: satisfy eslint-plugin-package-json v0.91 rules
Add required metadata (description/license/author/sideEffects) to all publishable packages, drop redundant LICENSE entry from davinci-client files, fix duplicate dependency declarations and prettier drift that the new recommended preset surfaced.
1 parent 7212cee commit e72bf3d

19 files changed

Lines changed: 78 additions & 29 deletions

File tree

e2e/mock-api-v2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@forgerock/mock-api-v2",
33
"version": "1.0.0",
44
"private": true,
5-
"description": "",
5+
"description": "Mock API server for Ping JavaScript SDK end-to-end tests",
66
"type": "module",
77
"main": "./src/main.js",
88
"scripts": {

e2e/mock-api-v2/src/schemas/open-id-configuration/open-id-configuration-response.schema.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ const _openIdConfigurationResponseSchema = Schema.Struct({
3737
code_challenge_methods_supported: Schema.Array(Schema.String),
3838
});
3939

40-
interface openIdConfigurationResponseSchema
41-
extends Schema.Schema.Type<typeof _openIdConfigurationResponseSchema> {}
40+
interface openIdConfigurationResponseSchema extends Schema.Schema.Type<
41+
typeof _openIdConfigurationResponseSchema
42+
> {}
4243

4344
const openIdConfigurationResponseSchema: Schema.Schema<
4445
openIdConfigurationResponseSchema,

packages/davinci-client/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"url": "git+https://github.com/ForgeRock/ping-javascript-sdk.git",
77
"directory": "packages/davinci-client"
88
},
9+
"description": "DaVinci flow client for the Ping JavaScript SDK",
10+
"license": "MIT",
11+
"author": "ForgeRock",
912
"sideEffects": ["./src/types.js"],
1013
"type": "module",
1114
"exports": {
@@ -15,7 +18,7 @@
1518
"main": "./dist/src/index.js",
1619
"module": "./dist/src/index.js",
1720
"typings": "./dist/src/index.d.ts",
18-
"files": ["dist", "!dist/tsconfig.lib.tsbuildinfo", "./LICENSE"],
21+
"files": ["dist", "!dist/tsconfig.lib.tsbuildinfo"],
1922
"scripts": {
2023
"build": "pnpm nx nxBuild",
2124
"lint": "pnpm nx nxLint",

packages/davinci-client/src/lib/client.store.utils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ export type ClientStore = typeof createClientStore;
7171

7272
export type RootState = ReturnType<ReturnType<ClientStore>['getState']>;
7373

74-
export interface RootStateWithNode<T extends ErrorNode | ContinueNode | StartNode | SuccessNode>
75-
extends RootState {
74+
export interface RootStateWithNode<
75+
T extends ErrorNode | ContinueNode | StartNode | SuccessNode,
76+
> extends RootState {
7677
node: T;
7778
}
7879

packages/davinci-client/src/lib/collector.types.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ export type InferSingleValueCollectorType<T extends SingleValueCollectorTypes> =
158158
: T extends 'PasswordCollector'
159159
? PasswordCollector
160160
: /**
161-
* At this point, we have not passed in a collector type
162-
* or we have explicitly passed in 'SingleValueCollector'
163-
* So we can return either a SingleValueCollector with value
164-
* or without a value.
165-
**/
166-
| SingleValueCollectorWithValue<'SingleValueCollector'>
161+
* At this point, we have not passed in a collector type
162+
* or we have explicitly passed in 'SingleValueCollector'
163+
* So we can return either a SingleValueCollector with value
164+
* or without a value.
165+
**/
166+
| SingleValueCollectorWithValue<'SingleValueCollector'>
167167
| SingleValueCollectorNoValue<'SingleValueCollector'>;
168168

169169
/**
@@ -588,8 +588,10 @@ export interface ProtectOutputValue {
588588
universalDeviceIdentification: boolean;
589589
}
590590

591-
export interface AttestationValue
592-
extends Omit<PublicKeyCredential, 'rawId' | 'response' | 'getClientExtensionResults' | 'toJSON'> {
591+
export interface AttestationValue extends Omit<
592+
PublicKeyCredential,
593+
'rawId' | 'response' | 'getClientExtensionResults' | 'toJSON'
594+
> {
593595
rawId: string;
594596
response: {
595597
// https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse
@@ -607,8 +609,10 @@ export interface FidoRegistrationOutputValue {
607609
trigger: string;
608610
}
609611

610-
export interface AssertionValue
611-
extends Omit<PublicKeyCredential, 'rawId' | 'response' | 'getClientExtensionResults' | 'toJSON'> {
612+
export interface AssertionValue extends Omit<
613+
PublicKeyCredential,
614+
'rawId' | 'response' | 'getClientExtensionResults' | 'toJSON'
615+
> {
612616
rawId: string;
613617
response: {
614618
// https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse

packages/davinci-client/src/lib/davinci.types.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,10 @@ export type ProtectField = {
180180
universalDeviceIdentification: boolean;
181181
};
182182

183-
export interface FidoRegistrationOptions
184-
extends Omit<
185-
PublicKeyCredentialCreationOptions,
186-
'challenge' | 'user' | 'pubKeyCredParams' | 'excludeCredentials'
187-
> {
183+
export interface FidoRegistrationOptions extends Omit<
184+
PublicKeyCredentialCreationOptions,
185+
'challenge' | 'user' | 'pubKeyCredParams' | 'excludeCredentials'
186+
> {
188187
challenge: number[];
189188
user: {
190189
id: number[];
@@ -212,8 +211,10 @@ export type FidoRegistrationField = {
212211
required: boolean;
213212
};
214213

215-
export interface FidoAuthenticationOptions
216-
extends Omit<PublicKeyCredentialRequestOptions, 'challenge' | 'allowCredentials'> {
214+
export interface FidoAuthenticationOptions extends Omit<
215+
PublicKeyCredentialRequestOptions,
216+
'challenge' | 'allowCredentials'
217+
> {
217218
challenge: number[];
218219
allowCredentials?: {
219220
id: number[];

packages/device-client/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"url": "git+https://github.com/ForgeRock/ping-javascript-sdk.git",
77
"directory": "packages/device-client"
88
},
9+
"description": "Device profile client for the Ping JavaScript SDK",
10+
"license": "MIT",
11+
"author": "ForgeRock",
912
"sideEffects": false,
1013
"type": "module",
1114
"exports": {

packages/journey-client/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
"url": "git+https://github.com/ForgeRock/ping-javascript-sdk.git",
77
"directory": "packages/journey-client"
88
},
9+
"description": "Journey/Authentication Tree client for the Ping JavaScript SDK",
10+
"license": "MIT",
11+
"author": "ForgeRock",
12+
"sideEffects": false,
913
"type": "module",
1014
"exports": {
1115
".": "./dist/src/index.js",

packages/oidc-client/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"url": "git+https://github.com/ForgeRock/ping-javascript-sdk.git",
77
"directory": "packages/oidc-client"
88
},
9+
"description": "OpenID Connect client for the Ping JavaScript SDK",
10+
"license": "MIT",
11+
"author": "ForgeRock",
912
"sideEffects": false,
1013
"type": "module",
1114
"exports": {

packages/protect/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"url": "git+https://github.com/ForgeRock/ping-javascript-sdk.git",
77
"directory": "packages/protect"
88
},
9+
"description": "Behavioral risk signals collector for the Ping JavaScript SDK",
10+
"license": "MIT",
11+
"author": "ForgeRock",
912
"sideEffects": ["dist/src/lib/signals-sdk.js"],
1013
"type": "module",
1114
"exports": {

0 commit comments

Comments
 (0)