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

rubik-pact

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rubik-pact

Pact Bot Api kubik for the Rubik application system

  • 1.0.9
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by800%
Maintainers
0
Weekly downloads
 
Created
Source

rubik-pact

Pact's Bot API kubik for the Rubik

Install

npm

npm i rubik-pact

yarn

yarn add rubik-pact

Use

const { App, Kubiks } = require('rubik-main');
const Pact = require('rubik-pact');
const path = require('path');

// create rubik app
const app = new App();
// config need for most modules
const config = new Kubiks.Config(path.join(__dirname, './config/'));

const pact = new Pact();

app.add([ config, pact ]);

app.up().
then(() => console.info('App started')).
catch(err => console.error(err));

Config

pact.js config in configs volume may contain the host and token.

If you do not specify a host, then https://api.pact.im/ will be used by default.

If you don't specify a token, you will need to pass it.

...
const response = await app.get('pact').companies.conversations.messages({
  params: { companyId: '123',  },
  body: { message: 'Test', conversationId: '1234' }
});;
...

You may need the host option if for some reason Pact host is not available from your server and you want to configure a proxy server.

For example: config/pact.js

module.exports = {
  host: 'https://my.pact.proxy.example.com/'
};

Extensions

Pact kubik doesn't has any extension.

Keywords

FAQs

Package last updated on 28 Oct 2024

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