katoikia-app/web-ui/web-react/node_modules/.cache/babel-loader/8c4ed2ba0efa18be79c989e9872...

1 line
2.5 KiB
JSON

{"ast":null,"code":"import _classCallCheck from \"/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport axios from 'axios';\nexport var ProductService = /*#__PURE__*/function () {\n function ProductService() {\n _classCallCheck(this, ProductService);\n }\n\n _createClass(ProductService, [{\n key: \"getProductsSmall\",\n value: function getProductsSmall() {\n return axios.get('assets/demo/data/products-small.json').then(function (res) {\n return res.data.data;\n });\n }\n }, {\n key: \"getProducts\",\n value: function getProducts() {\n return axios.get('assets/demo/data/products.json').then(function (res) {\n return res.data.data;\n });\n }\n }, {\n key: \"getProductsWithOrdersSmall\",\n value: function getProductsWithOrdersSmall() {\n return axios.get('assets/demo/data/products-orders-small.json').then(function (res) {\n return res.data.data;\n });\n }\n }]);\n\n return ProductService;\n}();","map":{"version":3,"names":["axios","ProductService","get","then","res","data"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/src/service/ProductService.js"],"sourcesContent":["import axios from 'axios';\n\nexport class ProductService {\n\n getProductsSmall() {\n return axios.get('assets/demo/data/products-small.json').then(res => res.data.data);\n }\n\n getProducts() {\n return axios.get('assets/demo/data/products.json').then(res => res.data.data);\n }\n\n getProductsWithOrdersSmall() {\n return axios.get('assets/demo/data/products-orders-small.json').then(res => res.data.data);\n }\n}"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,WAAaC,cAAb;EAAA;IAAA;EAAA;;EAAA;IAAA;IAAA,OAEI,4BAAmB;MACf,OAAOD,KAAK,CAACE,GAAN,CAAU,sCAAV,EAAkDC,IAAlD,CAAuD,UAAAC,GAAG;QAAA,OAAIA,GAAG,CAACC,IAAJ,CAASA,IAAb;MAAA,CAA1D,CAAP;IACH;EAJL;IAAA;IAAA,OAMI,uBAAc;MACV,OAAOL,KAAK,CAACE,GAAN,CAAU,gCAAV,EAA4CC,IAA5C,CAAiD,UAAAC,GAAG;QAAA,OAAIA,GAAG,CAACC,IAAJ,CAASA,IAAb;MAAA,CAApD,CAAP;IACH;EARL;IAAA;IAAA,OAUI,sCAA6B;MACzB,OAAOL,KAAK,CAACE,GAAN,CAAU,6CAAV,EAAyDC,IAAzD,CAA8D,UAAAC,GAAG;QAAA,OAAIA,GAAG,CAACC,IAAJ,CAASA,IAAb;MAAA,CAAjE,CAAP;IACH;EAZL;;EAAA;AAAA"},"metadata":{},"sourceType":"module"}