nhb-toolbox 4.20.26 → 4.20.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ All notable changes to the package will be documented here.
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
## [4.20.27] - 2025-09-16
|
|
10
|
+
|
|
11
|
+
- **Fixed** _issues_: (**failed to convert already past/participle regular verbs**) with `toPast()` and `toParticiple()` methods in `Verbalizer/verbalizer`.
|
|
12
|
+
|
|
9
13
|
## [4.20.26] - 2025-09-16
|
|
10
14
|
|
|
11
15
|
- **Optimized** _internal logic_ in both `Pluralizer` and `Verbalizer`.
|
|
@@ -166,7 +166,7 @@ class Verbalizer {
|
|
|
166
166
|
if (irregularEntry) {
|
|
167
167
|
return this.#restoreCase(verb, irregularEntry.past);
|
|
168
168
|
}
|
|
169
|
-
return this.#restoreCase(verb, this.#applyRules(lower, this.#pastRules));
|
|
169
|
+
return this.#restoreCase(verb, this.#applyRules(this.toBase(lower), this.#pastRules));
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
172
|
* * Convert a verb to its past participle form.
|
|
@@ -184,7 +184,7 @@ class Verbalizer {
|
|
|
184
184
|
if (irregularEntry) {
|
|
185
185
|
return this.#restoreCase(verb, irregularEntry.participle);
|
|
186
186
|
}
|
|
187
|
-
return this.#restoreCase(verb, this.#applyRules(lower, this.#participleRules));
|
|
187
|
+
return this.#restoreCase(verb, this.#applyRules(this.toBase(lower), this.#participleRules));
|
|
188
188
|
}
|
|
189
189
|
/**
|
|
190
190
|
* * Convert a verb to its base form.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Verbalizer.d.ts","sourceRoot":"","sources":["../../../src/verbalizer/Verbalizer.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,UAAU;;IAOtB;;;OAGG;;IAsFH;;;;;;OA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IAAI,EAAE,MAAM,GAAG,MAAM;IAe5B;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAQ7B;;;;;;;OAOG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAQvC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAO7B;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,YAAmB,CAAC"}
|
|
@@ -163,7 +163,7 @@ export class Verbalizer {
|
|
|
163
163
|
if (irregularEntry) {
|
|
164
164
|
return this.#restoreCase(verb, irregularEntry.past);
|
|
165
165
|
}
|
|
166
|
-
return this.#restoreCase(verb, this.#applyRules(lower, this.#pastRules));
|
|
166
|
+
return this.#restoreCase(verb, this.#applyRules(this.toBase(lower), this.#pastRules));
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
169
|
* * Convert a verb to its past participle form.
|
|
@@ -181,7 +181,7 @@ export class Verbalizer {
|
|
|
181
181
|
if (irregularEntry) {
|
|
182
182
|
return this.#restoreCase(verb, irregularEntry.participle);
|
|
183
183
|
}
|
|
184
|
-
return this.#restoreCase(verb, this.#applyRules(lower, this.#participleRules));
|
|
184
|
+
return this.#restoreCase(verb, this.#applyRules(this.toBase(lower), this.#participleRules));
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
187
187
|
* * Convert a verb to its base form.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nhb-toolbox",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.27",
|
|
4
4
|
"description": "A versatile collection of smart, efficient, and reusable utility functions and classes for everyday development needs.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|