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.15 to 0.1.16

26

dist/AsertoClient.js

@@ -108,3 +108,25 @@ "use strict";

value: function resourceMap(path) {
var map = this.__accessMap[path] && this.__accessMap[path].verb;
var map = this.__accessMap[path] && this.__accessMap[path].verb || {};
var defaultMap = {
visible: false,
enabled: false,
allowed: false
};
if (!map.GET) {
map.GET = defaultMap;
}
if (!map.PUT) {
map.GET = defaultMap;
}
if (!map.DELETE) {
map.GET = defaultMap;
}
if (!map.POST) {
map.GET = defaultMap;
}
return map;

@@ -118,2 +140,2 @@ }

exports["default"] = AsertoClient;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9Bc2VydG9DbGllbnQuanMiXSwibmFtZXMiOlsiVklTSUJMRSIsIkVOQUJMRUQiLCJBTExPV0VEIiwiQXNlcnRvQ2xpZW50Iiwib3B0aW9ucyIsImFjY2Vzc1Rva2VuIiwiRXJyb3IiLCJ0b2tlbiIsImVuZHBvaW50IiwiYWNjZXNzTWFwRW5kcG9pbnQiLCJzZXJ2aWNlIiwic2VydmljZVVybCIsIlVSTCIsIndpbmRvdyIsImxvY2F0aW9uIiwib3JpZ2luIiwicmVzcG9uc2UiLCJlcnJvciIsIm1lc3NhZ2UiLCJqc29uIiwibWFwIiwiX19hY2Nlc3NNYXAiLCJwYXRoIiwidmVyYiJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFQSxJQUFNQSxPQUFPLEdBQUcsQ0FBaEI7O0FBQ0EsSUFBTUMsT0FBTyxHQUFHLENBQWhCOztB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ICBpZiAoIW1hcC5QT1NUKSB7XG4gICAgICBtYXAuR0VUID0gZGVmYXVsdE1hcDtcbiAgICB9XG4gICAgcmV0dXJuIG1hcDtcbiAgfVxufVxuIl19

2

package.json
{
"name": "@aserto/aserto-spa-js",
"version": "0.1.15",
"version": "0.1.16",
"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