mconnections 1.0.2 → 1.0.5

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.
package/index.js CHANGED
@@ -1,7 +1,8 @@
1
- const axios =require("axios")
1
+
2
2
 
3
3
  export const connection = {
4
4
  connect : function connectmagento (storeName ) {
5
+ const axios =require("axios")
5
6
  return axios.create({
6
7
  baseURL:`${storeName}rest/V1/`,
7
8
  headers: {
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "mconnections",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
+ "type": "module",
5
6
  "main": "index.js",
6
7
  "scripts": {
7
8
  "test": "echo \"Error: no test specified\" && exit 1"
package/src/App.js DELETED
File without changes
package/src/index.js DELETED
@@ -1,12 +0,0 @@
1
- import axios from "axios";
2
-
3
- export const connection = {
4
- connect : function connectmagento (storeName ) {
5
- return axios.create({
6
- baseURL:`${storeName}rest/V1/`,
7
- headers: {
8
- 'Content-type': 'application/json'
9
- }
10
- });
11
- }
12
- }