Skip to content

Commit 13e40f3

Browse files
committed
Update README for node.js based apps
1 parent 3373127 commit 13e40f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Please install the package using npm or the package manager of your choice
4646

4747
### 2. Initializing TelemetryDeck
4848

49-
Initialize the TelemetryDeck SDK with your app ID and your user's user identifer. Since `globalThis.crypto.subtle.digest` does not exist in Node.js, you need to pass in an alternative implementation provided by Node.js.
49+
Initialize the TelemetryDeck SDK with your app ID and your user's user identifer. Since `globalThis.crypto.subtle` does not exist in Node.js, you need to pass in an alternative implementation provided by Node.js.
5050

5151
```javascript
5252
import TelemetryDeck from '@telemetrydeck/sdk';
@@ -55,7 +55,7 @@ import crypto from 'crypto';
5555
const td = new TelemetryDeck({
5656
appID: '<YOUR_APP_ID>'
5757
user: '<YOUR_USER_IDENTIFIER>',
58-
cryptoDigest: crypto.webcrypto.subtle.digest,
58+
subtleCrypto: crypto.webcrypto.subtle,
5959
});
6060
```
6161

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"bugs": {
4848
"url": "https://github.com/TelemetryDeck/JavaScriptSDK/issues"
4949
},
50-
"homepage": "https://github.com/TelemetryDeck/JavaScriptSDK#readme",
50+
"homepage": "https://telemetrydeck.com/",
5151
"engines": {
5252
"node": ">=18"
5353
},

0 commit comments

Comments
 (0)