@10up/component-tabs
Advanced tools
Comparing version 1.0.3 to 2.0.0-rc.1
{ | ||
"name": "@10up/component-tabs", | ||
"version": "1.0.3", | ||
"version": "2.0.0-rc.1", | ||
"author": "10up", | ||
"description": "Accessible tab component.", | ||
"main": "./src/tabs.js", | ||
"style": "./dist/tabs.css", | ||
"main": "dist/index.js", | ||
"exports": "./dist/index.modern.js", | ||
"umd:main": "dist/index.umd.js", | ||
"module": "dist/index.module.js", | ||
"source": "src/index.js", | ||
"style": "./dist/index.css", | ||
"types": "./index.d.ts", | ||
"scripts": { | ||
"start": "npm install && npm run build", | ||
"build": "webpack", | ||
"watch": "webpack --watch" | ||
"test": "jest --coverage", | ||
"test:watch": "jest --watch", | ||
"watch": "concurrently \"npm run build:modern -- --watch\" \"npm run build:umd -- --watch\"", | ||
"build": "npm run build:modern && npm run build:umd", | ||
"build:modern": "microbundle build -f modern,es,cjs", | ||
"build:umd": "microbundle build -i src/index.umd.js --name TenUpTabs -f umd --external none", | ||
"prepare": "npm run build" | ||
}, | ||
@@ -23,24 +32,13 @@ "repository": { | ||
"devDependencies": { | ||
"@10up/eslint-config": "^1.0.9", | ||
"@babel/cli": "^7.2.3", | ||
"@babel/core": "^7.4.0", | ||
"@babel/preset-env": "^7.4.2", | ||
"babel-eslint": "^9.0.0", | ||
"babel-loader": "^8.0.5", | ||
"browser-sync": "^2.26.7", | ||
"browser-sync-webpack-plugin": "^2.2.2", | ||
"css-loader": "^1.0.1", | ||
"eslint": "^5.16.0", | ||
"eslint-loader": "^2.1.2", | ||
"mini-css-extract-plugin": "^0.4.5", | ||
"postcss": "^7.0.14", | ||
"postcss-import": "^12.0.1", | ||
"postcss-loader": "^3.0.0", | ||
"postcss-preset-env": "^5.3.0", | ||
"webpack": "^4.29.6", | ||
"webpack-cli": "^3.3.0" | ||
"@testing-library/dom": "^7.29.4", | ||
"@testing-library/jest-dom": "^5.11.9", | ||
"@testing-library/user-event": "^12.6.3", | ||
"jest-axe": "^4.1.0", | ||
"microbundle": "^0.13.0", | ||
"postcss-import": "^14.0.0", | ||
"postcss-preset-env": "^6.7.0" | ||
}, | ||
"dependencies": { | ||
"@babel/polyfill": "^7.4.0" | ||
"core-js": "^3.8.3" | ||
} | ||
} |
@@ -5,3 +5,2 @@ # 10up Tabs component | ||
[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) | ||
@@ -57,3 +56,3 @@ ## Installation | ||
#### PostCSS Imports | ||
`@import '@10up/component-tabs';` | ||
`@import "@10up/component-tabs";` | ||
@@ -70,5 +69,5 @@ #### Standalone | ||
```javascript | ||
import tabs from '@10up/component-tabs'; | ||
import Tabs from '@10up/component-tabs'; | ||
tabs( '.tabs', { | ||
new Tabs( '.tabs', { | ||
onCreate: function() { | ||
@@ -85,3 +84,5 @@ console.log( 'onCreate callback' ); | ||
Include the `tabs.js` file from the `dist/` directory and access the component from the gobal `TenUp` object. | ||
```html | ||
<script src="unpkg.com/@10up/component-tabs@2.0.0/index.umd.js"></script> | ||
``` | ||
@@ -109,2 +110,2 @@ ```javascript | ||
<a href="http://10up.com/contact/"><img src="https://10updotcom-wpengine.s3.amazonaws.com/uploads/2016/10/10up-Github-Banner.png" width="850" alt="Work with us at 10up"></a> | ||
<a href="http://10up.com/contact/"><img src="https://10up.com/uploads/2016/10/10up-Github-Banner.png" width="850" alt="Work with us at 10up"></a> |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
183232
7
107
0
172
2
2
+ Addedcore-js@^3.8.3
+ Addedcore-js@3.40.0(transitive)
- Removed@babel/polyfill@^7.4.0
- Removed@babel/polyfill@7.12.1(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.13.11(transitive)