@rushstack/node-core-library
Advanced tools
Comparing version 5.6.0 to 5.7.0
# Change Log - @rushstack/node-core-library | ||
This log was last generated on Mon, 12 Aug 2024 22:16:04 GMT and should not be manually modified. | ||
This log was last generated on Wed, 21 Aug 2024 05:43:04 GMT and should not be manually modified. | ||
## 5.7.0 | ||
Wed, 21 Aug 2024 05:43:04 GMT | ||
### Minor changes | ||
- Introduce a `Text.splitByNewLines` function. | ||
## 5.6.0 | ||
@@ -6,0 +13,0 @@ Mon, 12 Aug 2024 22:16:04 GMT |
@@ -134,3 +134,10 @@ /// <reference types="node" /> | ||
static reverse(s: string): string; | ||
/** | ||
* Splits the provided string by newlines. Note that leading and trailing newlines will produce | ||
* leading or trailing empty string array entries. | ||
*/ | ||
static splitByNewLines(s: undefined): undefined; | ||
static splitByNewLines(s: string): string[]; | ||
static splitByNewLines(s: string | undefined): string[] | undefined; | ||
} | ||
//# sourceMappingURL=Text.d.ts.map |
@@ -293,2 +293,5 @@ "use strict"; | ||
} | ||
static splitByNewLines(s) { | ||
return s === null || s === void 0 ? void 0 : s.split(/\r?\n/); | ||
} | ||
} | ||
@@ -295,0 +298,0 @@ exports.Text = Text; |
{ | ||
"name": "@rushstack/node-core-library", | ||
"version": "5.6.0", | ||
"version": "5.7.0", | ||
"description": "Core libraries that every NodeJS toolchain project should use", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1190197
16882