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

swipehandler

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swipehandler - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

dist/swipe-handler.iife.js

6

dist/swipe-handler.js

@@ -40,3 +40,2 @@ "use strict";

let sum_xx = 0;
let sum_yy = 0;
for (let i = 0; i < n; i++) {

@@ -47,3 +46,2 @@ sum_x += x[i];

sum_xx += x[i] * x[i];
sum_yy += y[i] * y[i];
}

@@ -154,3 +152,3 @@ const slope = (n * sum_xy - sum_x * sum_y) / (n * sum_xx - sum_x * sum_x);

let i = 0;
let key = Symbol("swipehandler");
const key = Symbol("swipehandler");
return (obj) => {

@@ -188,3 +186,3 @@ if (!(key in obj)) {

for (const key in events) {
if (events.hasOwnProperty(key)) {
if (Object.prototype.hasOwnProperty.call(events, key)) {
events[key](data);

@@ -191,0 +189,0 @@ }

{
"name": "swipehandler",
"version": "0.1.0",
"version": "0.1.1",
"description": "A handler for swipe events",

@@ -14,5 +14,6 @@ "main": "dist/swipe-handler.js",

"build:esm": "npm run build-common -- --outfile=./dist/swipe-handler.mjs --format=esm",
"build:example": "npm run build-common -- --outfile=./example/swipe-handler.js --format=esm",
"build:iife": "npm run build-common -- --outfile=./dist/swipe-handler.iife.js --format=iife --global-name=_sh --footer:js=\"var SwipeHandler = _sh.default;\"",
"build:example": "npm run build:iife -- --outfile=./example/swipe-handler.js",
"build-common": "esbuild ./src/index.ts --bundle",
"build:declarations": "npx tsc --emitDeclarationOnly 1> /dev/null || true",
"build:declarations": "npx tsc --emitDeclarationOnly -noResolve 1> /dev/null || true",
"format": "prettier --loglevel warn --write \"**/*.{js,css,md}\""

@@ -19,0 +20,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