New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rejoiner

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rejoiner - npm Package Compare versions

Comparing version 2.10.3 to 2.10.4

9

lib/config.js

@@ -5,11 +5,14 @@ const VERSION = require('../package.json').version

const DEFAULT_BASE_URL = 'https://rj2.rejoiner.com/api/v1'
const DEFAULT_API_VERSION = 1
const DEFAULT_BASE_URL = 'https://rj2.rejoiner.com/api'
const REJOINER_BASE_URL = process.env.REJOINER_BASE_URL || DEFAULT_BASE_URL
module.exports = {
VERSION,
DEFAULT_API_VERSION,
REJOINER_API_KEY,
REJOINER_BASE_URL,
REJOINER_SITE_ID,
REJOINER_WEBHOOK_SECRET,
REJOINER_BASE_URL,
VERSION,
}

@@ -8,7 +8,8 @@ const axios = require('axios')

const {
VERSION,
DEFAULT_API_VERSION,
REJOINER_API_KEY,
REJOINER_BASE_URL,
REJOINER_SITE_ID,
REJOINER_WEBHOOK_SECRET,
REJOINER_BASE_URL,
VERSION,
} = require('./config')

@@ -19,6 +20,8 @@

this.baseURL = opts.baseURL || REJOINER_BASE_URL
this.apiVersion = opts.apiVersion || DEFAULT_API_VERSION
this.siteId = opts.siteId || REJOINER_SITE_ID
this.apiKey = opts.apiKey || REJOINER_API_KEY
this.webhookSecret = opts.webhookSecret || REJOINER_WEBHOOK_SECRET
this.baseURL = opts.baseURL || REJOINER_BASE_URL

@@ -29,3 +32,3 @@ if (!this.siteId) throw new Error('Site ID must be configured')

this.dispatch = axios.create({
baseURL: `${this.baseURL}/${this.siteId}`,
baseURL: `${this.baseURL}/v${this.apiVersion}/${this.siteId}`,
headers: {

@@ -32,0 +35,0 @@ Authorization: `Rejoiner ${this.apiKey}`,

{
"name": "rejoiner",
"description": "Rejoiner REST API client wrapper for Node.js",
"version": "2.10.3",
"version": "2.10.4",
"main": "lib/rejoiner.js",

@@ -6,0 +6,0 @@ "author": "Sascha Bratton <sascha@brattonbratton.com>",

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