Skip to content

Commit

Permalink
chore(botonic): upgrade @botonic/core inside packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Iru89 committed May 8, 2024
1 parent 8252215 commit 8466820
Show file tree
Hide file tree
Showing 6 changed files with 215 additions and 19 deletions.
213 changes: 205 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/botonic-plugin-hubtype-babel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@botonic/plugin-hubtype-babel",
"version": "0.26.0",
"version": "0.26.0-alpha.2",
"license": "MIT",
"description": "Use Hubtype Babel to predict Intents.",
"main": "./lib/cjs/index.js",
Expand All @@ -16,7 +16,7 @@
},
"dependencies": {
"@babel/runtime": "^7.23.9",
"@botonic/core": "^0.26.0",
"@botonic/core": "0.26.1-alpha.0",
"axios": "^1.6.8",
"process": "^0.11.10"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/botonic-plugin-hubtype-babel/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HubtypeSession, INPUT, Plugin, PluginPreRequest } from '@botonic/core'
import { INPUT, Plugin, PluginPreRequest } from '@botonic/core'

import { HubtypeBabelApiService } from './hubtype-babel-api-service'
import { PluginHubtypeBabelOptions } from './options'
Expand All @@ -25,8 +25,7 @@ export default class BotonicPluginHubtypeBabel implements Plugin {
request.input.data &&
!this.isAutomaticBotMessage(request.input.data)
) {
const sessionAuthToken = (request.session as HubtypeSession)
?._access_token
const sessionAuthToken = request.session._access_token

const authToken = isProd ? sessionAuthToken : this.options.authToken

Expand Down
4 changes: 2 additions & 2 deletions packages/botonic-plugin-knowledge-bases/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@botonic/plugin-knowledge-bases",
"version": "0.26.0",
"version": "0.26.1-alpha.0",
"description": "Use a Hubtype to make the bot respond through a knowledge base.",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
Expand All @@ -15,7 +15,7 @@
},
"dependencies": {
"@babel/runtime": "^7.23.9",
"@botonic/core": "^0.26.0",
"@botonic/core": "0.26.1-alpha.0",
"axios": "^1.6.8"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/botonic-plugin-knowledge-bases/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { HubtypeSession, Plugin, PluginPreRequest } from '@botonic/core'
import type { Plugin, PluginPreRequest, Session } from '@botonic/core'

import { HubtypeApiService } from './hubtype-knowledge-api-service'
import { KnowledgeBaseResponse, PluginKnowledgeBaseOptions } from './types'
Expand All @@ -22,7 +22,7 @@ export default class BotonicPluginKnowledgeBases implements Plugin {
return
}

async getInference(session: HubtypeSession): Promise<KnowledgeBaseResponse> {
async getInference(session: Session): Promise<KnowledgeBaseResponse> {
const authToken = isProd ? session._access_token : this.authToken

const response = await this.apiService.inference(authToken, session.user.id)
Expand Down
4 changes: 2 additions & 2 deletions packages/botonic-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@botonic/react",
"version": "0.26.1",
"version": "0.26.2-alpha.0",
"license": "MIT",
"description": "Build Chatbots using React",
"main": "./lib/cjs",
Expand All @@ -20,7 +20,7 @@
"lint_core": "../../node_modules/.bin/eslint_d --cache --quiet '.*.js' '*.js' 'src/**/*.js*' --fix"
},
"dependencies": {
"@botonic/core": "^0.26.0",
"@botonic/core": "0.26.1-alpha.0",
"axios": "^1.6.8",
"emoji-picker-react": "^4.4.9",
"framer-motion": "^3.1.1",
Expand Down

0 comments on commit 8466820

Please sign in to comment.