New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@solid-primitives/active-element

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/active-element - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

18

dist/index.js

@@ -0,4 +1,9 @@

import { makeEventListener, createEventListener } from '@solid-primitives/event-listener';
import { createSignal } from 'solid-js';
// src/index.ts
import { makeEventListener, createEventListener } from "@solid-primitives/event-listener";
import { createSignal } from "solid-js";
console.log("0");
console.log("1");
console.log("2");
console.log("3");
var getActiveElement = () => document.activeElement === document.body ? null : document.activeElement;

@@ -32,8 +37,3 @@ function makeActiveElementListener(callback) {

};
export {
createActiveElement,
createFocusSignal,
focus,
makeActiveElementListener,
makeFocusListener
};
export { createActiveElement, createFocusSignal, focus, makeActiveElementListener, makeFocusListener };

@@ -1,14 +0,35 @@

// src/server.ts
import { noop } from "@solid-primitives/utils";
var makeActiveElementListener = () => noop;
var createActiveElement = () => () => null;
var makeFocusListener = () => noop;
var createFocusSignal = () => () => false;
var focus = noop;
export {
createActiveElement,
createFocusSignal,
focus,
makeActiveElementListener,
makeFocusListener
import '@solid-primitives/event-listener';
import 'solid-js';
// src/index.ts
console.log("0");
console.log("1");
console.log("2");
console.log("3");
function makeActiveElementListener(callback) {
{
return () => void 0;
}
}
function createActiveElement() {
{
return () => null;
}
}
function makeFocusListener(target, callback, useCapture = true) {
{
return () => void 0;
}
}
function createFocusSignal(target) {
{
return () => false;
}
}
var focus = (target, props) => {
{
return;
}
};
export { createActiveElement, createFocusSignal, focus, makeActiveElementListener, makeFocusListener };
{
"name": "@solid-primitives/active-element",
"version": "2.0.2",
"version": "2.0.3",
"description": "A reactive document.activeElement. Check which element is currently focused.",

@@ -23,10 +23,26 @@ "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>",

"sideEffects": false,
"type": "module",
"files": [
"dist"
],
"type": "module",
"main": "./dist/server.cjs",
"module": "./dist/index.js",
"module": "./dist/server.js",
"browser": {
"./dist/server.cjs": "./dist/index.cjs",
"./dist/server.js": "./dist/index.js"
},
"types": "./dist/index.d.ts",
"exports": {
"worker": {
"import": "./dist/server.js",
"require": "./dist/server.cjs"
},
"browser": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"deno": {
"import": "./dist/server.js",
"require": "./dist/server.cjs"
},
"node": {

@@ -46,29 +62,19 @@ "import": "./dist/server.js",

"devDependencies": {
"jsdom": "^20.0.0",
"prettier": "^2.7.1",
"solid-js": "^1.5.1",
"solid-register": "^0.2.5",
"solid-testing-library": "^0.3.0",
"tslib": "^2.4.0",
"tsup": "^6.2.2",
"unocss": "^0.44.7",
"uvu": "^0.5.6",
"vite": "^3.0.7",
"vite-plugin-solid": "^2.3.0",
"watchlist": "^0.3.1"
"solid-js": "^1.5.0",
"solid-testing-library": "^0.3.0"
},
"dependencies": {
"@solid-primitives/event-listener": "^2.2.3",
"@solid-primitives/utils": "^3.1.0"
},
"peerDependencies": {
"solid-js": "^1.3.1"
"solid-js": "^1.5.0"
},
"dependencies": {
"@solid-primitives/event-listener": "^2.2.2",
"@solid-primitives/utils": "^3.0.2"
},
"scripts": {
"start": "vite serve dev --host",
"dev": "npm run start",
"build": "tsup",
"test": "uvu -r solid-register",
"test:watch": "watchlist src test -- npm test"
"build": "jiti ../../scripts/build.ts --ssr",
"test": "vitest -c ../../configs/vitest.config.ts",
"test:ssr": "pnpm run test --mode ssr"
}
}

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