New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@botpress/client

Package Overview
Dependencies
Maintainers
7
Versions
117
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.11.6 to 0.11.7

e2e/browser/index.ts

13

dist/index.d.ts
import { ClientProps, ClientConfig } from './config';
import { ApiClient as AutoGeneratedClient } from './gen/client';
export { isApiError } from './gen/errors';
export * as axios from 'axios';
export type { Message, Conversation, User, State, Event, ModelFile as File, Bot, Integration, Issue, IssueEvent, } from './gen';
export type { Message, Conversation, User, State, Event, ModelFile as File, Bot, Integration, Issue, IssueEvent, Account, Workspace, Usage, } from './gen';
export * from './gen/errors';

@@ -10,1 +11,11 @@ export declare class Client extends AutoGeneratedClient {

}
type Simplify<T> = {
[KeyType in keyof T]: Simplify<T[KeyType]>;
} & {};
type PickMatching<T, V> = {
[K in keyof T as T[K] extends V ? K : never]: T[K];
};
type ExtractMethods<T> = PickMatching<T, (...rest: any[]) => any>;
type FunctionNames = keyof ExtractMethods<Client>;
export type ClientParams<T extends FunctionNames> = Simplify<Parameters<Client[T]>[0]>;
export type ClientReturn<T extends FunctionNames> = Simplify<Awaited<ReturnType<Client[T]>>>;

15

package.json
{
"name": "@botpress/client",
"version": "0.11.6",
"version": "0.11.7",
"description": "Botpress Client",

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

"license": "MIT",
"browser": {
"crypto": false,
"http": false,
"https": false
},
"scripts": {

@@ -17,3 +22,5 @@ "build:type": "tsc --emitDeclarationOnly --declaration --target es2019 --module commonjs --moduleResolution node --lib es2019",

"type:check": "tsc --noEmit --target es2019 --module commonjs --moduleResolution node --lib es2019",
"generate": "ts-node ./openapi.ts"
"generate": "ts-node ./openapi.ts",
"test": "pnpm run e2e:test",
"e2e:test": "ts-node -T ./e2e/node.ts && ts-node -T ./e2e/browser"
},

@@ -27,4 +34,6 @@ "dependencies": {

"@botpress/api": "0.18.1",
"esbuild": "^0.16.12"
"esbuild": "^0.16.12",
"lodash": "^4.17.21",
"puppeteer": "^22.0.0"
}
}

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