@nosslabs/iap 7.1.0 → 8.0.0

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/dist/index.d.cts CHANGED
@@ -1205,10 +1205,14 @@ interface BackendAdapter<TEntitlement extends EntitlementBase = EntitlementBase>
1205
1205
  declare const DEFAULT_PERMANENT_ERROR_CODES: readonly string[];
1206
1206
 
1207
1207
  /**
1208
- * Library version. Updated by the publish workflow to match `package.json`.
1209
- * Read at runtime by the logger so error reports include the version.
1208
+ * Library version, injected at build time from `package.json` (see the
1209
+ * `define` in tsup.config.ts, mirrored in vitest.config.ts).
1210
+ *
1211
+ * Exported for consumers to read — nothing inside the library consumes it. (An
1212
+ * earlier comment claimed the logger stamped it onto error reports; it never
1213
+ * did. `src/lib/logger.ts` uses a fixed `[@nosslabs/iap]` prefix.)
1210
1214
  */
1211
- declare const VERSION = "0.1.0";
1215
+ declare const VERSION: string;
1212
1216
 
1213
1217
  interface HttpBackendAdapterOptions {
1214
1218
  baseUrl: string;
package/dist/index.d.ts CHANGED
@@ -1205,10 +1205,14 @@ interface BackendAdapter<TEntitlement extends EntitlementBase = EntitlementBase>
1205
1205
  declare const DEFAULT_PERMANENT_ERROR_CODES: readonly string[];
1206
1206
 
1207
1207
  /**
1208
- * Library version. Updated by the publish workflow to match `package.json`.
1209
- * Read at runtime by the logger so error reports include the version.
1208
+ * Library version, injected at build time from `package.json` (see the
1209
+ * `define` in tsup.config.ts, mirrored in vitest.config.ts).
1210
+ *
1211
+ * Exported for consumers to read — nothing inside the library consumes it. (An
1212
+ * earlier comment claimed the logger stamped it onto error reports; it never
1213
+ * did. `src/lib/logger.ts` uses a fixed `[@nosslabs/iap]` prefix.)
1210
1214
  */
1211
- declare const VERSION = "0.1.0";
1215
+ declare const VERSION: string;
1212
1216
 
1213
1217
  interface HttpBackendAdapterOptions {
1214
1218
  baseUrl: string;
package/dist/index.js CHANGED
@@ -2302,7 +2302,7 @@ function requireInitialized(state) {
2302
2302
  init_errors();
2303
2303
 
2304
2304
  // src/version.ts
2305
- var VERSION = "0.1.0";
2305
+ var VERSION = "8.0.0";
2306
2306
 
2307
2307
  export { DEFAULT_PERMANENT_ERROR_CODES, HttpBackendAdapter, HttpClient, IAPError, IAPErrorCode, VERSION, createIAP, errorHint, isIAPError };
2308
2308
  //# sourceMappingURL=index.js.map