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.12.0-canary.200.85ea4c7724458b276bdbd1c2434a785048d80125.0 to 0.12.0-canary.200.e9020dfde3cdd7c82fcd5576d2b9d3dc6ec47c9a.0

4

package.json
{
"name": "@salutejs/scenario",
"version": "0.12.0-canary.200.85ea4c7724458b276bdbd1c2434a785048d80125.0",
"version": "0.12.0-canary.200.e9020dfde3cdd7c82fcd5576d2b9d3dc6ec47c9a.0",
"description": "Tiny helpers to make scenario for Salute family",

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

},
"gitHead": "85ea4c7724458b276bdbd1c2434a785048d80125"
"gitHead": "e9020dfde3cdd7c82fcd5576d2b9d3dc6ec47c9a"
}

@@ -152,3 +152,3 @@ # @salutejs/scenario

```ts
import { createSmartPushSender, SendPushConfiguration } from 'salutejs/scenario';
import { createSmartPushSender, SendPushConfiguration, SmartPushResponse } from 'salutejs/scenario';

@@ -175,3 +175,3 @@ const pushes: SendPushConfiguration[] = [{

pushes.map((push) =>
sender.send(push).then(({ payload }) => {
sender.send(push).then(({ payload }: SmartPushResponse) => {
if (payload.validation.results.some(({ status }) => status.code !== 0)) {

@@ -178,0 +178,0 @@ throw new Error('Уведомление не отправлено');

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