Socket
Socket
Sign inDemoInstall

@tangible/jitsu-bento-destination

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tangible/jitsu-bento-destination

Bento destination plugin for Jitsu


Version published
Maintainers
2
Created
Source

Bento destination for Jitsu

Bento destination plugin for Jitsu based on Jitsu SDK.

Using Bento Destination UI

nano docker-compose.yml
...
services:
    jitsu:
        image: jitsucom/jitsu:tangible <-- TODO: replace with the right path (@Idlar should provide the path soon)
...

Developers

Using

Set config.json:

cp config.json.example config.json
nano config.json

Install all dependencies for a project

yarn install

Build destination:

yarn build

Run tests

yarn test

If everything is ok - resulted destination file location

./dist/bento-destination.js

Validate destination config: with json string:

yarn validate-config --config-object '{"anonymous": true,"site_key": "1a430bca7ef9c3575a6ef418e92a71d5", "your_integration_name": "jitsu"}'

with json file:

yarn validate-config --config config.json

Setup with CentOS

docker ps
yum install epel-release
yum install dnf
npm i -g corepack
sudo dnf install nodejs
sudo dnf install npm
npm install -g npx
npx jitsu-cli@0.7.5 extension create --type destination
'''
  Need to install the following packages:
    jitsu-cli@0.7.5
  Ok to proceed? (y) y
  ? Please, provide project name: jitsu-bento
  ? Project directory: /root/application/jitsu-bento
  [info ] - Creating new jitsu project in /root/application/jitsu-bento
  [info ] - Project directory doesn't exist, creating it!
  [info ] - ✨ Done
'''

Settings the plugin with Jitsu server (dev)

cd /root/application/my-plugins/
tar -C /root/application/my-plugins/jitsu-bento/ -cvzf jitsu-bento-destination.tgz .
mv jitsu-bento-destination.tgz /root/application/my-plugins/jitsu-bento/

add this line to "volumes:" section

nano docker/eventnative.yaml
[...]
destinations:
  jitsu-bento-destination:
    only_tokens:
      - my_token
    type: npm
    package: /home/eventnative/data/plugins/jitsu-bento/jitsu-bento-destination.tgz
    mode: stream
    config:
      api_secret: "https://hooks.slack.com/services/ABC/XYZ/etc"
      token: "registration,error"
      project_id: "123"
nano docker-compose.yaml
- /root/application/my-plugins/:/home/eventnative/data/plugins/
- /root/application/docker/eventnative.yaml:/home/eventnative/data/config/eventnative.yaml

testing

yarn build && yarn validate-config -c config.json

publish

npm publish --access=public

Keywords

FAQs

Package last updated on 02 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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