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

@aserto/aserto-spa-js

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aserto/aserto-spa-js - npm Package Compare versions

Comparing version 0.1.22 to 0.1.23

36

dist/AsertoClient.js

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

var _reload = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var _yield$get, _yield$get2, response, error, map;
var response, error, _yield$get, _yield$get2, map;

@@ -78,29 +78,27 @@ return regeneratorRuntime.wrap(function _callee$(_context) {

error = _yield$get2[1];
_context.next = 12;
break;
case 9:
_context.prev = 9;
_context.t0 = _context["catch"](0);
throw _context.t0;
case 12:
if (!error) {
_context.next = 11;
_context.next = 16;
break;
}
throw new Error("AsertoClient: ".concat(error.message));
throw new Error("AsertoClient: ".concat(error.message || error));
case 11:
_context.next = 13;
case 16:
_context.next = 18;
return response.json();
case 13:
case 18:
map = _context.sent;
this.__accessMap = map;
case 15:
_context.next = 21;
break;
case 17:
_context.prev = 17;
_context.t0 = _context["catch"](0);
this.__accessMap = null;
throw _context.t0;
case 21:
case 20:
case "end":

@@ -110,3 +108,3 @@ return _context.stop();

}
}, _callee, this, [[0, 17]]);
}, _callee, this, [[0, 9]]);
}));

@@ -141,2 +139,2 @@

exports["default"] = AsertoClient;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Bc2VydG9DbGllbnQuanMiXSwibmFtZXMiOlsiVklTSUJMRSIsIkVOQUJMRUQiLCJBTExPV0VEIiwiQXNlcnRvQ2xpZW50Iiwib3B0aW9ucyIsImRlZmF1bHRNYXAiLCJ2aXNpYmxlIiwiZW5hYmxlZCIsImFsbG93ZWQiLCJhY2Nlc3NUb2tlbiIsIkVycm9yIiwidG9rZW4iLCJlbmRwb2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H1cbiAgICBpZiAoZXJyb3IpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihgQXNlcnRvQ2xpZW50OiAke2Vycm9yLm1lc3NhZ2UgfHwgZXJyb3J9YCk7XG4gICAgfSBlbHNlIHtcbiAgICAgIGNvbnN0IG1hcCA9IGF3YWl0IHJlc3BvbnNlLmpzb24oKTtcbiAgICAgIHRoaXMuX19hY2Nlc3NNYXAgPSBtYXA7XG4gICAgfSAgXG4gIH1cblxuICBhY2Nlc3NNYXAoKSB7XG4gICAgcmV0dXJuIHRoaXMuX19hY2Nlc3NNYXA7XG4gIH1cblxuICByZXNvdXJjZU1hcChwYXRoKSB7XG4gICAgY29uc3QgbWFwID0gKHRoaXMuX19hY2Nlc3NNYXBbcGF0aF0gJiYgdGhpcy5fX2FjY2Vzc01hcFtwYXRoXS52ZXJiKSB8fCB7fTtcbiAgICBtYXAuR0VUID0gbWFwLkdFVCB8fCB0aGlzLmRlZmF1bHRNYXA7XG4gICAgbWFwLlBVVCA9IG1hcC5QVVQgfHwgdGhpcy5kZWZhdWx0TWFwO1xuICAgIG1hcC5ERUxFVEUgPSBtYXAuREVMRVRFIHx8IHRoaXMuZGVmYXVsdE1hcDtcbiAgICBtYXAuUE9TVCA9IG1hcC5QT1NUIHx8IHRoaXMuZGVmYXVsdE1hcDtcbiAgICByZXR1cm4gbWFwO1xuICB9XG59XG4iXX0=
{
"name": "@aserto/aserto-spa-js",
"version": "0.1.22",
"version": "0.1.23",
"description": "Aserto single-page application javascript SDK",

@@ -5,0 +5,0 @@ "main": "dist/index.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