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

frs-hide-scrollbar

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frs-hide-scrollbar - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

dist/FRS-hide-scrollbar.browser.js

7

dist/FRS-hide-scrollbar.js

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

parcelRequire=function(t,c,e,r){var s="function"==typeof parcelRequire&&parcelRequire,d="function"==typeof require&&require;function a(r,e){if(!c[r]){if(!t[r]){var l="function"==typeof parcelRequire&&parcelRequire;if(!e&&l)return l(r,!0);if(s)return s(r,!0);if(d&&"string"==typeof r)return d(r);var i=new Error("Cannot find module '"+r+"'");throw i.code="MODULE_NOT_FOUND",i}n.resolve=function(e){return t[r][1][e]||e};var o=c[r]=new a.Module(r);t[r][0].call(o.exports,n,o,o.exports,this)}return c[r].exports;function n(e){return a(n.resolve(e))}}a.isParcelRequire=!0,a.Module=function(e){this.id=e,this.bundle=a,this.exports={}},a.modules=t,a.cache=c,a.parent=s,a.register=function(e,l){t[e]=[function(e,r){r.exports=l},{}]};for(var l=0;l<e.length;l++)a(e[l]);if(e.length){var i=a(e[e.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=i:"function"==typeof define&&define.amd&&define(function(){return i})}return a}({H0tP:[function(e,r,l){var o;function i(){_el=n("div",document.body),_el.style.position="absolute",_el.style["z-index"]="-1",_el.style.width="100px",_el.style.overflow="scroll";var e=_el.offsetWidth-_el.clientWidth;return document.body.removeChild(_el),e!==FRSHideScrollBar.config.scrollWidth&&(FRSHideScrollBar.config.scrollWidth=e,t()),_el.scrollWidth}function n(e,r){return r.appendChild(document.createElement(e))}function t(e,r){if(e=e||FRSHideScrollBar.config.styleElement,r=r||o){var l=r.styleElement,i=l.innerText.lastIndexOf("."+r.className+"{margin-right:-");l.innerText=l.innerText.substring(0,i)}0!==FRSHideScrollBar.config.scrollWidth&&(o=FRSHideScrollBar.config,e.innerText+="."+FRSHideScrollBar.config.className+"{margin-right:-"+(FRSHideScrollBar.config.scrollWidth+.5)+"px;height:calc(100% + "+FRSHideScrollBar.config.scrollWidth+"px)}")}window.FRSHideScrollBar=window.FRSHideScrollBar||{},FRSHideScrollBar.refreshScrollWidth=i,FRSHideScrollBar.createNewChild=n,FRSHideScrollBar.updateStyles=t,FRSHideScrollBar.config=FRSHideScrollBar.config||{},FRSHideScrollBar.config.className=FRSHideScrollBar.config.className||"frs-hide-scroll",FRSHideScrollBar.config.wrapperClassName=FRSHideScrollBar.config.wrapperClassName||"frs-hide-scroll-wrapper",FRSHideScrollBar.config.styleElement=FRSHideScrollBar.config.styleElement||document.getElementsByTagName("style")[0]||n("style",document.head),window.addEventListener("load",i,{passive:!0}),window.addEventListener("resize",i,{passive:!0})},{}],U8NR:[function(e,r,l){},{}],YXW9:[function(e,r,l){e("./scripts/FRSHideScrollbar.js"),e("./styles/FRSHideScrollbar.scss")},{"./scripts/FRSHideScrollbar.js":"H0tP","./styles/FRSHideScrollbar.scss":"U8NR"}],Focm:[function(e,r,l){e("./src/FRS-hide-scrollbar.js")},{"./src/FRS-hide-scrollbar.js":"YXW9"}]},{},["Focm"]);
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"6wyX":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e,t=window.FRSHideScrollbar||{},l=t.config=t.config||{},i=t;function n(){document.readyState&&"loading"!==document.readyState?s():window.addEventListener("load",s,{passive:!0}),window.addEventListener("resize",s,{passive:!0})}function s(){var e=r("div",document.body);e.style.position="absolute",e.style["z-index"]="-1",e.style.width="100px",e.style.overflow="scroll";var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t!==l.scrollWidth&&(l.scrollWidth=t,a()),t}function r(e,t){return t.appendChild(document.createElement(e))}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.styleElement,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(i){var n=i.styleElement,s=n.innerText.lastIndexOf("."+i.className+"{margin-right:-");n.innerText=n.innerText.substring(0,s)}0!==l.scrollWidth&&(e=Object.assign({},l),t.innerText+="."+l.className+"{margin-right:-"+(l.scrollWidth+.5)+"px;height:calc(100% + "+l.scrollWidth+"px)}")}exports.default=i,t.refreshScrollWidth=s,t.createNewChild=r,t.updateStyles=a,l.className=l.className||"frs-hide-scroll",l.wrapperClassName=l.wrapperClassName||"frs-hide-scroll-wrapper",l.styleElement=l.styleElement||document.getElementsByTagName("style")[0]||r("style",document.head),l.autoInit=void 0===l.autoInit||l.autoInit,l.autoInit&&n();
},{}],"kL6y":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("./src/scripts/FRSHideScrollbar"),r=e.FRSHideScrollbar;exports.default=r;
},{"./src/scripts/FRSHideScrollbar":"6wyX"}]},{},["kL6y"], null)
//# sourceMappingURL=/FRS-hide-scrollbar.js.map

2

index.js

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

require('./src/FRS-hide-scrollbar.js');
module.exports = require('./dist/FRS-hide-scrollbar')
{
"name": "frs-hide-scrollbar",
"version": "0.1.8",
"version": "0.1.9",
"description": "Easy & lightweight solution for cross-browser scrollbar hiding",
"main": "index.js",
"esnext": "index-es.js",
"scripts": {
"test": "tape src/*.spec.js",
"test-coverage": "yarn test --cov --coverage-report=lcov",
"test": "tap --node-arg=--experimental-modules ./src/scripts/*.spec.js",
"test-coverage": "yarn test && tap --cov --nyc-arg=--exclude=**/*.spec.js --nyc-arg=--require=esm --nyc-arg=--extension=.mjs --coverage-report=html --100",
"prestart": "yarn clean",
"start": "parcel watch",
"prebuild": "yarn clean",
"build": "parcel build index.js -o FRS-hide-scrollbar --detailed-report && uglifyjs ./dist/FRS-hide-scrollbar.js -o ./dist/FRS-hide-scrollbar.js -c -m && yarn buildVanilla && parcel build docs/example.src.html -d docs --public-url /FRS-hide-scrollbar -o example.dist.html",
"comment_postbuild": "yarn docs",
"buildVanilla": "uglifyjs ./src/scripts/* -o ./dist/FRS-hide-scrollbar.vanilla.js -c -m -e",
"build": "npm-run-all -p build:bundle build:browser build:example",
"postbuild": "yarn docs",
"build:bundle": "parcel build index-es.js index.scss -o FRS-hide-scrollbar --detailed-report",
"build:browser": "node ./scripts/replace \"let FRSHideScrollbar =\" \"let FRSHideScrollbar = window['FRSHideScrollbar'] =\" src/scripts/FRSHideScrollbar.mjs | node ./scripts/replace \"export default FRSHideScrollbar;\" \"\" | google-closure-compiler --compilationLevel ADVANCED --isolation_mode IIFE --assume_function_wrapper --js_output_file dist/FRS-hide-scrollbar.browser.js",
"build:example": "parcel build docs/example.src.html -d docs --public-url /FRS-hide-scrollbar -o example.dist.html -o FRS-hide-scrollbar",
"prepublishOnly": "yarn test-coverage && yarn build",

@@ -19,3 +22,3 @@ "postpublish": "git add dist && git push origin --all && git push origin --tags",

"devExample": "parcel docs/example.src.html -d docs -o example.dist.html",
"clean": "rimraf dist/**/* && rimraf docs/*.dist.html && rimraf docs/*.{js,css,map} && rimraf report.html",
"clean": "rimraf dist/**/* && rimraf docs/*.dist.html && rimraf docs/report.html && rimraf docs/*.{js,css,map} && rimraf coverage",
"docs": "jsdoc2md src/**/*.js > docs/api.md"

@@ -47,2 +50,3 @@ },

],
"unpkg": "dist/FRS-hide-scrollbar.vanilla.js",
"bugs": {

@@ -52,16 +56,19 @@ "url": "https://github.com/FRSource/FRS-hide-scrollbar/issues"

"devDependencies": {
"axe-core": "^3.0.2",
"@babel/core": "^7.0.0-0",
"@babel/preset-env": "^7.4.4",
"esm": "^3.0.84",
"google-closure-compiler": "^20180910.1.0",
"jsdoc-to-markdown": "^4.0.1",
"node-sass": "^4.9.0",
"jsdom": "^12.0.0",
"npm-run-all": "^4.1.3",
"parcel-bundler": "^1.7.1",
"parcel-plugin-bundle-visualiser": "^1.0.2",
"postcss-import": "^11.1.0",
"postcss-reporter": "^5.0.0",
"postcss-import": "^12.0.0",
"postcss-reporter": "^6.0.0",
"precss": "^3.1.2",
"puppeteer": "^1.3.0",
"rimraf": "^2.6.2",
"tape": "^4.9.0",
"uglify-js": "^3.4.6"
"sass": "^1.14.1",
"tap": "^12.0.1"
},
"dependencies": {}
}

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

[![NPM version](https://img.shields.io/npm/v/frs-hide-scrollbar.svg?style=flat)](https://www.npmjs.com/package/frs-replace)
[![Build Status](https://travis-ci.com/FRSource/FRS-hide-scrollbar.svg?branch=master)](https://travis-ci.org/FRSource/FRS-hide-scrollbar)
[![Coverage Status](https://coveralls.io/repos/github/FRSource/FRS-hide-scrollbar/badge.svg?branch=master)](https://coveralls.io/github/FRSource/FRS-hide-scrollbar?branch=master)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Greenkeeper badge](https://badges.greenkeeper.io/FRSource/FRS-hide-scrollbar.svg)](https://greenkeeper.io/)
# FRS-hide-scrollbar

@@ -2,0 +8,0 @@

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