Socket
Socket
Sign inDemoInstall

@salutejs/scenario

Package Overview
Dependencies
Maintainers
2
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.1.1 to 0.1.2

7

dist/lib/matchers.js

@@ -27,3 +27,8 @@ "use strict";

function createMatchers() {
var intent = function (expected) { return function (req) { var _a; return ((_a = req.inference) === null || _a === void 0 ? void 0 : _a.variants[0].intent.path) === expected; }; };
var intent = function (expected) { return function (req) {
var _a, _b;
if (!((_a = req.inference) === null || _a === void 0 ? void 0 : _a.variants.length))
return false;
return ((_b = req.inference) === null || _b === void 0 ? void 0 : _b.variants[0].intent.path) === expected;
}; };
var text = function (expected) { return function (req) {

@@ -30,0 +35,0 @@ var actual = req.message.original_text;

4

package.json
{
"name": "@salutejs/scenario",
"version": "0.1.1",
"version": "0.1.2",
"description": "Tiny helpers to make scenario for Salute family",

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

},
"gitHead": "7d9fc0a42be8e6b92cf2ef53cad9bdcff8d4bbc0"
"gitHead": "f618bff07b2d90a7d99064012c3924178c1b29a0"
}

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