resora 1.0.0 → 1.0.1

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.cjs CHANGED
@@ -974,12 +974,12 @@ const resolveAndApply = (imported) => {
974
974
  * @returns
975
975
  */
976
976
  const loadRuntimeConfigSync = () => {
977
- const require = (0, module$1.createRequire)(require("url").pathToFileURL(__filename).href);
977
+ const req = (0, module$1.createRequire)(require("url").pathToFileURL(__filename).href);
978
978
  const syncConfigPaths = [path.default.join(process.cwd(), "resora.config.cjs")];
979
979
  for (const configPath of syncConfigPaths) {
980
980
  if (!(0, fs.existsSync)(configPath)) continue;
981
981
  try {
982
- resolveAndApply(require(configPath));
982
+ resolveAndApply(req(configPath));
983
983
  return true;
984
984
  } catch {
985
985
  continue;
package/dist/index.mjs CHANGED
@@ -945,12 +945,12 @@ const resolveAndApply = (imported) => {
945
945
  * @returns
946
946
  */
947
947
  const loadRuntimeConfigSync = () => {
948
- const require = createRequire(import.meta.url);
948
+ const req = createRequire(import.meta.url);
949
949
  const syncConfigPaths = [path.join(process.cwd(), "resora.config.cjs")];
950
950
  for (const configPath of syncConfigPaths) {
951
951
  if (!existsSync(configPath)) continue;
952
952
  try {
953
- resolveAndApply(require(configPath));
953
+ resolveAndApply(req(configPath));
954
954
  return true;
955
955
  } catch {
956
956
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resora",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A structured API response layer for Node.js and TypeScript with automatic JSON responses, collection support, and pagination handling.",
5
5
  "keywords": [
6
6
  "api",