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 CHANGED
@@ -2074,9 +2074,10 @@ function toNodeHandler(config) {
2074
2074
  // src/utils/env.ts
2075
2075
  function getEnv(key) {
2076
2076
  try {
2077
- const metaEnv = import.meta.env;
2078
- if (metaEnv && typeof metaEnv === "object" && metaEnv !== null) {
2079
- const value = metaEnv[key];
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 metaEnv = import.meta.env;
1904
- if (metaEnv && typeof metaEnv === "object" && metaEnv !== null) {
1905
- const value = metaEnv[key];
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,CA2BtD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAExE"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "integrate-sdk",
3
- "version": "0.7.17",
3
+ "version": "0.7.18",
4
4
  "description": "Type-safe 3rd party integration SDK for the Integrate MCP server",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",