This commit is contained in:
Mosiur
2026-04-24 21:03:01 +06:00
parent ad313f3b21
commit c295362495
2709 changed files with 877549 additions and 162 deletions

View File

@@ -0,0 +1,13 @@
'use strict';
const trustedSymbol = Symbol('mongoose#trustedSymbol');
exports.trustedSymbol = trustedSymbol;
exports.trusted = function trusted(obj) {
if (obj == null || (typeof obj !== 'object' && typeof obj !== 'function')) {
return obj;
}
obj[trustedSymbol] = true;
return obj;
};