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

xregexp

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xregexp - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

16

lib/addons/build.js
"use strict";
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
_Object$defineProperty(exports, "__esModule", {

@@ -13,12 +13,12 @@ value: true

var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
var _reduce = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/reduce"));
var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
var _reduce = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/reduce"));
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
/*!
* XRegExp.build 5.0.1
* XRegExp.build 5.0.2
* <xregexp.com>

@@ -160,3 +160,3 @@ * Steven Levithan (c) 2012-present MIT License

var addFlagX = (0, _includes["default"])(flags).call(flags, 'x');
var addFlagX = (0, _indexOf["default"])(flags).call(flags, 'x') !== -1;
var inlineFlags = /^\(\?([\w$]+)\)/.exec(pattern); // Add flags within a leading mode modifier to the overall pattern's flags

@@ -163,0 +163,0 @@

"use strict";
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
_Object$defineProperty(exports, "__esModule", {

@@ -13,10 +13,10 @@ value: true

var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/slice"));
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/slice"));
/*!
* XRegExp.matchRecursive 5.0.1
* XRegExp.matchRecursive 5.0.2
* <xregexp.com>

@@ -94,4 +94,4 @@ * Steven Levithan (c) 2009-present MIT License

options = options || {};
var global = (0, _includes["default"])(flags).call(flags, 'g');
var sticky = (0, _includes["default"])(flags).call(flags, 'y'); // Flag `y` is controlled internally
var global = (0, _indexOf["default"])(flags).call(flags, 'g') !== -1;
var sticky = (0, _indexOf["default"])(flags).call(flags, 'y') !== -1; // Flag `y` is controlled internally

@@ -98,0 +98,0 @@ var basicFlags = flags.replace(/y/g, '');

"use strict";
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
var _sliceInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/slice");
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
var _Array$from = require("@babel/runtime-corejs3/core-js-stable/array/from");
_Object$defineProperty(exports, "__esModule", {
value: true
});
var _Symbol = require("@babel/runtime-corejs3/core-js-stable/symbol");
exports["default"] = void 0;
var _getIteratorMethod = require("@babel/runtime-corejs3/core-js/get-iterator-method");
var _getIterator2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/get-iterator"));
var _Array$isArray = require("@babel/runtime-corejs3/core-js-stable/array/is-array");
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
var _getIterator = require("@babel/runtime-corejs3/core-js/get-iterator");
var _getIteratorMethod2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js/get-iterator-method"));
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
var _symbol = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/symbol"));
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
var _from = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/from"));
_Object$defineProperty(exports, "__esModule", {
value: true
});
var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/slice"));
exports["default"] = void 0;
var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
var _forEach = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/for-each"));
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
var _forEach = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/for-each"));
var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof _symbol["default"] === "undefined" || (0, _getIteratorMethod2["default"])(o) == null) { if ((0, _isArray["default"])(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = (0, _getIterator2["default"])(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof _Symbol === "undefined" || _getIteratorMethod(o) == null) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = _getIterator(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { var _context4; if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = (0, _slice["default"])(_context4 = Object.prototype.toString.call(o)).call(_context4, 8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return (0, _from["default"])(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _unsupportedIterableToArray(o, minLen) { var _context4; if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context4 = Object.prototype.toString.call(o)).call(_context4, 8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

@@ -40,3 +40,3 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

/*!
* XRegExp Unicode Base 5.0.1
* XRegExp Unicode Base 5.0.2
* <xregexp.com>

@@ -172,3 +172,3 @@ * Steven Levithan (c) 2008-present MIT License

var isAstralMode = (0, _includes["default"])(flags).call(flags, 'A'); // Token lookup name. Check `tokenSingleCharName` first to avoid passing `undefined`
var isAstralMode = (0, _indexOf["default"])(flags).call(flags, 'A') !== -1; // Token lookup name. Check `tokenSingleCharName` first to avoid passing `undefined`
// via `\p{}`

@@ -175,0 +175,0 @@

"use strict";
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
_Object$defineProperty(exports, "__esModule", {

@@ -16,3 +16,3 @@ value: true

/*!
* XRegExp Unicode Categories 5.0.1
* XRegExp Unicode Categories 5.0.2
* <xregexp.com>

@@ -19,0 +19,0 @@ * Steven Levithan (c) 2010-present MIT License

"use strict";
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
_Object$defineProperty(exports, "__esModule", {

@@ -16,3 +16,3 @@ value: true

/*!
* XRegExp Unicode Properties 5.0.1
* XRegExp Unicode Properties 5.0.2
* <xregexp.com>

@@ -19,0 +19,0 @@ * Steven Levithan (c) 2012-present MIT License

"use strict";
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
_Object$defineProperty(exports, "__esModule", {

@@ -16,3 +16,3 @@ value: true

/*!
* XRegExp Unicode Scripts 5.0.1
* XRegExp Unicode Scripts 5.0.2
* <xregexp.com>

@@ -19,0 +19,0 @@ * Steven Levithan (c) 2010-present MIT License

"use strict";
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
_Object$defineProperty(exports, "__esModule", {

@@ -8,0 +8,0 @@ value: true

{
"name": "xregexp",
"version": "5.0.1",
"version": "5.0.2",
"description": "Extended regular expressions",

@@ -43,8 +43,8 @@ "homepage": "http://xregexp.com/",

"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-unicode-property-regex": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@unicode/unicode-13.0.0": "^1.0.2",
"@babel/cli": "^7.13.14",
"@babel/core": "^7.13.14",
"@babel/plugin-proposal-unicode-property-regex": "^7.12.13",
"@babel/plugin-transform-runtime": "^7.13.10",
"@babel/preset-env": "^7.13.12",
"@unicode/unicode-13.0.0": "^1.0.6",
"babel-plugin-add-module-exports": "^1.0.4",

@@ -54,6 +54,6 @@ "babel-plugin-array-includes": "^2.0.3",

"browserify": "^17.0.0",
"dtslint": "^2.0.5",
"eslint": "^7.12.1",
"jasmine": "^3.6.2",
"jsesc": "^3.0.1",
"dtslint": "^2.0.6",
"eslint": "^7.23.0",
"jasmine": "^3.7.0",
"jsesc": "^3.0.2",
"nyc": "^15.1.0",

@@ -60,0 +60,0 @@ "unicode-property-value-aliases": "^3.5.0",

@@ -1,2 +0,2 @@

# XRegExp 5.0.1
# XRegExp 5.0.2

@@ -91,4 +91,4 @@ [![Build Status](https://github.com/slevithan/xregexp/workflows/Node.js%20CI/badge.svg)](https://github.com/slevithan/xregexp/actions)

const html =
`<a href="http://xregexp.com/">XRegExp</a>
<a href="http://www.google.com/">Google</a>`;
`<a href="https://xregexp.com/">XRegExp</a>
<a href="https://www.google.com/">Google</a>`;
XRegExp.matchChain(html, [

@@ -105,3 +105,3 @@ {regex: /<a href="([^"]+)">/i, backref: 1},

These examples give the flavor of what's possible, but XRegExp has more syntax, flags, methods, options, and browser fixes that aren't shown here. You can also augment XRegExp's regular expression syntax with addons (see below) or write your own. See [xregexp.com](http://xregexp.com/) for details.
These examples give the flavor of what's possible, but XRegExp has more syntax, flags, methods, options, and browser fixes that aren't shown here. You can also augment XRegExp's regular expression syntax with addons (see below) or write your own. See [xregexp.com](https://xregexp.com/) for details.

@@ -246,3 +246,3 @@ ## Addons

In [Node.js](http://nodejs.org/):
In [Node.js](https://nodejs.org/en/):

@@ -257,3 +257,3 @@ ```js

- [Steven Levithan](http://stevenlevithan.com/)
- [Steven Levithan](https://blog.stevenlevithan.com/)
- [Joseph Frazier](https://github.com/josephfrazier)

@@ -264,2 +264,2 @@ - [Mathias Bynens](https://mathiasbynens.be/)

XRegExp is released under the [MIT License](https://mit-license.org/). Learn more at [xregexp.com](http://xregexp.com/).
XRegExp is released under the [MIT License](https://mit-license.org/). Learn more at [xregexp.com](https://xregexp.com/).
/*!
* XRegExp.build 5.0.1
* XRegExp.build 5.0.2
* <xregexp.com>

@@ -4,0 +4,0 @@ * Steven Levithan (c) 2012-present MIT License

/*!
* XRegExp.matchRecursive 5.0.1
* XRegExp.matchRecursive 5.0.2
* <xregexp.com>

@@ -4,0 +4,0 @@ * Steven Levithan (c) 2009-present MIT License

/*!
* XRegExp Unicode Base 5.0.1
* XRegExp Unicode Base 5.0.2
* <xregexp.com>

@@ -4,0 +4,0 @@ * Steven Levithan (c) 2008-present MIT License

/*!
* XRegExp Unicode Categories 5.0.1
* XRegExp Unicode Categories 5.0.2
* <xregexp.com>

@@ -4,0 +4,0 @@ * Steven Levithan (c) 2010-present MIT License

/*!
* XRegExp Unicode Properties 5.0.1
* XRegExp Unicode Properties 5.0.2
* <xregexp.com>

@@ -4,0 +4,0 @@ * Steven Levithan (c) 2012-present MIT License

/*!
* XRegExp Unicode Scripts 5.0.1
* XRegExp Unicode Scripts 5.0.2
* <xregexp.com>

@@ -4,0 +4,0 @@ * Steven Levithan (c) 2010-present MIT License

@@ -261,11 +261,11 @@ // Definitions by: Bart van der Schoor <https://github.com/Bartvds>,

/**
* This is an element in the `XRegExpMatchChainArray` that also specifies a specific back reference.
* An element in a `MatchChainArray` that specifies a regex and a backreference to pass forward.
*/
interface ChainArrayElement {
/**
* The `RegExp` to use.
* The regex to use.
*/
regexp: RegExp;
regex: RegExp;
/**
* The specific backreference.
* The named or numbered backreference to pass forward.
*/

@@ -272,0 +272,0 @@ backref: number | string;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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