makeup-focusables
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "makeup-focusables", | ||
"description": "Returns an array of all focusable descendants of the given element", | ||
"version": "0.2.0", | ||
"main": "dist/index.js", | ||
"version": "0.3.0", | ||
"main": "./dist/cjs/index.js", | ||
"module": "./dist/mjs/index.js", | ||
"exports": { | ||
".": { | ||
"import": "./dist/mjs/index.js", | ||
"require": "./dist/cjs/index.js" | ||
} | ||
}, | ||
"repository": "https://github.com/makeup/makeup-js/tree/master/packages/makeup-focusables", | ||
@@ -10,3 +17,5 @@ "author": "Ian McBurnie <ianmcburnie@hotmail.com>", | ||
"scripts": { | ||
"compile": "babel src --out-dir dist", | ||
"compile": "npm run compile:mjs && npm run compile:cjs", | ||
"compile:mjs": "esbuild src/index.js --outfile=dist/mjs/index.js --format=esm", | ||
"compile:cjs": "babel --plugins @babel/plugin-transform-modules-commonjs src/index.js --out-file dist/cjs/index.js", | ||
"clean": "rimraf *.log .DS_Store" | ||
@@ -22,3 +31,4 @@ }, | ||
"browser.json", | ||
"dist/index.js", | ||
"dist/cjs/index.js", | ||
"dist/mjs/index.js", | ||
"package-lock.json" | ||
@@ -25,0 +35,0 @@ ], |
@@ -7,14 +7,4 @@ # makeup-focusables | ||
This CommonJS module is still in an experimental state, until it reaches v1.0.0 you must consider all minor releases as breaking changes. Patch releases may introduce new features, but will be backwards compatible. | ||
This module is still in an experimental state, until it reaches v1 you must consider all minor releases as breaking changes. | ||
## Install | ||
```js | ||
// via npm | ||
npm install makeup-focusables | ||
// via yarn | ||
yarn add makeup-focusables | ||
``` | ||
## Example | ||
@@ -34,4 +24,3 @@ | ||
```js | ||
// require the module | ||
const focusables = require('makeup-focusables'); | ||
import focusables from 'makeup-focusables'; | ||
@@ -61,9 +50,1 @@ // get element reference | ||
* None | ||
## Dependencies | ||
* None | ||
## Polyfills | ||
* None |
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
5918
78
48