mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-02-04 14:00:49 +00:00
nhj
more
This commit is contained in:
21
unified-ai-platform/node_modules/jest-haste-map/LICENSE
generated
vendored
Normal file
21
unified-ai-platform/node_modules/jest-haste-map/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
|
||||
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.
|
||||
64
unified-ai-platform/node_modules/jest-haste-map/build/blacklist.js
generated
vendored
Normal file
64
unified-ai-platform/node_modules/jest-haste-map/build/blacklist.js
generated
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
// This list is compiled after the MDN list of the most common MIME types (see
|
||||
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/
|
||||
// Complete_list_of_MIME_types).
|
||||
//
|
||||
// Only MIME types starting with "image/", "video/", "audio/" and "font/" are
|
||||
// reflected in the list. Adding "application/" is too risky since some text
|
||||
// file formats (like ".js" and ".json") have an "application/" MIME type.
|
||||
//
|
||||
// Feel free to add any extensions that cannot be a Haste module.
|
||||
|
||||
const extensions = new Set([
|
||||
// JSONs are never haste modules, except for "package.json", which is handled.
|
||||
'.json',
|
||||
// Image extensions.
|
||||
'.bmp',
|
||||
'.gif',
|
||||
'.ico',
|
||||
'.jpeg',
|
||||
'.jpg',
|
||||
'.png',
|
||||
'.svg',
|
||||
'.tiff',
|
||||
'.tif',
|
||||
'.webp',
|
||||
// Video extensions.
|
||||
'.avi',
|
||||
'.mp4',
|
||||
'.mpeg',
|
||||
'.mpg',
|
||||
'.ogv',
|
||||
'.webm',
|
||||
'.3gp',
|
||||
'.3g2',
|
||||
// Audio extensions.
|
||||
'.aac',
|
||||
'.midi',
|
||||
'.mid',
|
||||
'.mp3',
|
||||
'.oga',
|
||||
'.wav',
|
||||
'.3gp',
|
||||
'.3g2',
|
||||
// Font extensions.
|
||||
'.eot',
|
||||
'.otf',
|
||||
'.ttf',
|
||||
'.woff',
|
||||
'.woff2'
|
||||
]);
|
||||
var _default = extensions;
|
||||
exports.default = _default;
|
||||
111
unified-ai-platform/node_modules/jest-haste-map/build/watchers/common.js
generated
vendored
Normal file
111
unified-ai-platform/node_modules/jest-haste-map/build/watchers/common.js
generated
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
// vendored from https://github.com/amasad/sane/blob/64ff3a870c42e84f744086884bf55a4f9c22d376/src/common.js
|
||||
|
||||
'use strict';
|
||||
|
||||
const platform = require('os').platform();
|
||||
const path = require('path');
|
||||
const anymatch = require('anymatch');
|
||||
const micromatch = require('micromatch');
|
||||
const walker = require('walker');
|
||||
|
||||
/**
|
||||
* Constants
|
||||
*/
|
||||
|
||||
exports.DEFAULT_DELAY = 100;
|
||||
exports.CHANGE_EVENT = 'change';
|
||||
exports.DELETE_EVENT = 'delete';
|
||||
exports.ADD_EVENT = 'add';
|
||||
exports.ALL_EVENT = 'all';
|
||||
|
||||
/**
|
||||
* Assigns options to the watcher.
|
||||
*
|
||||
* @param {NodeWatcher|PollWatcher|WatchmanWatcher} watcher
|
||||
* @param {?object} opts
|
||||
* @return {boolean}
|
||||
* @public
|
||||
*/
|
||||
|
||||
exports.assignOptions = function (watcher, opts) {
|
||||
opts = opts || {};
|
||||
watcher.globs = opts.glob || [];
|
||||
watcher.dot = opts.dot || false;
|
||||
watcher.ignored = opts.ignored || false;
|
||||
if (!Array.isArray(watcher.globs)) {
|
||||
watcher.globs = [watcher.globs];
|
||||
}
|
||||
watcher.hasIgnore =
|
||||
Boolean(opts.ignored) && !(Array.isArray(opts) && opts.length > 0);
|
||||
watcher.doIgnore = opts.ignored ? anymatch(opts.ignored) : () => false;
|
||||
if (opts.watchman && opts.watchmanPath) {
|
||||
watcher.watchmanPath = opts.watchmanPath;
|
||||
}
|
||||
return opts;
|
||||
};
|
||||
|
||||
/**
|
||||
* Checks a file relative path against the globs array.
|
||||
*
|
||||
* @param {array} globs
|
||||
* @param {string} relativePath
|
||||
* @return {boolean}
|
||||
* @public
|
||||
*/
|
||||
|
||||
exports.isFileIncluded = function (globs, dot, doIgnore, relativePath) {
|
||||
if (doIgnore(relativePath)) {
|
||||
return false;
|
||||
}
|
||||
return globs.length
|
||||
? micromatch.some(relativePath, globs, {
|
||||
dot
|
||||
})
|
||||
: dot || micromatch.some(relativePath, '**/*');
|
||||
};
|
||||
|
||||
/**
|
||||
* Traverse a directory recursively calling `callback` on every directory.
|
||||
*
|
||||
* @param {string} dir
|
||||
* @param {function} dirCallback
|
||||
* @param {function} fileCallback
|
||||
* @param {function} endCallback
|
||||
* @param {*} ignored
|
||||
* @public
|
||||
*/
|
||||
|
||||
exports.recReaddir = function (
|
||||
dir,
|
||||
dirCallback,
|
||||
fileCallback,
|
||||
endCallback,
|
||||
errorCallback,
|
||||
ignored
|
||||
) {
|
||||
walker(dir)
|
||||
.filterDir(currentDir => !anymatch(ignored, currentDir))
|
||||
.on('dir', normalizeProxy(dirCallback))
|
||||
.on('file', normalizeProxy(fileCallback))
|
||||
.on('error', errorCallback)
|
||||
.on('end', () => {
|
||||
if (platform === 'win32') {
|
||||
setTimeout(endCallback, 1000);
|
||||
} else {
|
||||
endCallback();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns a callback that when called will normalize a path and call the
|
||||
* original callback
|
||||
*
|
||||
* @param {function} callback
|
||||
* @return {function}
|
||||
* @private
|
||||
*/
|
||||
|
||||
function normalizeProxy(callback) {
|
||||
return (filepath, stats) => callback(path.normalize(filepath), stats);
|
||||
}
|
||||
Reference in New Issue
Block a user