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

has-pseudo-element

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-pseudo-element - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

4

package.json

@@ -5,3 +5,3 @@ {

"author": "John Otander",
"version": "3.3.0",
"version": "3.3.1",
"main": "index.js",

@@ -30,3 +30,3 @@ "directories": {

},
"gitHead": "5604528037164f4b8eb81e8a5215c433c9814407"
"gitHead": "3bd524dafcbebcedd46207d13baac80d022cfdd0"
}

@@ -16,7 +16,7 @@ # has-pseudo-element

```javascript
var hasPseudoElement = require('has-pseudo-element');
var hasPseudoElement = require('has-pseudo-element')
hasPseudoElement('.some-selector:after'); // => true
hasPseudoElement('.some-selector::after'); // => true
hasPseudoElement('.some-selector'); // => false
hasPseudoElement('.some-selector:after') // => true
hasPseudoElement('.some-selector::after') // => true
hasPseudoElement('.some-selector') // => false
```

@@ -23,0 +23,0 @@

@@ -1,3 +0,3 @@

var assert = require('assert');
var hasPseudoElement = require('..');
var assert = require('assert')
var hasPseudoElement = require('..')

@@ -14,22 +14,18 @@ var pseudoElements = [

'div::backdrop'
];
]
var noPseudoElements = [
'.foo-bar',
'.foo-bar:first-child'
];
var noPseudoElements = ['.foo-bar', '.foo-bar:first-child']
describe('has-pseudo-element', function() {
it('should return true when there is a pseudo element', function() {
pseudoElements.forEach(function(pseudoElement) {
assert.ok(hasPseudoElement(pseudoElement));
});
});
assert.ok(hasPseudoElement(pseudoElement))
})
})
it('should return false when there is no pseudo element', function() {
noPseudoElements.forEach(function(noPseudoElement) {
assert.ok(!hasPseudoElement(noPseudoElement));
});
});
});
assert.ok(!hasPseudoElement(noPseudoElement))
})
})
})
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