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

belvo

Package Overview
Dependencies
Maintainers
6
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

belvo - npm Package Compare versions

Comparing version 0.14.1 to 0.15.1

Dangerfile

2

lib/accounts.js

@@ -44,3 +44,3 @@ "use strict";

var _endpoint = _classPrivateFieldLooseKey("endpoint");
var _endpoint = /*#__PURE__*/_classPrivateFieldLooseKey("endpoint");

@@ -47,0 +47,0 @@ /**

@@ -46,3 +46,3 @@ "use strict";

var _endpoint = _classPrivateFieldLooseKey("endpoint");
var _endpoint = /*#__PURE__*/_classPrivateFieldLooseKey("endpoint");

@@ -49,0 +49,0 @@ /**

@@ -44,3 +44,3 @@ "use strict";

var _endpoint = _classPrivateFieldLooseKey("endpoint");
var _endpoint = /*#__PURE__*/_classPrivateFieldLooseKey("endpoint");

@@ -47,0 +47,0 @@ /**

@@ -34,3 +34,3 @@ "use strict";

var _endpoint = _classPrivateFieldLooseKey("endpoint");
var _endpoint = /*#__PURE__*/_classPrivateFieldLooseKey("endpoint");

@@ -37,0 +37,0 @@ /**

@@ -44,3 +44,3 @@ "use strict";

var _endpoint = _classPrivateFieldLooseKey("endpoint");
var _endpoint = /*#__PURE__*/_classPrivateFieldLooseKey("endpoint");

@@ -47,0 +47,0 @@ /**

@@ -46,3 +46,3 @@ "use strict";

var _endpoint = _classPrivateFieldLooseKey("endpoint");
var _endpoint = /*#__PURE__*/_classPrivateFieldLooseKey("endpoint");

@@ -250,2 +250,49 @@ /**

}()
/**
* Patch an existing link.
* @async
* @param {string} id - UUID4 representation of the link Id.
* @param {object} options - Optional parameters
* (accessMode).
* @returns {object} Link data updated.
* @throws {RequestError}
*/
}, {
key: "patch",
value: function () {
var _patch = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(id) {
var options,
accessMode,
result,
_args4 = arguments;
return regeneratorRuntime.wrap(function _callee4$(_context4) {
while (1) {
switch (_context4.prev = _context4.next) {
case 0:
options = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : {};
accessMode = options.accessMode;
_context4.next = 4;
return this.session.patch("".concat(_classPrivateFieldLooseBase(this, _endpoint)[_endpoint]).concat(id, "/"), {
access_mode: accessMode
});
case 4:
result = _context4.sent;
return _context4.abrupt("return", result);
case 6:
case "end":
return _context4.stop();
}
}
}, _callee4, this);
}));
function patch(_x7) {
return _patch.apply(this, arguments);
}
return patch;
}()
}]);

@@ -252,0 +299,0 @@

@@ -44,3 +44,3 @@ "use strict";

var _endpoint = _classPrivateFieldLooseKey("endpoint");
var _endpoint = /*#__PURE__*/_classPrivateFieldLooseKey("endpoint");

@@ -47,0 +47,0 @@ /**

@@ -24,3 +24,3 @@ "use strict";

var _endpoint = _classPrivateFieldLooseKey("endpoint");
var _endpoint = /*#__PURE__*/_classPrivateFieldLooseKey("endpoint");

@@ -27,0 +27,0 @@ /** Represents a Belvo API resource */

@@ -44,3 +44,3 @@ "use strict";

var _endpoint = _classPrivateFieldLooseKey("endpoint");
var _endpoint = /*#__PURE__*/_classPrivateFieldLooseKey("endpoint");

@@ -47,0 +47,0 @@ /**

@@ -44,3 +44,3 @@ "use strict";

var _endpoint = _classPrivateFieldLooseKey("endpoint");
var _endpoint = /*#__PURE__*/_classPrivateFieldLooseKey("endpoint");

@@ -47,0 +47,0 @@ /**

@@ -44,3 +44,3 @@ "use strict";

var _endpoint = _classPrivateFieldLooseKey("endpoint");
var _endpoint = /*#__PURE__*/_classPrivateFieldLooseKey("endpoint");

@@ -82,4 +82,4 @@ /**

* @param {string} link - UUID4 representation of a link Id.
* @param {string} yearFrom - Required year from, format is YYYY-MM-DD
* @param {string} yearTo - Required year to, format is YYYY-MM-DD.
* @param {string} yearDateFrom - Required year or date from, format is YYYY-MM-DD
* @param {string} yearDateTo - Required year or date to, format is YYYY-MM-DD.
* @param {object} options - Optional parameters (token, encryptionKey, saveData, attachPDF)

@@ -90,3 +90,3 @@ * @returns {object} Response

function () {
var _retrieve = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(link, yearFrom, yearTo) {
var _retrieve = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(link, yearDateFrom, yearDateTo) {
var options,

@@ -97,2 +97,4 @@ token,

attachPDF,
type,
data,
result,

@@ -105,19 +107,28 @@ _args = arguments;

options = _args.length > 3 && _args[3] !== undefined ? _args[3] : {};
token = options.token, encryptionKey = options.encryptionKey, saveData = options.saveData, attachPDF = options.attachPDF;
_context.next = 4;
return this.session.post(_classPrivateFieldLooseBase(this, _endpoint)[_endpoint], {
token = options.token, encryptionKey = options.encryptionKey, saveData = options.saveData, attachPDF = options.attachPDF, type = options.type;
data = {
link: link,
token: token,
year_from: yearFrom,
year_to: yearTo,
encryption_key: encryptionKey,
save_data: saveData,
attach_pdf: attachPDF
});
attach_pdf: attachPDF,
type: type
};
case 4:
if (type === TaxReturn.MONTHLY) {
data.date_from = yearDateFrom;
data.date_to = yearDateTo;
} else {
data.year_from = yearDateFrom;
data.year_to = yearDateTo;
}
_context.next = 6;
return this.session.post(_classPrivateFieldLooseBase(this, _endpoint)[_endpoint], data);
case 6:
result = _context.sent;
return _context.abrupt("return", result);
case 6:
case 8:
case "end":

@@ -141,3 +152,5 @@ return _context.stop();

TaxReturn.YEARLY = 'yearly';
TaxReturn.MONTHLY = 'monthly';
var _default = TaxReturn;
exports["default"] = _default;

@@ -44,3 +44,3 @@ "use strict";

var _endpoint = _classPrivateFieldLooseKey("endpoint");
var _endpoint = /*#__PURE__*/_classPrivateFieldLooseKey("endpoint");

@@ -47,0 +47,0 @@ /**

@@ -46,3 +46,3 @@ "use strict";

var _endpoint = _classPrivateFieldLooseKey("endpoint");
var _endpoint = /*#__PURE__*/_classPrivateFieldLooseKey("endpoint");

@@ -49,0 +49,0 @@ /**

@@ -44,3 +44,3 @@ "use strict";

var _endpoint = _classPrivateFieldLooseKey("endpoint");
var _endpoint = /*#__PURE__*/_classPrivateFieldLooseKey("endpoint");

@@ -47,0 +47,0 @@ /**

{
"name": "belvo",
"version": "0.14.1",
"version": "0.15.1",
"description": "The node.js module for the Belvo API",

@@ -5,0 +5,0 @@ "main": "lib/belvo.js",

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