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

sharon

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sharon - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

core/count-factory-indexed.js

4

CHANGELOG.md

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

## 1.3.0
Support Odnoklassniki and Vkontakte.
## 1.2.0

@@ -2,0 +6,0 @@

2

dist/sharon.min.js

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

var sharon=function(){"use strict";var t=0,e=function(e,n){function r(){document.head.removeChild(i),delete window[o]}var o="j"+t++,i=document.createElement("script");i.src=e+(~e.indexOf("?")?"&":"?")+"callback="+o,i.onerror=function(){r(),n(Error())},window[o]=function(t){r(),n(null,t)},document.head.appendChild(i)},n=e,r=function(t,e){return function(r,o){arguments.length<2&&(o=r,r=location),n(t+"="+encodeURIComponent(r),function(t,n){return t?o(t):void o(null,e(n))})}},o=function(t,e){return e&&Object.keys(e).forEach(function(n){t[n]=e[n]}),t},i=o,c=function(t,e){return e=e||{},function(n,r){"string"==typeof n?r=i({url:n},r):(r=i({url:location},n),e.title&&(r.title=r.title||document.title));var o=Object.keys(r).map(function(t){var n=e[t]||t;return Array.isArray(r[t])?n+"="+r[t].map(encodeURIComponent):n+"="+encodeURIComponent(r[t])});return t+(~t.indexOf("?")?"&":"?")+o.join("&")}},u=function(t,e,n){function r(){var r=t.apply(this,arguments),o=Math.max(0,Math.round((screen.height-n)/2)),i=Math.round((screen.width-e)/2);window.open(r,null,"width="+e+",height="+n+",top="+o+",left="+i+",location,resizable,scrollbars,toolbar=no")}return r.href=t,r},a=r,s=c,l=u,h=s("https://bufferapp.com/add",{title:"text"}),p=l(h,850,600),m=a("https://api.bufferapp.com/1/links/shares.json?url",function(t){return t.shares});p.count=m;var f=r,d=c,w=u,b=d("https://www.facebook.com/sharer.php",{url:"u"}),v=w(b,670,340),g=f("https://graph.facebook.com/?id",function(t){return t.share?t.share.share_count:0});v.count=g;var k=c,x=u,y=k("https://mail.google.com/mail/?view=cm",{title:"su",url:"body"}),j=x(y,800,632),C=r,O=c,U=u,A=O("https://www.linkedin.com/shareArticle",{title:"title"}),E=U(A,600,400),I=C("https://www.linkedin.com/countserv/count/share?url",function(t){return t.count});E.count=I;var M=r,R=c,_=u,z=R("https://pinterest.com/pin/create/button",{title:"description"}),N=_(z,750,320),q=M("https://api.pinterest.com/v1/urls/count.json?url",function(t){return t.count});N.count=q;var B=r,D=c,F=u,G=D("https://plus.google.com/share"),H=F(G,600,600),J=B("https://share.yandex.ru/gpp.xml?url",Number);H.count=J;var K=r,L=c,P=u,Q=L("https://www.tumblr.com/widgets/share/tool",{title:"title",url:"canonicalUrl"}),S=P(Q,557,600),T=K("https://api.tumblr.com/v2/share/stats?url",function(t){return t.response.note_count});return S.count=T,{buffer:p,facebook:v,gmail:j,linkedin:E,pinterest:N,plus:H,tumblr:S,twitter:u(c("https://twitter.com/intent/tweet",{title:"text"}),550,420),weibo:u(c("http://service.weibo.com/share/share.php",{title:"title"}),615,505),xing:u(c("https://www.xing.com/spi/shares/new"),570,530)}}();
var sharon=function(){"use strict";var t=0,n=function(n,e,o,r){function i(){document.head.removeChild(c),delete n[e]}arguments.length<4&&(r=e,e="j"+t++,o=n+(~n.indexOf("?")?"&":"?")+"callback="+e,n=window);var c=document.createElement("script");c.src=o,c.onerror=function(){i(),r(Error())},n[e]=function(t){i(),r(null,t)},document.head.appendChild(c)},e=n,o=function(t,n){return function(o,r){arguments.length<2&&(r=o,o=location),e(t+"="+encodeURIComponent(o),function(t,e){return t?r(t):void r(null,n(e))})}},r=function(t,n){return n&&Object.keys(n).forEach(function(e){t[e]=n[e]}),t},i=r,c=function(t,n){return n=n||{},function(e,o){"string"==typeof e?o=i({url:e},o):(o=i({url:location},e),n.title&&(o.title=o.title||document.title));var r=Object.keys(o).map(function(t){var e=n[t]||t;return Array.isArray(o[t])?e+"="+o[t].map(encodeURIComponent):e+"="+encodeURIComponent(o[t])});return t+(~t.indexOf("?")?"&":"?")+r.join("&")}},u=function(t,n,e){function o(){var o=t.apply(this,arguments),r=Math.max(0,Math.round((screen.height-e)/2)),i=Math.round((screen.width-n)/2);window.open(o,null,"width="+n+",height="+e+",top="+r+",left="+i+",location,resizable,scrollbars,toolbar=no")}return o.href=t,o},a=o,s=c,l=u,h=s("https://bufferapp.com/add",{title:"text"}),p=l(h,850,600),d=a("https://api.bufferapp.com/1/links/shares.json?url",function(t){return t.shares});p.count=d;var m=o,f=c,w=u,v=f("https://www.facebook.com/sharer.php",{url:"u"}),b=w(v,670,340),k=m("https://graph.facebook.com/?id",function(t){return t.share?t.share.share_count:0});b.count=k;var g=c,x=u,y=g("https://mail.google.com/mail/?view=cm",{title:"su",url:"body"}),C=x(y,800,632),j=o,U=c,O=u,I=U("https://www.linkedin.com/shareArticle",{title:"title"}),R=O(I,600,400),A=j("https://www.linkedin.com/countserv/count/share?url",function(t){return t.count});R.count=A;var E=n,M=function(t,n,e){return function(o,r){arguments.length<2&&(r=o,o=location);var i=e.length;E(e,i,t+encodeURIComponent(o)+n+i,r)}},K=M,L=c,S=u,_=L("https://connect.ok.ru/dk?st.cmd=WidgetSharePreview",{url:"st.shareUrl"}),z=S(_,580,350),D=[];window.ODKL={updateCount:function(t,n){D[t](+n)}};var N=K("https://connect.ok.ru/dk?st.cmd=extLike&ref=","&uid=",D);z.count=N;var P=o,V=c,W=u,q=V("https://pinterest.com/pin/create/button",{title:"description"}),B=W(q,750,320),F=P("https://api.pinterest.com/v1/urls/count.json?url",function(t){return t.count});B.count=F;var G=o,H=c,J=u,Q=H("https://plus.google.com/share"),T=J(Q,600,600),X=G("https://share.yandex.ru/gpp.xml?url",Number);T.count=X;var Y=o,Z=c,$=u,tt=Z("https://www.tumblr.com/widgets/share/tool",{title:"title",url:"canonicalUrl"}),nt=$(tt,557,600),et=Y("https://api.tumblr.com/v2/share/stats?url",function(t){return t.response.note_count});nt.count=et;var ot=c,rt=u,it=ot("https://twitter.com/intent/tweet",{title:"text"}),ct=rt(it,550,420),ut=M,at=c,st=u,lt=at("http://vk.com/share.php"),ht=st(lt,650,610),pt=[];window.VK={Share:{count:function(t,n){pt[t](n)}}};var dt=ut("https://vk.com/share.php?act=count&url=","&index=",pt);return ht.count=dt,{buffer:p,facebook:b,gmail:C,linkedin:R,ok:z,pinterest:B,plus:T,tumblr:nt,twitter:ct,vk:ht,weibo:u(c("http://service.weibo.com/share/share.php",{title:"title"}),615,505),xing:u(c("https://www.xing.com/spi/shares/new"),570,530)}}();
//# sourceMappingURL=sharon.min.js.map

@@ -6,2 +6,3 @@ module.exports = {

linkedin: require('./linkedin'),
ok: require('./ok'),
pinterest: require('./pinterest'),

@@ -11,4 +12,5 @@ plus: require('./plus'),

twitter: require('./twitter'),
vk: require('./vk'),
weibo: require('./weibo'),
xing: require('./xing')
};
{
"name": "sharon",
"version": "1.2.0",
"version": "1.3.0",
"description": "A lightweight and modular social sharing library",

@@ -13,5 +13,7 @@ "keywords": [

"linkedin",
"odnoklassniki",
"pinterest",
"tumblr",
"twitter",
"vkontakte",
"weibo",

@@ -30,3 +32,3 @@ "xing"

"dependencies": {
"@borodean/jsonp": "^1.0.0"
"@borodean/jsonp": "^1.1.0"
},

@@ -33,0 +35,0 @@ "devDependencies": {

@@ -8,4 +8,4 @@ [![Sauce Test Status][saucelabs-badge]][saucelabs]

- a toolkit to build your own share buttons;
- supports 10 sharing platforms;
- gzipped size is 1.24 KB;
- supports 12 sharing platforms;
- gzipped size is 1.51 KB;
- you can cherry-pick which sharing platforms to use to make it even smaller.

@@ -78,3 +78,3 @@

- [Production version][download] – 1.24 KB, minified and gzipped
- [Production version][download] – 1.51 KB, minified and gzipped
- [Source map][download-map]

@@ -92,8 +92,10 @@

| Facebook | `sharon.facebook` | Yes | |
| Gmail | `sharon.gmail` | | |
| Google+ | `sharon.plus` | Yes | [Reference][params-plus] |
| Gmail | `sharon.gmail` | | |
| LinkedIn | `sharon.linkedin` | Yes | [Reference][params-linkedin] |
| Odnoklassniki | `sharon.ok` | Yes | |
| Pinterest | `sharon.pinterest` | Yes | [Reference][params-pinterest] |
| Tumblr | `sharon.tumblr` | Yes | [Reference][params-tumblr] |
| Twitter | `sharon.twitter` | | [Reference][params-twitter] |
| Vkontakte | `sharon.vk` | Yes | [Reference][params-vk] |
| Weibo | `sharon.weibo` | | |

@@ -280,7 +282,7 @@ | XING | `sharon.xing` | | [Reference][params-xing] |

[download]: https://github.com/borodean/sharon/releases/download/1.2.0/sharon-1.2.0.min.js
[download-map]: https://github.com/borodean/sharon/releases/download/1.2.0/sharon-1.2.0.min.js.map
[download]: https://github.com/borodean/sharon/releases/download/1.3.0/sharon-1.3.0.min.js
[download-map]: https://github.com/borodean/sharon/releases/download/1.3.0/sharon-1.3.0.min.js.map
[media-example]: media/example.png
[media-heart]: https://cdn.rawgit.com/borodean/sharon/1.2.0/media/heart.svg
[media-sharon]: https://cdn.rawgit.com/borodean/sharon/1.2.0/media/sharon.svg
[media-heart]: https://cdn.rawgit.com/borodean/sharon/1.3.0/media/heart.svg
[media-sharon]: https://cdn.rawgit.com/borodean/sharon/1.3.0/media/sharon.svg
[params-buffer]: https://buffer.com/extras/button

@@ -292,4 +294,5 @@ [params-linkedin]: https://developer.linkedin.com/docs/share-on-linkedin

[params-twitter]: https://dev.twitter.com/web/tweet-button/web-intent
[params-vk]: https://vk.com/dev/share_details
[params-xing]: https://dev.xing.com/plugins/share_button/docs
[saucelabs]: https://saucelabs.com/u/borodean-sharon
[saucelabs-badge]: https://saucelabs.com/browser-matrix/borodean-sharon.svg

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