@igorkowalczyk/is-browser 3.1.0 → 4.0.0
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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -0
- package/package.json +31 -31
- package/readme.md +7 -5
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var m=Object.create;var i=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var a=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty;var g=(e,o)=>{for(var p in o)i(e,p,{get:o[p],enumerable:!0})},t=(e,o,p,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of f(o))!c.call(e,r)&&r!==p&&i(e,r,{get:()=>o[r],enumerable:!(s=u(o,r))||s.enumerable});return e};var b=(e,o,p)=>(p=e!=null?m(a(e)):{},t(o||!e||!e.__esModule?i(p,"default",{value:e,enumerable:!0}):p,e)),k=e=>t(i({},"__esModule",{value:!0}),e);var l={};g(l,{default:()=>h});module.exports=k(l);var n=b(require("tailwindcss/plugin"));const w=(0,n.default)(({addVariant:e})=>{e("firefox","@supports (-moz-appearance: none)"),e("safari","@supports (background: -webkit-named-image(i))"),e("chrome","@supports (-webkit-app-region: inherit)")});var h=w;
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"tailwindcss/plugin";const p=o(({addVariant:e})=>{e("firefox","@supports (-moz-appearance: none)"),e("safari","@supports (background: -webkit-named-image(i))"),e("chrome","@supports (-webkit-app-region: inherit)")});var i=p;export{i as default};
|
package/package.json
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igorkowalczyk/is-browser",
|
|
3
|
-
"version": "3.1.0",
|
|
4
3
|
"description": "🏔️ Add support for browser specific variants in Tailwind.css",
|
|
4
|
+
"version": "4.0.0",
|
|
5
|
+
"author": "Igor Kowalczyk",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"repository": "IgorKowalczyk/is-browser",
|
|
9
|
+
"bugs": "https://github.com/IgorKowalczyk/is-browser/issues",
|
|
10
|
+
"homepage": "https://github.com/IgorKowalczyk/is-browser#readme",
|
|
5
11
|
"main": "dist/index.cjs",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"
|
|
12
|
+
"module": "dist/index.mjs",
|
|
13
|
+
"exports": {
|
|
14
|
+
"require": "./dist/index.cjs",
|
|
15
|
+
"import": "./dist/index.mjs"
|
|
9
16
|
},
|
|
17
|
+
"files": [
|
|
18
|
+
"README.md",
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
10
21
|
"keywords": [
|
|
11
22
|
"tailwindcss",
|
|
12
23
|
"react",
|
|
13
24
|
"firefox",
|
|
14
|
-
"chrome"
|
|
25
|
+
"chrome",
|
|
26
|
+
"safari"
|
|
15
27
|
],
|
|
16
|
-
"author": "Igor Kowalczyk",
|
|
17
|
-
"license": "MIT",
|
|
18
|
-
"sideEffects": false,
|
|
19
28
|
"engines": {
|
|
20
|
-
"node": ">=
|
|
21
|
-
},
|
|
22
|
-
"bugs": {
|
|
23
|
-
"url": "https://github.com/IgorKowalczyk/is-browser/issues"
|
|
29
|
+
"node": ">=16"
|
|
24
30
|
},
|
|
25
|
-
"homepage": "https://github.com/IgorKowalczyk/is-browser#readme",
|
|
26
31
|
"devDependencies": {
|
|
27
|
-
"@igorkowalczyk/eslint-config": "1.
|
|
28
|
-
"@igorkowalczyk/prettier-config": "1.
|
|
29
|
-
"esbuild": "0.17.
|
|
30
|
-
"eslint": "8.
|
|
31
|
-
"prettier": "2.8.
|
|
32
|
-
"
|
|
33
|
-
"tailwindcss": "3.3.0"
|
|
32
|
+
"@igorkowalczyk/eslint-config": "1.4.0",
|
|
33
|
+
"@igorkowalczyk/prettier-config": "1.4.0",
|
|
34
|
+
"esbuild": "0.17.19",
|
|
35
|
+
"eslint": "8.41.0",
|
|
36
|
+
"prettier": "2.8.8",
|
|
37
|
+
"tailwindcss": "3.3.2"
|
|
34
38
|
},
|
|
35
39
|
"peerDependencies": {
|
|
36
|
-
"tailwindcss": "3.0
|
|
37
|
-
},
|
|
38
|
-
"files": [
|
|
39
|
-
"README.md",
|
|
40
|
-
"dist"
|
|
41
|
-
],
|
|
42
|
-
"exports": {
|
|
43
|
-
"require": "./dist/index.cjs"
|
|
40
|
+
"tailwindcss": ">=3.0.0"
|
|
44
41
|
},
|
|
45
|
-
"packageManager": "pnpm@8.
|
|
42
|
+
"packageManager": "pnpm@8.5.1",
|
|
46
43
|
"scripts": {
|
|
47
44
|
"format": "prettier --write . --ignore-unknown --cache",
|
|
48
45
|
"format:check": "prettier --check . --cache",
|
|
49
|
-
"build": "esbuild index.js --
|
|
50
|
-
"
|
|
46
|
+
"build:esm": "esbuild index.js --platform=node --format=esm --minify --outfile=dist/index.mjs",
|
|
47
|
+
"build:cjs": "esbuild index.js --format=cjs --platform=node --minify --outfile=dist/index.cjs",
|
|
48
|
+
"build": "pnpm run build:esm && pnpm run build:cjs",
|
|
49
|
+
"lint": "eslint . --ext .js,.ts",
|
|
50
|
+
"lint:fix": "eslint . --ext .js,.ts --fix"
|
|
51
51
|
}
|
|
52
52
|
}
|
package/readme.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
<img width="170" height="170" align="left" style="float: left; margin: 0 10px 0 0; border-radius: 50%;" alt="Tailwindcss" src="https://raw.githubusercontent.com/IgorKowalczyk/is-browser/main/src/images/logo.svg">
|
|
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
2
|
|
|
3
|
-
#
|
|
3
|
+
# TailwindCSS is `:browser`
|
|
4
4
|
|
|
5
5
|
🏔️ Add support for browser specific variants in Tailwind.css
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
[](https://github.com/igorkowalczyk/is-browser/blob/main/license.md)
|
|
8
|
+
[](https://npmjs.com/package/@igorkowalczyk/is-browser) [](https://npmjs.com/package/@igorkowalczyk/is-browser)
|
|
7
9
|
|
|
8
10
|
---
|
|
9
11
|
|
|
@@ -56,9 +58,9 @@ If you have any issues with the page please create [new issue here](https://gith
|
|
|
56
58
|
When submitting a pull request:
|
|
57
59
|
|
|
58
60
|
- Clone the repo.
|
|
59
|
-
- Create a branch off of
|
|
61
|
+
- Create a branch off of `main` and give it a meaningful name (e.g. `my-awesome-new-feature`).
|
|
60
62
|
- Open a [pull request](https://github.com/igorkowalczyk/is-browser/pulls) on [GitHub](https://github.com) and describe the feature or fix.
|
|
61
63
|
|
|
62
64
|
## 📋 License
|
|
63
65
|
|
|
64
|
-
This project is licensed under the MIT. See the [LICENSE](https://github.com/igorkowalczyk/is-browser/blob/
|
|
66
|
+
This project is licensed under the MIT. See the [LICENSE](https://github.com/igorkowalczyk/is-browser/blob/main/license.md) file for details
|