nango 0.16.50-beta → 0.16.51-beta

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
File without changes
@@ -1,8 +1,7 @@
1
- import { NangoSync, NangoHelper } from '@nangohq/node';
1
+ import { NangoHelper } from '@nangohq/node';
2
2
  import { <%= interfaceNames.join(', ') %> } from './models';
3
3
 
4
- class <%= syncName %> extends NangoSync {
5
- override async fetchData(nango: NangoHelper): Promise<{<% for (let i = 0; i < mappings.length; i++) { %><%= mappings[i].name %>: <%= mappings[i].type %>[]<% if (i !== mappings.length - 1) { %>, <% } %><% } %>}> {
4
+ export default async function fetchData(nango: NangoHelper): Promise<{<% for (let i = 0; i < mappings.length; i++) { %><%= mappings[i].name %>: <%= mappings[i].type %>[]<% if (i !== mappings.length - 1) { %>, <% } %><% } %>}> {
6
5
  /**
7
6
  * Rest of the integration code goes below.
8
7
  *
@@ -24,7 +23,4 @@ class <%= syncName %> extends NangoSync {
24
23
  *
25
24
  * return { issues };
26
25
  */
27
- }
28
26
  }
29
-
30
- export default <%= syncName %>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nango",
3
- "version": "0.16.50-beta",
3
+ "version": "0.16.51-beta",
4
4
  "description": "Nango's CLI tool.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",