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:
Riccardo Rigutini 2024-06-24 15:24:07 +02:00 committed by GitHub
commit 6c6cdbe8d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 14 additions and 15 deletions

11
dist/index.js generated vendored
View File

@ -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.

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

14
package-lock.json generated
View File

@ -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": {

View File

@ -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"
}
}