integrate-sdk 0.7.17 → 0.7.18
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.js +4 -3
- package/dist/server.js +4 -3
- package/dist/src/utils/env.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2074,9 +2074,10 @@ function toNodeHandler(config) {
|
|
|
2074
2074
|
// src/utils/env.ts
|
|
2075
2075
|
function getEnv(key) {
|
|
2076
2076
|
try {
|
|
2077
|
-
const
|
|
2078
|
-
|
|
2079
|
-
|
|
2077
|
+
const getImportMeta = new Function('return typeof import.meta !== "undefined" ? import.meta : undefined');
|
|
2078
|
+
const importMeta = getImportMeta();
|
|
2079
|
+
if (importMeta && typeof importMeta.env === "object" && importMeta.env !== null) {
|
|
2080
|
+
const value = importMeta.env[key];
|
|
2080
2081
|
if (value !== undefined && value !== null && value !== "") {
|
|
2081
2082
|
return String(value);
|
|
2082
2083
|
}
|
package/dist/server.js
CHANGED
|
@@ -1900,9 +1900,10 @@ function createNextOAuthHandler(config) {
|
|
|
1900
1900
|
// src/utils/env.ts
|
|
1901
1901
|
function getEnv(key) {
|
|
1902
1902
|
try {
|
|
1903
|
-
const
|
|
1904
|
-
|
|
1905
|
-
|
|
1903
|
+
const getImportMeta = new Function('return typeof import.meta !== "undefined" ? import.meta : undefined');
|
|
1904
|
+
const importMeta = getImportMeta();
|
|
1905
|
+
if (importMeta && typeof importMeta.env === "object" && importMeta.env !== null) {
|
|
1906
|
+
const value = importMeta.env[key];
|
|
1906
1907
|
if (value !== undefined && value !== null && value !== "") {
|
|
1907
1908
|
return String(value);
|
|
1908
1909
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../src/utils/env.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../src/utils/env.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CA8BtD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAExE"}
|