@neuraiproject/neurai-assets 1.7.0 → 1.7.1

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.
Files changed (3) hide show
  1. package/README.md +10 -0
  2. package/index.d.ts +1 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1132,6 +1132,16 @@ remain available as `totalSats` / raw methods; never use a rounded display value
1132
1132
  as a new transaction input.
1133
1133
 
1134
1134
 
1135
+ ## 1.7.1: type declarations
1136
+
1137
+ `index.d.ts` exported `AssetQueries` twice (`export class AssetQueries` plus
1138
+ the `export { … }` list). TypeScript consumers compiling with
1139
+ `skipLibCheck: false`, tsc's default, got `TS2323` / `TS2484` errors from the
1140
+ package and a failing build; types and runtime were otherwise unaffected. The
1141
+ class is now declared once and exported once, like `NeuraiAssets`, and
1142
+ `npm run test:types` also checks the declarations with `skipLibCheck: false`
1143
+ (`tsconfig.dts.json`). No runtime change.
1144
+
1135
1145
  ## 1.7.0: address types of neurai-key 5
1136
1146
 
1137
1147
  - Every Neurai address family is accepted: generic AuthScript v1 `nc1p…` /
package/index.d.ts CHANGED
@@ -403,7 +403,7 @@ export interface DepinValidityResult {
403
403
  [key: string]: unknown;
404
404
  }
405
405
 
406
- export class AssetQueries {
406
+ declare class AssetQueries {
407
407
  constructor(rpc: (method: string, params?: unknown[]) => Promise<unknown> | unknown);
408
408
  getAssetData(assetName: string): Promise<Record<string, unknown>>;
409
409
  listAssets(filter?: string, verbose?: boolean, count?: number, start?: number): Promise<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neuraiproject/neurai-assets",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Non-custodial Neurai asset management library for JavaScript",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -31,7 +31,7 @@
31
31
  "test:integration": "mocha ./tests/integration/**/*.test.js",
32
32
  "test:browser": "npm run build && mocha ./tests/browser/**/*.test.js",
33
33
  "test:watch": "mocha --watch ./tests/**/*.test.js",
34
- "test:types": "tsc -p tsconfig.types.json"
34
+ "test:types": "tsc -p tsconfig.types.json && tsc -p tsconfig.dts.json"
35
35
  },
36
36
  "repository": {
37
37
  "type": "git",