Socket
Socket
Sign inDemoInstall

vue-flexmonster

Package Overview
Dependencies
1
Maintainers
1
Versions
140
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-beta3 to 1.0.0-beta4

87

dist/index.js
/*!
* vue-flexmonster v1.0.0-beta3
* vue-flexmonster v1.0.0-beta4
* (c) Flexmonster <help@flexmonster.com>

@@ -14,6 +14,2 @@ * Released under the MIT License.

var Flexmonster = _interopDefault(require('flexmonster'));
var __vue_normalize__ = _interopDefault(require('C:WorkgitPIVOT_2projectsDemos
pm ue-flexmonster
ode_modules ollup-plugin-vue untime
ormalize.js'));

@@ -91,2 +87,77 @@ function _typeof(obj) {

function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
if (typeof shadowMode !== 'boolean') {
createInjectorSSR = createInjector;
createInjector = shadowMode;
shadowMode = false;
}
// Vue.extend constructor export interop.
const options = typeof script === 'function' ? script.options : script;
// render functions
if (template && template.render) {
options.render = template.render;
options.staticRenderFns = template.staticRenderFns;
options._compiled = true;
// functional template
if (isFunctionalTemplate) {
options.functional = true;
}
}
// scopedId
if (scopeId) {
options._scopeId = scopeId;
}
let hook;
if (moduleIdentifier) {
// server build
hook = function (context) {
// 2.3 injection
context =
context || // cached call
(this.$vnode && this.$vnode.ssrContext) || // stateful
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__;
}
// inject component styles
if (style) {
style.call(this, createInjectorSSR(context));
}
// register component module identifier for async chunk inference
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
};
// used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook;
}
else if (style) {
hook = shadowMode
? function (context) {
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
}
: function (context) {
style.call(this, createInjector(context));
};
}
if (hook) {
if (options.functional) {
// register for functional component in vue file
const originalRender = options.render;
options.render = function renderWithStyleInjection(h, context) {
hook.call(context);
return originalRender(h, context);
};
}
else {
// inject component registration as beforeCreate hook
const existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
return script;
}
/* script */

@@ -125,3 +196,3 @@ var __vue_script__ = script;

var Pivot = __vue_normalize__({
var __vue_component__ = normalizeComponent({
render: __vue_render__,

@@ -133,3 +204,3 @@ staticRenderFns: __vue_staticRenderFns__

var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
Vue.component(options.PivotName || 'Pivot', Pivot);
Vue.component(options.PivotName || 'Pivot', __vue_component__);
} //Allows user to use Pivot as a plugin

@@ -141,3 +212,3 @@

exports.Pivot = Pivot;
exports.Pivot = __vue_component__;
exports.default = install;

4

package.json
{
"name": "vue-flexmonster",
"version": "1.0.0-beta3",
"version": "1.0.0-beta4",
"description": "Flexmonster Pivot Table & Charts with VueJS",

@@ -20,3 +20,3 @@ "main": "./dist/index.js",

"bili": "^4.8.1",
"rollup-plugin-vue": "^5.1.2",
"rollup-plugin-vue": "=5.1.1",
"vue-template-compiler": "^2.6.10"

@@ -23,0 +23,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc