@braintrust/core
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -33,2 +33,3 @@ declare const TRANSACTION_ID_FIELD = "_xact_id"; | ||
declare function mergeDicts(mergeInto: Record<string, unknown>, mergeFrom: Record<string, unknown>): Record<string, unknown>; | ||
declare function capitalize(s: string, sep?: string): string; | ||
@@ -63,2 +64,2 @@ declare enum SpanTypeAttribute { | ||
export { ALL_ROW_ID_FIELDS, AUDIT_METADATA_FIELD, AUDIT_SOURCE_FIELD, CREATED_FIELD, type CollectMetadata, type GitFields, type GitMetadataSettings, ID_FIELD, IS_MERGE_FIELD, MERGE_PATHS_FIELD, OBJECT_DELETE_FIELD, PARENT_ID_FIELD, type RepoStatus, type Score, type Scorer, type ScorerArgs, type Source, SpanTypeAttribute, TRANSACTION_ID_FIELD, type TransactionId, VALID_SOURCES, mergeDicts, mergeGitMetadataSettings, mergeRowBatch }; | ||
export { ALL_ROW_ID_FIELDS, AUDIT_METADATA_FIELD, AUDIT_SOURCE_FIELD, CREATED_FIELD, type CollectMetadata, type GitFields, type GitMetadataSettings, ID_FIELD, IS_MERGE_FIELD, MERGE_PATHS_FIELD, OBJECT_DELETE_FIELD, PARENT_ID_FIELD, type RepoStatus, type Score, type Scorer, type ScorerArgs, type Source, SpanTypeAttribute, TRANSACTION_ID_FIELD, type TransactionId, VALID_SOURCES, capitalize, mergeDicts, mergeGitMetadataSettings, mergeRowBatch }; |
@@ -35,2 +35,3 @@ "use strict"; | ||
VALID_SOURCES: () => VALID_SOURCES, | ||
capitalize: () => capitalize, | ||
mergeDicts: () => mergeDicts, | ||
@@ -77,2 +78,6 @@ mergeGitMetadataSettings: () => mergeGitMetadataSettings, | ||
} | ||
function capitalize(s, sep) { | ||
const items = sep ? s.split(sep) : [s]; | ||
return items.map((s2) => s2 ? s2.charAt(0).toUpperCase() + s2.slice(1) : s2).join(sep || ""); | ||
} | ||
@@ -165,2 +170,3 @@ // src/merge_row_batch.ts | ||
VALID_SOURCES, | ||
capitalize, | ||
mergeDicts, | ||
@@ -167,0 +173,0 @@ mergeGitMetadataSettings, |
{ | ||
"name": "@braintrust/core", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "Shared core dependencies for Braintrust packages", | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"main": "./dist/main/index.js", | ||
"module": "./dist/main/index.mjs", | ||
"types": "./dist/main/index.d.ts", | ||
"scripts": { | ||
@@ -16,8 +16,19 @@ "build": "tsup", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"module": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
"types": "./dist/main/index.d.ts", | ||
"import": "./dist/main/index.mjs", | ||
"module": "./dist/main/index.mjs", | ||
"require": "./dist/main/index.js" | ||
}, | ||
"./typespecs": { | ||
"types": "./dist/typespecs/index.d.ts", | ||
"import": "./dist/typespecs/index.mjs", | ||
"module": "./dist/typespecs/index.mjs", | ||
"require": "./dist/typespecs/index.js" | ||
}, | ||
"./typespecs-stainless": { | ||
"types": "./dist/typespecs-stainless/index.d.ts", | ||
"import": "./dist/typespecs-stainless/index.mjs", | ||
"module": "./dist/typespecs-stainless/index.mjs", | ||
"require": "./dist/typespecs-stainless/index.js" | ||
} | ||
@@ -47,3 +58,7 @@ }, | ||
"typescript": "^5.3.3" | ||
}, | ||
"dependencies": { | ||
"@asteasolutions/zod-to-openapi": "^6.3.1", | ||
"zod": "^3.22.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
604166
17
8554
2
2
1
+ Addedzod@^3.22.4
+ Added@asteasolutions/zod-to-openapi@6.4.0(transitive)
+ Addedopenapi3-ts@4.4.0(transitive)
+ Addedyaml@2.6.1(transitive)
+ Addedzod@3.24.1(transitive)