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