We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56813fc commit e860516Copy full SHA for e860516
1 file changed
src/index.ts
@@ -347,9 +347,15 @@ export class DrupalJsonApiParams implements DrupalJsonApiParamsInterface {
347
}
348
349
/**
350
- * @ignore
+ * Generate a unique key name for the given object.
351
+ *
352
+ * @param obj The object to generate a key name for.
353
+ * @param proposedKey The proposed key name.
354
+ * @param enforceKeyName Whether to enforce the key name.
355
356
+ * @returns The generated key name.
357
*/
- private getIndexId(obj: any, proposedKey: string, enforceKeyName?: boolean): string {
358
+ protected getIndexId(obj: any, proposedKey: string, enforceKeyName?: boolean): string {
359
enforceKeyName = enforceKeyName || this.config.alwaysUseFieldNameForKeys;
360
let key: string;
361
if (obj[proposedKey] === undefined) {
0 commit comments