Skip to content

Commit aacc4ab

Browse files
committed
Merge branch 'master' of ssh://bitbucket.oci.oraclecorp.com:7999/oda/bots-js-sdk
2 parents a4cae84 + 931b6d8 commit aacc4ab

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

lib/component/sdk.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ const { BaseContext } = require("./baseContext");
44
const ComponentRequestSchemaFactory = require("./schema/componentRequestSchema");
55
const { MessageModel } = require("../message/messageModel");
66

7-
const sdkVersion = require('../../package.json').version
7+
// fix for MIECS-23476, we need to return "2.0" until all customers have migrated to 20.05 which
8+
// no longer checks whether version returned is a valid platform version
9+
// const sdkVersion = require('../../package.json').version;
10+
const sdkVersion = '2.0';
811

912
// Response template
1013
const RESPONSE = {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@oracle/bots-node-sdk",
3-
"version": "2.3.3",
3+
"version": "2.3.4",
44
"description": "Oracle Bots SDK for custom component development and webhook integrations",
55
"main": "index.js",
66
"browser": "index-browser.js",

ts/lib/component/sdk.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import ComponentRequestSchemaFactory = require('./schema/componentRequestSchema'
44
import { ILogger } from '../../common/definitions';
55
import { IComponentRequestBody } from './request';
66

7-
const sdkVersion = require('../../../package.json').version;
7+
// fix for MIECS-23476, we need to return "2.0" until all customers have migrated to 20.05 which
8+
// no longer checks whether version returned is a valid platform version
9+
// const sdkVersion = require('../../../package.json').version;
10+
const sdkVersion = '2.0';
811

912
export interface ICustomComponentResponse {
1013
platformVersion: string;

0 commit comments

Comments
 (0)