Skip to content

Commit

Permalink
Merge pull request #245 from rdkcentral/entos-extension-sdk-1.3.0
Browse files Browse the repository at this point in the history
EntOS and extension SDK service call
  • Loading branch information
anjalimukundan authored Nov 19, 2024
2 parents fc4d7d6 + ea9b29f commit 935defa
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 4 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
"perf_hooks": "^0.0.1",
"rxjs": "7.2.0",
"uuid": "^9.0.0",
"winston": "3.13.1",
"xml2js": "^0.5.0"
"xml2js": "^0.5.0",
"winston": "3.15.0",
"winston-transport": "4.7.1"
},
"scripts": {
"start": "webpack-dev-server --config webpack.dev.js",
Expand Down
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default class App extends Base {
process.env.STANDALONE_PREFIX = standalonePrefix;
process.env.ID = 0;
process.env.REGISTERPROVIDER = true;

process.env.SDKS_AVAILABLE = [...CONSTANTS.defaultSDKs, ...CONSTANTS.additionalSDKs];
// Set the pubSub URL if present
process.env.PUB_SUB_URL = new URLSearchParams(window.location.search).get('pubSubUrl');

Expand Down
2 changes: 1 addition & 1 deletion src/IntentReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import GetPubSubStatusHandler from './pubsub/handlers/GetPubSubStatusHandler';
import CallMethodHandler from './pubsub/handlers/CallMethodHandler';
import DataFetchHandler from './pubsub/handlers/DataFetchHandler';
import HealthCheckHandler from './pubsub/handlers/HealthCheckHandler';
import RunTestHandler from './pubsub/handlers/RunTestHandler';
import RegisterEventHandler from './pubsub/handlers/RegisterEventHandler';
import ClearEventListeners from './pubsub/handlers/ClearEventListeners';
import ClearEventHandler from './pubsub/handlers/clearEventHandler';
Expand All @@ -45,6 +44,7 @@ import GetEventResponse from './pubsub/handlers/GetEventResponse';
import GetMethodResponseHandler from './pubsub/handlers/GetMethodResponseHandler';
import VisibilityStateHandler from '../src/pubsub/handlers/VisibilityStateHandler';
import LifecycleMethodHandler from './pubsub/handlers/LifecycleMethodHandler';
import RunTestHandler from 'RunTestHandler';

const logger = require('./utils/Logger')('IntentReader.js');

Expand Down
1 change: 1 addition & 0 deletions src/utils/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ async function getschemaValidationDone(name, response, sdkType) {
function censorData(methodName, response) {
try {
const json = censorDataJson;
methodName = methodName.charAt(0).toUpperCase() + methodName.slice(1);
if (methodName in json) {
for (let i = 0; i < json[methodName].field.length; i++) {
if (response[json[methodName].field[i]]) {
Expand Down
1 change: 1 addition & 0 deletions test/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = {
'^EventInvocation$': '<rootDir>/../src//EventInvocation.js',
'^IntentReader$': '../src/IntentReader.js',
'^CensorData$': '<rootDir>/../src/source/censorData.json',
'^RunTestHandler$': '<rootDir>/../src/pubsub/handlers/RunTestHandler.js',
},
collectCoverage: true,
coverageThreshold: {
Expand Down
4 changes: 4 additions & 0 deletions webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ module.exports = {
name: 'CensorData',
alias: ['/plugins/censorData.json', '/src/source/censorData.json'],
},
{
name: 'RunTestHandler',
alias: ['/plugins/runTestHandler.js', '/src/pubsub/handlers/RunTestHandler.js'],
},
],
'resolve'
),
Expand Down
4 changes: 4 additions & 0 deletions webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ module.exports = {
name: 'CensorData',
alias: ['/plugins/censorData.json', '/src/source/censorData.json'],
},
{
name: 'RunTestHandler',
alias: ['/plugins/runTestHandler.js', '/src/pubsub/handlers/RunTestHandler.js'],
},
],
'resolve'
),
Expand Down

0 comments on commit 935defa

Please sign in to comment.