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

@markprompt/core

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markprompt/core - npm Package Compare versions

Comparing version 0.38.4 to 0.38.5

4

dist/chat/index.d.ts

@@ -1,3 +0,3 @@

import { Chat, SubmitChatOptions, type ChatCompletionMessage, type ChatCompletionMessageParam, type ChatCompletionMetadata } from './types.js';
import { BaseOptions } from '../types.js';
import type { Chat, SubmitChatOptions, ChatCompletionMessage, ChatCompletionMessageParam, ChatCompletionMetadata } from './types.js';
import type { BaseOptions } from '../types.js';
export * from './types.js';

@@ -4,0 +4,0 @@ export * from './utils.js';

@@ -70,19 +70,17 @@ import defaults from 'defaults';

}
else {
if (isMarkpromptMetadata(data)) {
yield data;
}
if (isNoStreamingData(json)) {
yield {
content: json.text,
references: json.references,
steps: json.steps,
role: 'assistant',
};
return;
}
throw new Error('Malformed response from Markprompt API', {
cause: json,
});
if (isMarkpromptMetadata(data)) {
yield data;
}
if (isNoStreamingData(json)) {
yield {
content: json.text,
references: json.references,
steps: json.steps,
role: 'assistant',
};
return;
}
throw new Error('Malformed response from Markprompt API', {
cause: json,
});
}

@@ -110,3 +108,3 @@ if (isMarkpromptMetadata(data)) {

// eslint-disable-next-line prefer-const
let completion = {};
const completion = {};
const stream = res.body

@@ -127,3 +125,3 @@ .pipeThrough(new TextDecoderStream())

// eslint-disable-next-line prefer-const
let json = JSON.parse(event.data);
const json = JSON.parse(event.data);
if (!isChatCompletionChunk(json)) {

@@ -130,0 +128,0 @@ throw new Error('Malformed response from Markprompt API', {

import type { ChatCompletionMessageToolCall, ChatCompletionTool, ChatCompletionToolChoiceOption } from 'openai/resources/chat/index.js';
import { FileSectionReference } from '../types.js';
import type { FileSectionReference } from '../types.js';
import type { ArrayToUnion } from '../utils.js';

@@ -4,0 +4,0 @@ export type { Chat, ChatCompletion, ChatCompletionAssistantMessageParam, ChatCompletionChunk, ChatCompletionFunctionMessageParam, ChatCompletionMessage, ChatCompletionMessageParam, ChatCompletionMessageToolCall, ChatCompletionSystemMessageParam, ChatCompletionTool, ChatCompletionToolChoiceOption, ChatCompletionToolMessageParam, ChatCompletionUserMessageParam, } from 'openai/resources/chat/index.js';

@@ -1,2 +0,2 @@

import { ChatCompletion, ChatCompletionChunk, ChatCompletionMessage, ChatCompletionMessageToolCall, ChatCompletionMetadata, NoStreamingData, SubmitChatOptions } from './types.js';
import type { ChatCompletion, ChatCompletionChunk, ChatCompletionMessage, ChatCompletionMessageToolCall, ChatCompletionMetadata, NoStreamingData, SubmitChatOptions } from './types.js';
export declare const isValidSubmitChatOptionsKey: (key: string) => key is keyof SubmitChatOptions;

@@ -3,0 +3,0 @@ export declare function checkAbortSignal(signal?: AbortSignal): void;

@@ -1,2 +0,2 @@

import { BaseOptions } from './types.js';
import type { BaseOptions } from './types.js';
export declare const DEFAULT_OPTIONS: {

@@ -3,0 +3,0 @@ apiUrl: string;

@@ -25,3 +25,3 @@ import defaults from 'defaults';

projectKey,
vote: parseInt(body.feedback.vote),
vote: Number.parseInt(body.feedback.vote),
}),

@@ -40,5 +40,3 @@ signal: signal,

}
else {
throw error;
}
throw error;
}

@@ -77,5 +75,3 @@ }

}
else {
throw error;
}
throw error;
}

@@ -114,7 +110,5 @@ }

}
else {
throw error;
}
throw error;
}
}
//# sourceMappingURL=feedback.js.map
import type { SearchOptions } from '@algolia/client-search';
import { DocSearchHit } from './docsearch.js';
import type { DocSearchHit } from './docsearch.js';
import type { BaseOptions, FileReferenceFileData, FileSectionReferenceSectionData } from './types.js';

@@ -4,0 +4,0 @@ export interface SubmitSearchQueryOptions {

@@ -46,5 +46,3 @@ import defaults from 'defaults';

}
else {
throw error;
}
throw error;
}

@@ -90,7 +88,5 @@ }

}
else {
throw error;
}
throw error;
}
}
//# sourceMappingURL=search.js.map

@@ -1,2 +0,2 @@

import { FileSectionReference } from './types.js';
import type { FileSectionReference } from './types.js';
export type RequiredKeys<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>;

@@ -3,0 +3,0 @@ export type ArrayToUnion<T> = T extends (infer U)[] ? U : T extends readonly (infer U)[] ? U : never;

{
"name": "@markprompt/core",
"version": "0.38.4",
"version": "0.38.5",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

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 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 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 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