Socket
Socket
Sign inDemoInstall

swipelistener-js

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swipelistener-js - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

build/index.es.js

5

package.json
{
"name": "swipelistener-js",
"description": "Small JS plugin to handle swipe gestures.",
"version": "1.0.1",
"version": "1.0.2",
"scripts": {
"ghpages": "git subtree push --prefix build origin gh-pages",
"start": "rollup -c -w",

@@ -37,2 +38,4 @@ "build": "rollup -c"

"babel-preset-es2015-rollup": "^3.0.0",
"rollup-plugin-generate-html-template": "^1.7.0",
"rollup-plugin-import-css": "^3.0.2",
"rollup-plugin-uglify": "^6.0.4"

@@ -39,0 +42,0 @@ },

10

README.md
# swipelistener-js
Small JS plugin to handle swipe gestures.
### [Demo](https://yurayarosh.github.io/swipelistener-js/)
### Install
```html
yarn add swipelistener
```bash
$ yarn add swipelistener
```

@@ -42,3 +46,3 @@

swipe.on(eventName, callback)
popup.off(eventName, callback)
swipe.off(eventName, callback)
swipe.destroy()

@@ -45,0 +49,0 @@ ```

import babel from '@rollup/plugin-babel'
import css from 'rollup-plugin-import-css'
import htmlTemplate from 'rollup-plugin-generate-html-template'
import { uglify } from 'rollup-plugin-uglify'

@@ -6,5 +8,5 @@

{
input: 'src/main.js',
input: './src/main.js',
output: {
file: 'index.js',
file: './build/index.js',
name: 'Popup',

@@ -22,6 +24,6 @@ format: 'umd',

{
input: 'src/main.js',
input: './src/main.js',
output: [
{
file: 'index.es.js',
file: './build/index.es.js',
format: 'es',

@@ -32,5 +34,5 @@ },

{
input: 'src/test.js',
input: './src/test.js',
output: {
file: 'test.js',
file: './build/test.js',
format: 'cjs',

@@ -43,4 +45,9 @@ },

}),
htmlTemplate({
template: './src/index.html',
target: './index.html',
}),
css(),
],
},
]
import Swipe from './main'
import './test.css'

@@ -3,0 +4,0 @@ const isTouch = 'ontouchstart' in window || navigator.maxTouchPoints

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