more
This commit is contained in:
dopeuni444
2025-07-31 12:23:33 +04:00
parent 20b46678b7
commit b5a22951ae
3401 changed files with 331100 additions and 0 deletions

9
unified-ai-platform/node_modules/enabled/.travis.yml generated vendored Normal file
View File

@@ -0,0 +1,9 @@
language: node_js
node_js:
- "10"
- "9"
- "8"
after_script:
- "npm install coveralls@2.11.x && cat coverage/lcov.info | coveralls"
matrix:
fast_finish: true

20
unified-ai-platform/node_modules/enabled/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2015 Arnout Kazemier, Martijn Swaagman, the Contributors.
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.

34
unified-ai-platform/node_modules/enabled/index.js generated vendored Normal file
View File

@@ -0,0 +1,34 @@
'use strict';
/**
* Checks if a given namespace is allowed by the given variable.
*
* @param {String} name namespace that should be included.
* @param {String} variable Value that needs to be tested.
* @returns {Boolean} Indication if namespace is enabled.
* @public
*/
module.exports = function enabled(name, variable) {
if (!variable) return false;
var variables = variable.split(/[\s,]+/)
, i = 0;
for (; i < variables.length; i++) {
variable = variables[i].replace('*', '.*?');
if ('-' === variable.charAt(0)) {
if ((new RegExp('^'+ variable.substr(1) +'$')).test(name)) {
return false;
}
continue;
}
if ((new RegExp('^'+ variable +'$')).test(name)) {
return true;
}
}
return false;
};

33
unified-ai-platform/node_modules/enabled/package.json generated vendored Normal file
View File

@@ -0,0 +1,33 @@
{
"name": "enabled",
"version": "2.0.0",
"description": "Check if a certain debug flag is enabled.",
"main": "index.js",
"scripts": {
"100%": "istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100",
"test": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js",
"watch": "mocha --watch test.js"
},
"repository": {
"type": "git",
"url": "git://github.com/3rd-Eden/enabled.git"
},
"keywords": [
"enabled",
"debug",
"diagnostics",
"flag",
"env",
"variable",
"localstorage"
],
"author": "Arnout Kazemier",
"license": "MIT",
"dependencies": {},
"devDependencies": {
"assume": "2.1.x",
"istanbul": "^0.4.5",
"mocha": "5.2.x",
"pre-commit": "1.2.x"
}
}