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

regexp-escape-x

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regexp-escape-x - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

4

index.js

@@ -29,3 +29,3 @@ /**

*
* @version 1.1.1
* @version 1.2.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -59,5 +59,5 @@ * @copyright Xotic750

*/
module.exports = function regexpEscape(string) {
module.exports = function RegExpEscape(string) {
return $toString(string).replace(syntaxChars, '\\$&');
};
}());

@@ -30,3 +30,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){

*
* @version 1.1.1
* @version 1.2.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -60,3 +60,3 @@ * @copyright Xotic750

*/
module.exports = function regexpEscape(string) {
module.exports = function RegExpEscape(string) {
return $toString(string).replace(syntaxChars, '\\$&');

@@ -124,3 +124,3 @@ };

*
* @version 1.1.2
* @version 1.2.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -127,0 +127,0 @@ * @copyright Xotic750

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

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.returnExports=e()}}(function(){return function e(t,o,r){function s(i,f){if(!o[i]){if(!t[i]){var u="function"==typeof require&&require;if(!f&&u)return u(i,!0);if(n)return n(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var c=o[i]={exports:{}};t[i][0].call(c.exports,function(e){var o=t[i][1][e];return s(o?o:e)},c,c.exports,e,t,o,r)}return o[i].exports}for(var n="function"==typeof require&&require,i=0;i<r.length;i++)s(r[i]);return s}({1:[function(e,t,o){!function(){"use strict";var o=e("to-string-x");t.exports=function regexpEscape(e){return o(e).replace(/[\^$\\.*+?()[\]{}|]/g,"\\$&")}}()},{"to-string-x":3}],2:[function(e,t,o){"use strict";var r=Object.prototype.toString;if("function"==typeof Symbol&&"symbol"==typeof Symbol()){var n=Symbol.prototype.toString,i=/^Symbol\(.*\)$/,f=function isSymbolObject(e){return"symbol"==typeof e.valueOf()&&i.test(n.call(e))};t.exports=function isSymbol(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return f(e)}catch(e){return!1}}}else t.exports=function isSymbol(e){return!1}},{}],3:[function(e,t,o){!function(){"use strict";var o=e("is-symbol");t.exports=function ToString(e){if(o(e))throw new TypeError("Cannot convert a Symbol value to a string");return String(e)}}()},{"is-symbol":2}]},{},[1])(1)});
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.returnExports=e()}}(function(){return function e(t,o,r){function s(i,f){if(!o[i]){if(!t[i]){var u="function"==typeof require&&require;if(!f&&u)return u(i,!0);if(n)return n(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var c=o[i]={exports:{}};t[i][0].call(c.exports,function(e){var o=t[i][1][e];return s(o?o:e)},c,c.exports,e,t,o,r)}return o[i].exports}for(var n="function"==typeof require&&require,i=0;i<r.length;i++)s(r[i]);return s}({1:[function(e,t,o){!function(){"use strict";var o=e("to-string-x");t.exports=function RegExpEscape(e){return o(e).replace(/[\^$\\.*+?()[\]{}|]/g,"\\$&")}}()},{"to-string-x":3}],2:[function(e,t,o){"use strict";var r=Object.prototype.toString;if("function"==typeof Symbol&&"symbol"==typeof Symbol()){var n=Symbol.prototype.toString,i=/^Symbol\(.*\)$/,f=function isSymbolObject(e){return"symbol"==typeof e.valueOf()&&i.test(n.call(e))};t.exports=function isSymbol(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return f(e)}catch(e){return!1}}}else t.exports=function isSymbol(e){return!1}},{}],3:[function(e,t,o){!function(){"use strict";var o=e("is-symbol");t.exports=function ToString(e){if(o(e))throw new TypeError("Cannot convert a Symbol value to a string");return String(e)}}()},{"is-symbol":2}]},{},[1])(1)});
//# sourceMappingURL=lib/regexp-escape-x.map
{
"name": "regexp-escape-x",
"version": "1.1.1",
"version": "1.2.0",
"description": "ECMAScript proposed RegExp.escape.",

@@ -31,3 +31,3 @@ "homepage": "https://github.com/Xotic750/regexp-escape-x",

"dependencies": {
"to-string-x": "^1.1.0"
"to-string-x": "^1.2.0"
},

@@ -46,6 +46,6 @@ "devDependencies": {

"json3": "^3.3.2",
"make-jasmine-spec-runner-html": "^1.0.4",
"make-jasmine-spec-runner-html": "^1.1.0",
"nodemon": "^1.11.0",
"nsp": "^2.6.3",
"replace-x": "^1.0.0",
"replace-x": "^1.1.1",
"uglify-js": "^2.8.16"

@@ -52,0 +52,0 @@ },

@@ -29,3 +29,3 @@ <a name="module_regexp-escape-x"></a>

**See**: [RegExp.escape](https://github.com/benjamingr/RegExp.escape)
**Version**: 1.1.1
**Version**: 1.2.0
**Author**: Xotic750 <Xotic750@gmail.com>

@@ -32,0 +32,0 @@ **License**: [MIT](&lt;https://opensource.org/licenses/MIT&gt;)

Sorry, the diff of this file is not supported yet

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