Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@braintrust/core

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@braintrust/core - npm Package Compare versions

Comparing version 0.0.35 to 0.0.36

8

dist/index.d.ts

@@ -15,2 +15,5 @@ declare const TRANSACTION_ID_FIELD = "_xact_id";

declare const BT_FOUND_EXISTING_HEADER = "x-bt-found-existing";
declare const BT_CURSOR_HEADER = "x-bt-cursor";
declare function mergeRowBatch<T extends {

@@ -113,3 +116,3 @@ id: string;

type BackgroundLogEvent = ExperimentEvent | DatasetEvent | LoggingEvent | CommentEvent;
declare const DEFAULT_IS_LEGACY_DATASET = true;
declare const DEFAULT_IS_LEGACY_DATASET = false;
interface LegacyDatasetRecord {

@@ -152,2 +155,3 @@ id: string;

declare function capitalize(s: string, sep?: string): string;
declare function snakeToCamelCase(s: string): string;
declare function constructJsonArray(items: string[]): string;

@@ -231,2 +235,2 @@ declare function mapAt<K, V>(m: Map<K, V>, k: K): V;

export { ALL_ROW_ID_FIELDS, AUDIT_METADATA_FIELD, AUDIT_SOURCE_FIELD, type AnyDatasetRecord, type BackgroundLogEvent, CREATED_FIELD, type CollectMetadata, type CommentEvent, DEFAULT_IS_LEGACY_DATASET, type DatasetEvent, type DatasetRecord, type ExperimentEvent, type ExperimentLogFullArgs, type ExperimentLogPartialArgs, type GitFields, type GitMetadataSettings, ID_FIELD, IS_MERGE_FIELD, type IdField, type InputField, type InputsField, type LogCommentFullArgs, type LogFeedbackFullArgs, type LoggingEvent, MERGE_PATHS_FIELD, OBJECT_DELETE_FIELD, type OtherExperimentLogFields, PARENT_ID_FIELD, type ParentExperimentIds, type ParentProjectLogIds, type RepoInfo, type SanitizedExperimentLogPartialArgs, type Score, type Scorer, type ScorerArgs, type Source, SpanComponents, SpanObjectType, SpanRowIds, type SpanType, SpanTypeAttribute, TRANSACTION_ID_FIELD, type TransactionId, VALID_SOURCES, batchItems, capitalize, constructJsonArray, ensureDatasetRecord, ensureLegacyDatasetRecord, ensureNewDatasetRecord, loadPrettyXact, makeLegacyEvent, mapAt, mergeDicts, mergeGitMetadataSettings, mergeRowBatch, prettifyXact, spanTypeAttributeValues };
export { ALL_ROW_ID_FIELDS, AUDIT_METADATA_FIELD, AUDIT_SOURCE_FIELD, type AnyDatasetRecord, BT_CURSOR_HEADER, BT_FOUND_EXISTING_HEADER, type BackgroundLogEvent, CREATED_FIELD, type CollectMetadata, type CommentEvent, DEFAULT_IS_LEGACY_DATASET, type DatasetEvent, type DatasetRecord, type ExperimentEvent, type ExperimentLogFullArgs, type ExperimentLogPartialArgs, type GitFields, type GitMetadataSettings, ID_FIELD, IS_MERGE_FIELD, type IdField, type InputField, type InputsField, type LogCommentFullArgs, type LogFeedbackFullArgs, type LoggingEvent, MERGE_PATHS_FIELD, OBJECT_DELETE_FIELD, type OtherExperimentLogFields, PARENT_ID_FIELD, type ParentExperimentIds, type ParentProjectLogIds, type RepoInfo, type SanitizedExperimentLogPartialArgs, type Score, type Scorer, type ScorerArgs, type Source, SpanComponents, SpanObjectType, SpanRowIds, type SpanType, SpanTypeAttribute, TRANSACTION_ID_FIELD, type TransactionId, VALID_SOURCES, batchItems, capitalize, constructJsonArray, ensureDatasetRecord, ensureLegacyDatasetRecord, ensureNewDatasetRecord, loadPrettyXact, makeLegacyEvent, mapAt, mergeDicts, mergeGitMetadataSettings, mergeRowBatch, prettifyXact, snakeToCamelCase, spanTypeAttributeValues };

@@ -36,2 +36,4 @@ "use strict";

AUDIT_SOURCE_FIELD: () => AUDIT_SOURCE_FIELD,
BT_CURSOR_HEADER: () => BT_CURSOR_HEADER,
BT_FOUND_EXISTING_HEADER: () => BT_FOUND_EXISTING_HEADER,
CREATED_FIELD: () => CREATED_FIELD,

@@ -63,2 +65,3 @@ DEFAULT_IS_LEGACY_DATASET: () => DEFAULT_IS_LEGACY_DATASET,

prettifyXact: () => prettifyXact,
snakeToCamelCase: () => snakeToCamelCase,
spanTypeAttributeValues: () => spanTypeAttributeValues

@@ -88,2 +91,6 @@ });

// src/http_headers.ts
var BT_FOUND_EXISTING_HEADER = "x-bt-found-existing";
var BT_CURSOR_HEADER = "x-bt-cursor";
// src/util.ts

@@ -108,2 +115,5 @@ function mergeDicts(mergeInto, mergeFrom) {

}
function snakeToCamelCase(s) {
return s.split("_").map((s2) => capitalize(s2)).join("");
}
function constructJsonArray(items) {

@@ -317,3 +327,3 @@ return `[${items.join(",")}]`;

// src/object.ts
var DEFAULT_IS_LEGACY_DATASET = true;
var DEFAULT_IS_LEGACY_DATASET = false;
function ensureDatasetRecord(r, legacy) {

@@ -567,2 +577,4 @@ if (legacy) {

AUDIT_SOURCE_FIELD,
BT_CURSOR_HEADER,
BT_FOUND_EXISTING_HEADER,
CREATED_FIELD,

@@ -594,3 +606,4 @@ DEFAULT_IS_LEGACY_DATASET,

prettifyXact,
snakeToCamelCase,
spanTypeAttributeValues
});
{
"name": "@braintrust/core",
"version": "0.0.35",
"version": "0.0.36",
"description": "Shared core dependencies for Braintrust packages",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc