Socket
Socket
Sign inDemoInstall

@outreach/extensibility-sdk

Package Overview
Dependencies
Maintainers
195
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.2.9 to 0.3.0

dist/sdk/messages/EnvironmentInfo.js

48

dist/index.js

@@ -116,6 +116,6 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

__exportStar(require("./utils"), exports);
__exportStar(require("./sdk/messages/EnvironmentInfo"), exports);
__exportStar(require("./manifest/extensions/shell/ShellExtensionHost"), exports);
__exportStar(require("./manifest/extensions/shell/ShellExtensionType"), exports);
__exportStar(require("./manifest/extensions/shell/types/ApplicationShellExtension"), exports);
__exportStar(require("./manifest/extensions/tabs/ManifestHostEnvironment"), exports);
__exportStar(require("./manifest/extensions/tabs/TabExtension"), exports);

@@ -135,8 +135,8 @@ __exportStar(require("./manifest/extensions/tabs/TabExtensionType"), exports);

}());
var AddonsSdk = /** @class */ (function () {
var ExtensibilitySdk = /** @class */ (function () {
/**
* Creates an instance of AddonsSdk.
* @memberof AddonsSdk
* Creates an instance of ExtensibilitySdk.
* @memberof ExtensibilitySdk
*/
function AddonsSdk() {
function ExtensibilitySdk() {
var _this = this;

@@ -150,3 +150,3 @@ var _a;

* @see https://github.com/getoutreach/extensibility-sdk/blob/main/docs/outreach-api.md#caching-the-tokens
* @memberof AddonsSdk
* @memberof ExtensibilitySdk
*/

@@ -163,3 +163,3 @@ this.cookie = {

* @param {ILogger} newLogger
* @memberof AddonsSdk
* @memberof ExtensibilitySdk
*/

@@ -172,3 +172,3 @@ this.setLogger = function (newLogger) {

* fresh init context in order to operate properly
* @memberof AddonsSdk
* @memberof ExtensibilitySdk
*/

@@ -182,3 +182,3 @@ this.initRequest = function () {

*
* @memberof AddonsSdk
* @memberof ExtensibilitySdk
*/

@@ -214,3 +214,3 @@ this.notify = function (text, type) { return __awaiter(_this, void 0, void 0, function () {

* @param {DecorationType} [type='text'] Type of decoration update (text by default)
* @memberof AddonsSdk
* @memberof ExtensibilitySdk
*/

@@ -246,3 +246,3 @@ this.decorate = function (value, type) {

*
* @memberof AddonsSdk
* @memberof ExtensibilitySdk
*/

@@ -308,3 +308,3 @@ this.configure = function () { return __awaiter(_this, void 0, void 0, function () {

* @returns {Promise<OutreachContext>}
* @memberof AddonsSdk
* @memberof ExtensibilitySdk
*/

@@ -349,3 +349,3 @@ this.init = function () { return __awaiter(_this, void 0, void 0, function () {

*
* @memberof AddonsSdk
* @memberof ExtensibilitySdk
*/

@@ -387,3 +387,3 @@ this.environment = function (environment) { return __awaiter(_this, void 0, void 0, function () {

* @returns {Promise<string | null>}
* @memberof AddonsSdk
* @memberof ExtensibilitySdk
*/

@@ -429,3 +429,3 @@ this.authenticate = function () { return __awaiter(_this, void 0, void 0, function () {

*
* @memberof AddonsSdk
* @memberof ExtensibilitySdk
*/

@@ -765,3 +765,3 @@ this.getToken = function (skipCache) { return __awaiter(_this, void 0, void 0, function () {

}
Object.defineProperty(AddonsSdk.prototype, "logLevel", {
Object.defineProperty(ExtensibilitySdk.prototype, "logLevel", {
/**

@@ -773,3 +773,3 @@ * Gets the minimal log level used for

* @type {LogLevel}
* @memberof AddonsSdk
* @memberof ExtensibilitySdk
*/

@@ -785,3 +785,3 @@ get: function () {

* @type {LogLevel}
* @memberof AddonsSdk
* @memberof ExtensibilitySdk
*/

@@ -798,10 +798,10 @@ set: function (v) {

*
* @memberof AddonsSdk
* @memberof ExtensibilitySdk
* @deprecated Since version 0.10. Will be removed in version 1.0. Use instead await sdk.init()
*/
AddonsSdk.prototype.ready = function () {
ExtensibilitySdk.prototype.ready = function () {
console.warn('Ready function is depricated. Use instead await sdk.init()');
this.init();
};
AddonsSdk.prototype.sendMessage = function (message, logged) {
ExtensibilitySdk.prototype.sendMessage = function (message, logged) {
if (!RuntimeContext_1.default.origin) {

@@ -824,8 +824,8 @@ console.error('You can not send messages before SDK is initialized', message);

};
return AddonsSdk;
return ExtensibilitySdk;
}());
// exposing sdk as a global variable
window.outreach = window.outreach || {};
window.outreach.addonSdk = new AddonsSdk();
exports.default = window.outreach.addonSdk;
window.outreach.extensibilitySdk = new ExtensibilitySdk();
exports.default = window.outreach.extensibilitySdk;
//# sourceMappingURL=index.js.map

@@ -24,3 +24,3 @@ var __extends = (this && this.__extends) || (function () {

* @export
* @class ManifestHost
* @class ShellExtensionHost
*/

@@ -30,3 +30,14 @@ var ShellExtensionHost = /** @class */ (function (_super) {

function ShellExtensionHost() {
return _super !== null && _super.apply(this, arguments) || this;
var _this = _super !== null && _super.apply(this, arguments) || this;
/**
* Type of the decoration to be used for badge decorations.
* - none - no decoration badge
* - simple - a dot will be shown in case of badge decoration message with count > 0
* - full - a badge with counter will be shown.
*
* @type {('none' | 'simple' | 'full')}
* @memberof ShellExtensionHost
*/
_this.decoration = 'none';
return _this;
}

@@ -33,0 +44,0 @@ return ShellExtensionHost;

{
"name": "@outreach/extensibility-sdk",
"license": "MIT",
"version": "0.2.9",
"version": "0.3.0",
"private": false,

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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