Socket
Socket
Sign inDemoInstall

@salutejs/scenario

Package Overview
Dependencies
Maintainers
3
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salutejs/scenario - npm Package Compare versions

Comparing version 0.21.0 to 0.22.0

12

CHANGELOG.md

@@ -0,1 +1,13 @@

# v0.22.0 (Thu Dec 23 2021)
#### 🚀 Enhancement
- feat: override frontend endpoint [#258](https://github.com/sberdevices/salutejs/pull/258) ([@KateKate](https://github.com/KateKate))
#### Authors: 1
- Ekaterina Anishkina ([@KateKate](https://github.com/KateKate))
---
# v0.21.0 (Mon Dec 20 2021)

@@ -2,0 +14,0 @@

@@ -205,2 +205,8 @@ "use strict";

},
overrideFrontendEndpoint: function (frontendEndpoint) {
if (message.messageName !== 'ANSWER_TO_USER') {
throw new Error('Wrong message type');
}
message.payload.app_info = __assign(__assign({}, payload.app_info), { frontendEndpoint: frontendEndpoint });
},
get message() {

@@ -207,0 +213,0 @@ return message;

3

dist/lib/types/response.d.ts

@@ -1,2 +0,2 @@

import { SystemMessage, SystemMessageName, SystemMessagePayload, AssistantCommand, BubbleCommand, CardCommand, PolicyRunAppComand } from './systemMessage';
import { SystemMessage, SystemMessageName, SystemMessagePayload, AssistantCommand, BubbleCommand, CardCommand, PolicyRunAppComand, AppInfo } from './systemMessage';
export declare type NLPResponseType = Extract<SystemMessageName, 'ANSWER_TO_USER' | 'POLICY_RUN_APP' | 'NOTHING_FOUND' | 'ERROR'> | 'GET_PROFILE_DATA' | 'CHOOSE_PROFILE_DATA' | 'DETAILED_PROFILE_DATA';

@@ -22,2 +22,3 @@ export interface NLPResponseBody<T, P> extends Pick<SystemMessage, 'sessionId' | 'messageId' | 'uuid'> {

finished: boolean;
app_info?: AppInfo;
}

@@ -24,0 +25,0 @@ /** ANSWER_TO_USER Response */

@@ -89,2 +89,3 @@ import { AppInfo, CharacterId, AppState, Message, SmartAppErrorCommand, EmotionId, Card, Bubble, Button, ASRHints, PolicyRunAppComand } from './systemMessage';

openDeepLink: (deepLink: string) => void;
overrideFrontendEndpoint: (frontendEndpoint: string) => void;
readonly message: NLPResponse;

@@ -91,0 +92,0 @@ }

{
"name": "@salutejs/scenario",
"version": "0.21.0",
"version": "0.22.0",
"description": "Tiny helpers to make scenario for Salute family",

@@ -39,3 +39,3 @@ "author": "SberDevices Frontend Team <sberdevices.frontend@gmail.com>",

},
"gitHead": "3e2004565afe1f44059744d486b8446534a6f0a0"
"gitHead": "f8437a72cfc3c5c196fd0bd21a17b6a8f0bfad3b"
}

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