@philipe1993/list-color 1.0.79 → 1.0.81

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"ColorService.d.ts","sourceRoot":"","sources":["../../src/services/ColorService.ts"],"names":[],"mappings":"AAIA,cAAM,YAAY;IACR,OAAO,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;CAS3C;;AAED,wBAAkC"}
1
+ {"version":3,"file":"ColorService.d.ts","sourceRoot":"","sources":["../../src/services/ColorService.ts"],"names":[],"mappings":"AAGA,cAAM,YAAY;IACR,OAAO,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;CAS3C;;AAED,wBAAkC"}
@@ -48,7 +48,7 @@ var ColorService = /** @class */ (function () {
48
48
  switch (_a.label) {
49
49
  case 0:
50
50
  _a.trys.push([0, 2, , 3]);
51
- api = (0, shared_1.getAPIInstance)();
51
+ api = (0, shared_1.getAPI)();
52
52
  return [4 /*yield*/, api.get("".concat(MANAGER, "/colors/search"), { params: params })];
53
53
  case 1:
54
54
  response = _a.sent();
@@ -1 +1 @@
1
- {"version":3,"file":"ColorService.js","sourceRoot":"","sources":["../../src/services/ColorService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,8CAAqD;AACrD,IAAM,OAAO,GAAG,SAAS,CAAC;AAE1B;IAAA;IAUA,CAAC;IATS,8BAAO,GAAb,UAAc,MAAW;;;;;;;wBAEX,GAAG,GAAG,IAAA,uBAAc,GAAE,CAAC;wBACZ,qBAAM,GAAG,CAAC,GAAG,CAAC,UAAG,OAAO,mBAAgB,EAAE,EAAE,MAAM,QAAA,EAAE,CAAC,EAAA;;wBAAhE,QAAQ,GAAG,SAAqD;wBACtE,sBAAO,QAAQ,EAAC,CAAC,4BAA4B;;;wBAE7C,sBAAO,EAAE,KAAK,EAAE,yBAAyB,EAAE,EAAC,CAAC,4BAA4B;;;;;KAEhF;IACL,mBAAC;AAAD,CAAC,AAVD,IAUC;AAED,kBAAe,IAAI,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"ColorService.js","sourceRoot":"","sources":["../../src/services/ColorService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA4C;AAC5C,IAAM,OAAO,GAAG,SAAS,CAAC;AAE1B;IAAA;IAUA,CAAC;IATS,8BAAO,GAAb,UAAc,MAAW;;;;;;;wBAEX,GAAG,GAAG,IAAA,eAAM,GAAE,CAAC;wBACJ,qBAAM,GAAG,CAAC,GAAG,CAAC,UAAG,OAAO,mBAAgB,EAAE,EAAE,MAAM,QAAA,EAAE,CAAC,EAAA;;wBAAhE,QAAQ,GAAG,SAAqD;wBACtE,sBAAO,QAAQ,EAAC,CAAC,4BAA4B;;;wBAE7C,sBAAO,EAAE,KAAK,EAAE,yBAAyB,EAAE,EAAC,CAAC,4BAA4B;;;;;KAEhF;IACL,mBAAC;AAAD,CAAC,AAVD,IAUC;AAED,kBAAe,IAAI,YAAY,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@philipe1993/list-color",
3
- "version": "1.0.79",
3
+ "version": "1.0.81",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
7
7
  "build": "tsc"
8
8
  },
9
9
  "dependencies": {
10
- "@philipe1993/shared": "^1.0.36",
10
+ "@philipe1993/shared": "^1.0.41",
11
11
  "mobx-react-lite": "^4.0.7",
12
12
  "react": "^18.3.1"
13
13
  },
@@ -1,11 +1,10 @@
1
-
2
- import { getAPIInstance } from "@philipe1993/shared";
1
+ import { getAPI } from "@philipe1993/shared"
3
2
  const MANAGER = "manager";
4
3
 
5
4
  class ColorService {
6
5
  async getList(params: any): Promise<any> {
7
6
  try {
8
- const api = getAPIInstance();
7
+ const api = getAPI();
9
8
  const response = await api.get(`${MANAGER}/colors/search`, { params });
10
9
  return response; // Retorna a resposta da API
11
10
  } catch (e) {