feat: Create NPM node (#6177)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-05-10 10:37:26 +00:00
committed by GitHub
parent 80831cd7c6
commit f3bc6f19b6
12 changed files with 566 additions and 5 deletions

View File

@@ -1,10 +1,8 @@
import type { IDataObject } from 'n8n-workflow';
// If your test needs data from credentials, you can add it here.
// as JSON.stringify({ id: 'credentials_ID', name: 'credentials_name' }) for specific credentials
// or as 'credentials_type' for all credentials of that type
// expected keys for credentials can be found in packages/nodes-base/credentials/[credentials_type].credentials.ts
export const FAKE_CREDENTIALS_DATA: IDataObject = {
export const FAKE_CREDENTIALS_DATA = {
[JSON.stringify({ id: '20', name: 'Airtable account' })]: {
apiKey: 'key456',
},
@@ -15,6 +13,10 @@ export const FAKE_CREDENTIALS_DATA: IDataObject = {
apiKey: 'key123',
baseUrl: 'https://test.app.n8n.cloud/api/v1',
},
npmApi: {
accessToken: 'fake-npm-access-token',
registryUrl: 'https://fake.npm.registry',
},
totpApi: {
label: 'GitHub:john-doe',
secret: 'BVDRSBXQB2ZEL5HE',
@@ -24,4 +26,4 @@ export const FAKE_CREDENTIALS_DATA: IDataObject = {
accessKeyId: 'key',
secretAccessKey: 'secret',
},
};
} as const;