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

flex-plugin

Package Overview
Dependencies
Maintainers
8
Versions
294
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flex-plugin - npm Package Compare versions

Comparing version 4.0.2-beta.0 to 4.0.2-dev.202106072343

4

dist/index.d.ts

@@ -1,4 +0,4 @@

export { loadPlugin, FlexPlugin, } from './lib/flex-plugin';
export { getAssetsUrl, getRuntimeUrl, } from './utils/runtime';
export { loadPlugin, FlexPlugin } from './lib/flex-plugin';
export { getAssetsUrl, getRuntimeUrl } from './utils/runtime';
export { loadJS } from './utils/loadJS';
export { loadCSS } from './utils/loadCSS';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadCSS = exports.loadJS = exports.getRuntimeUrl = exports.getAssetsUrl = exports.FlexPlugin = exports.loadPlugin = void 0;
/* eslint-disable import/no-unused-modules */
var flex_plugin_1 = require("./lib/flex-plugin");

@@ -4,0 +6,0 @@ Object.defineProperty(exports, "loadPlugin", { enumerable: true, get: function () { return flex_plugin_1.loadPlugin; } });

@@ -15,3 +15,3 @@ /// <reference types="src/module" />

version: string;
dependencies: object;
dependencies: Record<string, string>;
protected constructor(name: string);

@@ -18,0 +18,0 @@ abstract init(flex: FlexGlobal, manager: Flex.Manager): void;

@@ -16,7 +16,7 @@ "use strict";

'flex-ui': __FPB_FLEX_UI_VERSION,
'react': __FPB_REACT_VERSION,
react: __FPB_REACT_VERSION,
'react-dom': __FPB_REACT_DOM_VERSION,
};
this.name = name;
// tslint:disable-next-line:no-console
// eslint-disable-next-line no-console
console.log("loading " + this.name + "@" + this.version + " plugin");

@@ -31,3 +31,3 @@ }

*/
exports.loadPlugin = function (plugin) {
var loadPlugin = function (plugin) {
if (Twilio && Twilio.Flex && Twilio.Flex.Plugins) {

@@ -37,6 +37,7 @@ Twilio.Flex.Plugins.init(plugin);

else {
// tslint:disable-next-line:no-console
// eslint-disable-next-line no-console
console.warn('This version of Flex does not appear to support plugins.');
}
};
exports.loadPlugin = loadPlugin;
//# sourceMappingURL=flex-plugin.js.map

@@ -14,3 +14,3 @@ "use strict";

*/
exports.loadCSS = function () {
var loadCSS = function () {
var hrefArray = [];

@@ -30,2 +30,3 @@ for (var _i = 0; _i < arguments.length; _i++) {

};
exports.loadCSS = loadCSS;
//# sourceMappingURL=loadCSS.js.map

@@ -14,3 +14,3 @@ "use strict";

*/
exports.loadJS = function () {
var loadJS = function () {
var srcArray = [];

@@ -28,2 +28,3 @@ for (var _i = 0; _i < arguments.length; _i++) {

};
exports.loadJS = loadJS;
//# sourceMappingURL=loadJS.js.map

@@ -8,7 +8,6 @@ "use strict";

*/
exports.getRuntimeUrl = function () {
var getRuntimeUrl = function () {
if (document && document.currentScript) {
var pluginScript = document.currentScript;
// tslint:disable-next-line:no-string-literal
if (typeof pluginScript['src'] === 'string') {
if (typeof pluginScript.src === 'string') {
var pluginUrl = pluginScript.src;

@@ -20,2 +19,3 @@ return pluginUrl.substr(0, pluginUrl.lastIndexOf('/'));

};
exports.getRuntimeUrl = getRuntimeUrl;
/**

@@ -25,5 +25,6 @@ * Gets the base URL for Twilio Runtime Assets

*/
exports.getAssetsUrl = function () {
var getAssetsUrl = function () {
return exports.getRuntimeUrl() + "/assets";
};
exports.getAssetsUrl = getAssetsUrl;
//# sourceMappingURL=runtime.js.map
{
"name": "flex-plugin",
"version": "4.0.2-beta.0",
"version": "4.0.2-dev.202106072343",
"description": "Runtime for Flex plugins",

@@ -20,7 +20,3 @@ "keywords": [

"license": "MIT",
"author": "Kousha Talebian <ktalebian@twilio.com>",
"files": [
"dist",
"bin"
],
"author": "Flex Runtime <flex-runtime@twilio.com>",
"main": "dist/index.js",

@@ -30,10 +26,13 @@ "types": "dist/index.d.ts",

"lib": "src",
"bin": "bin",
"test": "__tests__"
},
"files": [
"dist"
],
"scripts": {
"prebuild": "npm run clean",
"build": "tsc",
"build": "cd ../.. && tsc -p \"packages/flex-plugin/tsconfig.json\"",
"clean": "rm -rf dist",
"prepublish": "npm run build",
"lint": "eslint --ext ts src/",
"lint:fix": "npm run lint -- --fix",
"test": "cd ../.. && jest packages/flex-plugin --color",

@@ -45,3 +44,3 @@ "test:watch": "cd ../.. && jest packages/flex-plugin --watch --color"

},
"gitHead": "bd6a434543c0255a3898e1b13549ac5da92b95f0"
"gitHead": "8b4b69206f4de2bbb069a64c89a73fa9234b4bd4"
}

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

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