@m4l/core 0.0.42 → 0.0.43

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 (77) hide show
  1. package/dist/contexts/EnvironmentContext/index.d.ts +1 -0
  2. package/dist/contexts/EnvironmentContext/index.d.ts.map +1 -0
  3. package/dist/contexts/EnvironmentContext/types.d.ts +1 -0
  4. package/dist/contexts/EnvironmentContext/types.d.ts.map +1 -0
  5. package/dist/contexts/FlagsContext/index.d.ts +1 -0
  6. package/dist/contexts/FlagsContext/index.d.ts.map +1 -0
  7. package/dist/contexts/FlagsContext/types.d.ts +1 -0
  8. package/dist/contexts/FlagsContext/types.d.ts.map +1 -0
  9. package/dist/contexts/HostToolsContext/index.d.ts +1 -0
  10. package/dist/contexts/HostToolsContext/index.d.ts.map +1 -0
  11. package/dist/contexts/HostToolsContext/types.d.ts +1 -0
  12. package/dist/contexts/HostToolsContext/types.d.ts.map +1 -0
  13. package/dist/contexts/ModuleDictionaryContext/index.d.ts +1 -0
  14. package/dist/contexts/ModuleDictionaryContext/index.d.ts.map +1 -0
  15. package/dist/contexts/ModuleDictionaryContext/types.d.ts +1 -0
  16. package/dist/contexts/ModuleDictionaryContext/types.d.ts.map +1 -0
  17. package/dist/contexts/ModulePrivilegesContext/index.d.ts +1 -0
  18. package/dist/contexts/ModulePrivilegesContext/index.d.ts.map +1 -0
  19. package/dist/contexts/ModulePrivilegesContext/types.d.ts +1 -0
  20. package/dist/contexts/ModulePrivilegesContext/types.d.ts.map +1 -0
  21. package/dist/contexts/ModuleSkeletonContext/index.d.ts +1 -0
  22. package/dist/contexts/ModuleSkeletonContext/index.d.ts.map +1 -0
  23. package/dist/contexts/ModuleSkeletonContext/types.d.ts +1 -0
  24. package/dist/contexts/ModuleSkeletonContext/types.d.ts.map +1 -0
  25. package/dist/contexts/NetworkContext/index.d.ts +1 -0
  26. package/dist/contexts/NetworkContext/index.d.ts.map +1 -0
  27. package/dist/contexts/NetworkContext/types.d.ts +1 -0
  28. package/dist/contexts/NetworkContext/types.d.ts.map +1 -0
  29. package/dist/contexts/index.d.ts +1 -0
  30. package/dist/contexts/index.d.ts.map +1 -0
  31. package/dist/external/axios.js +52 -11
  32. package/dist/hooks/index.d.ts +1 -0
  33. package/dist/hooks/index.d.ts.map +1 -0
  34. package/dist/hooks/useEnvironment/index.d.ts +1 -0
  35. package/dist/hooks/useEnvironment/index.d.ts.map +1 -0
  36. package/dist/hooks/useFlags/index.d.ts +1 -0
  37. package/dist/hooks/useFlags/index.d.ts.map +1 -0
  38. package/dist/hooks/useFlags/index.js +3 -1
  39. package/dist/hooks/useHostTools/index.d.ts +1 -0
  40. package/dist/hooks/useHostTools/index.d.ts.map +1 -0
  41. package/dist/hooks/useLocalStorage/index.d.ts +1 -0
  42. package/dist/hooks/useLocalStorage/index.d.ts.map +1 -0
  43. package/dist/hooks/useModuleDictionary/index.d.ts +1 -0
  44. package/dist/hooks/useModuleDictionary/index.d.ts.map +1 -0
  45. package/dist/hooks/useModulePrivileges/index.d.ts +1 -0
  46. package/dist/hooks/useModulePrivileges/index.d.ts.map +1 -0
  47. package/dist/hooks/useModuleSkeleton/index.d.ts +1 -0
  48. package/dist/hooks/useModuleSkeleton/index.d.ts.map +1 -0
  49. package/dist/hooks/useNetwork/index.d.ts +1 -0
  50. package/dist/hooks/useNetwork/index.d.ts.map +1 -0
  51. package/dist/hooks/usePaginate/index.d.ts +1 -0
  52. package/dist/hooks/usePaginate/index.d.ts.map +1 -0
  53. package/dist/hooks/usePaginate/types.d.ts +1 -0
  54. package/dist/hooks/usePaginate/types.d.ts.map +1 -0
  55. package/dist/index.d.ts +1 -0
  56. package/dist/index.d.ts.map +1 -0
  57. package/dist/types/dictionary.d.ts +1 -0
  58. package/dist/types/dictionary.d.ts.map +1 -0
  59. package/dist/types/index.d.ts +1 -0
  60. package/dist/types/index.d.ts.map +1 -0
  61. package/dist/utils/axiosOperation/index.d.ts +1 -0
  62. package/dist/utils/axiosOperation/index.d.ts.map +1 -0
  63. package/dist/utils/axiosOperation/types.d.ts +1 -0
  64. package/dist/utils/axiosOperation/types.d.ts.map +1 -0
  65. package/dist/utils/axiosOperation.js +3 -1
  66. package/dist/utils/getLocalStorage.d.ts +1 -0
  67. package/dist/utils/getLocalStorage.d.ts.map +1 -0
  68. package/dist/utils/getPropertyByString.d.ts +1 -0
  69. package/dist/utils/getPropertyByString.d.ts.map +1 -0
  70. package/dist/utils/index.d.ts +1 -0
  71. package/dist/utils/index.d.ts.map +1 -0
  72. package/dist/utils/setLocalStorage.d.ts +1 -0
  73. package/dist/utils/setLocalStorage.d.ts.map +1 -0
  74. package/dist/utils/voidFunction.d.ts +1 -0
  75. package/dist/utils/voidFunction.d.ts.map +1 -0
  76. package/package.json +7 -6
  77. package/README.md +0 -0
@@ -3,3 +3,4 @@ import { EnvironmentProviderProps } from './types';
3
3
  declare const EnvironmentContext: import("react").Context<import("../..").EnvironmentType>;
4
4
  declare function EnvironmentProvider(props: EnvironmentProviderProps): JSX.Element;
5
5
  export { EnvironmentProvider, EnvironmentContext };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":";AAOA,OAAO,EAA0B,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAsB3E,QAAA,MAAM,kBAAkB,0DAAsD,CAAC;AAE/E,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,eAW3D;AAED,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,CAAC"}
@@ -4,3 +4,4 @@ export interface EnvironmentProviderProps extends EnvironmentType {
4
4
  children: ReactNode;
5
5
  }
6
6
  export declare type EnvironmentContextType = EnvironmentType;
7
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,WAAW,wBAAyB,SAAQ,eAAe;IAC7D,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,oBAAY,sBAAsB,GAAG,eAAe,CAAC"}
@@ -3,3 +3,4 @@ import { FlagsContextProps, FlagsProviderProps } from './types';
3
3
  declare const FlagsContext: import("react").Context<FlagsContextProps>;
4
4
  declare function FlagsProvider({ children }: FlagsProviderProps): JSX.Element;
5
5
  export { FlagsProvider, FlagsContext };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,iBAAiB,EAAQ,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAUtE,QAAA,MAAM,YAAY,4CAAiD,CAAC;AAEpE,iBAAS,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,kBAAkB,eA2BtD;AAED,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC"}
@@ -8,3 +8,4 @@ export interface FlagsContextProps {
8
8
  clearFlags: () => void;
9
9
  addFlag: (flag: Flag) => void;
10
10
  }
11
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,oBAAY,IAAI,GAAG,MAAM,CAAC;AAI1B,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACjC"}
@@ -4,3 +4,4 @@ import type { HostToolsProviderProps } from './types';
4
4
  declare const HostToolsContext: import("react").Context<HostToolsType>;
5
5
  declare function HostToolsProvider(props: HostToolsProviderProps): JSX.Element;
6
6
  export { HostToolsProvider, HostToolsContext };
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAS5C,OAAO,KAAK,EAAwB,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAc5E,QAAA,MAAM,gBAAgB,wCAAoD,CAAC;AAE3E,iBAAS,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,eAMvD;AAED,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,CAAC"}
@@ -4,3 +4,4 @@ export interface HostToolsProviderProps extends HostToolsType {
4
4
  children: ReactNode;
5
5
  }
6
6
  export declare type HostToolsContextType = HostToolsType;
7
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IACzD,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,oBAAY,oBAAoB,GAAG,aAAa,CAAC"}
@@ -3,3 +3,4 @@ import { ModuleDictionaryContextProps, ModuleDictionaryProviderProps } from './t
3
3
  declare const ModuleDictionaryContext: import("react").Context<ModuleDictionaryContextProps>;
4
4
  declare function ModuleDictionaryProvider(props: ModuleDictionaryProviderProps): JSX.Element;
5
5
  export { ModuleDictionaryProvider, ModuleDictionaryContext };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAWtF,QAAA,MAAM,uBAAuB,uDAA4D,CAAC;AAE1F,iBAAS,wBAAwB,CAAC,KAAK,EAAE,6BAA6B,eAqFrE;AAED,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,CAAC"}
@@ -13,3 +13,4 @@ export interface ModuleDictionaryContextProps {
13
13
  getLabel: GetLabelType;
14
14
  getModuleLabel: () => string;
15
15
  }
16
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG7E,MAAM,WAAW,6BAA6B;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IACzC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,QAAQ,EAAE,YAAY,CAAC;IACvB,cAAc,EAAE,MAAM,MAAM,CAAC;CAChC"}
@@ -3,3 +3,4 @@ import { ModulePrivilegesContextProps, ModulePrivilegesProviderProps } from './t
3
3
  declare const ModulePrivilegesContext: import("react").Context<ModulePrivilegesContextProps>;
4
4
  declare function ModulePrivilegesProvider(props: ModulePrivilegesProviderProps): JSX.Element;
5
5
  export { ModulePrivilegesProvider, ModulePrivilegesContext };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAWtF,QAAA,MAAM,uBAAuB,uDAA4D,CAAC;AAE1F,iBAAS,wBAAwB,CAAC,KAAK,EAAE,6BAA6B,eAgErE;AAED,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,CAAC"}
@@ -7,3 +7,4 @@ export interface ModulePrivilegesContextProps {
7
7
  privileges: Record<string, boolean>;
8
8
  hasPrivilege: (id: string) => boolean;
9
9
  }
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,MAAM,WAAW,6BAA6B;IAC1C,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IACzC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;CACzC"}
@@ -3,3 +3,4 @@ import { ModuleSkeletonContextProps, ModuleSkeletonProviderProps } from './types
3
3
  declare const ModuleSkeletonContext: import("react").Context<ModuleSkeletonContextProps>;
4
4
  declare function ModuleSkeletonProvider(props: ModuleSkeletonProviderProps): JSX.Element;
5
5
  export { ModuleSkeletonProvider, ModuleSkeletonContext };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAUlF,QAAA,MAAM,qBAAqB,qDAA0D,CAAC;AAEtF,iBAAS,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,eAYjE;AAED,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,CAAC"}
@@ -6,3 +6,4 @@ export interface ModuleSkeletonProviderProps {
6
6
  export interface ModuleSkeletonContextProps {
7
7
  isSkeleton: boolean;
8
8
  }
9
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,MAAM,WAAW,2BAA2B;IACxC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,MAAM,WAAW,0BAA0B;IACvC,UAAU,EAAE,OAAO,CAAC;CACvB"}
@@ -3,3 +3,4 @@ import type { NetworkProviderProps } from './types';
3
3
  declare const NetworkContext: import("react").Context<import("./types").NetworkType>;
4
4
  declare function NetworkProvider(props: NetworkProviderProps): JSX.Element;
5
5
  export { NetworkProvider, NetworkContext };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":";AAUA,OAAO,KAAK,EAAsB,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAQxE,QAAA,MAAM,cAAc,wDAAkD,CAAC;AAEvE,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,eAqBnD;AAED,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
@@ -9,3 +9,4 @@ export interface NetworkProviderProps {
9
9
  children: ReactNode;
10
10
  }
11
11
  export declare type NetworkContextType = NetworkType;
12
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3D,oBAAY,gBAAgB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAExD,MAAM,WAAW,WAAW;IACxB,gBAAgB,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW,oBAAoB;IACjC,cAAc,EAAE,cAAc,CAAC;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,oBAAY,kBAAkB,GAAG,WAAW,CAAC"}
@@ -5,3 +5,4 @@ export { FlagsContext, FlagsProvider } from './FlagsContext';
5
5
  export { ModuleDictionaryContext, ModuleDictionaryProvider } from './ModuleDictionaryContext';
6
6
  export { ModulePrivilegesContext, ModulePrivilegesProvider } from './ModulePrivilegesContext';
7
7
  export { ModuleSkeletonContext, ModuleSkeletonProvider } from './ModuleSkeletonContext';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC9F,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -410,7 +410,13 @@ var settle$1 = function settle(resolve, reject, response) {
410
410
  if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
411
411
  resolve(response);
412
412
  } else {
413
- reject(new AxiosError$4("Request failed with status code " + response.status, [AxiosError$4.ERR_BAD_REQUEST, AxiosError$4.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));
413
+ reject(new AxiosError$4(
414
+ "Request failed with status code " + response.status,
415
+ [AxiosError$4.ERR_BAD_REQUEST, AxiosError$4.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
416
+ response.config,
417
+ response.request,
418
+ response
419
+ ));
414
420
  }
415
421
  };
416
422
  var utils$b = utils$h;
@@ -648,7 +654,12 @@ var xhr = function xhrAdapter(config) {
648
654
  if (config.timeoutErrorMessage) {
649
655
  timeoutErrorMessage = config.timeoutErrorMessage;
650
656
  }
651
- reject(new AxiosError$2(timeoutErrorMessage, transitional3.clarifyTimeoutError ? AxiosError$2.ETIMEDOUT : AxiosError$2.ECONNABORTED, config, request2));
657
+ reject(new AxiosError$2(
658
+ timeoutErrorMessage,
659
+ transitional3.clarifyTimeoutError ? AxiosError$2.ETIMEDOUT : AxiosError$2.ECONNABORTED,
660
+ config,
661
+ request2
662
+ ));
652
663
  request2 = null;
653
664
  };
654
665
  if (utils$7.isStandardBrowserEnv()) {
@@ -838,21 +849,43 @@ function throwIfCancellationRequested(config) {
838
849
  var dispatchRequest$1 = function dispatchRequest(config) {
839
850
  throwIfCancellationRequested(config);
840
851
  config.headers = config.headers || {};
841
- config.data = transformData2.call(config, config.data, config.headers, config.transformRequest);
842
- config.headers = utils$4.merge(config.headers.common || {}, config.headers[config.method] || {}, config.headers);
843
- utils$4.forEach(["delete", "get", "head", "post", "put", "patch", "common"], function cleanHeaderConfig(method) {
844
- delete config.headers[method];
845
- });
852
+ config.data = transformData2.call(
853
+ config,
854
+ config.data,
855
+ config.headers,
856
+ config.transformRequest
857
+ );
858
+ config.headers = utils$4.merge(
859
+ config.headers.common || {},
860
+ config.headers[config.method] || {},
861
+ config.headers
862
+ );
863
+ utils$4.forEach(
864
+ ["delete", "get", "head", "post", "put", "patch", "common"],
865
+ function cleanHeaderConfig(method) {
866
+ delete config.headers[method];
867
+ }
868
+ );
846
869
  var adapter = config.adapter || defaults$1.adapter;
847
870
  return adapter(config).then(function onAdapterResolution(response) {
848
871
  throwIfCancellationRequested(config);
849
- response.data = transformData2.call(config, response.data, response.headers, config.transformResponse);
872
+ response.data = transformData2.call(
873
+ config,
874
+ response.data,
875
+ response.headers,
876
+ config.transformResponse
877
+ );
850
878
  return response;
851
879
  }, function onAdapterRejection(reason) {
852
880
  if (!isCancel2(reason)) {
853
881
  throwIfCancellationRequested(config);
854
882
  if (reason && reason.response) {
855
- reason.response.data = transformData2.call(config, reason.response.data, reason.response.headers, config.transformResponse);
883
+ reason.response.data = transformData2.call(
884
+ config,
885
+ reason.response.data,
886
+ reason.response.headers,
887
+ config.transformResponse
888
+ );
856
889
  }
857
890
  }
858
891
  return Promise.reject(reason);
@@ -952,11 +985,19 @@ validators$1.transitional = function transitional2(validator2, version, message)
952
985
  }
953
986
  return function(value, opt, opts) {
954
987
  if (validator2 === false) {
955
- throw new AxiosError(formatMessage(opt, " has been removed" + (version ? " in " + version : "")), AxiosError.ERR_DEPRECATED);
988
+ throw new AxiosError(
989
+ formatMessage(opt, " has been removed" + (version ? " in " + version : "")),
990
+ AxiosError.ERR_DEPRECATED
991
+ );
956
992
  }
957
993
  if (version && !deprecatedWarnings[opt]) {
958
994
  deprecatedWarnings[opt] = true;
959
- console.warn(formatMessage(opt, " has been deprecated since v" + version + " and will be removed in the near future"));
995
+ console.warn(
996
+ formatMessage(
997
+ opt,
998
+ " has been deprecated since v" + version + " and will be removed in the near future"
999
+ )
1000
+ );
960
1001
  }
961
1002
  return validator2 ? validator2(value, opt, opts) : true;
962
1003
  };
@@ -9,3 +9,4 @@ export { useNetwork } from './useNetwork';
9
9
  export { usePaginate } from './usePaginate';
10
10
  export type { PagerState } from './usePaginate/types';
11
11
  export { initialPagerState } from './usePaginate/types';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export declare const useEnvironment: () => import("../..").EnvironmentType;
2
2
  export default useEnvironment;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,uCAM1B,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import type { Flag, FlagsContextProps } from '../../contexts/FlagsContext/types';
2
2
  export declare const useFlags: () => FlagsContextProps;
3
3
  export declare const useFlagsPresent: (compareFlags: Array<Flag>) => boolean;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAGjF,eAAO,MAAM,QAAQ,QAAO,iBAM3B,CAAC;AAWF,eAAO,MAAM,eAAe,iBAAkB,MAAM,IAAI,CAAC,KAAG,OAY3D,CAAC"}
@@ -7,7 +7,9 @@ const useFlags = () => {
7
7
  return context;
8
8
  };
9
9
  function isFlagsPresent(compareFlags, flags) {
10
- const filterFlags = compareFlags.filter((findFlag) => flags.findIndex((sFlag) => sFlag === findFlag) !== -1);
10
+ const filterFlags = compareFlags.filter(
11
+ (findFlag) => flags.findIndex((sFlag) => sFlag === findFlag) !== -1
12
+ );
11
13
  return filterFlags.length === compareFlags.length;
12
14
  }
13
15
  const useFlagsPresent = (compareFlags) => {
@@ -1,2 +1,3 @@
1
1
  export declare const useHostTools: () => import("../..").HostToolsType;
2
2
  export default useHostTools;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,qCAMxB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare function useLocalStorage<ValueType>(key: string, initialValue: ValueType): any[];
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,SAoB9E"}
@@ -1 +1,2 @@
1
1
  export declare const useModuleDictionary: () => import("../../contexts/ModuleDictionaryContext/types").ModuleDictionaryContextProps;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,2FAM/B,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const useModulePrivileges: () => import("../../contexts/ModulePrivilegesContext/types").ModulePrivilegesContextProps;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,2FAM/B,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const useModuleSkeleton: () => boolean;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,eAM7B,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export declare const useNetwork: () => import("../../contexts/NetworkContext/types").NetworkType;
2
2
  export default useNetwork;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,iEAMtB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -8,3 +8,4 @@ export declare const usePaginate: <TRow>(props: UsePaginateProps) => {
8
8
  clearRows: () => void;
9
9
  Refresh: () => void;
10
10
  };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAqB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAI1C,eAAO,MAAM,WAAW,gBAAiB,gBAAgB;4BA0EtB,MAAM;0CAMQ,MAAM;;;;;CAgBtD,CAAC"}
@@ -10,3 +10,4 @@ export interface UsePaginateProps {
10
10
  fireOnChangeParms?: boolean;
11
11
  queryParams?: Record<string, unknown>;
12
12
  }
13
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,UAAU;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,iBAAiB,EAAE,UAI/B,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC"}
package/dist/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export { EmitEvents } from './types';
4
4
  export type { Maybe, HostToolsType, NetworkProps, EnvironmentType, AxiosOperation, EventFunListener, } from './types';
5
5
  export type { GetLabelType, Dictionary, ModuleDictionary, ComponentDictionary, } from './types/dictionary';
6
6
  export * from './utils';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAG3B,cAAc,SAAS,CAAC;AASxB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,YAAY,EACR,KAAK,EACL,aAAa,EACb,YAAY,EACZ,eAAe,EACf,cAAc,EACd,gBAAgB,GACnB,MAAM,SAAS,CAAC;AAEjB,YAAY,EACR,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,mBAAmB,GACtB,MAAM,oBAAoB,CAAC;AAG5B,cAAc,SAAS,CAAC"}
@@ -11,3 +11,4 @@ export interface DataDictionary extends ComponentDictionary {
11
11
  export interface ModuleDictionary extends Dictionary {
12
12
  data: DataDictionary;
13
13
  }
14
+ //# sourceMappingURL=dictionary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["dictionary.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;AAEnD,MAAM,WAAW,mBAAmB;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;CACrE;AAED,MAAM,WAAW,cAAe,SAAQ,mBAAmB;IACvD,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAChD,IAAI,EAAE,cAAc,CAAC;CACxB"}
@@ -47,3 +47,4 @@ export declare enum EmitEvents {
47
47
  EMMIT_EVENT_HOST_THEME_CHANGE = "host_theme_change"
48
48
  }
49
49
  export declare type AxiosOperation = (props: NetworkProps, enviroment: EnvironmentType, hostTools: HostToolsType) => Promise<any>;
50
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,CAAC,OAAO,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC;AACpD,MAAM,CAAC,OAAO,WAAW,SAAS;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe;IACpC,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAE3B,UAAU,EAAE,SAAS,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,MAAM,YAAY,GAAG;IAC/B,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IACpD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,CAAC,OAAO,MAAM,aAAa,GAAG,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,EAAE,CAAC;AAC1F,MAAM,CAAC,OAAO,MAAM,gBAAgB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;AAEhE,MAAM,CAAC,OAAO,WAAW,aAAa;IAClC,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,KAAK,EAAE,aAAa,CAAC;IACrB,aAAa,EAAE,YAAY,CAAC;IAC5B,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC;IAE3E,mBAAmB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC5E,sBAAsB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACtF,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;CACtD;AAGD,oBAAY,UAAU;IAClB,oCAAoC,2BAA2B;IAC/D,6BAA6B,sBAAsB;CACtD;AAED,MAAM,CAAC,OAAO,MAAM,cAAc,GAAG,CACjC,KAAK,EAAE,YAAY,EACnB,UAAU,EAAE,eAAe,EAC3B,SAAS,EAAE,aAAa,KACvB,OAAO,CAAC,GAAG,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
1
  import type { EnvironmentType, HostToolsType, NetworkProps } from '../../types';
2
2
  export declare const axiosOperation: (props: NetworkProps, enviroment: EnvironmentType, hostTools: HostToolsType) => Promise<any>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAiGhF,eAAO,MAAM,cAAc,UAChB,YAAY,cACP,eAAe,aAChB,aAAa,KACzB,QAAQ,GAAG,CA6Cb,CAAC"}
@@ -3,3 +3,4 @@ export declare type AxiosOperationError = {
3
3
  status: number;
4
4
  code: string | number;
5
5
  };
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAC"}
@@ -29,7 +29,8 @@ function getError(error, hostTools, checkUnAuthorized = true) {
29
29
  console.log("getError", error);
30
30
  if (error?.code !== void 0 && err.status !== void 0 && error.message !== void 0) {
31
31
  err = { ...err, ...error };
32
- } else if (error?.response) {
32
+ }
33
+ if (error?.response) {
33
34
  if (error.response.data && typeof error.response.data === "object" && error.response.data.error && error.response.data.error?.code && error.response.data.error?.message !== void 0) {
34
35
  err = { ...error.response.data.error, status: error.response.status };
35
36
  } else {
@@ -70,6 +71,7 @@ const axiosOperation = async (props, enviroment, hostTools) => {
70
71
  } else {
71
72
  baseURL = enviroment.host_api_local;
72
73
  }
74
+ console.log("Prueba m4l/core,2");
73
75
  hostTools.startProgress();
74
76
  return axios({
75
77
  baseURL,
@@ -1 +1,2 @@
1
1
  export declare function getLocalStorage<ValueType>(key: string, initialValue: ValueType): ValueType;
2
+ //# sourceMappingURL=getLocalStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLocalStorage.d.ts","sourceRoot":"","sources":["getLocalStorage.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,GAAG,SAAS,CAO1F"}
@@ -1 +1,2 @@
1
1
  export declare function getPropertyByString(object: Record<string, unknown>, propString: string): any;
2
+ //# sourceMappingURL=getPropertyByString.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPropertyByString.d.ts","sourceRoot":"","sources":["getPropertyByString.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,EAAE,MAAM,OAStF"}
@@ -3,3 +3,4 @@ export { getPropertyByString } from './getPropertyByString';
3
3
  export { getLocalStorage } from './getLocalStorage';
4
4
  export { setLocalStorage } from './setLocalStorage';
5
5
  export { axiosOperation } from './axiosOperation';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare function setLocalStorage<ValueType>(key: string, value: ValueType): void;
2
+ //# sourceMappingURL=setLocalStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setLocalStorage.d.ts","sourceRoot":"","sources":["setLocalStorage.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,QAWvE"}
@@ -1 +1,2 @@
1
1
  export declare function voidFunction(): void;
2
+ //# sourceMappingURL=voidFunction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"voidFunction.d.ts","sourceRoot":"","sources":["voidFunction.ts"],"names":[],"mappings":"AACA,wBAAgB,YAAY,SAAK"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@m4l/core",
3
3
  "private": false,
4
- "version": "0.0.42",
4
+ "version": "0.0.43",
5
5
  "license": "UNLICENSED",
6
6
  "author": "M4L Team",
7
7
  "scripts": {
8
- "dev": "vite",
8
+ "dev1": "vite",
9
9
  "build": "tsc && vite build",
10
10
  "preview": "vite preview",
11
11
  "lint": "npx eslint src",
@@ -59,18 +59,20 @@
59
59
  "vite": "^2.9.9",
60
60
  "vite-plugin-dts": "^1.2.0",
61
61
  "vite-plugin-mkcert": "^1.6.4",
62
- "vitest": "^0.15.2"
62
+ "vitest": "^0.15.2",
63
+ "m4l_tsconfig": "*"
64
+
63
65
  },
64
66
  "files": [
65
67
  "dist"
66
68
  ],
67
- "main": "./dist/index.js",
69
+ "main": "./src/index.ts",
68
70
  "module": "./dist/index.js",
69
71
  "type": "module",
70
72
  "types": "./dist/index.d.ts",
71
73
  "exports": {
72
74
  ".": {
73
- "import": "./dist/index.js"
75
+ "import": "./src/index.ts"
74
76
  }
75
77
  },
76
78
  "sideEffects": false,
@@ -80,5 +82,4 @@
80
82
  "engines": {
81
83
  "node": ">=12.0.0"
82
84
  }
83
-
84
85
  }
package/README.md DELETED
File without changes