Comparing version 1.0.0 to 1.1.0
export const BROWSER: boolean; | ||
export const DEV: boolean; | ||
export const NODE: boolean; |
{ | ||
"name": "esm-env", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"repository": { | ||
@@ -15,12 +15,36 @@ "type": "git", | ||
"types": "./index.d.ts", | ||
"browser": { | ||
"development": "./dev-browser.js", | ||
"default": "./prod-browser.js" | ||
"import": "./index.mjs", | ||
"require": "./index.cjs" | ||
}, | ||
"./browser": { | ||
"import": { | ||
"browser": "./true.mjs", | ||
"default": "./false.mjs" | ||
}, | ||
"default": { | ||
"development": "./dev-ssr.js", | ||
"default": "./prod-ssr.js" | ||
"require": { | ||
"browser": "./true.cjs", | ||
"default": "./false.cjs" | ||
} | ||
}, | ||
"./development": { | ||
"import": { | ||
"development": "./true.mjs", | ||
"default": "./false.mjs" | ||
}, | ||
"require": { | ||
"development": "./true.cjs", | ||
"default": "./false.cjs" | ||
} | ||
}, | ||
"./node": { | ||
"import": { | ||
"node": "./true.mjs", | ||
"default": "./false.mjs" | ||
}, | ||
"require": { | ||
"node": "./true.cjs", | ||
"default": "./false.cjs" | ||
} | ||
} | ||
} | ||
} |
@@ -10,7 +10,11 @@ # esm-env | ||
```js | ||
import { DEV, BROWSER } from 'esm-env'; | ||
import { BROWSER, DEV, NODE } from 'esm-env'; | ||
``` | ||
## Acknowledgements | ||
Thank you to [dominikg](https://github.com/dominikg) for refining the approach used by this library to suggest a more scalable method for adding additional conditions. | ||
## License | ||
[MIT](LICENSE) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
3019
10
13
20
0