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

@cookieseater/vue-yandex-share

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cookieseater/vue-yandex-share - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

dist/vue-yandex-share.js

@@ -131,3 +131,3 @@ (function (global, factory) {

type: String,
default: null
default: undefined
},

@@ -134,0 +134,0 @@ contentByService: {

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.vueYandexShare=t()}(this,function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var t=new(function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.attached=!1,this.loaded=!1,this.error=!1,this.stack=[]}var n,o,r;return n=t,(o=[{key:"attach",value:function(){var e=this;return new Promise(function(t,n){if(!e.attached){var o=document.createElement("script");o.setAttribute("src","https://yastatic.net/share2/share.js"),o.setAttribute("async",""),document.head.appendChild(o),o.onload=function(){t(),e.loaded=!0,e.stack.forEach(function(e){e[0]()}),e.stack=[]},o.onerror=function(){n(),e.loaded=!0,e.error=!0,e.stack.forEach(function(e){e[1]()}),e.stack=[]},e.attached=!0}e.error&&n(),e.loaded?t():e.stack.push([t,n])})}}])&&e(n.prototype,o),r&&e(n,r),t}()),n={name:"YandexShare",props:{services:{type:Array,required:!0},counter:{type:Boolean,default:!1},url:{type:String,default:""},title:{type:String,default:""},description:{type:String,default:""},image:{type:String,default:null},contentByService:{type:Object,default:function(){return{}}},vertical:{type:Boolean,default:!1},small:{type:Boolean,default:!1},lang:{type:String,default:"ru"},limit:{type:Number,default:void 0},bare:{type:Boolean,default:!1},copy:{type:String,default:"last"},popupTop:{type:Boolean,default:!1},popupOuter:{type:Boolean,default:!1}},mounted:function(){var e=this;t.attach().then(function(){window.Ya.share2(e.$el,{content:{url:e.url||window.location.href,title:e.title||document.title,description:e.description,image:e.image},contentByService:e.contentByService,theme:{bare:e.bare,copy:e.copy,counter:e.counter,direction:e.vertical?"vertical":"horizontal",lang:e.lang,limit:e.limit,popupDirection:e.popupTop?"top":"bottom",popupPosition:e.popupOuter?"outer":"inner",services:e.services.join(","),size:e.small?"s":"m"},hooks:{onready:function(){e.$emit("ready")},onshare:function(t){e.$emit("share",t)}}})})},render:function(e){return e("div")}};return"undefined"!=typeof window&&window.Vue&&window.Vue.component("yandex-share",n),n});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.vueYandexShare=t()}(this,function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var t=new(function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.attached=!1,this.loaded=!1,this.error=!1,this.stack=[]}var n,o,r;return n=t,(o=[{key:"attach",value:function(){var e=this;return new Promise(function(t,n){if(!e.attached){var o=document.createElement("script");o.setAttribute("src","https://yastatic.net/share2/share.js"),o.setAttribute("async",""),document.head.appendChild(o),o.onload=function(){t(),e.loaded=!0,e.stack.forEach(function(e){e[0]()}),e.stack=[]},o.onerror=function(){n(),e.loaded=!0,e.error=!0,e.stack.forEach(function(e){e[1]()}),e.stack=[]},e.attached=!0}e.error&&n(),e.loaded?t():e.stack.push([t,n])})}}])&&e(n.prototype,o),r&&e(n,r),t}()),n={name:"YandexShare",props:{services:{type:Array,required:!0},counter:{type:Boolean,default:!1},url:{type:String,default:""},title:{type:String,default:""},description:{type:String,default:""},image:{type:String,default:void 0},contentByService:{type:Object,default:function(){return{}}},vertical:{type:Boolean,default:!1},small:{type:Boolean,default:!1},lang:{type:String,default:"ru"},limit:{type:Number,default:void 0},bare:{type:Boolean,default:!1},copy:{type:String,default:"last"},popupTop:{type:Boolean,default:!1},popupOuter:{type:Boolean,default:!1}},mounted:function(){var e=this;t.attach().then(function(){window.Ya.share2(e.$el,{content:{url:e.url||window.location.href,title:e.title||document.title,description:e.description,image:e.image},contentByService:e.contentByService,theme:{bare:e.bare,copy:e.copy,counter:e.counter,direction:e.vertical?"vertical":"horizontal",lang:e.lang,limit:e.limit,popupDirection:e.popupTop?"top":"bottom",popupPosition:e.popupOuter?"outer":"inner",services:e.services.join(","),size:e.small?"s":"m"},hooks:{onready:function(){e.$emit("ready")},onshare:function(t){e.$emit("share",t)}}})})},render:function(e){return e("div")}};return"undefined"!=typeof window&&window.Vue&&window.Vue.component("yandex-share",n),n});
//# sourceMappingURL=vue-yandex-share.min.js.map
{
"name": "@cookieseater/vue-yandex-share",
"version": "0.2.0",
"version": "0.2.1",
"description": "Vue component for Yandex Share service",

@@ -26,7 +26,7 @@ "main": "dist/vue-yandex-share.js",

"devDependencies": {
"bili": "^3.0.13",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.9.0"
"bili": "^3.1.2",
"eslint": "^5.0.0",
"eslint-config-airbnb-base": "^13.0.0",
"eslint-plugin-import": "^2.13.0"
}
}

@@ -28,3 +28,3 @@ import Script from './Script';

type: String,
default: null,
default: undefined,
},

@@ -31,0 +31,0 @@ contentByService: {

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