@exyconn/common 2.3.5 → 2.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -686,7 +686,7 @@ function createCrudControllers(config) {
686
686
  };
687
687
  const getById = async (req, res, _next) => {
688
688
  try {
689
- const { id } = req.params;
689
+ const id = req.params.id;
690
690
  if (!id || !Types.ObjectId.isValid(id)) {
691
691
  badRequestResponse(res, "Invalid ID format");
692
692
  return;
@@ -761,7 +761,7 @@ function createCrudControllers(config) {
761
761
  };
762
762
  const update = async (req, res, _next) => {
763
763
  try {
764
- const { id } = req.params;
764
+ const id = req.params.id;
765
765
  if (!id || !Types.ObjectId.isValid(id)) {
766
766
  badRequestResponse(res, "Invalid ID format");
767
767
  return;
@@ -805,7 +805,7 @@ function createCrudControllers(config) {
805
805
  };
806
806
  const deleteOne = async (req, res, _next) => {
807
807
  try {
808
- const { id } = req.params;
808
+ const id = req.params.id;
809
809
  if (!id || !Types.ObjectId.isValid(id)) {
810
810
  badRequestResponse(res, "Invalid ID format");
811
811
  return;
@@ -1759,6 +1759,8 @@ var createApiRateLimiter = (config = {}, options = {}) => {
1759
1759
  });
1760
1760
  };
1761
1761
  var RateLimiterBuilder = class {
1762
+ config;
1763
+ options;
1762
1764
  constructor(preset = "STANDARD") {
1763
1765
  const presetConfig = DEFAULT_RATE_LIMIT_TIERS[preset];
1764
1766
  this.config = {
@@ -1960,6 +1962,7 @@ function deepMerge(target, source) {
1960
1962
  return result;
1961
1963
  }
1962
1964
  var ConfigBuilder = class {
1965
+ config;
1963
1966
  constructor() {
1964
1967
  this.config = {
1965
1968
  server: { ...DEFAULT_SERVER_CONFIG },