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

@solid-primitives/bounds

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/bounds - npm Package Compare versions

Comparing version 0.0.103 to 0.0.104

18

dist/index.js

@@ -0,6 +1,7 @@

import { onMount, createComputed, on, onCleanup } from 'solid-js';
import { createStaticStore, access } from '@solid-primitives/utils';
import { createResizeObserver } from '@solid-primitives/resize-observer';
import { makeEventListener } from '@solid-primitives/event-listener';
// src/index.ts
import { createComputed, on, onCleanup, onMount } from "solid-js";
import { access, createStaticStore } from "@solid-primitives/utils";
import { createResizeObserver } from "@solid-primitives/resize-observer";
import { makeEventListener } from "@solid-primitives/event-listener";
var NULLED_BOUNDS = {

@@ -15,4 +16,5 @@ top: null,

function getElementBounds(element) {
if (!element)
if (!element) {
return Object.assign({}, NULLED_BOUNDS);
}
const rect = element.getBoundingClientRect();

@@ -72,5 +74,3 @@ return {

}
export {
createElementBounds,
getElementBounds
};
export { createElementBounds, getElementBounds };

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

// src/server.ts
var getElementBounds = () => ({
import 'solid-js';
import '@solid-primitives/utils';
import '@solid-primitives/resize-observer';
import '@solid-primitives/event-listener';
// src/index.ts
var NULLED_BOUNDS = {
top: null,

@@ -9,7 +14,14 @@ left: null,

height: null
});
var createElementBounds = () => getElementBounds();
export {
createElementBounds,
getElementBounds
};
function getElementBounds(element) {
{
return Object.assign({}, NULLED_BOUNDS);
}
}
function createElementBounds(target, { trackMutation = true, trackResize = true, trackScroll = true } = {}) {
{
return Object.assign({}, NULLED_BOUNDS);
}
}
export { createElementBounds, getElementBounds };
{
"name": "@solid-primitives/bounds",
"version": "0.0.103",
"version": "0.0.104",
"description": "Primitives for tracking HTML element size and position on screen as it changes.",

@@ -24,9 +24,35 @@ "author": "Damian Tarnawski <gthetarnav@gmail.com>",

},
"keywords": [
"solid",
"primitives",
"size",
"position",
"bounds"
],
"private": false,
"sideEffects": false,
"files": [
"dist"
],
"type": "module",
"main": "./dist/server.cjs",
"module": "./dist/index.js",
"module": "./dist/server.js",
"types": "./dist/index.d.ts",
"browser": {
"./dist/server.cjs": "./dist/index.cjs",
"./dist/server.js": "./dist/index.js"
},
"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": {

@@ -39,42 +65,20 @@ "import": "./dist/server.js",

},
"files": [
"dist"
],
"keywords": [
"solid",
"primitives",
"size",
"position",
"bounds"
],
"devDependencies": {
"@solid-primitives/scheduled": "^1.0.2",
"jsdom": "^20.0.0",
"prettier": "^2.7.1",
"solid-js": "^1.5.4",
"solid-register": "^0.2.5",
"tslib": "^2.4.0",
"tsup": "^6.2.3",
"typescript": "^4.8.2",
"unocss": "^0.45.15",
"uvu": "^0.5.6",
"vite": "^3.0.9",
"vite-plugin-solid": "^2.3.0",
"watchlist": "^0.3.1"
"@solid-primitives/scheduled": "^1.1.0",
"solid-js": "^1.5.0"
},
"dependencies": {
"@solid-primitives/event-listener": "^2.2.2",
"@solid-primitives/resize-observer": "^2.0.4",
"@solid-primitives/utils": "^3.0.2"
"@solid-primitives/event-listener": "^2.2.3",
"@solid-primitives/resize-observer": "^2.0.5",
"@solid-primitives/utils": "^3.1.0"
},
"peerDependencies": {
"solid-js": "^1.4.0"
"solid-js": "^1.5.0"
},
"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