Socket
Socket
Sign inDemoInstall

nwsapi

Package Overview
Dependencies
0
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.6 to 2.0.7

src/nwsapi.js.COPY

2

package.json
{
"name": "nwsapi",
"version": "2.0.6",
"version": "2.0.7",
"description": "Fast CSS Selectors API Engine",

@@ -5,0 +5,0 @@ "homepage": "http://javascript.nwbox.com/nwsapi/",

@@ -8,5 +8,5 @@ /*

* Author: Diego Perini <diego.perini at gmail com>
* Version: 2.0.6
* Version: 2.0.7
* Created: 20070722
* Release: 20180718
* Release: 20180719
*

@@ -67,4 +67,4 @@ * License:

pseudo_5 = 'selection|backdrop|placeholder',
params_1 = '(?:\\(\\s?(even|odd|(?:[-+]?\\d*n?)(?:[-+]?\\d+)?)\\s?(?:\\)|$))',
negation = '|(?:matches|not)\\(\\s?(:' + struct_2 + params_1 + '|[^()]*)\\s?(?:\\)|$)',
params_1 = '(?:\\(\\s?(even|odd|(?:[-+]?\\d*)(?:n[-+]?\\d*)?)\\s?(?:\\)|$))',
negation = '|(?:matches|not)\\(\\s?(:' + struct_2 + params_1 + '|[^()]*|[^\\(]*\\([^\\)]*\\))\\s?(?:\\)|$)',

@@ -995,10 +995,6 @@ Patterns = {

case 'lang':
test = '';
match[2] = match[2].toLowerCase();
if (match[2]) test = match[2].substr(0, 2) + '-';
source = 'do{if((' + N + '(s.doc.compareDocumentPosition(e)&16)&&' +
'(e.lang||"")==""&&s.root.lang==="' + match[2] + '"||' +
'(e.lang&&(e.lang.toLowerCase()=="' + match[2] + '"||' +
'(e.lang.substr(0,3)=="' + test + '")))' +
')){' + source + '}}while(e!==s.root&&(e=e.parentElement));';
source = 'var p=null;if(' + N + '(e.isConnected&&(e.lang==""&&' +
'(p=s.ancestor("[lang]",e))&&p.lang=="' + match[2] + '")||' +
'/(?:^|-)' + match[2] + '(?:-|$)/i.test(e.lang))' +
'){' + source + '};';
break;

@@ -1005,0 +1001,0 @@ case 'target':

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc