@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.
package/dist/index.mjs CHANGED
@@ -794,7 +794,7 @@ function createCrudControllers(config) {
794
794
  };
795
795
  const getById = async (req, res, _next) => {
796
796
  try {
797
- const { id } = req.params;
797
+ const id = req.params.id;
798
798
  if (!id || !Types.ObjectId.isValid(id)) {
799
799
  badRequestResponse(res, "Invalid ID format");
800
800
  return;
@@ -869,7 +869,7 @@ function createCrudControllers(config) {
869
869
  };
870
870
  const update = async (req, res, _next) => {
871
871
  try {
872
- const { id } = req.params;
872
+ const id = req.params.id;
873
873
  if (!id || !Types.ObjectId.isValid(id)) {
874
874
  badRequestResponse(res, "Invalid ID format");
875
875
  return;
@@ -913,7 +913,7 @@ function createCrudControllers(config) {
913
913
  };
914
914
  const deleteOne = async (req, res, _next) => {
915
915
  try {
916
- const { id } = req.params;
916
+ const id = req.params.id;
917
917
  if (!id || !Types.ObjectId.isValid(id)) {
918
918
  badRequestResponse(res, "Invalid ID format");
919
919
  return;
@@ -1867,6 +1867,8 @@ var createApiRateLimiter = (config = {}, options = {}) => {
1867
1867
  });
1868
1868
  };
1869
1869
  var RateLimiterBuilder = class {
1870
+ config;
1871
+ options;
1870
1872
  constructor(preset = "STANDARD") {
1871
1873
  const presetConfig = DEFAULT_RATE_LIMIT_TIERS[preset];
1872
1874
  this.config = {
@@ -2068,6 +2070,7 @@ function deepMerge(target, source) {
2068
2070
  return result;
2069
2071
  }
2070
2072
  var ConfigBuilder = class {
2073
+ config;
2071
2074
  constructor() {
2072
2075
  this.config = {
2073
2076
  server: { ...DEFAULT_SERVER_CONFIG },
@@ -2429,9 +2432,7 @@ __export(client_exports, {
2429
2432
 
2430
2433
  // src/client/http/logger.ts
2431
2434
  var Logger = class {
2432
- constructor() {
2433
- this.isDevelopment = typeof window !== "undefined" && window.location.hostname === "localhost";
2434
- }
2435
+ isDevelopment = typeof window !== "undefined" && window.location.hostname === "localhost";
2435
2436
  /**
2436
2437
  * Log informational messages
2437
2438
  */
@@ -2977,8 +2978,10 @@ var LOG_LEVELS = {
2977
2978
  error: 3
2978
2979
  };
2979
2980
  var ClientLogger = class {
2981
+ config;
2982
+ buffer = [];
2983
+ flushTimer;
2980
2984
  constructor(config = {}) {
2981
- this.buffer = [];
2982
2985
  this.config = {
2983
2986
  enabled: config.enabled ?? process.env.NODE_ENV !== "production",
2984
2987
  minLevel: config.minLevel ?? "debug",