Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yoomoney-sdk

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yoomoney-sdk - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

4

dist/notifications.d.ts

@@ -46,4 +46,4 @@ import type { RequestHandler } from "express";

*
* @param {*} notification Объект уведомления
* @return {*}
* @param {Object} notification Объект уведомления
* @return {NotificationDTO}
*/

@@ -50,0 +50,0 @@ check(notification: Record<keyof NotificationDTO, string>): NotificationDTO;

@@ -48,4 +48,4 @@ "use strict";

*
* @param {*} notification Объект уведомления
* @return {*}
* @param {Object} notification Объект уведомления
* @return {NotificationDTO}
*/

@@ -62,5 +62,4 @@ check(notification) {

.join("&");
const hash = crypto_1.createHash("sha1").update(signature).digest("hex");
// eslint-disable-next-line security/detect-possible-timing-attacks
if (hash !== notification.sha1_hash) {
const hash = crypto_1.createHash("sha1").update(signature).digest();
if (crypto_1.timingSafeEqual(hash, Buffer.from(notification.sha1_hash, "hex"))) {
throw new YMNotificationError(`Notification hash mismatch`);

@@ -67,0 +66,0 @@ }

@@ -67,2 +67,3 @@ "use strict";

return (value) => {
// eslint-disable-next-line security/detect-object-injection
this.config[field] = value;

@@ -69,0 +70,0 @@ return this;

@@ -48,3 +48,3 @@ [yoomoney-sdk](../README.md) / [Exports](../modules.md) / YMApi

[src/api.ts:32](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.ts#L32)
[src/api.ts:32](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.ts#L32)

@@ -85,3 +85,3 @@ ## Properties

[src/api.ts:71](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.ts#L71)
[src/api.ts:71](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.ts#L71)

@@ -115,3 +115,3 @@ ___

[src/api.ts:47](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.ts#L47)
[src/api.ts:47](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.ts#L47)

@@ -142,3 +142,3 @@ ___

[src/api.ts:141](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.ts#L141)
[src/api.ts:141](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.ts#L141)

@@ -167,3 +167,3 @@ ___

[src/api.ts:155](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.ts#L155)
[src/api.ts:155](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.ts#L155)

@@ -192,3 +192,3 @@ ___

[src/api.ts:97](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.ts#L97)
[src/api.ts:97](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.ts#L97)

@@ -217,3 +217,3 @@ ___

[src/api.ts:83](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.ts#L83)
[src/api.ts:83](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.ts#L83)

@@ -240,3 +240,3 @@ ___

[src/api.ts:125](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.ts#L125)
[src/api.ts:125](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.ts#L125)

@@ -267,2 +267,2 @@ ___

[src/api.ts:113](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.ts#L113)
[src/api.ts:113](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.ts#L113)

@@ -53,3 +53,3 @@ [yoomoney-sdk](../README.md) / [Exports](../modules.md) / YMApiError

[src/api.ts:15](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.ts#L15)
[src/api.ts:15](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.ts#L15)

@@ -64,3 +64,3 @@ ## Properties

[src/api.ts:9](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.ts#L9)
[src/api.ts:9](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.ts#L9)

@@ -67,0 +67,0 @@ ___

@@ -46,3 +46,3 @@ [yoomoney-sdk](../README.md) / [Exports](../modules.md) / YMAuth

[src/auth.ts:40](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/auth.ts#L40)
[src/auth.ts:40](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/auth.ts#L40)

@@ -99,3 +99,3 @@ ## Properties

[src/auth.ts:75](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/auth.ts#L75)
[src/auth.ts:75](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/auth.ts#L75)

@@ -123,2 +123,2 @@ ___

[src/auth.ts:55](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/auth.ts#L55)
[src/auth.ts:55](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/auth.ts#L55)

@@ -50,3 +50,3 @@ [yoomoney-sdk](../README.md) / [Exports](../modules.md) / YMAuthError

[src/auth.ts:22](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/auth.ts#L22)
[src/auth.ts:22](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/auth.ts#L22)

@@ -53,0 +53,0 @@ ## Properties

@@ -34,3 +34,3 @@ [yoomoney-sdk](../README.md) / [Exports](../modules.md) / YMNotificationChecker

[src/notifications.ts:71](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/notifications.ts#L71)
[src/notifications.ts:71](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/notifications.ts#L71)

@@ -55,3 +55,3 @@ ## Methods

[src/notifications.ts:78](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/notifications.ts#L78)
[src/notifications.ts:78](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/notifications.ts#L78)

@@ -111,2 +111,2 @@ ___

[src/notifications.ts:154](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/notifications.ts#L154)
[src/notifications.ts:153](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/notifications.ts#L153)

@@ -51,3 +51,3 @@ [yoomoney-sdk](../README.md) / [Exports](../modules.md) / YMPaymentFromBuilder

[src/payment-form-builder.ts:124](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L124)
[src/payment-form-builder.ts:124](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L124)

@@ -82,3 +82,3 @@ ## Properties

[src/payment-form-builder.ts:187](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L187)
[src/payment-form-builder.ts:188](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L188)

@@ -107,3 +107,3 @@ ___

[src/payment-form-builder.ts:184](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L184)
[src/payment-form-builder.ts:185](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L185)

@@ -132,3 +132,3 @@ ___

[src/payment-form-builder.ts:186](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L186)
[src/payment-form-builder.ts:187](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L187)

@@ -157,3 +157,3 @@ ___

[src/payment-form-builder.ts:181](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L181)
[src/payment-form-builder.ts:182](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L182)

@@ -182,3 +182,3 @@ ___

[src/payment-form-builder.ts:182](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L182)
[src/payment-form-builder.ts:183](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L183)

@@ -207,3 +207,3 @@ ___

[src/payment-form-builder.ts:185](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L185)
[src/payment-form-builder.ts:186](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L186)

@@ -232,3 +232,3 @@ ___

[src/payment-form-builder.ts:180](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L180)
[src/payment-form-builder.ts:181](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L181)

@@ -257,3 +257,3 @@ ___

[src/payment-form-builder.ts:183](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L183)
[src/payment-form-builder.ts:184](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L184)

@@ -298,3 +298,3 @@ ## Methods

[src/payment-form-builder.ts:140](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L140)
[src/payment-form-builder.ts:140](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L140)

@@ -321,3 +321,3 @@ ___

[src/payment-form-builder.ts:234](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L234)
[src/payment-form-builder.ts:235](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L235)

@@ -342,3 +342,3 @@ ___

[src/payment-form-builder.ts:204](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L204)
[src/payment-form-builder.ts:205](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L205)

@@ -363,3 +363,3 @@ ___

[src/payment-form-builder.ts:214](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L214)
[src/payment-form-builder.ts:215](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L215)

@@ -384,3 +384,3 @@ ___

[src/payment-form-builder.ts:194](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L194)
[src/payment-form-builder.ts:195](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L195)

@@ -405,3 +405,3 @@ ___

[src/payment-form-builder.ts:224](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L224)
[src/payment-form-builder.ts:225](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L225)

@@ -428,3 +428,3 @@ ___

[src/payment-form-builder.ts:153](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L153)
[src/payment-form-builder.ts:154](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L154)

@@ -451,3 +451,3 @@ ___

[src/payment-form-builder.ts:164](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L164)
[src/payment-form-builder.ts:165](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L165)

@@ -474,2 +474,2 @@ ___

[src/payment-form-builder.ts:175](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L175)
[src/payment-form-builder.ts:176](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L176)

@@ -57,3 +57,3 @@ [yoomoney-sdk](README.md) / Exports

[src/payment-form-builder.ts:12](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L12)
[src/payment-form-builder.ts:12](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L12)

@@ -96,3 +96,3 @@ ___

[src/notifications.ts:6](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/notifications.ts#L6)
[src/notifications.ts:6](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/notifications.ts#L6)

@@ -115,2 +115,2 @@ ## Variables

[src/payment-form-builder.ts:5](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/payment-form-builder.ts#L5)
[src/payment-form-builder.ts:5](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/payment-form-builder.ts#L5)

@@ -50,3 +50,3 @@ [yoomoney-sdk](../README.md) / [Exports](../modules.md) / ymTypes

[src/api.types.ts:48](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L48)
[src/api.types.ts:48](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L48)

@@ -72,3 +72,3 @@ ___

[src/api.types.ts:551](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L551)
[src/api.types.ts:551](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L551)

@@ -83,3 +83,3 @@ ___

[src/api.types.ts:563](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L563)
[src/api.types.ts:563](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L563)

@@ -104,3 +104,3 @@ ___

[src/api.types.ts:576](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L576)
[src/api.types.ts:576](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L576)

@@ -115,3 +115,3 @@ ___

[src/api.types.ts:584](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L584)
[src/api.types.ts:584](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L584)

@@ -157,3 +157,3 @@ ___

[src/api.types.ts:159](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L159)
[src/api.types.ts:159](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L159)

@@ -178,3 +178,3 @@ ___

[src/api.types.ts:280](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L280)
[src/api.types.ts:280](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L280)

@@ -205,3 +205,3 @@ ___

[src/api.types.ts:95](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L95)
[src/api.types.ts:95](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L95)

@@ -227,3 +227,3 @@ ___

[src/api.types.ts:274](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L274)
[src/api.types.ts:274](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L274)

@@ -240,3 +240,3 @@ ___

[src/api.types.ts:291](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L291)
[src/api.types.ts:291](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L291)

@@ -265,3 +265,3 @@ ___

[src/api.types.ts:324](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L324)
[src/api.types.ts:324](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L324)

@@ -290,3 +290,3 @@ ___

[src/api.types.ts:442](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L442)
[src/api.types.ts:442](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L442)

@@ -323,3 +323,3 @@ ___

[src/api.types.ts:475](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L475)
[src/api.types.ts:475](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L475)

@@ -345,3 +345,3 @@ ___

[src/api.types.ts:348](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L348)
[src/api.types.ts:348](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L348)

@@ -356,3 +356,3 @@ ___

[src/api.types.ts:343](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L343)
[src/api.types.ts:343](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L343)

@@ -367,2 +367,2 @@ ___

[src/api.types.ts:389](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/c1a7b0f/src/api.types.ts#L389)
[src/api.types.ts:389](https://github.com/AlexXanderGrib/yoomoney-sdk/blob/e2ac32a/src/api.types.ts#L389)

@@ -18,5 +18,6 @@ yoomoney-sdk / [Exports](modules.md)

2. Покрывает большую часть https://yoomoney.ru/docs/wallet
3. Документация прямо в коде
3. Документация прямо в коде (JSDoc)
4. Всего 2 зависимости: `node-fetch` и `redirect-form-builder` (для генерации html форм)
5. Есть API генерации frontend форм перенаправления для [Авторизации](https://yoomoney.ru/docs/wallet/using-api/authorization/basics) и [Оплаты](https://yoomoney.ru/docs/payment-buttons/using-api/forms)
6. [Безопасная](./SECURITY.md) (Относительно)

@@ -23,0 +24,0 @@ ## 📦 Установка

{
"name": "yoomoney-sdk",
"version": "1.2.4",
"version": "1.2.5",
"description": "YooMoney typed SDK",

@@ -70,2 +70,3 @@ "main": "dist/index.js",

"eslint-plugin-unicorn": "^33.0.0",
"express": "^4.17.1",
"husky": "^6.0.0",

@@ -72,0 +73,0 @@ "jest": "^27.0.3",

@@ -16,5 +16,6 @@ # YooMoney NodeJS SDK

2. Покрывает большую часть https://yoomoney.ru/docs/wallet
3. Документация прямо в коде
3. Документация прямо в коде (JSDoc)
4. Всего 2 зависимости: `node-fetch` и `redirect-form-builder` (для генерации html форм)
5. Есть API генерации frontend форм перенаправления для [Авторизации](https://yoomoney.ru/docs/wallet/using-api/authorization/basics) и [Оплаты](https://yoomoney.ru/docs/payment-buttons/using-api/forms)
6. [Безопасная](./SECURITY.md) (Относительно)

@@ -21,0 +22,0 @@ ## 📦 Установка

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