@nangohq/node 0.50.0 → 0.51.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/index.cjs CHANGED
@@ -45,7 +45,7 @@ var import_node_https = __toESM(require("https"), 1);
45
45
  var import_os = __toESM(require("os"), 1);
46
46
 
47
47
  // lib/version.ts
48
- var NANGO_VERSION = "0.50.0";
48
+ var NANGO_VERSION = "0.51.0";
49
49
 
50
50
  // lib/utils.ts
51
51
  var validateProxyConfiguration = (config) => {
@@ -562,10 +562,10 @@ var Nango = class {
562
562
  if (!providerConfigKey) {
563
563
  throw new Error("Provider Config Key is required");
564
564
  }
565
- if (typeof sync === "string") {
565
+ if (typeof sync !== "string") {
566
566
  throw new Error("Sync must be a string.");
567
567
  }
568
- if (typeof connectionId === "string") {
568
+ if (typeof connectionId !== "string") {
569
569
  throw new Error("ConnectionId must be a string.");
570
570
  }
571
571
  if (typeof frequency !== "string" && frequency !== null) {
package/dist/index.js CHANGED
@@ -476,10 +476,10 @@ export class Nango {
476
476
  if (!providerConfigKey) {
477
477
  throw new Error('Provider Config Key is required');
478
478
  }
479
- if (typeof sync === 'string') {
479
+ if (typeof sync !== 'string') {
480
480
  throw new Error('Sync must be a string.');
481
481
  }
482
- if (typeof connectionId === 'string') {
482
+ if (typeof connectionId !== 'string') {
483
483
  throw new Error('ConnectionId must be a string.');
484
484
  }
485
485
  if (typeof frequency !== 'string' && frequency !== null) {
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const NANGO_VERSION = "0.50.0";
1
+ export declare const NANGO_VERSION = "0.51.0";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const NANGO_VERSION = '0.50.0';
1
+ export const NANGO_VERSION = '0.51.0';
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/node",
3
- "version": "0.50.0",
3
+ "version": "0.51.0",
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
- "@nangohq/types": "0.49.0",
39
+ "@nangohq/types": "0.51.0",
40
40
  "tsup": "^8.2.4",
41
41
  "vitest": "2.1.8"
42
42
  }