This repository has been archived on 2024-09-11. You can view files and clone it, but cannot push or open issues or pull requests.
svrjs-blog-newsletter/cronjob/node_modules/bson/lib/max_key.js

33 lines
931 B
JavaScript
Raw Normal View History

2024-05-26 22:54:55 +02:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MaxKey = void 0;
/**
* A class representation of the BSON MaxKey type.
* @public
* @category BSONType
*/
var MaxKey = /** @class */ (function () {
function MaxKey() {
if (!(this instanceof MaxKey))
return new MaxKey();
}
/** @internal */
MaxKey.prototype.toExtendedJSON = function () {
return { $maxKey: 1 };
};
/** @internal */
MaxKey.fromExtendedJSON = function () {
return new MaxKey();
};
/** @internal */
MaxKey.prototype[Symbol.for('nodejs.util.inspect.custom')] = function () {
return this.inspect();
};
MaxKey.prototype.inspect = function () {
return 'new MaxKey()';
};
return MaxKey;
}());
exports.MaxKey = MaxKey;
Object.defineProperty(MaxKey.prototype, '_bsontype', { value: 'MaxKey' });
//# sourceMappingURL=max_key.js.map