@uniformdev/canvas-next-rsc 19.186.4-alpha.3 → 19.186.4-alpha.4

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/config.js CHANGED
@@ -26,9 +26,14 @@ module.exports = __toCommonJS(config_exports);
26
26
  var import_fs = require("fs");
27
27
  var import_path = require("path");
28
28
  var getConfigPath = () => {
29
- const configFilePath = (0, import_path.join)(process.cwd(), `uniform.server.config`);
30
- if (!(0, import_fs.existsSync)(configFilePath)) {
31
- return void 0;
29
+ const possibleExtensions = [".js", ".cjs", ".mjs", ".ts"];
30
+ let configFilePath;
31
+ for (const extension of possibleExtensions) {
32
+ const filePath = (0, import_path.join)(process.cwd(), `uniform.server.config${extension}`);
33
+ if ((0, import_fs.existsSync)(filePath)) {
34
+ configFilePath = filePath;
35
+ break;
36
+ }
32
37
  }
33
38
  return configFilePath;
34
39
  };
package/dist/config.mjs CHANGED
@@ -2,9 +2,14 @@
2
2
  import { existsSync } from "fs";
3
3
  import { join, resolve } from "path";
4
4
  var getConfigPath = () => {
5
- const configFilePath = join(process.cwd(), `uniform.server.config`);
6
- if (!existsSync(configFilePath)) {
7
- return void 0;
5
+ const possibleExtensions = [".js", ".cjs", ".mjs", ".ts"];
6
+ let configFilePath;
7
+ for (const extension of possibleExtensions) {
8
+ const filePath = join(process.cwd(), `uniform.server.config${extension}`);
9
+ if (existsSync(filePath)) {
10
+ configFilePath = filePath;
11
+ break;
12
+ }
8
13
  }
9
14
  return configFilePath;
10
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next-rsc",
3
- "version": "19.186.4-alpha.3+59de2f77b6",
3
+ "version": "19.186.4-alpha.4+1424f4a2db",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -61,15 +61,15 @@
61
61
  "react-dom": "18.3.1"
62
62
  },
63
63
  "dependencies": {
64
- "@uniformdev/canvas": "19.186.4-alpha.3+59de2f77b6",
65
- "@uniformdev/canvas-next-rsc-client": "^19.186.4-alpha.3+59de2f77b6",
66
- "@uniformdev/canvas-next-rsc-shared": "^19.186.4-alpha.3+59de2f77b6",
67
- "@uniformdev/canvas-react": "19.186.4-alpha.3+59de2f77b6",
68
- "@uniformdev/context": "19.186.4-alpha.3+59de2f77b6",
69
- "@uniformdev/project-map": "19.186.4-alpha.3+59de2f77b6",
70
- "@uniformdev/redirect": "19.186.4-alpha.3+59de2f77b6",
71
- "@uniformdev/richtext": "19.186.4-alpha.3+59de2f77b6",
72
- "@uniformdev/webhooks": "19.186.4-alpha.3+59de2f77b6",
64
+ "@uniformdev/canvas": "19.186.4-alpha.4+1424f4a2db",
65
+ "@uniformdev/canvas-next-rsc-client": "^19.186.4-alpha.4+1424f4a2db",
66
+ "@uniformdev/canvas-next-rsc-shared": "^19.186.4-alpha.4+1424f4a2db",
67
+ "@uniformdev/canvas-react": "19.186.4-alpha.4+1424f4a2db",
68
+ "@uniformdev/context": "19.186.4-alpha.4+1424f4a2db",
69
+ "@uniformdev/project-map": "19.186.4-alpha.4+1424f4a2db",
70
+ "@uniformdev/redirect": "19.186.4-alpha.4+1424f4a2db",
71
+ "@uniformdev/richtext": "19.186.4-alpha.4+1424f4a2db",
72
+ "@uniformdev/webhooks": "19.186.4-alpha.4+1424f4a2db",
73
73
  "@vercel/edge-config": "^0.4.0",
74
74
  "encoding": "^0.1.13",
75
75
  "server-only": "^0.0.1",
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "59de2f77b6270e36c6a5e95b0bd6b1756c4dcdf0"
89
+ "gitHead": "1424f4a2db7b2f40aab77fee598eb714ac00b807"
90
90
  }