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

@solid-primitives/media

Package Overview
Dependencies
Maintainers
3
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/media - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

4

dist/index.d.ts

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

import { Accessor } from 'solid-js';
/**

@@ -15,3 +17,3 @@ * Creates a very simple and straightforward media query monitor.

*/
declare const createMediaQuery: (query: string, fallbackState?: boolean, watchChange?: boolean) => (() => boolean);
declare const createMediaQuery: (query: string, fallbackState?: boolean, watchChange?: boolean) => Accessor<boolean>;

@@ -18,0 +20,0 @@ declare type Breakpoints = Record<string, string>;

{
"name": "@solid-primitives/media",
"version": "1.2.0",
"description": "Primitives for media query and device features",
"author": "David Di Biase <dave.dibiase@gmail.com>",
"license": "MIT",
"homepage": "https://github.com/davedbase/solid-primitives/tree/main/packages/media",
"repository": {
"type": "git",
"url": "git+https://github.com/davedbase/solid-primitives.git"
},
"primitive": {
"name": "media",
"stage": 3,
"list": [
"createMediaQuery",
"createBreakpoints"
],
"category": "Display & Media"
},
"files": [
"dist"
],
"private": false,
"sideEffects": false,
"type": "module",
"main": "./dist/server.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"node": {
"import": "./dist/server.js",
"require": "./dist/server.cjs"
},
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"scripts": {
"build": "tsup",
"test": "vitest run test",
"test:watch": "vitest watch test"
},
"keywords": [
"media",
"mediaquery",
"query",
"breakpoints",
"responsive",
"solid",
"primitives"
],
"devDependencies": {
"c8": "^7.11.0",
"jsdom": "^19.0.0",
"prettier": "^2.0.5",
"solid-testing-library": "^0.2.0",
"tslib": "^2.0.1",
"tsup": "^5.10.3",
"typescript": "^4.0.2",
"vite-plugin-solid": "^2.2.6",
"vitest": "^0.7.4"
},
"peerDependencies": {
"solid-js": "^1.3.1"
},
"contributors": [
{
"name": "Aditya Agarwal",
"email": "adityaa803@gmail.com",
"url": "https://devadi.netlify.app"
}
]
"name": "@solid-primitives/media",
"version": "1.3.0",
"description": "Primitives for media query and device features",
"author": "David Di Biase <dave.dibiase@gmail.com>",
"contributors": [
{
"name": "Aditya Agarwal",
"email": "adityaa803@gmail.com",
"url": "https://devadi.netlify.app"
}
],
"license": "MIT",
"homepage": "https://github.com/solidjs-community/solid-primitives/tree/main/packages/media",
"repository": {
"type": "git",
"url": "git+https://github.com/solidjs-community/solid-primitives.git"
},
"primitive": {
"name": "media",
"stage": 3,
"list": [
"createMediaQuery",
"createBreakpoints"
],
"category": "Display & Media"
},
"files": [
"dist"
],
"private": false,
"sideEffects": false,
"type": "module",
"main": "./dist/server.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"node": {
"import": "./dist/server.js",
"require": "./dist/server.cjs"
},
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"scripts": {
"start": "vite serve dev --host",
"dev": "yarn start",
"build": "tsup",
"test": "vitest run test",
"test:watch": "vitest watch test"
},
"keywords": [
"media",
"mediaquery",
"query",
"breakpoints",
"responsive",
"solid",
"primitives"
],
"devDependencies": {
"c8": "^7.11.0",
"jsdom": "^19.0.0",
"prettier": "^2.0.5",
"solid-testing-library": "^0.2.0",
"tslib": "^2.0.1",
"tsup": "^5.10.3",
"typescript": "^4.0.2",
"vite-plugin-solid": "^2.2.6",
"vitest": "^0.7.4"
},
"peerDependencies": {
"solid-js": "^1.3.1"
}
}

@@ -0,1 +1,5 @@

<p>
<img width="100%" src="https://assets.solidjs.com/banner?type=Primitives&background=tiles&project=Media" alt="Solid Primitives Media">
</p>
# @solid-primitives/media

@@ -6,3 +10,3 @@

[![size](https://img.shields.io/npm/v/@solid-primitives/media?style=for-the-badge)](https://www.npmjs.com/package/@solid-primitives/media)
[![stage](https://img.shields.io/endpoint?style=for-the-badge&url=https%3A%2F%2Fraw.githubusercontent.com%2Fdavedbase%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-3.json)](https://github.com/davedbase/solid-primitives#contribution-process)
[![stage](https://img.shields.io/endpoint?style=for-the-badge&url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolidjs-community%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-3.json)](https://github.com/solidjs-community/solid-primitives#contribution-process)

@@ -9,0 +13,0 @@ Collection of reactive primitives to deal with media queries.

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