Socket
Socket
Sign inDemoInstall

forest-express

Package Overview
Dependencies
Maintainers
1
Versions
374
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

forest-express - npm Package Compare versions

Comparing version 0.1.10 to 0.1.11

32

generators/schemas.js

@@ -12,2 +12,8 @@ 'use strict';

.then(function (schema) {
function hasIntercomIntegration() {
return opts.integrations && opts.integrations.intercom &&
opts.integrations.intercom.apiKey &&
opts.integrations.intercom.appId;
}
function hasStripeIntegration() {

@@ -18,2 +24,22 @@ return opts.integrations && opts.integrations.stripe &&

function setupIntercomIntegration() {
schema.fields.push({
field: 'intercom_conversations',
type: ['String'],
reference: 'intercom_conversations.id',
column: null,
isSearchable: false,
integration: 'intercom'
});
schema.fields.push({
field: 'intercom_attributes',
type: ['String'],
reference: 'intercom_attributes.id',
column: null,
isSearchable: false,
integration: 'intercom'
});
}
function setupStripeIntegration() {

@@ -48,2 +74,8 @@ schema.fields.push({

if (hasIntercomIntegration() &&
opts.integrations.intercom.userCollection ===
implementation.getModelName(model)) {
setupIntercomIntegration();
}
if (hasStripeIntegration() &&

@@ -50,0 +82,0 @@ opts.integrations.stripe.userCollection ===

2

package.json
{
"name": "forest-express",
"version": "0.1.10",
"version": "0.1.11",
"description": "The official Express liana for Forest",

@@ -5,0 +5,0 @@ "main": "index.js",

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