mirror of
https://gitlab.com/octtspacc/staticoso
synced 2025-06-05 22:09:23 +02:00
Transition to monorepo on a new Dev branch
This commit is contained in:
20
App/Source/node_modules/is-regex/.editorconfig
generated
vendored
Normal file
20
App/Source/node_modules/is-regex/.editorconfig
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
max_line_length = 150
|
||||
|
||||
[CHANGELOG.md]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.json]
|
||||
max_line_length = off
|
||||
|
||||
[Makefile]
|
||||
max_line_length = off
|
1
App/Source/node_modules/is-regex/.eslintignore
generated
vendored
Normal file
1
App/Source/node_modules/is-regex/.eslintignore
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
coverage/
|
19
App/Source/node_modules/is-regex/.eslintrc
generated
vendored
Normal file
19
App/Source/node_modules/is-regex/.eslintrc
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"rules": {
|
||||
"id-length": [1],
|
||||
"operator-linebreak": [2, "before"],
|
||||
},
|
||||
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["test/**/*.js"],
|
||||
"globals": {
|
||||
"Proxy": false,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
10
App/Source/node_modules/is-regex/.nycrc
generated
vendored
Normal file
10
App/Source/node_modules/is-regex/.nycrc
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"all": true,
|
||||
"check-coverage": false,
|
||||
"reporter": ["text-summary", "text", "html", "json"],
|
||||
"exclude": [
|
||||
"coverage",
|
||||
"test",
|
||||
"test-corejs.js"
|
||||
]
|
||||
}
|
20
App/Source/node_modules/is-regex/LICENSE
generated
vendored
Normal file
20
App/Source/node_modules/is-regex/LICENSE
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Jordan Harband
|
||||
|
||||
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.
|
58
App/Source/node_modules/is-regex/index.js
generated
vendored
Normal file
58
App/Source/node_modules/is-regex/index.js
generated
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
'use strict';
|
||||
|
||||
var callBound = require('call-bind/callBound');
|
||||
var hasToStringTag = require('has-tostringtag/shams')();
|
||||
var has;
|
||||
var $exec;
|
||||
var isRegexMarker;
|
||||
var badStringifier;
|
||||
|
||||
if (hasToStringTag) {
|
||||
has = callBound('Object.prototype.hasOwnProperty');
|
||||
$exec = callBound('RegExp.prototype.exec');
|
||||
isRegexMarker = {};
|
||||
|
||||
var throwRegexMarker = function () {
|
||||
throw isRegexMarker;
|
||||
};
|
||||
badStringifier = {
|
||||
toString: throwRegexMarker,
|
||||
valueOf: throwRegexMarker
|
||||
};
|
||||
|
||||
if (typeof Symbol.toPrimitive === 'symbol') {
|
||||
badStringifier[Symbol.toPrimitive] = throwRegexMarker;
|
||||
}
|
||||
}
|
||||
|
||||
var $toString = callBound('Object.prototype.toString');
|
||||
var gOPD = Object.getOwnPropertyDescriptor;
|
||||
var regexClass = '[object RegExp]';
|
||||
|
||||
module.exports = hasToStringTag
|
||||
// eslint-disable-next-line consistent-return
|
||||
? function isRegex(value) {
|
||||
if (!value || typeof value !== 'object') {
|
||||
return false;
|
||||
}
|
||||
|
||||
var descriptor = gOPD(value, 'lastIndex');
|
||||
var hasLastIndexDataProperty = descriptor && has(descriptor, 'value');
|
||||
if (!hasLastIndexDataProperty) {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
$exec(value, badStringifier);
|
||||
} catch (e) {
|
||||
return e === isRegexMarker;
|
||||
}
|
||||
}
|
||||
: function isRegex(value) {
|
||||
// In older browsers, typeof regex incorrectly returns 'function'
|
||||
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $toString(value) === regexClass;
|
||||
};
|
86
App/Source/node_modules/is-regex/package.json
generated
vendored
Normal file
86
App/Source/node_modules/is-regex/package.json
generated
vendored
Normal file
@ -0,0 +1,86 @@
|
||||
{
|
||||
"name": "is-regex",
|
||||
"version": "1.1.4",
|
||||
"description": "Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag",
|
||||
"author": "Jordan Harband <ljharb@gmail.com>",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
},
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "safe-publish-latest",
|
||||
"prepublish": "not-in-publish || npm run prepublishOnly",
|
||||
"pretest": "npm run lint",
|
||||
"test": "npm run tests-only && npm run test:harmony",
|
||||
"tests-only": "nyc node test",
|
||||
"test:harmony": "nyc node --harmony --es-staging test",
|
||||
"test:corejs": "nyc tape test-corejs.js",
|
||||
"posttest": "npx aud --production",
|
||||
"lint": "eslint .",
|
||||
"eccheck": "eclint check *.js **/*.js > /dev/null",
|
||||
"version": "auto-changelog && git add CHANGELOG.md",
|
||||
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/inspect-js/is-regex.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/inspect-js/is-regex/issues"
|
||||
},
|
||||
"homepage": "https://github.com/inspect-js/is-regex",
|
||||
"keywords": [
|
||||
"regex",
|
||||
"regexp",
|
||||
"is",
|
||||
"regular expression",
|
||||
"regular",
|
||||
"expression"
|
||||
],
|
||||
"dependencies": {
|
||||
"call-bind": "^1.0.2",
|
||||
"has-tostringtag": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^17.6.0",
|
||||
"aud": "^1.1.5",
|
||||
"auto-changelog": "^2.3.0",
|
||||
"core-js": "^3.16.0",
|
||||
"eclint": "^2.8.1",
|
||||
"eslint": "^7.32.0",
|
||||
"foreach": "^2.0.5",
|
||||
"nyc": "^10.3.2",
|
||||
"safe-publish-latest": "^1.1.4",
|
||||
"tape": "^5.3.0"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/index.js",
|
||||
"browsers": [
|
||||
"iexplore/6.0..latest",
|
||||
"firefox/3.0..6.0",
|
||||
"firefox/15.0..latest",
|
||||
"firefox/nightly",
|
||||
"chrome/4.0..10.0",
|
||||
"chrome/20.0..latest",
|
||||
"chrome/canary",
|
||||
"opera/10.0..latest",
|
||||
"opera/next",
|
||||
"safari/4.0..latest",
|
||||
"ipad/6.0..latest",
|
||||
"iphone/6.0..latest",
|
||||
"android-browser/4.2"
|
||||
]
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"auto-changelog": {
|
||||
"output": "CHANGELOG.md",
|
||||
"template": "keepachangelog",
|
||||
"unreleased": false,
|
||||
"commitLimit": false,
|
||||
"backfillLimit": false,
|
||||
"hideCredit": true
|
||||
}
|
||||
}
|
104
App/Source/node_modules/is-regex/test/index.js
generated
vendored
Normal file
104
App/Source/node_modules/is-regex/test/index.js
generated
vendored
Normal file
@ -0,0 +1,104 @@
|
||||
'use strict';
|
||||
|
||||
var hasToStringTag = require('has-tostringtag/shams')();
|
||||
var forEach = require('foreach');
|
||||
var test = require('tape');
|
||||
var isRegex = require('..');
|
||||
|
||||
test('not regexes', function (t) {
|
||||
t.notOk(isRegex(), 'undefined is not regex');
|
||||
t.notOk(isRegex(null), 'null is not regex');
|
||||
t.notOk(isRegex(false), 'false is not regex');
|
||||
t.notOk(isRegex(true), 'true is not regex');
|
||||
t.notOk(isRegex(42), 'number is not regex');
|
||||
t.notOk(isRegex('foo'), 'string is not regex');
|
||||
t.notOk(isRegex([]), 'array is not regex');
|
||||
t.notOk(isRegex({}), 'object is not regex');
|
||||
t.notOk(isRegex(function () {}), 'function is not regex');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('@@toStringTag', { skip: !hasToStringTag }, function (t) {
|
||||
var regex = /a/g;
|
||||
var fakeRegex = {
|
||||
toString: function () { return String(regex); },
|
||||
valueOf: function () { return regex; }
|
||||
};
|
||||
fakeRegex[Symbol.toStringTag] = 'RegExp';
|
||||
t.notOk(isRegex(fakeRegex), 'fake RegExp with @@toStringTag "RegExp" is not regex');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('regexes', function (t) {
|
||||
t.ok(isRegex(/a/g), 'regex literal is regex');
|
||||
t.ok(isRegex(new RegExp('a', 'g')), 'regex object is regex');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('does not mutate regexes', function (t) {
|
||||
t.test('lastIndex is a marker object', function (st) {
|
||||
var regex = /a/;
|
||||
var marker = {};
|
||||
regex.lastIndex = marker;
|
||||
st.equal(regex.lastIndex, marker, 'lastIndex is the marker object');
|
||||
st.ok(isRegex(regex), 'is regex');
|
||||
st.equal(regex.lastIndex, marker, 'lastIndex is the marker object after isRegex');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('lastIndex is nonzero', function (st) {
|
||||
var regex = /a/;
|
||||
regex.lastIndex = 3;
|
||||
st.equal(regex.lastIndex, 3, 'lastIndex is 3');
|
||||
st.ok(isRegex(regex), 'is regex');
|
||||
st.equal(regex.lastIndex, 3, 'lastIndex is 3 after isRegex');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('does not perform operations observable to Proxies', { skip: typeof Proxy !== 'function' }, function (t) {
|
||||
var Handler = function () {
|
||||
this.trapCalls = [];
|
||||
};
|
||||
|
||||
forEach([
|
||||
'defineProperty',
|
||||
'deleteProperty',
|
||||
'get',
|
||||
'getOwnPropertyDescriptor',
|
||||
'getPrototypeOf',
|
||||
'has',
|
||||
'isExtensible',
|
||||
'ownKeys',
|
||||
'preventExtensions',
|
||||
'set',
|
||||
'setPrototypeOf'
|
||||
], function (trapName) {
|
||||
Handler.prototype[trapName] = function () {
|
||||
this.trapCalls.push(trapName);
|
||||
return Reflect[trapName].apply(Reflect, arguments);
|
||||
};
|
||||
});
|
||||
|
||||
t.test('proxy of object', function (st) {
|
||||
var handler = new Handler();
|
||||
var proxy = new Proxy({ lastIndex: 0 }, handler);
|
||||
|
||||
st.equal(isRegex(proxy), false, 'proxy of plain object is not regex');
|
||||
st.deepEqual(handler.trapCalls, ['getOwnPropertyDescriptor'], 'no unexpected proxy traps were triggered');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('proxy of RegExp instance', function (st) {
|
||||
var handler = new Handler();
|
||||
var proxy = new Proxy(/a/, handler);
|
||||
|
||||
st.equal(isRegex(proxy), false, 'proxy of RegExp instance is not regex');
|
||||
st.deepEqual(handler.trapCalls, ['getOwnPropertyDescriptor'], 'no unexpected proxy traps were triggered');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.end();
|
||||
});
|
Reference in New Issue
Block a user