Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

n8n-nodes-couchbase

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n8n-nodes-couchbase - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

dist/nodes/CouchbaseDB/CouchbaseNode.node.d.ts

5

dist/credentials/CouchbaseCredentialsApi.credentials.d.ts

@@ -1,8 +0,7 @@

import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
import { ICredentialType, INodeProperties } from 'n8n-workflow';
export declare class CouchbaseCredentialsApi implements ICredentialType {
name: string;
displayName: string;
documentationUrl: string;
properties: INodeProperties[];
authenticate: IAuthenticateGeneric;
test: ICredentialTestRequest;
}

54

dist/credentials/CouchbaseCredentialsApi.credentials.js

@@ -6,8 +6,9 @@ "use strict";

constructor() {
this.name = 'exampleCredentialsApi';
this.displayName = 'Example Credentials API';
this.name = 'couchbaseApi';
this.displayName = 'Couchbase Credentials API';
this.documentationUrl = 'https://github.com/maruakinu/n8n-nodes-couchbase.git';
this.properties = [
{
displayName: 'User Name',
name: 'username',
displayName: 'Connection String',
name: 'MyConnection',
type: 'string',

@@ -17,29 +18,32 @@ default: '',

{
displayName: 'Username',
name: 'MyUsername',
type: 'string',
default: '',
},
{
displayName: 'Password',
name: 'password',
name: 'MyPassword',
type: 'string',
typeOptions: {
password: true,
},
default: '',
},
];
this.authenticate = {
type: 'generic',
properties: {
auth: {
username: '={{ $credentials.username }}',
password: '={{ $credentials.password }}',
},
qs: {
n8n: 'rocks',
},
{
displayName: 'Bucket',
name: 'MyBucket',
type: 'string',
default: '',
},
};
this.test = {
request: {
baseURL: 'https://example.com/',
url: '',
{
displayName: 'Scope',
name: 'MyScope',
type: 'string',
default: '',
},
};
{
displayName: 'Collection',
name: 'MyCollection',
type: 'string',
default: '',
},
];
}

@@ -46,0 +50,0 @@ }

@@ -10,3 +10,3 @@ "use strict";

displayName: 'Couchbase',
name: 'couchbaseDB',
name: 'couchbaseNode',
icon: 'file:CBLogomark.svg',

@@ -21,2 +21,8 @@ group: ['transform'],

outputs: ['main'],
credentials: [
{
name: 'couchbaseApi',
required: false,
},
],
properties: [

@@ -30,8 +36,14 @@ {

{
name: 'Insert',
name: 'Create',
value: 'insert',
description: 'Insert document in couchbase',
action: 'Insert document in couchbase',
description: 'Create document in couchbase',
action: 'Create document in couchbase',
},
{
name: 'Read',
value: 'find',
description: 'Read document in couchbase',
action: 'Read document in couchbase',
},
{
name: 'Update',

@@ -43,13 +55,7 @@ value: 'update',

{
name: 'Remove',
name: 'Delete',
value: 'remove',
description: 'Remove document in couchbase',
action: 'Remove document in couchbase',
description: 'Delete document in couchbase',
action: 'Delete document in couchbase',
},
{
name: 'Find',
value: 'find',
description: 'Find document in couchbase',
action: 'Find document in couchbase',
},
],

@@ -59,80 +65,2 @@ default: 'insert',

{
displayName: 'Connection String',
name: 'myConnection',
type: 'string',
displayOptions: {
show: {
operation: ['insert', 'update', 'remove', 'find'],
},
},
default: '',
placeholder: 'Enter Connection String',
description: 'The description text',
},
{
displayName: 'Username',
name: 'myUsername',
type: 'string',
displayOptions: {
show: {
operation: ['insert', 'update', 'remove', 'find'],
},
},
default: '',
placeholder: 'Enter Your Username',
description: 'The description text',
},
{
displayName: 'Password',
name: 'myPassword',
type: 'string',
displayOptions: {
show: {
operation: ['insert', 'update', 'remove', 'find'],
},
},
default: '',
placeholder: 'Enter Your Password',
description: 'The description text',
},
{
displayName: 'Bucket',
name: 'myBucket',
type: 'string',
displayOptions: {
show: {
operation: ['insert', 'update', 'remove', 'find'],
},
},
default: '',
placeholder: 'Enter Bucket Name',
description: 'The description text',
},
{
displayName: 'Scope',
name: 'myScope',
type: 'string',
displayOptions: {
show: {
operation: ['insert', 'update', 'remove', 'find'],
},
},
default: '',
placeholder: 'Enter Scope Name',
description: 'The description text',
},
{
displayName: 'Colection',
name: 'myCollection',
type: 'string',
displayOptions: {
show: {
operation: ['insert', 'update', 'remove', 'find'],
},
},
default: '',
placeholder: 'Enter Collection Name',
description: 'The description text',
},
{
displayName: 'Value',

@@ -151,3 +79,3 @@ name: 'myDocument',

{
displayName: 'ID',
displayName: 'Document ID',
name: 'myDocument',

@@ -178,3 +106,3 @@ type: 'string',

{
displayName: 'ID',
displayName: 'Document ID',
name: 'myDocument',

@@ -192,3 +120,3 @@ type: 'string',

{
displayName: 'ID',
displayName: 'Document ID',
name: 'myDocument',

@@ -209,13 +137,17 @@ type: 'string',

async execute() {
const credentials = await this.getCredentials('couchbaseApi');
const myConnection = credentials.MyConnection;
const myUsername = credentials.MyUsername;
const myPassword = credentials.MyPassword;
const myBucket = credentials.MyBucket;
const myScope = credentials.MyScope;
const myCollection = credentials.MyCollection;
const items = this.getInputData();
let item;
let item2;
let item3;
let item4;
let myDocument;
let myNewValue;
let myUsername;
let myPassword;
let myBucket;
let myScope;
let myCollection;
let myConnection;
let readJson;
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {

@@ -225,8 +157,2 @@ try {

myDocument = this.getNodeParameter('myDocument', itemIndex, '');
myUsername = this.getNodeParameter('myUsername', itemIndex, '');
myPassword = this.getNodeParameter('myPassword', itemIndex, '');
myBucket = this.getNodeParameter('myBucket', itemIndex, '');
myScope = this.getNodeParameter('myScope', itemIndex, '');
myCollection = this.getNodeParameter('myCollection', itemIndex, '');
myConnection = this.getNodeParameter('myConnection', itemIndex, '');
const clusterConnStr = myConnection;

@@ -245,6 +171,6 @@ const username = myUsername;

.collection(myCollection);
item = items[itemIndex];
item.json['myDocument'] = myDocument;
const operation = this.getNodeParameter('operation', 0);
if (operation === 'insert') {
item = items[itemIndex];
item.json['myDocument'] = myDocument;
await collection.insert(myDocument, item.json);

@@ -263,2 +189,8 @@ }

console.log('Get Result:', getResult);
readJson = JSON.stringify(getResult.content);
console.log('Get Result in String:', readJson);
item3 = items[itemIndex];
item3.json[''] = readJson;
item4 = items[itemIndex];
item4.json[' '];
await collection.get(myDocument);

@@ -265,0 +197,0 @@ }

{
"name": "n8n-nodes-couchbase",
"version": "0.1.1",
"version": "0.1.2",
"description": "N8N Node to add, get, update and delete data to couchbase",

@@ -36,3 +36,3 @@ "keywords": [

"nodes": [
"dist/nodes/CouchbaseNode/CouchbaseDB.node.js"
"dist/nodes/CouchbaseNode/CouchbaseNode.node.js"
]

@@ -39,0 +39,0 @@ },

{
"name": "n8n-nodes-couchbase",
"version": "0.1.1",
"version": "0.1.2",
"description": "N8N Node to add, get, update and delete data to couchbase",

@@ -36,3 +36,3 @@ "keywords": [

"nodes": [
"dist/nodes/CouchbaseNode/CouchbaseDB.node.js"
"dist/nodes/CouchbaseNode/CouchbaseNode.node.js"
]

@@ -39,0 +39,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc