Skip to content

Commit bcabe2a

Browse files
committed
Changed namespace
1 parent 0af7671 commit bcabe2a

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
dist
3-
*.log
3+
*.log
4+
*.tgz

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Official JavaScript/TypeScript client for the [Solana Tracker Data API](https://www.solanatracker.io/data-api).
44

5-
[![npm version](https://badge.fury.io/js/@solanatracker%2Fdata-api.svg)](https://www.npmjs.com/package/@solanatracker/data-api)
5+
[![npm version](https://badge.fury.io/js/@solana-tracker%2Fdata-api.svg)](https://www.npmjs.com/package/@solana-tracker/data-api)
66

77
## Features
88

@@ -16,19 +16,19 @@ Official JavaScript/TypeScript client for the [Solana Tracker Data API](https://
1616
Install the package using npm:
1717

1818
```bash
19-
npm install @solanatracker/data-api
19+
npm install @solana-tracker/data-api
2020
```
2121

2222
Or with yarn:
2323

2424
```bash
25-
yarn add @solanatracker/data-api
25+
yarn add @solana-tracker/data-api
2626
```
2727

2828
## Quick Start
2929

3030
```typescript
31-
import { Client } from '@solanatracker/data-api';
31+
import { Client } from '@solana-tracker/data-api';
3232

3333
// Initialize the client with your API key
3434
const client = new Client({
@@ -217,7 +217,7 @@ const poolStats = await client.getPoolStats('tokenAddress', 'poolAddress');
217217
The library includes specific error types for robust error handling:
218218

219219
```typescript
220-
import { Client, DataApiError, RateLimitError, ValidationError } from '@solanatracker/data-api';
220+
import { Client, DataApiError, RateLimitError, ValidationError } from '@solana-tracker/data-api';
221221

222222
try {
223223
const tokenInfo = await client.getTokenInfo('invalid-address');

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@solanatracker/data-api",
2+
"name": "@solana-tracker/data-api",
33
"version": "0.0.1",
44
"description": "Official Solana Tracker Data API client for accessing Solana Data",
55
"main": "dist/index.js",
@@ -27,7 +27,7 @@
2727
"pumpfun",
2828
"raydium"
2929
],
30-
"author": "Solana Tracker <contact@solanatracker.io>",
30+
"author": "Solana Tracker <contact@solana-tracker.io>",
3131
"license": "MIT",
3232
"repository": {
3333
"type": "git",
@@ -36,7 +36,7 @@
3636
"bugs": {
3737
"url": "https://github.com/solanatracker/data-api-sdk/issues"
3838
},
39-
"homepage": "https://github.com/data-api-sdk/data-api-sdk#readme",
39+
"homepage": "https://www.solanatracker.io/data-api",
4040
"dependencies": {
4141
"node-fetch": "^3.3.2"
4242
},

src/data-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export class Client {
300300
*/
301301
async getPrice(tokenAddress: string, priceChanges?: boolean): Promise<PriceData> {
302302
this.validatePublicKey(tokenAddress, 'tokenAddress');
303-
const query = priceChanges ? '?priceChanges=true' : '';
303+
const query = priceChanges ? '&priceChanges=true' : '';
304304
return this.request<PriceData>(`/price?token=${tokenAddress}${query}`);
305305
}
306306

0 commit comments

Comments
 (0)