New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aserto/aserto-spa-js

Package Overview
Dependencies
Maintainers
1
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.3 to 0.1.4

dist/api.js

17

package.json
{
"name": "@aserto/aserto-spa-js",
"version": "0.1.3",
"version": "0.1.4",
"description": "Aserto single-page application javascript SDK",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"prepublishOnly": "cross-env NODE_ENV=production babel ./src --out-dir ./dist -s inline"
},

@@ -13,2 +14,5 @@ "repository": {

},
"files": [
"dist/*"
],
"keywords": [

@@ -19,3 +23,10 @@ "aserto",

"author": "Aserto",
"license": "Apache-2.0"
"license": "Apache-2.0",
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"cross-env": "5.2.0"
}
}

@@ -63,2 +63,8 @@ # Aserto single-page application javascript SDK

First, make sure that the service supports an authorization map endpoint - for example using the NodeJS Express middleware [express-jwt-aserto](https://github.com/aserto-dev/express-jwt-aserto).
Once a service exposes the endpoint, you can call the `getAuthorizationMap()` function on the `AsertoClient` instance to retrieve the map.
The following example adds an event handler to a button that retrieves the authorization map and logs it to the console:
```html

@@ -65,0 +71,0 @@ <button id="get-authz-map">Get AuthZ Map</button>

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