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

scrolldir

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrolldir - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

dist/scrolldir.auto.js

2

dist/scrolldir.min.js
/**
* scrolldir - Vertical scroll direction in CSS
* @version v1.1.6
* @version v1.1.7
* @link https://github.com/dollarshaveclub/scrolldir.git

@@ -5,0 +5,0 @@ * @author Patrick Fisher <patrick@pwfisher.com>

@@ -20,12 +20,20 @@ const gulp = require('gulp');

gulp.task('test', () => qunit('tests/index.html'));
gulp.task('test', () => {
qunit('tests/auto/index.html');
qunit('tests/standard/index.html');
});
gulp.task('minify', () => {
gulp.src('dist/scrolldir.js')
.pipe(uglify())
.pipe(head(banner, { pkg }))
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest('dist/'));
.pipe(uglify())
.pipe(head(banner, { pkg }))
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest('dist/'));
gulp.src('dist/scrolldir.auto.js')
.pipe(uglify())
.pipe(head(banner, { pkg }))
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest('dist/'));
});
gulp.task('default', ['test', 'minify']);
{
"name": "scrolldir",
"version": "1.1.7",
"version": "1.1.8",
"description": "Vertical scroll direction in CSS",

@@ -8,2 +8,3 @@ "main": "dist/scrolldir.min.js",

"test": "gulp test",
"start": "rollup -c && rollup -c --environment entry:.auto && gulp",
"postpublish": "git tag $npm_package_version && git push origin --tags"

@@ -10,0 +11,0 @@ },

@@ -63,5 +63,8 @@ <figure align="center">

## Setup 📤
Default:
Add **dist/scrolldir.min.js**.
Auto:
Add **dist/scrolldir.auto.min.js** and your done! Scrolldir will **just** conveniently work.
## Usage 🛠

@@ -68,0 +71,0 @@

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

// rollup bundle commands
// rollup -c => builds default scrolldir (default)
// rollup -c --environment entry:.auto => builds self envoking scrolldir
import babel from 'rollup-plugin-babel';

@@ -6,7 +10,9 @@ import eslint from 'rollup-plugin-eslint';

const name = process.env.entry ? process.env.entry : '.auto';
export default {
entry: 'src/scrolldir.js',
dest: 'dist/scrolldir.js',
entry: `src/scrolldir${name}.js`,
dest: `dist/scrolldir${name}.js`,
format: 'umd',
moduleName: 'scrollDir',
moduleName: `scrollDir${name}`,
sourceMap: false, // removes the souremap at the bottom of the file

@@ -13,0 +19,0 @@ plugins: [

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