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

@masatomakino/fake-mouse-event

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@masatomakino/fake-mouse-event - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

bin/FakeMouseEvent.d.ts

@@ -19,2 +19,4 @@ import { ButtonType, FakeMouseEventInit } from "./FakeMouseEventInit";

screenY: number;
layerX: number;
layerY: number;
shiftKey: boolean;

@@ -21,0 +23,0 @@ x: number;

@@ -46,4 +46,8 @@ "use strict";

this.y = values.y;
this.layerX = values.layerX;
this.layerY = values.layerY;
this.clientX = values.clientX;
this.clientY = values.clientY;
}
}
exports.FakeMouseEvent = FakeMouseEvent;

@@ -18,2 +18,4 @@ export type ButtonType = 0 | 1 | 2 | 3 | 4;

screenY?: number;
layerX?: number;
layerY?: number;
shiftKey?: boolean;

@@ -20,0 +22,0 @@ x?: number;

5

bin/Generator.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPointerEvent = exports.getMouseEvent = void 0;
exports.getMouseEvent = getMouseEvent;
exports.getPointerEvent = getPointerEvent;
const FakeMouseEvent_1 = require("./FakeMouseEvent");

@@ -37,6 +38,4 @@ const FakePointerEvent_1 = require("./FakePointerEvent");

}
exports.getMouseEvent = getMouseEvent;
function getPointerEvent(type, values) {
return new FakePointerEvent_1.FakePointerEvent(type, initPointerEventOptions(values));
}
exports.getPointerEvent = getPointerEvent;
{
"name": "@masatomakino/fake-mouse-event",
"version": "0.1.0",
"version": "0.1.1",
"description": "Fake mouse event generator with x/y properties for jsdom.",

@@ -18,2 +18,3 @@ "main": "./bin/index.js",

"@types/jest": "^29.5.1",
"@types/node": "^22.5.4",
"husky": "^9.0.10",

@@ -26,3 +27,3 @@ "jest": "^29.5.0",

"ts-node": "^10.9.1",
"typescript": "^5.0.4"
"typescript": "^5.4.2"
},

@@ -32,7 +33,17 @@ "scripts": {

"coverage": "jest --coverage",
"preversion": "git checkout main && git pull && npm ci && npm run build && npm test",
"postversion": "git add package.json package-lock.json && git checkout -b version/$(git describe --tags --abbrev=0)",
"build": "tsc",
"start:dev": "tsc -w",
"prepare": "husky"
"prepare": "husky",
"preversion": "git checkout main && git pull && npm ci && npm run build && npm test",
"postversion": "npm run version-add-package-files && npm run version-checkout && npm run version-push && npm run version-pull-request",
"version-add-package-files": "git add package.json package-lock.json",
"version-checkout": "git checkout -b version/$(git describe --tags --abbrev=0)",
"version-push": "git push --set-upstream origin version/$(git describe --tags --abbrev=0)",
"version-pull-request": "gh pr create --fill --base main --head version/$(git describe --tags --abbrev=0) | grep -o 'https.*github.*' | xargs gh pr view --web",
"release": "npm run release-check-merged && npm run release-check-tag-exists && npm run release-push-tags && npm run release-create-draft && npm run release-open-draft",
"release-check-merged": "git fetch origin && git branch --merged origin/main | grep version/$(git describe --tags --abbrev=0) || (echo 'Branch not merged' && exit 1)",
"release-check-tag-exists": "git fetch --tags && (git ls-remote --tags origin | grep -q $(git describe --tags --abbrev=0) && echo 'Tag already exists' && exit 1 || exit 0)",
"release-push-tags": "git push origin $(git describe --tags --abbrev=0)",
"release-create-draft": "gh release create $(git describe --tags --abbrev=0) --generate-notes --verify-tag --draft",
"release-open-draft": "gh release view $(git describe --tags --abbrev=0) --web"
},

@@ -39,0 +50,0 @@ "bugs": {

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc