Socket
Socket
Sign inDemoInstall

nwmatcher

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nwmatcher - npm Package Compare versions

Comparing version 1.4.3 to 1.4.4

2

package.json
{
"name": "nwmatcher",
"version": "1.4.3",
"version": "1.4.4",
"description": "A CSS3-compliant JavaScript selector engine.",

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

/*
* Copyright (C) 2007-2017 Diego Perini
* Copyright (C) 2007-2018 Diego Perini
* All rights reserved.

@@ -25,3 +25,3 @@ *

((global.NW || (global.NW = { })) &&
(global.NW.Dom || (global.NW.Dom = { })),
(global.NW.Dom || (global.NW.Dom = { }))),

@@ -28,0 +28,0 @@ Contexts = { },

/*
* Copyright (C) 2007-2017 Diego Perini
* Copyright (C) 2007-2018 Diego Perini
* All rights reserved.

@@ -4,0 +4,0 @@ *

/*
* Copyright (C) 2007-2017 Diego Perini
* Copyright (C) 2007-2018 Diego Perini
* All rights reserved.

@@ -4,0 +4,0 @@ *

/*
* Copyright (C) 2007-2017 Diego Perini
* Copyright (C) 2007-2018 Diego Perini
* All rights reserved.

@@ -4,0 +4,0 @@ *

/*
* Copyright (C) 2007-2017 Diego Perini
* Copyright (C) 2007-2018 Diego Perini
* All rights reserved.

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

* Author: Diego Perini <diego.perini at gmail com>
* Version: 1.4.3
* Version: 1.4.4
* Created: 20070722
* Release: 20171011
* Release: 20180305
*

@@ -32,3 +32,3 @@ * License:

var version = 'nwmatcher-1.4.3',
var version = 'nwmatcher-1.4.4',

@@ -210,4 +210,4 @@ doc = global.document,

return p2 ? '\\' + p2 :
/^[0-9a-fA-F]/.test(p1) ? codePointToUTF16(parseInt(p1, 16)) :
/^[\\\x22\x27]/.test(p1) ? substring :
(/^[0-9a-fA-F]/).test(p1) ? codePointToUTF16(parseInt(p1, 16)) :
(/^[\\\x22\x27]/).test(p1) ? substring :
p1;

@@ -223,4 +223,4 @@ }

return p2 ? p2 :
/^[0-9a-fA-F]/.test(p1) ? stringFromCodePoint(parseInt(p1, 16)) :
/^[\\\x22\x27]/.test(p1) ? substring :
(/^[0-9a-fA-F]/).test(p1) ? stringFromCodePoint(parseInt(p1, 16)) :
(/^[\\\x22\x27]/).test(p1) ? substring :
p1;

@@ -227,0 +227,0 @@ }

/*
* Copyright (C) 2007-2017 Diego Perini
* Copyright (C) 2007-2018 Diego Perini
* All rights reserved.

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

* Author: Diego Perini <diego.perini at gmail com>
* Version: 1.4.3
* Version: 1.4.4
* Created: 20070722
* Release: 20171011
* Release: 20180305
*

@@ -32,3 +32,3 @@ * License:

var version = 'nwmatcher-1.4.3',
var version = 'nwmatcher-1.4.4',

@@ -81,8 +81,8 @@ doc = global.document,

Patterns = {
spseudos: /^\:(root|empty|(?:first|last|only)(?:-child|-of-type)|nth(?:-last)?(?:-child|-of-type)\(\s*(even|odd|(?:[-+]{0,1}\d*n\s*)?[-+]{0,1}\s*\d*)\s*\))?(.*)/i,
dpseudos: /^\:(link|visited|target|active|focus|hover|checked|disabled|enabled|selected|lang\(([-\w]{2,})\)|(?:matches|not)\(\s*(:nth(?:-last)?(?:-child|-of-type)\(\s*(?:even|odd|(?:[-+]{0,1}\d*n\s*)?[-+]{0,1}\s*\d*)\s*\)|[^()]*)\s*\))?(.*)/i,
spseudos: /^\:(root|empty|(?:first|last|only)(?:-child|-of-type)|nth(?:-last)?(?:-child|-of-type)\(\s?(even|odd|(?:[-+]{0,1}\d*n\s?)?[-+]{0,1}\s?\d*)\s?\))?(.*)/i,
dpseudos: /^\:(link|visited|target|active|focus|hover|checked|disabled|enabled|selected|lang\(([-\w]{2,})\)|(?:matches|not)\(\s?(:nth(?:-last)?(?:-child|-of-type)\(\s?(?:even|odd|(?:[-+]{0,1}\d*n\s?)?[-+]{0,1}\s?\d*)\s?\)|[^()]*)\s?\))?(.*)/i,
epseudos: /^((?:[:]{1,2}(?:after|before|first-letter|first-line))|(?:[:]{2,2}(?:selection|backdrop|placeholder)))?(.*)/i,
children: RegExp('^' + whitespace + '*\\>' + whitespace + '*(.*)'),
adjacent: RegExp('^' + whitespace + '*\\+' + whitespace + '*(.*)'),
relative: RegExp('^' + whitespace + '*\\~' + whitespace + '*(.*)'),
children: RegExp('^' + whitespace + '?\\>' + whitespace + '?(.*)'),
adjacent: RegExp('^' + whitespace + '?\\+' + whitespace + '?(.*)'),
relative: RegExp('^' + whitespace + '?\\~' + whitespace + '?(.*)'),
ancestor: RegExp('^' + whitespace + '+(.*)'),

@@ -214,4 +214,4 @@ universal: RegExp('^\\*(.*)')

return p2 ? '\\' + p2 :
/^[0-9a-fA-F]/.test(p1) ? codePointToUTF16(parseInt(p1, 16)) :
/^[\\\x22\x27]/.test(p1) ? substring :
(/^[0-9a-fA-F]/).test(p1) ? codePointToUTF16(parseInt(p1, 16)) :
(/^[\\\x22\x27]/).test(p1) ? substring :
p1;

@@ -227,4 +227,4 @@ }

return p2 ? p2 :
/^[0-9a-fA-F]/.test(p1) ? stringFromCodePoint(parseInt(p1, 16)) :
/^[\\\x22\x27]/.test(p1) ? substring :
(/^[0-9a-fA-F]/).test(p1) ? stringFromCodePoint(parseInt(p1, 16)) :
(/^[\\\x22\x27]/).test(p1) ? substring :
p1;

@@ -231,0 +231,0 @@ }

/*
* Copyright (C) 2007-2017 Diego Perini
* Copyright (C) 2007-2018 Diego Perini
* All rights reserved.

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

* Author: Diego Perini <diego.perini at gmail com>
* Version: 1.4.3
* Version: 1.4.4
* Created: 20070722
* Release: 20171011
* Release: 20180305
*

@@ -32,3 +32,3 @@ * License:

var version = 'nwmatcher-1.4.3',
var version = 'nwmatcher-1.4.4',

@@ -126,13 +126,13 @@ // processing context & root element

// structural pseudo-classes and child selectors
spseudos: /^\:(root|empty|(?:first|last|only)(?:-child|-of-type)|nth(?:-last)?(?:-child|-of-type)\(\s*(even|odd|(?:[-+]{0,1}\d*n\s*)?[-+]{0,1}\s*\d*)\s*\))?(.*)/i,
spseudos: /^\:(root|empty|(?:first|last|only)(?:-child|-of-type)|nth(?:-last)?(?:-child|-of-type)\(\s?(even|odd|(?:[-+]{0,1}\d*n\s?)?[-+]{0,1}\s?\d*)\s?\))?(.*)/i,
// uistates + dynamic + negation pseudo-classes
dpseudos: /^\:(link|visited|target|active|focus|hover|checked|disabled|enabled|selected|lang\(([-\w]{2,})\)|(?:matches|not)\(\s*(:nth(?:-last)?(?:-child|-of-type)\(\s*(?:even|odd|(?:[-+]{0,1}\d*n\s*)?[-+]{0,1}\s*\d*)\s*\)|[^()]*)\s*\))?(.*)/i,
dpseudos: /^\:(link|visited|target|active|focus|hover|checked|disabled|enabled|selected|lang\(([-\w]{2,})\)|(?:matches|not)\(\s?(:nth(?:-last)?(?:-child|-of-type)\(\s?(?:even|odd|(?:[-+]{0,1}\d*n\s?)?[-+]{0,1}\s?\d*)\s?\)|[^()]*)\s?\))?(.*)/i,
// pseudo-elements selectors
epseudos: /^((?:[:]{1,2}(?:after|before|first-letter|first-line))|(?:[:]{2,2}(?:selection|backdrop|placeholder)))?(.*)/i,
// E > F
children: RegExp('^' + whitespace + '*\\>' + whitespace + '*(.*)'),
children: RegExp('^' + whitespace + '?\\>' + whitespace + '?(.*)'),
// E + F
adjacent: RegExp('^' + whitespace + '*\\+' + whitespace + '*(.*)'),
adjacent: RegExp('^' + whitespace + '?\\+' + whitespace + '?(.*)'),
// E ~ F
relative: RegExp('^' + whitespace + '*\\~' + whitespace + '*(.*)'),
relative: RegExp('^' + whitespace + '?\\~' + whitespace + '?(.*)'),
// E F

@@ -542,5 +542,5 @@ ancestor: RegExp('^' + whitespace + '+(.*)'),

// javascript strings are UTF-16 encoded
/^[0-9a-fA-F]/.test(p1) ? codePointToUTF16(parseInt(p1, 16)) :
(/^[0-9a-fA-F]/).test(p1) ? codePointToUTF16(parseInt(p1, 16)) :
// \' \"
/^[\\\x22\x27]/.test(p1) ? substring :
(/^[\\\x22\x27]/).test(p1) ? substring :
// \g \h \. \# etc

@@ -561,5 +561,5 @@ p1;

// javascript strings are UTF-16 encoded
/^[0-9a-fA-F]/.test(p1) ? stringFromCodePoint(parseInt(p1, 16)) :
(/^[0-9a-fA-F]/).test(p1) ? stringFromCodePoint(parseInt(p1, 16)) :
// \' \"
/^[\\\x22\x27]/.test(p1) ? substring :
(/^[\\\x22\x27]/).test(p1) ? substring :
// \g \h \. \# etc

@@ -566,0 +566,0 @@ p1;

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