Skip to content

Commit 0540f7b

Browse files
committed
add warning to jsdoc
1 parent 48cc795 commit 0540f7b

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/Parse.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,17 @@ const Parse = {
315315
},
316316

317317
/**
318+
* Setting this property to `true` enables enhanced logging for `Parse.Object`
319+
* in Node.js environments. Specifically, it will log:
320+
*
321+
* ```
322+
* ParseObject: className: <CLASS_NAME>, id: <OBJECT_ID>
323+
* Attributes: <OBJECT_ATTRIBUTES>
324+
* ```
325+
*
326+
* @warning This should not be enabled in production environments as this may
327+
* expose sensitive information in server logs.
328+
*
318329
* @property {boolean} Parse.nodeLogging
319330
* @static
320331
*/

types/Parse.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,17 @@ declare const Parse: {
323323
*/
324324
allowCustomObjectId: any;
325325
/**
326+
* Setting this property to `true` enables enhanced logging for `Parse.Object`
327+
* in Node.js environments. Specifically, it will log:
328+
*
329+
* ```
330+
* ParseObject: className: <CLASS_NAME>, id: <OBJECT_ID>
331+
* Attributes: <OBJECT_ATTRIBUTES>
332+
* ```
333+
*
334+
* @warning This should not be enabled in production environments as this may
335+
* expose sensitive information in server logs.
336+
*
326337
* @property {boolean} Parse.nodeLogging
327338
* @static
328339
*/

0 commit comments

Comments
 (0)