New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cloudsponge-vue

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudsponge-vue - npm Package Compare versions

Comparing version

to
0.0.10

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.0.10](https://github.com/domness/cloudsponge-vue/compare/v0.0.9...v0.0.10) (2020-08-11)
### Bug Fixes
* ensure loading is completed afterInit is called ([ed14d40](https://github.com/domness/cloudsponge-vue/commit/ed14d40378d914152894c1161ba8bbf2110e4bea))
### [0.0.9](https://github.com/domness/cloudsponge-vue/compare/v0.0.8...v0.0.9) (2020-08-11)

@@ -7,0 +14,0 @@

18

dist/cloudsponge-vue.esm.js

@@ -33,5 +33,5 @@ import Vue from 'vue';

(_window$cloudsponge = window.cloudsponge) === null || _window$cloudsponge === void 0 ? void 0 : _window$cloudsponge.init({ ...this.config,
afterSubmitContacts: this.afterSubmit
afterSubmitContacts: this.afterSubmit,
afterInit: this.afterInit
});
this.isLoading = false;
};

@@ -41,4 +41,10 @@

});
},
methods: {
afterInit() {
this.isLoading = false;
}
}
});

@@ -133,6 +139,4 @@

return _c('div', {
staticClass: "cloudsponge-vue"
}, [_c('div', {
staticClass: "cloudsponge-launch"
}, [_vm.isLoading ? _vm._t("loading") : _vm._t("body")], 2)]);
}, [_vm.isLoading ? _vm._t("loading") : _vm._t("body")], 2);
};

@@ -146,3 +150,3 @@

const __vue_scope_id__ = "data-v-fa8fe69a";
const __vue_scope_id__ = "data-v-2fa8e188";
/* module identifier */

@@ -149,0 +153,0 @@

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

var CloudspongeVue=function(e,t){"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function r(e,t,n,o,i,r,s,c,a,u){"boolean"!=typeof s&&(a=c,c=s,s=!1);const d="function"==typeof n?n.options:n;let l;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),o&&(d._scopeId=o),r?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,a(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},d._ssrRegister=l):t&&(l=s?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,c(e))}),l)if(d.functional){const e=d.render;d.render=function(t,n){return l.call(n),e(t,n)}}else{const e=d.beforeCreate;d.beforeCreate=e?[].concat(e,l):[l]}return n}var s=r({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"cloudsponge-vue"},[t("div",{staticClass:"cloudsponge-launch"},[this.isLoading?this._t("loading"):this._t("body")],2)])},staticRenderFns:[]},undefined,(t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t).extend({name:"CloudspongeVue",props:{apiKey:{type:String,default:""},afterSubmit:{type:Function,default:function(){}},config:{type:Object,default:function(){}}},data:function(){return{isLoading:!0}},mounted:function(){var e=this;this.$nextTick((function(){var t=document.createElement("script");t.setAttribute("src","https://api.cloudsponge.com/widget/".concat(e.apiKey,".js")),t.async=!0,t.onload=function(){var t;null===(t=window.cloudsponge)||void 0===t||t.init(i(i({},e.config),{},{afterSubmitContacts:e.afterSubmit})),e.isLoading=!1},document.head.appendChild(t)}))}}),"data-v-fa8fe69a",false,undefined,!1,void 0,void 0,void 0),c=function(e){c.installed||(c.installed=!0,e.component("CloudspongeVue",s))},a={install:c},u=null;return"undefined"!=typeof window?u=window.Vue:"undefined"!=typeof global&&(u=global.Vue),u&&u.use(a),s.install=c,e.default=s,e}({},Vue);
var CloudspongeVue=function(e,t){"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function r(e,t,n,o,i,r,s,c,a,u){"boolean"!=typeof s&&(a=c,c=s,s=!1);const d="function"==typeof n?n.options:n;let l;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),o&&(d._scopeId=o),r?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,a(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},d._ssrRegister=l):t&&(l=s?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,c(e))}),l)if(d.functional){const e=d.render;d.render=function(t,n){return l.call(n),e(t,n)}}else{const e=d.beforeCreate;d.beforeCreate=e?[].concat(e,l):[l]}return n}var s=r({render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"cloudsponge-launch"},[this.isLoading?this._t("loading"):this._t("body")],2)},staticRenderFns:[]},undefined,(t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t).extend({name:"CloudspongeVue",props:{apiKey:{type:String,default:""},afterSubmit:{type:Function,default:function(){}},config:{type:Object,default:function(){}}},data:function(){return{isLoading:!0}},mounted:function(){var e=this;this.$nextTick((function(){var t=document.createElement("script");t.setAttribute("src","https://api.cloudsponge.com/widget/".concat(e.apiKey,".js")),t.async=!0,t.onload=function(){var t;null===(t=window.cloudsponge)||void 0===t||t.init(i(i({},e.config),{},{afterSubmitContacts:e.afterSubmit,afterInit:e.afterInit}))},document.head.appendChild(t)}))},methods:{afterInit:function(){this.isLoading=!1}}}),"data-v-2fa8e188",false,undefined,!1,void 0,void 0,void 0),c=function(e){c.installed||(c.installed=!0,e.component("CloudspongeVue",s))},a={install:c},u=null;return"undefined"!=typeof window?u=window.Vue:"undefined"!=typeof global&&(u=global.Vue),u&&u.use(a),s.install=c,e.default=s,e}({},Vue);

@@ -81,5 +81,5 @@ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});function _interopDefault(e){return(e&&(typeof e==='object')&&'default'in e)?e['default']:e}var Vue=_interopDefault(require('vue'));function _defineProperty(obj, key, value) {

(_window$cloudsponge = window.cloudsponge) === null || _window$cloudsponge === void 0 ? void 0 : _window$cloudsponge.init(_objectSpread2(_objectSpread2({}, _this.config), {}, {
afterSubmitContacts: _this.afterSubmit
afterSubmitContacts: _this.afterSubmit,
afterInit: _this.afterInit
}));
_this.isLoading = false;
};

@@ -89,2 +89,7 @@

});
},
methods: {
afterInit: function afterInit() {
this.isLoading = false;
}
}

@@ -176,4 +181,4 @@ });function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {

return _c('div', {
staticClass: "cloudsponge-vue"
}, [_vm._ssrNode("<div class=\"cloudsponge-launch\" data-v-fa8fe69a>", "</div>", [_vm.isLoading ? _vm._t("loading") : _vm._t("body")], 2)]);
staticClass: "cloudsponge-launch"
}, [_vm.isLoading ? _vm._t("loading") : _vm._t("body")], 2);
};

@@ -187,6 +192,6 @@

var __vue_scope_id__ = "data-v-fa8fe69a";
var __vue_scope_id__ = "data-v-2fa8e188";
/* module identifier */
var __vue_module_identifier__ = "data-v-fa8fe69a";
var __vue_module_identifier__ = "data-v-2fa8e188";
/* functional template */

@@ -193,0 +198,0 @@

{
"name": "cloudsponge-vue",
"version": "0.0.9",
"version": "0.0.10",
"description": "Vue component to launch the Cloudsponge address book",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet