@igorkowalczyk/is-browser 5.0.1 → 5.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,11 +1,16 @@
1
- <img width="170" height="170" align="left" style="float: left; margin: 0 10px 0 0; border-radius: 50%;" alt="Tailwindcss logo" src="https://raw.githubusercontent.com/IgorKowalczyk/is-browser/main/src/images/logo.svg">
2
-
3
- # TailwindCSS is `:browser`
4
-
5
- 🏔️ Add support for browser specific variants in Tailwind.css
6
-
7
- [![GitHub License](https://img.shields.io/github/license/igorkowalczyk/is-browser?color=%2334D058&logo=github&style=flat-square&label=License)](https://github.com/igorkowalczyk/is-browser/blob/main/license.md)
8
- [![NPM Version](https://img.shields.io/npm/v/%40igorkowalczyk%2Fis-browser/latest.svg?logo=npm&logoColor=fff&style=flat-square&color=%2334D058)](https://npmjs.com/package/@igorkowalczyk/is-browser) [![NPM Downloads](https://img.shields.io/npm/dw/@igorkowalczyk/is-browser?logo=npm&logoColor=fff&style=flat-square&color=%2334D058&label=Downloads)](https://npmjs.com/package/@igorkowalczyk/is-browser)
1
+ ![Is browser](https://github.com/IgorKowalczyk/is-browser/assets/49127376/6a992917-80fd-4268-9f26-29e3740f2588)
2
+
3
+ <div align="center">
4
+ <a aria-label="Github License" href="https://github.com/igorkowalczyk/is-browser/blob/main/license.md">
5
+ <img src="https://img.shields.io/github/license/igorkowalczyk/is-browser?color=%2334D058&logo=github&style=flat-square&label=License"/>
6
+ </a>
7
+ <a aria-label="NPM Version" href="https://npmjs.com/package/@igorkowalczyk/is-browser">
8
+ <img src="https://img.shields.io/npm/v/%40igorkowalczyk%2Fis-browser/latest.svg?logo=npm&logoColor=fff&style=flat-square&color=%2334D058"/>
9
+ </a>
10
+ <a aria-label="NPM Downloads" href="https://npmjs.com/package/@igorkowalczyk/is-browser">
11
+ <img src="https://img.shields.io/npm/dw/@igorkowalczyk/is-browser?logo=npm&logoColor=fff&style=flat-square&color=%2334D058&label=Downloads"/>
12
+ </a>
13
+ </div>
9
14
 
10
15
  ---
11
16
 
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@igorkowalczyk/is-browser",
3
3
  "description": "🏔️ Add support for browser specific variants in Tailwind.css",
4
- "version": "5.0.1",
4
+ "version": "5.0.3",
5
5
  "author": "Igor Kowalczyk",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
8
8
  "repository": "IgorKowalczyk/is-browser",
9
+ "funding": "https://github.com/sponsors/igorkowalczyk",
9
10
  "bugs": "https://github.com/IgorKowalczyk/is-browser/issues",
10
11
  "homepage": "https://github.com/IgorKowalczyk/is-browser#readme",
11
12
  "type": "module",
@@ -14,12 +15,12 @@
14
15
  "require": "./dist/cjs/index.cjs"
15
16
  },
16
17
  "devDependencies": {
17
- "@igorkowalczyk/eslint-config": "1.5.5",
18
- "@igorkowalczyk/prettier-config": "1.5.5",
19
- "eslint": "8.47.0",
20
- "prettier": "3.0.1",
21
- "rollup": "3.28.0",
22
- "tailwindcss": "3.3.3"
18
+ "@igorkowalczyk/eslint-config": "2.2.0",
19
+ "@igorkowalczyk/prettier-config": "2.2.0",
20
+ "eslint": "9.8.0",
21
+ "prettier": "3.3.3",
22
+ "rollup": "4.19.1",
23
+ "tailwindcss": "3.4.7"
23
24
  },
24
25
  "peerDependencies": {
25
26
  "tailwindcss": ">=3.0.0"
@@ -38,12 +39,11 @@
38
39
  "engines": {
39
40
  "node": ">=16"
40
41
  },
41
- "packageManager": "pnpm@8.6.12",
42
42
  "scripts": {
43
43
  "build": "rollup -c",
44
44
  "format": "prettier . --write --ignore-unknown --cache",
45
45
  "format:check": "prettier . --check --cache",
46
- "lint": "eslint . --ext .js,.ts",
47
- "lint:fix": "eslint . --ext .js,.ts --fix"
46
+ "lint": "eslint .",
47
+ "lint:fix": "eslint . --fix"
48
48
  }
49
49
  }
@@ -1,6 +0,0 @@
1
- 'use strict';var plugin=require('tailwindcss/plugin');/* eslint-disable func-names,prefer-arrow-callback,space-before-function-paren */
2
- const isBrowser = plugin(function ({ addVariant }) {
3
- addVariant("firefox", "@supports (-moz-appearance: none)");
4
- addVariant("safari", "@supports (background: -webkit-named-image(i))");
5
- addVariant("chrome", "@supports (-webkit-app-region: inherit)");
6
- });module.exports=isBrowser;
package/dist/mjs/index.js DELETED
@@ -1,6 +0,0 @@
1
- import plugin from'tailwindcss/plugin';/* eslint-disable func-names,prefer-arrow-callback,space-before-function-paren */
2
- const isBrowser = plugin(function ({ addVariant }) {
3
- addVariant("firefox", "@supports (-moz-appearance: none)");
4
- addVariant("safari", "@supports (background: -webkit-named-image(i))");
5
- addVariant("chrome", "@supports (-webkit-app-region: inherit)");
6
- });export{isBrowser as default};