Socket
Socket
Sign inDemoInstall

signature_pad

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

signature_pad - npm Package Compare versions

Comparing version 1.6.0-beta.1 to 1.6.0-beta.2

13

.eslintrc.js
module.exports = {
"extends": "airbnb-base"
"extends": "airbnb-base",
"env": {
"browser": true
},
"rules": {
"no-underscore-dangle": "off",
"func-names": "off",
"import/prefer-default-export": "off",
"no-restricted-properties": "off"
}
};

17

example/js/signature_pad.js
/*!
* Signature Pad v1.6.0-beta.1
* Signature Pad v1.6.0-beta.2
* https://github.com/szimek/signature_pad

@@ -20,5 +20,5 @@ *

if (typeof define === "function" && define.amd) {
define(['module'], factory);
define(['exports'], factory);
} else if (typeof exports !== "undefined") {
factory(module);
factory(exports);
} else {

@@ -28,10 +28,11 @@ var mod = {

};
factory(mod);
factory(mod.exports);
global.SignaturePad = mod.exports;
}
})(this, function (module) {
})(this, function (exports) {
'use strict';
/* eslint-env browser */
/* eslint no-underscore-dangle: "off", func-names: "off", import/prefer-default-export: "off" */
Object.defineProperty(exports, "__esModule", {
value: true
});
function Point(x, y, time) {

@@ -524,3 +525,3 @@ this.x = x;

module.exports = SignaturePad;
exports.default = SignaturePad;
});
{
"name": "signature_pad",
"description": "Library for drawing smooth signatures.",
"version": "1.6.0-beta.1",
"version": "1.6.0-beta.2",
"homepage": "https://github.com/szimek/signature_pad",

@@ -12,2 +12,3 @@ "author": {

"main": "dist/signature_pad.js",
"jsnext:main": "src/signature_pad.js",
"scripts": {

@@ -28,3 +29,2 @@ "build": "grunt",

"babel-plugin-transform-es2015-modules-umd": "^6.18.0",
"babel-plugin-transform-exponentiation-operator": "^6.8.0",
"babel-preset-es2015": "^6.18.0",

@@ -31,0 +31,0 @@ "eslint": "^3.13.1",

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

/* eslint-env browser */
/* eslint no-underscore-dangle: "off", func-names: "off", import/prefer-default-export: "off" */
function Point(x, y, time) {

@@ -14,3 +12,3 @@ this.x = x;

Point.prototype.distanceTo = function (start) {
return Math.sqrt(((this.x - start.x) ** 2) + ((this.y - start.y) ** 2));
return Math.sqrt(Math.pow(this.x - start.x, 2) + Math.pow(this.y - start.y, 2));
};

@@ -504,2 +502,2 @@

module.exports = SignaturePad;
export default SignaturePad;

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc