New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lc-xpath

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lc-xpath - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

18

lib/to-css.js

@@ -39,2 +39,18 @@ const tt = require('./tokentype');

function containsToStr(node) {
if (node.name !== 'contains') {
throw new Error('Unsupported function: ' + node.name);
}
if (node.arg.length !== 2) {
throw new Error('Expect contains function to have 2 arguments');
}
if (node.arg[0].name !== 'text') {
throw new Error('Only text function is supported inside contains');
}
return ':contains(' + node.arg[1].name + ')';
}
function predicateToStr(node) {

@@ -46,2 +62,4 @@ switch (node.type) {

return attrFilterToStr(node);
case 'function':
return containsToStr(node);

@@ -48,0 +66,0 @@ default:

4

package.json
{
"name": "lc-xpath",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -23,3 +23,3 @@ "main": "index.js",

"devDependencies": {
"mocha": "^3.3.0"
"mocha": "^3.4.1"
},

@@ -26,0 +26,0 @@ "files": [

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