etiquetas.js 1.0.0-alpha.16 → 1.0.0-alpha.18

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/README.md CHANGED
@@ -17,7 +17,8 @@ import etiquetas from 'etiquetas.js';
17
17
 
18
18
  // Inicializar o sistema
19
19
  etiquetas.init({
20
- token: '<jwt-token>'
20
+ token: '<jwt-token>',
21
+ baseURL: 'https://api.exemplo.com' // Opcional: URL base da API personalizada
21
22
  });
22
23
  ```
23
24
 
@@ -27,7 +28,14 @@ etiquetas.init({
27
28
 
28
29
  ```javascript
29
30
  // Inicializar sistema
30
- etiquetas.init(config);
31
+ etiquetas.init({
32
+ token: '<jwt-token>', // Token JWT para autenticação
33
+ baseURL: 'https://api.exemplo.com', // URL base da API personalizada (opcional)
34
+ autoConnectPrinter: true, // Auto-conectar ao SSE da impressora (padrão: true)
35
+ defaultTransformer: { // Configuração do transformer (opcional)
36
+ fieldMap: 'legacy' // Opções: 'legacy', 'custom', 'none'
37
+ }
38
+ });
31
39
 
32
40
 
33
41
  // Verificar status da impressora
@@ -1,4 +1,4 @@
1
- import { a3, b, j, L, N, M, R, U, Q, a9, F, H, K, W, X, k, V, ab, E, I, y, T, Y, B, l, aa, a2, $, a6, a7, o, h, ac, a1, d, n, p, v, e, f, i, t, r, a5, C, D, q, G, w, a0, a8, P, s, S, x, O, z, J, Z, a4, u, m, A } from "./index-CrFIiiLi.js";
1
+ import { a3, b, j, L, N, M, R, U, Q, a9, F, H, K, W, X, k, V, ab, E, I, y, T, Y, B, l, aa, a2, $, a6, a7, o, h, ac, a1, d, n, p, v, e, f, i, t, r, a5, C, D, q, G, w, a0, a8, P, s, S, x, O, z, J, Z, a4, u, m, A } from "./index-CS5-IIIw.js";
2
2
  export {
3
3
  a3 as DEFAULT_LAMINATION_COLORS,
4
4
  b as LABEL_TYPES,