From 703e03aba33f234712206769f57717ba7d92d23d Mon Sep 17 00:00:00 2001 From: LinuxWizard42 Date: Wed, 12 Oct 2022 22:54:37 +0300 Subject: Added export_allowed file to make repository visible in cgit --- node_modules/strip-outer/index.js | 11 ++++++ node_modules/strip-outer/license | 21 +++++++++++ .../node_modules/escape-string-regexp/index.js | 11 ++++++ .../node_modules/escape-string-regexp/license | 21 +++++++++++ .../node_modules/escape-string-regexp/package.json | 41 ++++++++++++++++++++ .../node_modules/escape-string-regexp/readme.md | 27 +++++++++++++ node_modules/strip-outer/package.json | 44 ++++++++++++++++++++++ node_modules/strip-outer/readme.md | 28 ++++++++++++++ 8 files changed, 204 insertions(+) create mode 100644 node_modules/strip-outer/index.js create mode 100644 node_modules/strip-outer/license create mode 100644 node_modules/strip-outer/node_modules/escape-string-regexp/index.js create mode 100644 node_modules/strip-outer/node_modules/escape-string-regexp/license create mode 100644 node_modules/strip-outer/node_modules/escape-string-regexp/package.json create mode 100644 node_modules/strip-outer/node_modules/escape-string-regexp/readme.md create mode 100644 node_modules/strip-outer/package.json create mode 100644 node_modules/strip-outer/readme.md (limited to 'node_modules/strip-outer') diff --git a/node_modules/strip-outer/index.js b/node_modules/strip-outer/index.js new file mode 100644 index 0000000..497186a --- /dev/null +++ b/node_modules/strip-outer/index.js @@ -0,0 +1,11 @@ +'use strict'; +var escapeStringRegexp = require('escape-string-regexp'); + +module.exports = function (str, sub) { + if (typeof str !== 'string' || typeof sub !== 'string') { + throw new TypeError(); + } + + sub = escapeStringRegexp(sub); + return str.replace(new RegExp('^' + sub + '|' + sub + '$', 'g'), ''); +}; diff --git a/node_modules/strip-outer/license b/node_modules/strip-outer/license new file mode 100644 index 0000000..654d0bf --- /dev/null +++ b/node_modules/strip-outer/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/strip-outer/node_modules/escape-string-regexp/index.js b/node_modules/strip-outer/node_modules/escape-string-regexp/index.js new file mode 100644 index 0000000..7834bf9 --- /dev/null +++ b/node_modules/strip-outer/node_modules/escape-string-regexp/index.js @@ -0,0 +1,11 @@ +'use strict'; + +var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; + +module.exports = function (str) { + if (typeof str !== 'string') { + throw new TypeError('Expected a string'); + } + + return str.replace(matchOperatorsRe, '\\$&'); +}; diff --git a/node_modules/strip-outer/node_modules/escape-string-regexp/license b/node_modules/strip-outer/node_modules/escape-string-regexp/license new file mode 100644 index 0000000..654d0bf --- /dev/null +++ b/node_modules/strip-outer/node_modules/escape-string-regexp/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/strip-outer/node_modules/escape-string-regexp/package.json b/node_modules/strip-outer/node_modules/escape-string-regexp/package.json new file mode 100644 index 0000000..f307df3 --- /dev/null +++ b/node_modules/strip-outer/node_modules/escape-string-regexp/package.json @@ -0,0 +1,41 @@ +{ + "name": "escape-string-regexp", + "version": "1.0.5", + "description": "Escape RegExp special characters", + "license": "MIT", + "repository": "sindresorhus/escape-string-regexp", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "maintainers": [ + "Sindre Sorhus (sindresorhus.com)", + "Joshua Boy Nicolai Appelman (jbna.nl)" + ], + "engines": { + "node": ">=0.8.0" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "escape", + "regex", + "regexp", + "re", + "regular", + "expression", + "string", + "str", + "special", + "characters" + ], + "devDependencies": { + "ava": "*", + "xo": "*" + } +} diff --git a/node_modules/strip-outer/node_modules/escape-string-regexp/readme.md b/node_modules/strip-outer/node_modules/escape-string-regexp/readme.md new file mode 100644 index 0000000..87ac82d --- /dev/null +++ b/node_modules/strip-outer/node_modules/escape-string-regexp/readme.md @@ -0,0 +1,27 @@ +# escape-string-regexp [![Build Status](https://travis-ci.org/sindresorhus/escape-string-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/escape-string-regexp) + +> Escape RegExp special characters + + +## Install + +``` +$ npm install --save escape-string-regexp +``` + + +## Usage + +```js +const escapeStringRegexp = require('escape-string-regexp'); + +const escapedString = escapeStringRegexp('how much $ for a unicorn?'); +//=> 'how much \$ for a unicorn\?' + +new RegExp(escapedString); +``` + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/strip-outer/package.json b/node_modules/strip-outer/package.json new file mode 100644 index 0000000..f98d046 --- /dev/null +++ b/node_modules/strip-outer/package.json @@ -0,0 +1,44 @@ +{ + "name": "strip-outer", + "version": "1.0.1", + "description": "Strip a substring from the start/end of a string", + "license": "MIT", + "repository": "sindresorhus/strip-outer", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "strip", + "trim", + "remove", + "outer", + "str", + "string", + "substring", + "start", + "end", + "wrap", + "leading", + "trailing", + "regex", + "regexp" + ], + "dependencies": { + "escape-string-regexp": "^1.0.2" + }, + "devDependencies": { + "ava": "*", + "xo": "*" + } +} diff --git a/node_modules/strip-outer/readme.md b/node_modules/strip-outer/readme.md new file mode 100644 index 0000000..4f4bee2 --- /dev/null +++ b/node_modules/strip-outer/readme.md @@ -0,0 +1,28 @@ +# strip-outer [![Build Status](https://travis-ci.org/sindresorhus/strip-outer.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-outer) + +> Strip a substring from the start/end of a string + + +## Install + +``` +$ npm install --save strip-outer +``` + + +## Usage + +```js +const stripOuter = require('strip-outer'); + +stripOuter('foobarfoo', 'foo'); +//=> 'bar' + +stripOuter('unicorncake', 'unicorn'); +//=> 'cake' +``` + + +## License + +MIT © [Sindre Sorhus](https://sindresorhus.com) -- cgit v1.2.3-86-g962b