mconnections 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
 
2
2
  // improt axios from "axios"
3
- const axios = require("axios");
3
+ import axios from "axios";
4
4
 
5
5
  function connect (storeName ) {
6
6
 
7
- return axios.create({
7
+ return axios({
8
8
  baseURL:`${storeName}rest/V1/`,
9
9
  headers: {
10
10
  'Content-type': 'application/json'
@@ -16,4 +16,4 @@ const axios = require("axios");
16
16
 
17
17
  //module.exports = connect
18
18
 
19
- module.exports = connect;
19
+ export default { connect };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mconnections",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "index.mjs",