Socket
Socket
Sign inDemoInstall

@outreach/extensibility-sdk

Package Overview
Dependencies
Maintainers
3
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@outreach/extensibility-sdk - npm Package Compare versions

Comparing version 0.9.8 to 0.9.9

3

dist/context/OutreachContext.js

@@ -25,2 +25,5 @@ Object.defineProperty(exports, "__esModule", { value: true });

}
if (_this.email) {
_this.email.toParams().forEach(function (p) { return params.push(p); });
}
if (_this.organization) {

@@ -27,0 +30,0 @@ _this.organization.toParams().forEach(function (p) { return params.push(p); });

12

dist/index.js

@@ -61,2 +61,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

var EnhanceTextEditorMessage_1 = require("./sdk/messages/EnhanceTextEditorMessage");
var EmailContext_1 = require("./context/host/EmailContext");
var ConfigurationItem_1 = require("./configuration/ConfigurationItem");

@@ -253,4 +254,4 @@ Object.defineProperty(exports, "ConfigurationItem", { enumerable: true, get: function () { return ConfigurationItem_1.ConfigurationItem; } });

Object.defineProperty(exports, "isToolShellExtension", { enumerable: true, get: function () { return ExtensionGuards_1.isToolShellExtension; } });
var EmailContext_1 = require("./context/host/EmailContext");
Object.defineProperty(exports, "EmailContextImpl", { enumerable: true, get: function () { return EmailContext_1.EmailContext; } });
var EmailContext_2 = require("./context/host/EmailContext");
Object.defineProperty(exports, "EmailContextImpl", { enumerable: true, get: function () { return EmailContext_2.EmailContext; } });
var EmailContextKeys_1 = require("./context/keys/EmailContextKeys");

@@ -633,2 +634,3 @@ Object.defineProperty(exports, "EmailContextKeys", { enumerable: true, get: function () { return EmailContextKeys_1.EmailContextKeys; } });

var opportunityContext = new OpportunityContext_1.OpportunityContext();
var emailContext = new EmailContext_1.EmailContext();
var userContext = new UserContext_1.UserContext();

@@ -651,2 +653,6 @@ var prospectContext = new ProspectContext_1.ProspectContext();

}
handled = emailContext.initFrom(param);
if (handled) {
outreachContext.email = outreachContext.email || emailContext;
}
handled = userContext.initFrom(param);

@@ -661,3 +667,3 @@ if (handled) {

}
// collect all of the url params host sent
// collect all the url params host sent
outreachContext.host = {

@@ -664,0 +670,0 @@ urlParams: initMessage.locationSearchParams,

@@ -8,3 +8,3 @@ // This file is not interesting, it does not use the SDK at all.

container.append(h2, message);
h2.append(title)
h2.append(title);
document.body.append(container);

@@ -20,9 +20,10 @@ }

Object.keys(obj).forEach(k => {
Object.keys(obj).forEach((k) => {
if (typeof obj[k] !== 'function') {
const el = document.createElement('p');
el.append(k + ': ' + obj[k]);
const text = typeof obj[k] === 'object' ? JSON.stringify(obj[k]) : obj[k];
el.append(k + ': ' + text);
container.append(el);
}
})
});
document.body.append(container);

@@ -33,3 +34,3 @@ }

if (!user) {
return renderMissing('User info', 'You did not allow your extension to read any data about the current user.')
return renderMissing('User info', 'You did not allow your extension to read any data about the current user.');
}

@@ -42,3 +43,3 @@

if (!prospect) {
return renderMissing('Prospect info', 'Prospect info is only available for Prospect tab extensions.')
return renderMissing('Prospect info', 'Prospect info is only available for Prospect tab extensions.');
}

@@ -48,1 +49,9 @@

}
export function displayEmailInfo(email) {
if (!email) {
return renderMissing('Email info', 'Email info is only available for Editor extensions.');
}
renderObject(email, 'Email info');
}

@@ -1,18 +0,24 @@

import extensibilitySdk from '../../src'
import { displayProspectInfo, displayUserInfo } from './helpers';
import extensibilitySdk from '../../src';
import { displayEmailInfo, displayProspectInfo, displayUserInfo } from './helpers';
document.addEventListener('DOMContentLoaded', async () => {
console.log('Initializing SDK');
document.addEventListener(
'DOMContentLoaded',
async () => {
console.log('Initializing SDK');
// initialize SDK and get the data available for this extension
// initialize SDK and get the data available for this extension
const { user, prospect, organization } = await extensibilitySdk.init();
console.log(organization);
const { user, prospect, organization, email } = await extensibilitySdk.init();
console.log(organization);
console.log('EMAIL', email);
// Now render data that came from Outreach.
// Replace with what you usually use for rendering in your framework. For example React components.
// Now render data that came from Outreach.
// Replace with what you usually use for rendering in your framework. For example React components.
console.log('SDK initialized');
displayUserInfo(user);
displayProspectInfo(prospect);
});
console.log('SDK initialized');
displayUserInfo(user);
displayProspectInfo(prospect);
displayEmailInfo(email);
},
{ once: true }
);
{
"name": "@outreach/extensibility-sdk",
"license": "MIT",
"version": "0.9.8",
"version": "0.9.9",
"private": false,

@@ -6,0 +6,0 @@ "contributors": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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