Merge pull request #158 from richardrigutins:dependabot/npm_and_yarn/typescript-5.5.2
[Chore] Bump typescript from 5.4.5 to 5.5.2
This commit is contained in:
commit
6c6cdbe8d9
|
|
@ -10,7 +10,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.replaceTextInFile = exports.processInChunks = exports.getFiles = exports.isValidEncoding = exports.isPositiveInteger = void 0;
|
||||
exports.isPositiveInteger = isPositiveInteger;
|
||||
exports.isValidEncoding = isValidEncoding;
|
||||
exports.getFiles = getFiles;
|
||||
exports.processInChunks = processInChunks;
|
||||
exports.replaceTextInFile = replaceTextInFile;
|
||||
const fs_1 = __importDefault(__nccwpck_require__(7147));
|
||||
const glob_1 = __nccwpck_require__(8211);
|
||||
const encodings = [
|
||||
|
|
@ -30,7 +34,6 @@ const encodings = [
|
|||
function isPositiveInteger(value) {
|
||||
return /^[1-9]\d*$/.test(value);
|
||||
}
|
||||
exports.isPositiveInteger = isPositiveInteger;
|
||||
/**
|
||||
* Checks if the given encoding is supported.
|
||||
* @param encoding The encoding to check.
|
||||
|
|
@ -39,7 +42,6 @@ exports.isPositiveInteger = isPositiveInteger;
|
|||
function isValidEncoding(encoding) {
|
||||
return encodings.includes(encoding);
|
||||
}
|
||||
exports.isValidEncoding = isValidEncoding;
|
||||
/**
|
||||
* Returns an array of file paths that match the given pattern.
|
||||
* @param filesPattern The file path or glob pattern to search for.
|
||||
|
|
@ -55,7 +57,6 @@ async function getFiles(filesPattern, exclude) {
|
|||
throw new Error(`Error getting files: ${error}`);
|
||||
}
|
||||
}
|
||||
exports.getFiles = getFiles;
|
||||
/**
|
||||
* Processes an array in chunks, applying a given function to each item.
|
||||
* @param array The array to process.
|
||||
|
|
@ -74,7 +75,6 @@ async function processInChunks(array, func, chunkSize) {
|
|||
await Promise.all(chunk.map(func));
|
||||
}
|
||||
}
|
||||
exports.processInChunks = processInChunks;
|
||||
/**
|
||||
* Replaces all instances of the given text with the given value in the file.
|
||||
* @param filePath The path of the file to modify.
|
||||
|
|
@ -93,7 +93,6 @@ async function replaceTextInFile(filePath, searchText, replacementText, encoding
|
|||
const updatedContent = fileContent.replaceAll(searchText, replacementText);
|
||||
await saveFileContent(filePath, updatedContent);
|
||||
}
|
||||
exports.replaceTextInFile = replaceTextInFile;
|
||||
/**
|
||||
* Reads the content of the file at the given path.
|
||||
* @param filePath The path of the file to read.
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -26,7 +26,7 @@
|
|||
"js-yaml": "^4.1.0",
|
||||
"prettier": "^3.3.2",
|
||||
"ts-jest": "^29.1.5",
|
||||
"typescript": "^5.4.5"
|
||||
"typescript": "^5.5.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@aashutoshrathi/word-wrap": {
|
||||
|
|
@ -7439,9 +7439,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.4.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
|
||||
"integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
|
||||
"version": "5.5.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.2.tgz",
|
||||
"integrity": "sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
|
|
@ -13079,9 +13079,9 @@
|
|||
}
|
||||
},
|
||||
"typescript": {
|
||||
"version": "5.4.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
|
||||
"integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
|
||||
"version": "5.5.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.2.tgz",
|
||||
"integrity": "sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==",
|
||||
"dev": true
|
||||
},
|
||||
"unbox-primitive": {
|
||||
|
|
|
|||
|
|
@ -41,6 +41,6 @@
|
|||
"js-yaml": "^4.1.0",
|
||||
"prettier": "^3.3.2",
|
||||
"ts-jest": "^29.1.5",
|
||||
"typescript": "^5.4.5"
|
||||
"typescript": "^5.5.2"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue