@igorkowalczyk/is-browser 2.0.1 → 2.1.1

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 ADDED
@@ -0,0 +1 @@
1
+ var m=Object.create;var i=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty;var o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),b=(e,t)=>{for(var u in t)i(e,u,{get:t[u],enumerable:!0})},d=(e,t,u,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of x(t))!M.call(e,n)&&n!==u&&i(e,n,{get:()=>t[n],enumerable:!(r=O(t,n))||r.enumerable});return e};var h=(e,t,u)=>(u=e!=null?m(y(e)):{},d(t||!e||!e.__esModule?i(u,"default",{value:e,enumerable:!0}):u,e)),q=e=>d(i({},"__esModule",{value:!0}),e);var a=o(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});Object.defineProperty(l,"default",{enumerable:!0,get:()=>v});function _(e,t){return{handler:e,config:t}}_.withOptions=function(e,t=()=>({})){let u=function(r){return{__options:r,handler:e(r),config:t(r)}};return u.__isOptionsFunction=!0,u.__pluginFunction=e,u.__configFunction=t,u};var v=_});var s=o(f=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});Object.defineProperty(f,"default",{enumerable:!0,get:()=>w});var F=j(a());function j(e){return e&&e.__esModule?e:{default:e}}var w=F.default});var g=o((B,p)=>{var c=s();p.exports=(c.__esModule?c:{default:c}).default});var D={};b(D,{default:()=>z});module.exports=q(D);var P=h(g()),z=(0,P.default)(function({addVariant:e}){e("firefox","@-moz-document url-prefix()")});
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@igorkowalczyk/is-browser",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
4
4
  "description": "🏔️ Add support for browser specific variants in Tailwind.css",
5
- "main": "index.js",
6
- "type": "module",
5
+ "main": "dist/index.cjs",
7
6
  "repository": {
8
7
  "type": "git",
9
8
  "url": "git+https://github.com/IgorKowalczyk/is-browser.git"
@@ -16,6 +15,10 @@
16
15
  ],
17
16
  "author": "Igor Kowalczyk",
18
17
  "license": "MIT",
18
+ "sideEffects": false,
19
+ "engines": {
20
+ "node": ">=10"
21
+ },
19
22
  "bugs": {
20
23
  "url": "https://github.com/IgorKowalczyk/is-browser/issues"
21
24
  },
@@ -23,18 +26,24 @@
23
26
  "devDependencies": {
24
27
  "prettier": "^2.8.1",
25
28
  "prettier-plugin-tailwindcss": "^0.2.1",
26
- "tailwindcss": "^3.2.4"
29
+ "tailwindcss": "^3.2.4",
30
+ "esbuild": "0.16.10"
27
31
  },
28
32
  "peerDependencies": {
29
33
  "tailwindcss": "^3.0"
30
34
  },
31
35
  "files": [
32
- "index.js"
36
+ "README.md",
37
+ "dist"
33
38
  ],
39
+ "exports": {
40
+ "require": "./dist/index.cjs"
41
+ },
34
42
  "packageManager": "pnpm@7.19.0",
35
43
  "scripts": {
36
44
  "format": "prettier --write . --ignore-unknown",
37
45
  "format:check": "prettier --check .",
46
+ "build": "esbuild index.js --bundle --format=cjs --platform=browser --target=es2019 --pure:React.createElement --minify --outfile=dist/index.cjs",
38
47
  "test": "echo \"Error: no test specified\" && exit 1"
39
48
  }
40
49
  }
package/index.js DELETED
@@ -1,5 +0,0 @@
1
- import plugin from "tailwindcss/plugin";
2
-
3
- export default plugin(function ({ addVariant }) {
4
- addVariant("firefox", "@-moz-document url-prefix()");
5
- });