Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hzab/data-model

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hzab/data-model - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "@hzab/data-model",
"version": "0.0.2",
"version": "0.0.3",
"description": "data model",

@@ -5,0 +5,0 @@ "main": "src",

@@ -13,6 +13,7 @@ import axios from "axios";

* @param {Function} cb
* @param {Function} errCb
*/
export function setAxRequest(cb) {
export function setAxRequest(cb, errCb) {
temp.axiosList?.forEach((_ax) => {
_ax.interceptors.request.use(cb);
_ax.interceptors.request.use(cb, errCb);
});

@@ -24,2 +25,3 @@ }

* @param {Function} cb
* @param {Function} errCb
*/

@@ -73,6 +75,10 @@ export function setAxResponse(cb, errCb) {

*/
export function setAxToken(token) {
setAxTimeout("Authorization", token);
export function setAxAuthorization(token) {
setAxHeaders("Authorization", token);
}
export function setAxBaseUrl(url) {
setAxDefaults("baseURL", url);
}
export default axios;

@@ -5,2 +5,3 @@ import axios from "./axios";

export * from "./axios";
export * from "./data-model";

@@ -7,0 +8,0 @@ export { axios, DataModel };

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