Skip to content

Commit

Permalink
chore: update examples to instantiate clients with only default configs
Browse files Browse the repository at this point in the history
  • Loading branch information
anitarua committed Oct 7, 2024
1 parent 411a7a8 commit 9b88e0b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/nodejs/storage/basic.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {CreateStoreResponse, PreviewStorageClient, StorageGetResponse, StoragePutResponse} from '@gomomento/sdk';

async function main() {
const storageClient = new PreviewStorageClient({});
const storageClient = new PreviewStorageClient();

const storeName = 'my-store';
const createStoreResponse = await storageClient.createStore(storeName);
Expand Down
2 changes: 1 addition & 1 deletion examples/nodejs/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"typescript": "4.9.5"
},
"dependencies": {
"@gomomento/sdk": "^1.98.1"
"@gomomento/sdk": "^1.99.0"
},
"engines": {
"node": ">=10.4.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/nodejs/topics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"typescript": "4.9.5"
},
"dependencies": {
"@gomomento/sdk": "^1.98.1"
"@gomomento/sdk": "^1.99.0"
}
}
2 changes: 1 addition & 1 deletion examples/nodejs/topics/topic-publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async function main() {
return;
}
const [cacheName, topicName, value] = clargs;
const momento = new TopicClient({});
const momento = new TopicClient();

await ensureCacheExists(cacheName);

Expand Down
2 changes: 1 addition & 1 deletion examples/nodejs/topics/topic-subscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function main() {
return;
}
const [cacheName, topicName] = clargs;
const momento = new TopicClient({});
const momento = new TopicClient();

await ensureCacheExists(cacheName);

Expand Down
2 changes: 1 addition & 1 deletion examples/web/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"typescript": "4.9.5"
},
"dependencies": {
"@gomomento/sdk-web": "^1.98.1",
"@gomomento/sdk-web": "^1.99.0",
"jsdom": "22.1.0"
}
}
2 changes: 1 addition & 1 deletion examples/web/cache/refresh-disposable-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {initJSDom} from './utils/jsdom';
// for more information about deploying your own token vending machine.

async function localTokenVendingMachine(): Promise<{token: string; expiresAt: ExpiresAt}> {
const authClient = new AuthClient({});
const authClient = new AuthClient();
const tokenResponse = await authClient.generateDisposableToken(
DisposableTokenScopes.topicPublishSubscribe('my-cache', AllTopics),
ExpiresIn.seconds(30)
Expand Down

0 comments on commit 9b88e0b

Please sign in to comment.