@igorkowalczyk/is-browser 4.0.3 → 5.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/cjs/index.cjs +6 -0
- package/dist/mjs/index.js +6 -0
- package/package.json +17 -22
- package/dist/index.js +0 -1
- package/dist/index.mjs +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
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;
|
|
@@ -0,0 +1,6 @@
|
|
|
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};
|
package/package.json
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igorkowalczyk/is-browser",
|
|
3
3
|
"description": "🏔️ Add support for browser specific variants in Tailwind.css",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.0.0",
|
|
5
5
|
"author": "Igor Kowalczyk",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"repository": "IgorKowalczyk/is-browser",
|
|
9
9
|
"bugs": "https://github.com/IgorKowalczyk/is-browser/issues",
|
|
10
10
|
"homepage": "https://github.com/IgorKowalczyk/is-browser#readme",
|
|
11
|
-
"
|
|
12
|
-
"module": "dist/index.mjs",
|
|
11
|
+
"type": "module",
|
|
13
12
|
"exports": {
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
"import": "./dist/mjs/index.js",
|
|
14
|
+
"require": "./dist/cjs/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@igorkowalczyk/eslint-config": "1.5.2",
|
|
18
|
+
"@igorkowalczyk/prettier-config": "1.5.2",
|
|
19
|
+
"eslint": "8.44.0",
|
|
20
|
+
"prettier": "3.0.0",
|
|
21
|
+
"rollup": "3.26.2",
|
|
22
|
+
"tailwindcss": "3.3.2"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"tailwindcss": ">=3.0.0"
|
|
18
26
|
},
|
|
19
27
|
"files": [
|
|
20
28
|
"README.md",
|
|
@@ -30,24 +38,11 @@
|
|
|
30
38
|
"engines": {
|
|
31
39
|
"node": ">=16"
|
|
32
40
|
},
|
|
33
|
-
"
|
|
34
|
-
"@igorkowalczyk/eslint-config": "1.4.0",
|
|
35
|
-
"@igorkowalczyk/prettier-config": "1.4.0",
|
|
36
|
-
"esbuild": "0.17.19",
|
|
37
|
-
"eslint": "8.41.0",
|
|
38
|
-
"prettier": "2.8.8",
|
|
39
|
-
"tailwindcss": "3.3.2"
|
|
40
|
-
},
|
|
41
|
-
"peerDependencies": {
|
|
42
|
-
"tailwindcss": ">=3.0.0"
|
|
43
|
-
},
|
|
44
|
-
"packageManager": "pnpm@8.5.1",
|
|
41
|
+
"packageManager": "pnpm@8.6.6",
|
|
45
42
|
"scripts": {
|
|
46
43
|
"format": "prettier --write . --ignore-unknown --cache",
|
|
47
44
|
"format:check": "prettier --check . --cache",
|
|
48
|
-
"build
|
|
49
|
-
"build:cjs": "esbuild src/source.cjs --platform=node --format=cjs --minify --outfile=dist/index.js",
|
|
50
|
-
"build": "pnpm run build:esm && pnpm run build:cjs",
|
|
45
|
+
"build": "rollup -c",
|
|
51
46
|
"lint": "eslint . --ext .js,.ts",
|
|
52
47
|
"lint:fix": "eslint . --ext .js,.ts --fix"
|
|
53
48
|
}
|
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o=require("tailwindcss/plugin");module.exports=o(function({addVariant:e}){e("firefox","@supports (-moz-appearance: none)"),e("safari","@supports (background: -webkit-named-image(i))"),e("chrome","@supports (-webkit-app-region: inherit)")});
|
package/dist/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"tailwindcss/plugin";const p=e(function({addVariant:o}){o("firefox","@supports (-moz-appearance: none)"),o("safari","@supports (background: -webkit-named-image(i))"),o("chrome","@supports (-webkit-app-region: inherit)")});var i=p;export{i as default};
|