@nangohq/node 0.39.29 → 0.39.30

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.
Files changed (2) hide show
  1. package/dist/index.cjs +7 -2
  2. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -41,6 +41,12 @@ __export(lib_exports, {
41
41
  stagingHost: () => stagingHost
42
42
  });
43
43
  module.exports = __toCommonJS(lib_exports);
44
+
45
+ // ../../node_modules/tsup/assets/cjs_shims.js
46
+ var getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
47
+ var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
48
+
49
+ // lib/index.ts
44
50
  var import_node_crypto = __toESM(require("crypto"), 1);
45
51
  var import_axios = __toESM(require("axios"), 1);
46
52
  var import_node_https = __toESM(require("https"), 1);
@@ -81,7 +87,6 @@ var import_os = __toESM(require("os"), 1);
81
87
  var import_node_path = __toESM(require("path"), 1);
82
88
  var import_node_fs = __toESM(require("fs"), 1);
83
89
  var import_node_url = require("url");
84
- var import_meta = {};
85
90
  var validateProxyConfiguration = (config) => {
86
91
  const requiredParams = ["endpoint", "providerConfigKey", "connectionId"];
87
92
  requiredParams.forEach((param) => {
@@ -99,7 +104,7 @@ var validateSyncRecordConfiguration = (config) => {
99
104
  });
100
105
  };
101
106
  function getUserAgent(userAgent) {
102
- const dir = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
107
+ const dir = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(importMetaUrl));
103
108
  const packageJson = JSON.parse(import_node_fs.default.readFileSync(import_node_path.default.resolve(dir, "../package.json"), "utf8"));
104
109
  const clientVersion = packageJson.version;
105
110
  const nodeVersion = process.versions.node;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/node",
3
- "version": "0.39.29",
3
+ "version": "0.39.30",
4
4
  "description": "Nango's Node client.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "README.md"
37
37
  ],
38
38
  "devDependencies": {
39
- "tsup": "^7.2.0",
39
+ "tsup": "^8.0.2",
40
40
  "vitest": "^0.33.0"
41
41
  }
42
42
  }