Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

matches-selector-ng

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

matches-selector-ng - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

.babelrc

57

package.json
{
"name": "matches-selector-ng",
"version": "0.1.0",
"version": "1.0.0",
"description": "Check if a DOM element matches a given selector, with decent browser support and unit tests.",
"main": "js/index.js",
"scripts": {
"prepublish": "babel -s inline -d js/ src/ --ignore '*.test.*' && flow-copy-source -v src js --ignore '*.test.*'",
"test": "npm run lint && npm run flow_check && jest",
"flow_check": "flow check",
"lint": "eslint .",
"lint-fix": "eslint . --fix"
},
"keywords": [

@@ -19,39 +27,16 @@ "browserify",

"license": "MIT",
"scripts": {
"test": "run-browser test/index.js"
},
"devDependencies": {
"domify": "^1.4.0",
"tape": "^4.6.2",
"run-browser": "^2.0.0"
},
"testling": {
"files": "test/index.js",
"browsers": [
"iexplore/8.0",
"iexplore/10.0",
"iexplore/9.0",
"chrome/30.0",
"chrome/31.0",
"chrome/canary",
"firefox/4.0",
"firefox/10.0",
"firefox/15.0",
"firefox/20.0",
"firefox/21.0",
"firefox/22.0",
"firefox/23.0",
"firefox/24.0",
"firefox/25.0",
"firefox/nightly",
"opera/11.0",
"opera/17.0",
"opera/next",
"safari/5.0.5",
"safari/5.1",
"safari/6.0",
"iphone/6.0",
"ipad/6.0"
]
"babel-cli": "^6.18.0",
"babel-eslint": "^7.1.0",
"babel-jest": "^17.0.2",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-flow-strip-types": "^6.18.0",
"babel-preset-es2015": "^6.18.0",
"babel-register": "^6.18.0",
"eslint": "^3.10.2",
"eslint-plugin-flowtype": "^2.25.0",
"flow-bin": "^0.35.0",
"flow-copy-source": "^1.1.0",
"jest": "^17.0.2"
}
}
# matches-selector-ng
Check if an element matches a given selector. For use with browserify.
[![Circle CI](https://circleci.com/gh/AgentME/matches-selector-ng.svg?style=shield)](https://circleci.com/gh/AgentME/matches-selector-ng)
[![npm version](https://badge.fury.io/js/matches-selector-ng.svg)](https://badge.fury.io/js/matches-selector-ng)
Check if an element matches a given selector. Uses the native `matches` method
if present. For use with a commonjs bundler such as browserify.
## Installation

@@ -12,3 +16,3 @@

```js
var matches = require('matches-selector');
var matches = require('matches-selector-ng');
matches(el, 'ul li a');

@@ -18,11 +22,5 @@ // => true or false

## Running Tests
## Types
Tests can be easilly run locally in the browser of your choice, and have passed if it ends with `# ok`. They are also run on testling-ci when pushed to the repository:
```
npm install
npm test
```
To re-run tests after making changes, just refresh your browser
[Flow](https://flowtype.org/) type declarations for this module are included!
If you are using Flow, they won't require any configuration to use.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc