goodshare.js
Advanced tools
Comparing version 6.0.4 to 6.0.5
@@ -72,5 +72,5 @@ 'use strict';(function(){function h(c,b){if(!(c instanceof b))throw new TypeError("Cannot call a class as a function");}function u(c,b){for(var a=0;a<b.length;a++){var e=b[a];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(c,e.key,e)}}function g(c,b,a){b&&u(c.prototype,b);a&&u(c,a);return c}function m(c,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(b&&b.prototype, | ||
h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="viber://forward?text=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="viber"]');return this.createEvents(a)}}]);return b}(f), | ||
aa=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="whatsapp://send?text=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a= | ||
aa=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="https://wa.me/?text=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a= | ||
document.querySelectorAll('[data-social="whatsapp"]');return this.createEvents(a)}}]);return b}(f);f=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="line://msg/text/".concat(a);return{callback:this.callback, | ||
share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="line"]');return this.createEvents(a)}}]);return b}(f);var ba=[t,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,aa,f];t=function(){function c(){h(this,c);this.providers=ba;this.getProviders()}g(c,[{key:"setShareCallback",value:function(b){this.providers=this.providers.map(function(a){return a.setShareCallback(b)})}},{key:"getProviders", | ||
value:function(){return this.providers=this.providers.map(function(b){return(new b).getInstance()})}},{key:"reNewAllInstance",value:function(){this.providers=this.providers.map(function(b){return b.reNewInstance()})}}]);return c}();window._goodshare=new t})(); |
{ | ||
"name": "goodshare.js", | ||
"version": "6.0.4", | ||
"version": "6.0.5", | ||
"description": "Useful modern JavaScript solution for share a link from your website to social networks or mobile messengers.", | ||
@@ -32,9 +32,10 @@ "main": "goodshare.min.js", | ||
"@ampproject/rollup-plugin-closure-compiler": "^0.8.5", | ||
"@babel/core": "^7.3.4", | ||
"@babel/preset-env": "^7.3.4", | ||
"@babel/core": "^7.4.0", | ||
"@babel/preset-env": "^7.4.2", | ||
"babel-loader": "^8.0.5", | ||
"core-js": "^3.0.0", | ||
"gitbook-cli": "^2.3.2", | ||
"rollup": "^1.6.0", | ||
"rollup": "^1.7.3", | ||
"rollup-plugin-babel": "^4.3.2" | ||
} | ||
} |
@@ -12,3 +12,3 @@ ![goodshare-js-logo-github](https://user-images.githubusercontent.com/11155743/31406128-fc67d706-ae08-11e7-9a97-5f10a7006b31.jpg) | ||
Simple install, extensive documentation, developer support, **SEO friendly**, small bundle size (gzipped size: **3.6 Kb**), many options for customization of appearance, **clean code without scripts tracking user activity** on the page, **high speed**. | ||
Simple install, extensive documentation, developer support, **SEO friendly**, small bundle size (gzipped size: **4.5 Kb**), many options for customization of appearance, **clean code without scripts tracking user activity** on the page, **high speed**. | ||
@@ -15,0 +15,0 @@ ### Full Documentation & Demos |
@@ -9,3 +9,3 @@ ![goodshare.js logo](https://user-images.githubusercontent.com/11155743/31406128-fc67d706-ae08-11e7-9a97-5f10a7006b31.jpg) | ||
> | ||
> Simple install, extensive documentation, developer support, **SEO friendly**, small bundle size (gzipped size: **3.6 Kb**), many options for customization of appearance, **clean code without scripts tracking user activity** on the page, **high speed**. | ||
> Simple install, extensive documentation, developer support, **SEO friendly**, small bundle size (gzipped size: **4.5 Kb**), many options for customization of appearance, **clean code without scripts tracking user activity** on the page, **high speed**. | ||
@@ -12,0 +12,0 @@ **[Release Notes](https://github.com/koddr/goodshare.js/releases)** |
@@ -6,3 +6,3 @@ /** | ||
* | ||
* goodshare.js v6.0.4 at 19/03/2019 | ||
* goodshare.js v6.0.5 at 26/03/2019 | ||
* | ||
@@ -9,0 +9,0 @@ * Useful modern JavaScript solution for share a link from your website |
@@ -24,3 +24,3 @@ /** | ||
: this.url; | ||
const share_url = `whatsapp://send?text=${url}`; | ||
const share_url = `https://wa.me/?text=${url}`; | ||
@@ -27,0 +27,0 @@ return { |
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
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
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
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 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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2057998
0
8