Skip to content

Commit 3d49d83

Browse files
committed
Update package name
1 parent f111a01 commit 3d49d83

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ chances of your issue being dealt with quickly:
3939
### <a name="submit-pr"></a> Submitting a Pull Request (PR)
4040
Before you submit your Pull Request (PR) consider the following guidelines:
4141

42-
* Search the repository (https://github.com/datastax/astra-ts-client/pulls) for an open or closed PR that relates to your submission. You don't want to duplicate effort.
42+
* Search the repository (https://github.com/datastax/astra-db-ts/pulls) for an open or closed PR that relates to your submission. You don't want to duplicate effort.
4343

4444
* Create a fork of the repo
4545
* Navigate to the repo you want to fork

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# @datastax/astra-ts-client
1+
# @datastax/astra-db-ts
22

33
## Getting Started
44

55
```typescript
6-
import { AstraDB } from "@datastax/astra-ts-client";
6+
import { AstraDB } from "@datastax/astra-db-ts";
77
const astraDb = new AstraDB(TOKEN, DATABASE_ID, REGION);
88
const collection = await astraDb.collection("events");
99
const results = await collection.countDocuments();

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@datastax/astra-ts-client",
2+
"name": "@datastax/astra-db-ts",
33
"version": "0.0.1",
4-
"description": "Astra DB Vector client",
4+
"description": "Astra DB TS Client",
55
"contributors": [
66
"CRW (http://barnyrubble.tumblr.com/)",
77
"Valeri Karpov (https://github.com/vkarpov15)",
@@ -46,7 +46,7 @@
4646
},
4747
"repository": {
4848
"type": "git",
49-
"url": "git+https://github.com/datastax/astra-ts-client.git"
49+
"url": "git+https://github.com/datastax/astra-db-ts.git"
5050
},
5151
"scripts": {
5252
"lint": "eslint .",

src/client/httpClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class HTTPClient {
134134
async _request(requestInfo: AxiosRequestConfig): Promise<APIResponse> {
135135
try {
136136
if (this.applicationToken === '') {
137-
logger.debug('@datastax/astra-ts-client/rest: getting token');
137+
logger.debug('@datastax/astra-db-ts/rest: getting token');
138138
try {
139139
this.applicationToken = await getStargateAccessToken(this.authUrl, this.username, this.password);
140140
} catch (authError: any) {
@@ -167,7 +167,7 @@ export class HTTPClient {
167167
}
168168
});
169169
if (response.status === 401 || (response.data?.errors?.length > 0 && response.data.errors[0]?.message === 'UNAUTHENTICATED: Invalid token')) {
170-
logger.debug('@datastax/astra-ts-client/rest: reconnecting');
170+
logger.debug('@datastax/astra-db-ts/rest: reconnecting');
171171
try {
172172
this.applicationToken = await getStargateAccessToken(this.authUrl, this.username, this.password);
173173
} catch (authError: any) {

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export const LIB_NAME = "@datastax/astra-ts-client";
1+
export const LIB_NAME = "@datastax/astra-db-ts";
22
export const LIB_VERSION = "0.0.1";

tests/e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"@datastax/astra-ts-client": "file:../../@datastax/astra-ts-client.tgz"
3+
"@datastax/astra-ts-client": "file:../../@datastax/astra-db-ts.tgz"
44
}
55
}

0 commit comments

Comments
 (0)