wheel-gestures
Advanced tools
Comparing version 2.2.4 to 2.2.5
@@ -60,3 +60,4 @@ 'use strict'; | ||
return Math.max.apply(Math, numbers.map(Math.abs)); | ||
} | ||
} // eslint-disable-next-line @typescript-eslint/ban-types | ||
function deepFreeze(o) { | ||
@@ -63,0 +64,0 @@ Object.freeze(o); |
@@ -56,3 +56,4 @@ function _extends() { | ||
return Math.max.apply(Math, numbers.map(Math.abs)); | ||
} | ||
} // eslint-disable-next-line @typescript-eslint/ban-types | ||
function deepFreeze(o) { | ||
@@ -59,0 +60,0 @@ Object.freeze(o); |
{ | ||
"name": "wheel-gestures", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "wheel gestures and momentum detection", | ||
@@ -22,3 +22,3 @@ "main": "dist/index.js", | ||
"type-check": "tsc --noEmit", | ||
"prepare": "tsdx build", | ||
"prepare": "tsdx build; husky install", | ||
"semantic-release": "semantic-release" | ||
@@ -62,3 +62,3 @@ }, | ||
"eslint-plugin-react-app": "^6.2.2", | ||
"husky": "^4.2.5", | ||
"husky": "^6.0.0", | ||
"lint-staged": "^10.1.6", | ||
@@ -68,4 +68,11 @@ "semantic-release": "^17.4.2", | ||
"tslib": "^2.0.0", | ||
"typescript": "^3.9.1-rc" | ||
"typescript": "^4.2.3" | ||
}, | ||
"resolutions": { | ||
"**/@typescript-eslint/eslint-plugin": "^4.11.1", | ||
"**/@typescript-eslint/parser": "^4.11.1", | ||
"**/jest": "^26.6.3", | ||
"**/ts-jest": "^26.4.4", | ||
"**/typescript": "^4.2.3" | ||
}, | ||
"jest": { | ||
@@ -72,0 +79,0 @@ "collectCoverageFrom": [ |
@@ -110,3 +110,3 @@ import { WheelEventData, WheelGesturesOptions } from '../../types' | ||
testPreventWheelActionWithOptions(swipeUpTrackpad.wheelEvents, { | ||
// @ts-expect-error | ||
// @ts-expect-error unsupported option | ||
options: { preventWheelAction: 'xyz' }, | ||
@@ -113,0 +113,0 @@ }) |
@@ -48,3 +48,3 @@ import { WheelGestures } from '../..' | ||
it('should work with new', function() { | ||
// @ts-expect-error | ||
// @ts-expect-error new missing in signature | ||
const wG = new WheelGestures() | ||
@@ -51,0 +51,0 @@ const callback = jest.fn() |
@@ -76,3 +76,3 @@ import { WheelGestures } from '../..' | ||
expect(logWarn).toHaveBeenCalledTimes(1) | ||
// @ts-expect-error | ||
// @ts-expect-error type error expected | ||
wheelGestures.updateOptions({ reverseSign: null }) | ||
@@ -79,0 +79,0 @@ expect(logWarn).toHaveBeenCalledTimes(2) |
@@ -24,2 +24,3 @@ export * from './projection' | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
export function deepFreeze<T extends object>(o: T): Readonly<T> { | ||
@@ -26,0 +27,0 @@ Object.freeze(o) |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
357212
11464