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

@modulbank/sendamo

Package Overview
Dependencies
Maintainers
4
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modulbank/sendamo - npm Package Compare versions

Comparing version 0.0.26-beta-sm-8778-integration-with-cityes-add-6a319546 to 0.0.26-beta-sm-8778-integration-with-cityes-add-9bedf3ab

29

dist/index.js

@@ -103,17 +103,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

url.searchParams.set('click_id', clickId);
// @ts-ignore
fetch(url.toString(), {
method: 'GET'
})
.then((response) => __awaiter(this, void 0, void 0, function* () {
if (response.status === 200) {
resolve(response);
const xhr = new XMLHttpRequest();
xhr.open('GET', url.toString(), true);
xhr.onload = function () {
if (xhr.status === 200) {
resolve(xhr.responseText);
}
else {
throw new Error(yield response.json());
try {
const errorResponse = JSON.parse(xhr.responseText);
reject(new Error(errorResponse));
}
catch (error) {
reject(new Error(xhr.responseText));
}
}
}))
.catch((err) => {
reject(err);
});
};
xhr.onerror = function () {
reject(new Error('Network error occurred.'));
};
xhr.send();
});

@@ -120,0 +125,0 @@ }

{
"name": "@modulbank/sendamo",
"version": "0.0.26-beta-sm-8778-integration-with-cityes-add-6a319546",
"version": "0.0.26-beta-sm-8778-integration-with-cityes-add-9bedf3ab",
"description": "send to amocrm method",

@@ -5,0 +5,0 @@ "homepage": "",

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