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.9 to 0.1.10

32

dist/index.js

@@ -18,30 +18,6 @@ "use strict";

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
function createAsertoClient(_x) {
return _createAsertoClient.apply(this, arguments);
function createAsertoClient(options) {
var aserto = new _AsertoClient["default"](options);
return aserto;
}
function _createAsertoClient() {
_createAsertoClient = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(options) {
var aserto;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
aserto = new _AsertoClient["default"](options); //await aserto.checkSession();
return _context.abrupt("return", aserto);
case 2:
case "end":
return _context.stop();
}
}
}, _callee);
}));
return _createAsertoClient.apply(this, arguments);
}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJjcmVhdGVBc2VydG9DbGllbnQiLCJvcHRpb25zIiwiYXNlcnRvIiwiQXNlcnRvQ2xpZW50Il0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQUE7Ozs7Ozs7O1NBRThCQSxrQjs7Ozs7Z0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ZW50KG9wdGlvbnMpIHtcbiAgY29uc3QgYXNlcnRvID0gbmV3IEFzZXJ0b0NsaWVudChvcHRpb25zKTtcbiAgcmV0dXJuIGFzZXJ0bztcbn1cblxuZXhwb3J0IHsgQXNlcnRvQ2xpZW50IH07XG4iXX0=

2

package.json
{
"name": "@aserto/aserto-spa-js",
"version": "0.1.9",
"version": "0.1.10",
"description": "Aserto single-page application javascript SDK",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -47,3 +47,3 @@ # Aserto single-page application javascript SDK

const aserto = await createAsertoClient({
const aserto = createAsertoClient({
accessToken: accessToken, // valid access token

@@ -78,3 +78,3 @@ serviceUrl: 'https://service-url', // defaults to window.location.origin

document.getElementById('get-access-map').addEventListener('click', async () => {
const [accessMap, error] = await aserto.getAuthorizationMap();
const [accessMap, error] = await aserto.getAccessMap();
if (error) {

@@ -81,0 +81,0 @@ console.error(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