@nangohq/node 0.40.10 → 0.41.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 +5 -5
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/types.d.ts +3 -7
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -46,7 +46,7 @@ var import_node_https = __toESM(require("https"), 1);
|
|
|
46
46
|
var import_os = __toESM(require("os"), 1);
|
|
47
47
|
|
|
48
48
|
// lib/version.ts
|
|
49
|
-
var NANGO_VERSION = "0.
|
|
49
|
+
var NANGO_VERSION = "0.41.0";
|
|
50
50
|
|
|
51
51
|
// lib/utils.ts
|
|
52
52
|
var validateProxyConfiguration = (config) => {
|
|
@@ -378,7 +378,7 @@ var Nango = class {
|
|
|
378
378
|
* =======
|
|
379
379
|
*/
|
|
380
380
|
/**
|
|
381
|
-
* @deprecated
|
|
381
|
+
* @deprecated Use listRecords() instead.
|
|
382
382
|
*/
|
|
383
383
|
async getRecords(config) {
|
|
384
384
|
const { connectionId, providerConfigKey, model, delta, offset, limit, includeNangoMetadata, filter } = config;
|
|
@@ -720,8 +720,8 @@ var Nango = class {
|
|
|
720
720
|
*
|
|
721
721
|
* Verify incoming webhooks signature
|
|
722
722
|
*
|
|
723
|
-
* @param signatureInHeader The value in the header X-Nango-Signature
|
|
724
|
-
* @param jsonPayload The HTTP body as JSON
|
|
723
|
+
* @param signatureInHeader - The value in the header X-Nango-Signature
|
|
724
|
+
* @param jsonPayload - The HTTP body as JSON
|
|
725
725
|
* @returns Whether the signature is valid
|
|
726
726
|
*/
|
|
727
727
|
verifyWebhookSignature(signatureInHeader, jsonPayload) {
|
|
@@ -770,7 +770,7 @@ var Nango = class {
|
|
|
770
770
|
}
|
|
771
771
|
/**
|
|
772
772
|
* Enriches the headers with the Authorization token
|
|
773
|
-
* @param - Optional. The headers to enrich
|
|
773
|
+
* @param headers - Optional. The headers to enrich
|
|
774
774
|
* @returns The enriched headers
|
|
775
775
|
*/
|
|
776
776
|
enrichHeaders(headers = {}) {
|
package/dist/index.d.ts
CHANGED
|
@@ -192,7 +192,7 @@ export declare class Nango {
|
|
|
192
192
|
* =======
|
|
193
193
|
*/
|
|
194
194
|
/**
|
|
195
|
-
* @deprecated
|
|
195
|
+
* @deprecated Use listRecords() instead.
|
|
196
196
|
*/
|
|
197
197
|
getRecords<T = any>(config: GetRecordsRequestConfig): Promise<(T & {
|
|
198
198
|
_nango_metadata: RecordMetadata;
|
|
@@ -318,8 +318,8 @@ export declare class Nango {
|
|
|
318
318
|
*
|
|
319
319
|
* Verify incoming webhooks signature
|
|
320
320
|
*
|
|
321
|
-
* @param signatureInHeader The value in the header X-Nango-Signature
|
|
322
|
-
* @param jsonPayload The HTTP body as JSON
|
|
321
|
+
* @param signatureInHeader - The value in the header X-Nango-Signature
|
|
322
|
+
* @param jsonPayload - The HTTP body as JSON
|
|
323
323
|
* @returns Whether the signature is valid
|
|
324
324
|
*/
|
|
325
325
|
verifyWebhookSignature(signatureInHeader: string, jsonPayload: unknown): boolean;
|
|
@@ -341,7 +341,7 @@ export declare class Nango {
|
|
|
341
341
|
private listConnectionDetails;
|
|
342
342
|
/**
|
|
343
343
|
* Enriches the headers with the Authorization token
|
|
344
|
-
* @param - Optional. The headers to enrich
|
|
344
|
+
* @param headers - Optional. The headers to enrich
|
|
345
345
|
* @returns The enriched headers
|
|
346
346
|
*/
|
|
347
347
|
private enrichHeaders;
|
package/dist/index.js
CHANGED
|
@@ -303,7 +303,7 @@ export class Nango {
|
|
|
303
303
|
* =======
|
|
304
304
|
*/
|
|
305
305
|
/**
|
|
306
|
-
* @deprecated
|
|
306
|
+
* @deprecated Use listRecords() instead.
|
|
307
307
|
*/
|
|
308
308
|
async getRecords(config) {
|
|
309
309
|
const { connectionId, providerConfigKey, model, delta, offset, limit, includeNangoMetadata, filter } = config;
|
|
@@ -649,8 +649,8 @@ export class Nango {
|
|
|
649
649
|
*
|
|
650
650
|
* Verify incoming webhooks signature
|
|
651
651
|
*
|
|
652
|
-
* @param signatureInHeader The value in the header X-Nango-Signature
|
|
653
|
-
* @param jsonPayload The HTTP body as JSON
|
|
652
|
+
* @param signatureInHeader - The value in the header X-Nango-Signature
|
|
653
|
+
* @param jsonPayload - The HTTP body as JSON
|
|
654
654
|
* @returns Whether the signature is valid
|
|
655
655
|
*/
|
|
656
656
|
verifyWebhookSignature(signatureInHeader, jsonPayload) {
|
|
@@ -702,7 +702,7 @@ export class Nango {
|
|
|
702
702
|
}
|
|
703
703
|
/**
|
|
704
704
|
* Enriches the headers with the Authorization token
|
|
705
|
-
* @param - Optional. The headers to enrich
|
|
705
|
+
* @param headers - Optional. The headers to enrich
|
|
706
706
|
* @returns The enriched headers
|
|
707
707
|
*/
|
|
708
708
|
enrichHeaders(headers = {}) {
|
package/dist/types.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import type { ParamsSerializerOptions } from 'axios';
|
|
2
|
-
import type { NangoSyncWebhookBodySuccess, NangoSyncWebhookBodyError, NangoAuthWebhookBodySuccess, NangoAuthWebhookBodyError, NangoWebhookBody, AuthOperation, AuthOperationType, AuthModeType, AuthModes, HTTP_VERB, NangoSyncEndpoint, AllAuthCredentials, OAuth1Credentials, OAuth2Credentials, OAuth2ClientCredentials, BasicApiCredentials, ApiKeyCredentials, AppCredentials, AppStoreCredentials, UnauthCredentials, CustomCredentials, TbaCredentials } from '@nangohq/types';
|
|
3
|
-
export type { NangoSyncWebhookBodySuccess,
|
|
4
|
-
/** @deprecated use NangoSyncWebhookBodySuccess */
|
|
5
|
-
NangoSyncWebhookBodySuccess as NangoSyncWebhookBody, NangoSyncWebhookBodyError, NangoAuthWebhookBodySuccess,
|
|
6
|
-
/** @deprecated use NangoAuthWebhookBodySuccess */
|
|
7
|
-
NangoAuthWebhookBodySuccess as NangoAuthWebhookBody, NangoAuthWebhookBodyError, NangoWebhookBody };
|
|
2
|
+
import type { NangoSyncWebhookBodySuccess, NangoSyncWebhookBodyError, NangoSyncWebhookBody, NangoAuthWebhookBodySuccess, NangoAuthWebhookBodyError, NangoAuthWebhookBody, NangoWebhookBody, AuthOperation, AuthOperationType, AuthModeType, AuthModes, HTTP_VERB, NangoSyncEndpoint, AllAuthCredentials, OAuth1Credentials, OAuth2Credentials, OAuth2ClientCredentials, BasicApiCredentials, ApiKeyCredentials, AppCredentials, AppStoreCredentials, UnauthCredentials, CustomCredentials, TbaCredentials } from '@nangohq/types';
|
|
3
|
+
export type { NangoSyncWebhookBodySuccess, NangoSyncWebhookBodyError, NangoSyncWebhookBody, NangoAuthWebhookBodySuccess, NangoAuthWebhookBodyError, NangoAuthWebhookBody, NangoWebhookBody };
|
|
8
4
|
export type { AuthOperation, AuthOperationType, AuthModeType, AuthModes, AllAuthCredentials, OAuth1Credentials, OAuth2Credentials, OAuth2ClientCredentials, BasicApiCredentials, ApiKeyCredentials, AppCredentials, AppStoreCredentials, UnauthCredentials, CustomCredentials, TbaCredentials };
|
|
9
5
|
export type { HTTP_VERB, NangoSyncEndpoint };
|
|
10
6
|
export interface NangoProps {
|
|
@@ -64,7 +60,7 @@ export interface ListRecordsRequestConfig {
|
|
|
64
60
|
connectionId: string;
|
|
65
61
|
model: string;
|
|
66
62
|
/**
|
|
67
|
-
* @deprecated
|
|
63
|
+
* @deprecated use modifiedAfter
|
|
68
64
|
*/
|
|
69
65
|
delta?: string;
|
|
70
66
|
modifiedAfter?: string;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const NANGO_VERSION = "0.
|
|
1
|
+
export declare const NANGO_VERSION = "0.41.0";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const NANGO_VERSION = '0.
|
|
1
|
+
export const NANGO_VERSION = '0.41.0';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../lib/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../lib/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nangohq/node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.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.
|
|
39
|
+
"@nangohq/types": "^0.41.0",
|
|
40
40
|
"tsup": "^8.0.2",
|
|
41
41
|
"vitest": "1.6.0"
|
|
42
42
|
}
|