@fonoster/common 0.9.56 → 0.11.0
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/envs.js
CHANGED
|
@@ -28,4 +28,4 @@ if (process.env.NODE_ENV === "dev") {
|
|
|
28
28
|
dotenv_1.default.config({ path: (0, path_1.join)(__dirname, "..", "..", "..", ".env") });
|
|
29
29
|
}
|
|
30
30
|
const e = process.env;
|
|
31
|
-
exports.ROOT_DOMAIN = e.ROOT_DOMAIN || "fonoster.local";
|
|
31
|
+
exports.ROOT_DOMAIN = e.APISERVER_ROOT_DOMAIN || e.ROOT_DOMAIN || "fonoster.local";
|
|
@@ -28,7 +28,7 @@ const domainSchema = zod_1.z
|
|
|
28
28
|
const domainRegex = /^[a-zA-Z0-9-]+(\.[a-zA-Z]{2,})+$/;
|
|
29
29
|
return domainRegex.test(domain);
|
|
30
30
|
}, {
|
|
31
|
-
message:
|
|
31
|
+
message: `Invalid domain format. Should be like: "acme.${envs_1.ROOT_DOMAIN}"`
|
|
32
32
|
})
|
|
33
33
|
.refine((domain) => {
|
|
34
34
|
return domain.endsWith(envs_1.ROOT_DOMAIN);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Common library for Fonoster projects",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/fonoster#readme",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"clean": "rimraf ./dist node_modules tsconfig.tsbuildinfo"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@fonoster/logger": "^0.
|
|
21
|
+
"@fonoster/logger": "^0.11.0",
|
|
22
22
|
"@grpc/grpc-js": "~1.10.6",
|
|
23
23
|
"@grpc/proto-loader": "^0.7.12",
|
|
24
24
|
"@influxdata/influxdb-client": "^1.35.0",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/nodemailer": "^6.4.14"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "30d9c08da1fa6cd8c9af8c90f52c01ad092c6167"
|
|
53
53
|
}
|