braintrust 0.0.74 → 0.0.76

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.
@@ -0,0 +1,32 @@
1
+
2
+ > braintrust@0.0.63 build /Users/ankur/projects/braintrust/sdk/js
3
+ > run-p build:*
4
+
5
+
6
+ > braintrust@0.0.63 build:cli /Users/ankur/projects/braintrust/sdk/js
7
+ > esbuild --platform=node --bundle src/cli.ts --outfile=dist/cli.js --external:esbuild
8
+
9
+
10
+ > braintrust@0.0.63 build:browser /Users/ankur/projects/braintrust/sdk/js
11
+ > esbuild --bundle src/browser.ts --outfile=dist/browser.js --format=esm
12
+
13
+
14
+ > braintrust@0.0.63 build:node /Users/ankur/projects/braintrust/sdk/js
15
+ > esbuild --platform=node --bundle src/index.ts --outfile=dist/index.js
16
+
17
+
18
+ dist/browser.js 47.4kb
19
+
20
+ ⚡ Done in 12ms
21
+
22
+ dist/cli.js 540.4kb
23
+
24
+ ⚡ Done in 49ms
25
+
26
+ > braintrust@0.0.63 build:declarations /Users/ankur/projects/braintrust/sdk/js
27
+ > tsc --declaration --emitDeclarationOnly --outDir dist
28
+
29
+
30
+ dist/index.js 305.2kb
31
+
32
+ ⚡ Done in 26ms
package/dist/browser.js CHANGED
@@ -22,7 +22,7 @@ var iso = {
22
22
  };
23
23
  var isomorph_default = iso;
24
24
 
25
- // node_modules/uuid/dist/esm-browser/rng.js
25
+ // ../../node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/rng.js
26
26
  var getRandomValues;
27
27
  var rnds8 = new Uint8Array(16);
28
28
  function rng() {
@@ -35,7 +35,7 @@ function rng() {
35
35
  return getRandomValues(rnds8);
36
36
  }
37
37
 
38
- // node_modules/uuid/dist/esm-browser/stringify.js
38
+ // ../../node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/stringify.js
39
39
  var byteToHex = [];
40
40
  for (let i = 0; i < 256; ++i) {
41
41
  byteToHex.push((i + 256).toString(16).slice(1));
@@ -44,13 +44,13 @@ function unsafeStringify(arr, offset = 0) {
44
44
  return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
45
45
  }
46
46
 
47
- // node_modules/uuid/dist/esm-browser/native.js
47
+ // ../../node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/native.js
48
48
  var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
49
49
  var native_default = {
50
50
  randomUUID
51
51
  };
52
52
 
53
- // node_modules/uuid/dist/esm-browser/v4.js
53
+ // ../../node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/v4.js
54
54
  function v4(options, buf, offset) {
55
55
  if (native_default.randomUUID && !buf && !options) {
56
56
  return native_default.randomUUID();