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

shr-buttons

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shr-buttons - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

25

package.json
{
"name": "shr-buttons",
"version": "2.0.2",
"version": "2.0.3",
"description": "Simple, customizable sharing buttons",

@@ -37,7 +37,7 @@ "homepage": "http://shr.one",

"devDependencies": {
"ansi-colors": "^3.2.4",
"aws-sdk": "^2.460.0",
"ansi-colors": "^4.0.1",
"aws-sdk": "^2.479.0",
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"babel-eslint": "^10.0.1",
"babel-eslint": "^10.0.2",
"babel-preset-minify": "^0.5.0",

@@ -47,5 +47,5 @@ "del": "^4.1.1",

"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-import": "^2.17.2",
"eslint-plugin-simple-import-sort": "^3.1.1",
"eslint-config-prettier": "^5.0.0",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-simple-import-sort": "^4.0.0",
"fancy-log": "^1.3.3",

@@ -58,3 +58,3 @@ "fastly-purge": "^1.0.1",

"gulp-clean-css": "^4.2.0",
"gulp-imagemin": "^5.0.3",
"gulp-imagemin": "^6.0.0",
"gulp-less": "^4.0.1",

@@ -69,9 +69,8 @@ "gulp-plumber": "^1.2.1",

"gulp-terser": "^1.2.0",
"prettier-eslint": "^8.8.2",
"prettier-eslint": "^9.0.0",
"prettier-stylelint": "^0.4.2",
"rollup": "^1.12.3",
"rollup": "^1.15.6",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-node-resolve": "^5.0.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-node-resolve": "^5.0.3",
"stylelint-config-prettier": "^5.2.0",

@@ -81,3 +80,3 @@ "stylelint-config-recommended": "^2.2.0",

"stylelint-order": "^3.0.0",
"stylelint-scss": "^3.6.1",
"stylelint-scss": "^3.8.0",
"stylelint-selector-bem-pattern": "^2.1.0",

@@ -84,0 +83,0 @@ "through2": "^3.0.1"

@@ -90,3 +90,3 @@ # Shr

```html
<script src="https://shr.one/2.0.0/shr.js"></script>
<script src="https://shr.one/2.0.3/shr.js"></script>
```

@@ -130,3 +130,3 @@

```html
<link rel="stylesheet" href="https://shr.one/2.0.0/shr.css" />
<link rel="stylesheet" href="https://shr.one/2.0.3/shr.css" />
```

@@ -133,0 +133,0 @@

/**
* Default Shr Config. All variables, settings and states are stored here
* and global. These are the defaults. The user can edit these at will when
* initializing Shr.
*
* @typedef {Object} defaults
* @type {Object}
*
* @property {Boolean} debug - The flag for if we debug Shr or not. By defaul this is false.
* Default Shr Config. All variables, settings and states are stored here
* and global. These are the defaults. The user can edit these at will when
* initializing Shr.
*
* @typedef {Object} defaults
* @type {Object}
*
* @property {Boolean} debug - The flag for if we debug Shr or not. By defaul this is false.
* @property {Object} count - The object containing the settings for the count.
* @property {String} count.classname - Classname for the share count.
* @property {Boolean} count.displayZero - Determines if we display zero values.
* @property {Boolean} count.format - Display 1000 as 1K, 1000000 as 1M, etc
* @property {String} count.position - Inject the count before or after the link in the DOM
* @property {Boolean} count.increment - Determines if we increment the count on click. This assumes the share is valid.
*
* @property {Object} tokens - The object containing authentication tokens.
* @property {Object} tokens.github The optional authentication tokens for GitHub (to prevent rate limiting).
* @property {String} tokens.youtube The public key you need to get the subscriber count for YouTube.
*
* @property {Object} storage - The object containing the settings for local storage.
* @property {Boolean} storage.enabled - Determines if local storage is enabled for the browser or not.
* @property {String} storage.key - The key that the storage will use to access Shr data.
* @property {Number} storage.ttl - The time to live for the local storage values if available.
*/
* @property {Object} wrapper The object containing the settings for the wrapper that's added.
* @property {String} wrapper.className Classname for the wrapper.
* @property {Object} count - The object containing the settings for the count.
* @property {String} count.className - Classname for the share count.
* @property {Boolean} count.displayZero - Determines if we display zero values.
* @property {Boolean} count.format - Display 1000 as 1K, 1000000 as 1M, etc
* @property {String} count.position - Inject the count before or after the link in the DOM
* @property {Boolean} count.increment - Determines if we increment the count on click. This assumes the share is valid.
*
* @property {Object} tokens - The object containing authentication tokens.
* @property {Object} tokens.github The optional authentication tokens for GitHub (to prevent rate limiting).
* @property {String} tokens.youtube The public key you need to get the subscriber count for YouTube.
*
* @property {Object} storage - The object containing the settings for local storage.
* @property {Boolean} storage.enabled - Determines if local storage is enabled for the browser or not.
* @property {String} storage.key - The key that the storage will use to access Shr data.
* @property {Number} storage.ttl - The time to live for the local storage values if available.
*/
/**
*
*/
const defaults = {

@@ -29,0 +36,0 @@ debug: false,

/**
* @name Shr.js
* @version 2.0.0-beta.1
* @version 2.0.2
* @author Sam Potts
* @license The MIT License (MIT)
* @license MIT
*/

@@ -371,3 +371,3 @@

* @param {Object} options
* @returns {Array} An array of instances
* @returns {Array} - An array of instances
*/

@@ -374,0 +374,0 @@ static setup(target, options = {}) {

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

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