braintrust 0.0.26 → 0.0.28

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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * A Node.js library for logging data to BrainTrust.
2
+ * An isomorphic JS library for logging data to BrainTrust.
3
3
  *
4
4
  * ### Quickstart
5
5
  *
@@ -13,9 +13,9 @@
13
13
  * your BrainTrust API key):
14
14
  *
15
15
  * ```javascript
16
- * const braintrust = require("braintrust");
16
+ * import * as braintrust from "braintrust";
17
17
  *
18
- * const experiment = await braintrust.init("NodeTest", {api_key: "YOUR_API_KEY"});
18
+ * const experiment = await braintrust.init("NodeTest", {apiKey: "YOUR_API_KEY"});
19
19
  * experiment.log({
20
20
  * inputs: {test: 1},
21
21
  * output: "foo",