postcss-focus-visible
Advanced tools
Comparing version 6.0.1 to 6.0.2
@@ -1,17 +0,6 @@ | ||
export type PluginOptions = { | ||
/** Defines whether the original selector should remain. */ | ||
preserve?: boolean | ||
/** Defines the selector to replace `:focus-visible`. */ | ||
replaceWith?: string | ||
} | ||
export type Plugin = { | ||
(pluginOptions?: PluginOptions): { | ||
postcssPlugin: 'postcss-focus-visible' | ||
} | ||
postcss: true | ||
} | ||
declare const plugin: Plugin | ||
export default plugin | ||
import type { PluginCreator } from 'postcss'; | ||
declare const creator: PluginCreator<{ | ||
preserve?: boolean; | ||
replaceWith?: string; | ||
}>; | ||
export default creator; |
111
package.json
{ | ||
"name": "postcss-focus-visible", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "Use the :focus-visible pseudo-selector in CSS", | ||
"author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
"license": "CC0-1.0", | ||
"repository": "csstools/postcss-focus-visible", | ||
"homepage": "https://github.com/csstools/postcss-focus-visible#readme", | ||
"bugs": "https://github.com/csstools/postcss-focus-visible/issues", | ||
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-focus-visible#readme", | ||
"bugs": "https://github.com/csstools/postcss-plugins/issues", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs", | ||
"types": "./dist/index.d.ts" | ||
} | ||
}, | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"CHANGELOG.md", | ||
"INSTALL.md", | ||
"LICENSE.md", | ||
"README.md", | ||
"dist" | ||
], | ||
"bin": { | ||
"postcss-focus-visible": "dist/cli.mjs" | ||
}, | ||
"scripts": { | ||
"build": "npx rollup -c .rollup.js", | ||
"build:watch": "npx rollup -c .rollup.js --watch", | ||
"lint": "npx eslint --cache src", | ||
"lint:fix": "npx eslint --cache --fix", | ||
"pretest": "npm install && npm run build", | ||
"prepublishOnly": "npm test", | ||
"test": "npm run lint && npm run tape", | ||
"tape": "npx postcss-tape" | ||
"build": "rollup -c ../../rollup/default.js", | ||
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"", | ||
"lint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern", | ||
"prepublishOnly": "npm run clean && npm run build && npm run test", | ||
"stryker": "stryker run --logLevel error", | ||
"test": "postcss-tape --ci" | ||
}, | ||
"engines": { | ||
"node": ">=12" | ||
"node": "^12 || ^14 || >=16" | ||
}, | ||
"peerDependencies": { | ||
"postcss": "^8.3" | ||
"dependencies": { | ||
"postcss-selector-parser": "^6.0.7" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.15.5", | ||
"@babel/preset-env": "7.15.6", | ||
"eslint": "7.32.0", | ||
"postcss": "8.3.6", | ||
"postcss-tape": "6.0.1", | ||
"pre-commit": "1.2.2", | ||
"rollup": "2.56.3", | ||
"rollup-plugin-babel": "4.4.0", | ||
"rollup-plugin-copy": "^3.4.0" | ||
"postcss": "^8.3.6", | ||
"postcss-tape": "^6.0.1" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
[ | ||
"@babel/env", | ||
{ | ||
"targets": "maintained node versions" | ||
} | ||
] | ||
] | ||
"peerDependencies": { | ||
"postcss": "^8.3" | ||
}, | ||
"eslintConfig": { | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module" | ||
} | ||
}, | ||
"rollup": { | ||
"input": "src/index.js", | ||
"plugins": [ | ||
"rollup-plugin-babel", | ||
[ | ||
"rollup-plugin-copy", | ||
{ | ||
"targets": [ | ||
{ | ||
"src": "./src/index.d.ts", | ||
"dest": "./dist" | ||
} | ||
] | ||
} | ||
] | ||
], | ||
"output": [ | ||
{ | ||
"exports": "default", | ||
"file": "dist/index.cjs", | ||
"format": "cjs" | ||
}, | ||
{ | ||
"file": "dist/index.mjs", | ||
"format": "esm" | ||
} | ||
] | ||
}, | ||
"keywords": [ | ||
@@ -125,3 +69,8 @@ "postcss", | ||
"js" | ||
] | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/csstools/postcss-plugins.git", | ||
"directory": "plugins/postcss-focus-visible" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # PostCSS Focus Visible [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][postcss] | ||
[<img alt="CSS Standard Status" src="https://cssdb.org/badge/focus-within-pseudo-class.svg" height="20">][css-url] | ||
[<img alt="Build Status" src="https://github.com/csstools/postcss-focus-visible/workflows/test/badge.svg" height="20">][cli-url] | ||
[<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url] | ||
[<img alt="support chat" src="https://img.shields.io/badge/support-chat-blue.svg" height="20">][git-url] | ||
@@ -119,3 +119,3 @@ | ||
[cli-url]: https://github.com/csstools/postcss-focus-visible/actions/workflows/test.yml?query=workflow/test | ||
[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test | ||
[css-url]: https://cssdb.org/#focus-visible-pseudo-class | ||
@@ -129,4 +129,4 @@ [git-url]: https://gitter.im/postcss/postcss | ||
[PostCSS]: https://github.com/postcss/postcss | ||
[PostCSS Focus Visible]: https://github.com/csstools/postcss-focus-visible | ||
[PostCSS Focus Visible]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-focus-visible | ||
[PostCSS Loader]: https://github.com/postcss/postcss-loader | ||
[Selectors Level 4 specification]: https://www.w3.org/TR/selectors-4/#the-focus-visible-pseudo |
Sorry, the diff of this file is not supported yet
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
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
108864
2
12
340
2
1
20
3
+ Addedcssesc@3.0.0(transitive)
+ Addedpostcss-selector-parser@6.0.16(transitive)
+ Addedutil-deprecate@1.0.2(transitive)