@xh/hoist 76.0.0-SNAPSHOT.1758297294348 → 76.0.0-SNAPSHOT.1758310971360
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 +4 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/utils/js/LangUtils.ts +1 -1
- package/utils/js/LogUtils.ts +1 -0
package/utils/js/LangUtils.ts
CHANGED
|
@@ -121,7 +121,7 @@ export function isJSON(obj: any): boolean {
|
|
|
121
121
|
*/
|
|
122
122
|
export function throwIf(condition: any, message: unknown) {
|
|
123
123
|
if (condition) {
|
|
124
|
-
throw Exception.create(message);
|
|
124
|
+
throw Exception.create(message); // low-level exception api for low-level package
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
package/utils/js/LogUtils.ts
CHANGED
|
@@ -168,6 +168,7 @@ export function apiRemoved(name: string, opts: APIWarnOptions = {}) {
|
|
|
168
168
|
|
|
169
169
|
const src = opts.source ? `[${opts.source}] ` : '',
|
|
170
170
|
msg = opts.msg ? ` ${opts.msg}.` : '';
|
|
171
|
+
// low-level exception api for low-level package
|
|
171
172
|
throw Exception.create(`${src}The use of '${name}' is no longer supported.${msg}`);
|
|
172
173
|
}
|
|
173
174
|
|