mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-02-04 05:50:50 +00:00
nhj
more
This commit is contained in:
18
unified-ai-platform/node_modules/jest-util/build/clearLine.js
generated
vendored
Normal file
18
unified-ai-platform/node_modules/jest-util/build/clearLine.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = clearLine;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
function clearLine(stream) {
|
||||
if (stream.isTTY) {
|
||||
stream.write('\x1b[999D\x1b[K');
|
||||
}
|
||||
}
|
||||
30
unified-ai-platform/node_modules/jest-util/build/convertDescriptorToString.js
generated
vendored
Normal file
30
unified-ai-platform/node_modules/jest-util/build/convertDescriptorToString.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.default = convertDescriptorToString;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
function convertDescriptorToString(descriptor) {
|
||||
switch (typeof descriptor) {
|
||||
case 'function':
|
||||
if (descriptor.name) {
|
||||
return descriptor.name;
|
||||
}
|
||||
break;
|
||||
case 'number':
|
||||
case 'undefined':
|
||||
return `${descriptor}`;
|
||||
case 'string':
|
||||
return descriptor;
|
||||
}
|
||||
throw new Error(
|
||||
`Invalid first argument, ${descriptor}. It must be a named class, named function, number, or string.`
|
||||
);
|
||||
}
|
||||
0
unified-ai-platform/node_modules/jest-util/build/createDirectory.js
generated
vendored
Normal file
0
unified-ai-platform/node_modules/jest-util/build/createDirectory.js
generated
vendored
Normal file
Reference in New Issue
Block a user