adpro-react 0.0.41 → 0.0.42

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.
@@ -1,5 +1,11 @@
1
1
  import { RequestADPROProps } from './interfaces/RequestADPROProps';
2
2
  export declare const RequestADPRO: RequestADPROProps;
3
3
  export declare const getAuthorization: (data: Window) => Promise<string>;
4
+ /**
5
+ * Obtiene el token de autorización propio de SincoERP (header `X-SincoERP-Authorization`).
6
+ * Busca la función `getTokenAuth` hacia arriba en la jerarquía de ventanas (iframes/opener),
7
+ * replicando el comportamiento del fetch legacy. Devuelve "" si no la encuentra.
8
+ */
9
+ export declare const getSincoERPAuthorization: (data: Window) => string;
4
10
  export default RequestADPRO;
5
11
  //# sourceMappingURL=RequestADPRO.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestADPRO.d.ts","sourceRoot":"","sources":["../../../src/methods/requestADPRO/RequestADPRO.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAMnE,eAAO,MAAM,YAAY,EAAE,iBAiE1B,CAAC;AAmBF,eAAO,MAAM,gBAAgB,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,MAAM,CAuBnE,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"RequestADPRO.d.ts","sourceRoot":"","sources":["../../../src/methods/requestADPRO/RequestADPRO.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAMnE,eAAO,MAAM,YAAY,EAAE,iBAoE1B,CAAC;AAmBF,eAAO,MAAM,gBAAgB,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,MAAM,CAuBnE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,KAAG,MAsBvD,CAAC;AAEF,eAAe,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adpro-react",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "author": "Joel Mateo Robles Atuesta",
5
5
  "main": "dist/adpro-react.cjs.js",
6
6
  "module": "dist/adpro-react.es.js",