Socket
Socket
Sign inDemoInstall

vanilli-shop-client

Package Overview
Dependencies
0
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.3.0

2

package.json
{
"name": "vanilli-shop-client",
"version": "0.2.0",
"version": "0.3.0",
"description": "Client for Vanilli Shop API",

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

import {IQueryParams} from "../models/base";
import Axios from "axios";
import {LanguageEnum} from "../models/locale";
import {LocalStorageEnum} from "../models/local-storage";
Axios.interceptors.request.use((cfg) => {
const language = localStorage.getItem(LocalStorageEnum.Language);
cfg.headers["Accept-Language"] = language || LanguageEnum.Et;
return cfg;
})
export default class RootApi {

@@ -5,0 +13,0 @@ protected RootEndpoint = process.env.REACT_APP_API_ENDPOINT || "";

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc