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

@botpress/client

Package Overview
Dependencies
Maintainers
5
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@botpress/client - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

dist/bundle.cjs

0

dist/config.d.ts

@@ -0,0 +0,0 @@ export type ClientProps = {

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import { AxiosInstance } from 'axios';

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

15

dist/gen/errors.d.ts

@@ -66,7 +66,14 @@ declare const codes: {

/**
* The request payload isn\'t invalid.
* The request payload is invalid.
*/
export declare class InvalidPayloadError extends BaseApiError<400, InvalidPayloadType, 'The request payload isn\'t invalid.'> {
export declare class InvalidPayloadError extends BaseApiError<400, InvalidPayloadType, 'The request payload is invalid.'> {
constructor(message: string, error?: Error);
}
type UnsupportedMediaTypeType = 'UnsupportedMediaType';
/**
* The request is invalid because the content-type is not supported.
*/
export declare class UnsupportedMediaTypeError extends BaseApiError<415, UnsupportedMediaTypeType, 'The request is invalid because the content-type is not supported.'> {
constructor(message: string, error?: Error);
}
type MethodNotFoundType = 'MethodNotFound';

@@ -135,5 +142,5 @@ /**

}
export type ErrorType = 'Unknown' | 'Internal' | 'Unauthorized' | 'Forbidden' | 'PayloadTooLarge' | 'InvalidPayload' | 'MethodNotFound' | 'ResourceNotFound' | 'InvalidJsonSchema' | 'InvalidDataFormat' | 'InvalidIdentifier' | 'RelationConflict' | 'ReferenceNotFound' | 'InvalidQuery' | 'Runtime';
export type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenError | PayloadTooLargeError | InvalidPayloadError | MethodNotFoundError | ResourceNotFoundError | InvalidJsonSchemaError | InvalidDataFormatError | InvalidIdentifierError | RelationConflictError | ReferenceNotFoundError | InvalidQueryError | RuntimeError;
export type ErrorType = 'Unknown' | 'Internal' | 'Unauthorized' | 'Forbidden' | 'PayloadTooLarge' | 'InvalidPayload' | 'UnsupportedMediaType' | 'MethodNotFound' | 'ResourceNotFound' | 'InvalidJsonSchema' | 'InvalidDataFormat' | 'InvalidIdentifier' | 'RelationConflict' | 'ReferenceNotFound' | 'InvalidQuery' | 'Runtime';
export type ApiError = UnknownError | InternalError | UnauthorizedError | ForbiddenError | PayloadTooLargeError | InvalidPayloadError | UnsupportedMediaTypeError | MethodNotFoundError | ResourceNotFoundError | InvalidJsonSchemaError | InvalidDataFormatError | InvalidIdentifierError | RelationConflictError | ReferenceNotFoundError | InvalidQueryError | RuntimeError;
export declare const errorFrom: (err: unknown) => ApiError;
export {};

@@ -0,0 +0,0 @@ /**

export * as axios from 'axios';
import { ClientProps } from './config';
import { ClientProps, ClientConfig } from './config';
export type { Message, Conversation, User, State, Event, ModelFile as File, Bot, Integration } from './gen';

@@ -7,3 +7,4 @@ export * from './gen/errors';

export declare class Client extends AutoGeneratedClient {
readonly config: ClientConfig;
constructor(clientProps?: ClientProps);
}

@@ -0,0 +0,0 @@ import { AxiosError, AxiosInstance, AxiosRequestConfig, InternalAxiosRequestConfig } from 'axios';

{
"name": "@botpress/client",
"version": "0.0.7",
"version": "0.0.8",
"description": "Botpress Client",

@@ -9,8 +9,2 @@ "main": "./dist/index.cjs",

"license": "MIT",
"scripts": {
"build:type": "tsc --emitDeclarationOnly --declaration --target es2019 --module commonjs --moduleResolution node --lib es2019",
"build:browser": "esbuild --bundle --external:axios --external:browser-or-node --platform=browser --format=esm --minify --outfile=dist/index.mjs src/index.ts",
"build:node": "esbuild --bundle --external:axios --external:browser-or-node --platform=node --minify --sourcemap --outfile=dist/index.cjs src/index.ts",
"build": "pnpm build:type && pnpm build:node && pnpm build:browser"
},
"dependencies": {

@@ -23,3 +17,10 @@ "axios": "1.2.5",

"esbuild": "^0.16.12"
},
"scripts": {
"build:type": "tsc --emitDeclarationOnly --declaration --target es2019 --module commonjs --moduleResolution node --lib es2019",
"build:browser": "esbuild --bundle --external:axios --external:browser-or-node --platform=browser --format=esm --minify --outfile=dist/index.mjs src/index.ts",
"build:node": "esbuild --bundle --external:axios --external:browser-or-node --platform=node --minify --sourcemap --outfile=dist/index.cjs src/index.ts",
"build:bundle": "esbuild --bundle --platform=node --minify --sourcemap --outfile=dist/bundle.cjs src/index.ts",
"build": "pnpm build:type && pnpm build:node && pnpm build:browser && pnpm build:bundle"
}
}
}

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