Socket
Socket
Sign inDemoInstall

@mongoosejs/studio

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongoosejs/studio - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

6

frontend/index.js

@@ -15,2 +15,8 @@ 'use strict';

}
if (options?.setAuthorizationHeaderFrom) {
config.plugins = config.plugins || [];
config.plugins.push(new webpack.DefinePlugin({
config__setAuthorizationHeaderFrom: `'${options.setAuthorizationHeaderFrom}'`
}));
}
const compiler = webpack(config);

@@ -17,0 +23,0 @@

@@ -10,2 +10,12 @@ 'use strict';

window.apiClient = client;
if (typeof config__setAuthorizationHeaderFrom === 'string' && config__setAuthorizationHeaderFrom) {
client.interceptors.request.use(req => {
const accessToken = window.localStorage.getItem(config__setAuthorizationHeaderFrom) || null;
if (accessToken) {
req.headers.authorization = accessToken;
}
return req;
});
}

@@ -12,0 +22,0 @@ if (config__isLambda) {

2

package.json
{
"name": "@mongoosejs/studio",
"version": "0.0.6",
"version": "0.0.7",
"dependencies": {

@@ -5,0 +5,0 @@ "archetype": "0.13.0",

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