@tiendanube/logistics-http-client 6.0.0-rc.7 → 6.1.0-rc.0
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 +338 -0
- package/dist/client-error.d.ts +12 -0
- package/dist/client-error.js +14 -1
- package/dist/client-error.js.map +1 -1
- package/dist/http-client.d.ts +11 -0
- package/dist/http-client.js.map +1 -1
- package/dist/logistics-http-client.d.ts +12 -0
- package/dist/logistics-http-client.js +87 -3
- package/dist/logistics-http-client.js.map +1 -1
- package/dist/ne-service-token-provider.d.ts +36 -0
- package/dist/ne-service-token-provider.js +174 -0
- package/dist/ne-service-token-provider.js.map +1 -0
- package/dist/origin.d.ts +1 -0
- package/dist/origin.js +17 -0
- package/dist/origin.js.map +1 -0
- package/dist/remove-authorization.d.ts +2 -0
- package/dist/remove-authorization.js +28 -0
- package/dist/remove-authorization.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ Biblioteca responsável por executar requisições HTTP com mecanismos de retry,
|
|
|
16
16
|
- [Configuração de Métricas](#configuração-de-métricas)
|
|
17
17
|
- [Métrica Emitida](#métrica-emitida)
|
|
18
18
|
- [Configuração de Logs](#configuração-de-logs)
|
|
19
|
+
- [Autenticação entre serviços](#autenticação-entre-serviços)
|
|
19
20
|
- [Otimizações de Performance](#otimizações-de-performance)
|
|
20
21
|
- [Migração 5.x → 6.0.0](#migração-5x--600)
|
|
21
22
|
- [Contribuindo](#contribuindo)
|
|
@@ -128,6 +129,8 @@ O parâmetro `logger` deve implementar a interface `Logger`, compatível com log
|
|
|
128
129
|
interface Logger {
|
|
129
130
|
info(obj: unknown, msg?: string, ...args: any[]): void;
|
|
130
131
|
error(obj: unknown, msg?: string, ...args: any[]): void;
|
|
132
|
+
warn?(obj: unknown, msg?: string, ...args: any[]): void;
|
|
133
|
+
debug?(obj: unknown, msg?: string, ...args: any[]): void;
|
|
131
134
|
}
|
|
132
135
|
```
|
|
133
136
|
|
|
@@ -316,6 +319,9 @@ try {
|
|
|
316
319
|
}
|
|
317
320
|
```
|
|
318
321
|
|
|
322
|
+
Falhas de autorização entre serviços lançam `NeServiceAuthError`, que **não** é um `ClientError`: veja
|
|
323
|
+
[`NeServiceAuthError`](#neserviceautherror).
|
|
324
|
+
|
|
319
325
|
## Parâmetros de Path
|
|
320
326
|
|
|
321
327
|
Use parâmetros de path para construção dinâmica de URLs:
|
|
@@ -557,6 +563,338 @@ alteração.
|
|
|
557
563
|
|
|
558
564
|
Sem essas listas, nada é mascarado. Headers **nunca** são logados.
|
|
559
565
|
|
|
566
|
+
## Autenticação entre serviços
|
|
567
|
+
|
|
568
|
+
Disponível a partir da versão 6.1.0. Os microsserviços da Nuvem Envio exigem um token do Keycloak (OAuth 2.0, fluxo **Client Credentials**) nas chamadas
|
|
569
|
+
entre si. Com a opção `neServiceAuth`, o client obtém, guarda e envia esse token no header `Authorization: Bearer`.
|
|
570
|
+
**Sem `neServiceAuth` nada muda**: nenhum token é buscado nem enviado e a atualização da biblioteca é transparente.
|
|
571
|
+
|
|
572
|
+
```ts
|
|
573
|
+
type NeServiceAuthOptions = {
|
|
574
|
+
realmUrl: string;
|
|
575
|
+
clientId: string;
|
|
576
|
+
clientSecret: string;
|
|
577
|
+
allowedOrigins: string[];
|
|
578
|
+
skipByDefault?: boolean;
|
|
579
|
+
expectedTokenLifespanInSeconds?: number;
|
|
580
|
+
};
|
|
581
|
+
```
|
|
582
|
+
|
|
583
|
+
| Opção | Onde | Padrão | Descrição |
|
|
584
|
+
| ----------------------------- | ------- | --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
585
|
+
| `neServiceAuth` | client | — (sem autenticação) | Credenciais do Keycloak. Com ela, toda request para uma origem de `allowedOrigins` tenta levar o token |
|
|
586
|
+
| `neServiceAuth.realmUrl` | client | — (obrigatório) | URL do realm, igual ao emissor (`iss`) do token. Ex.: `https://sso-hml.mandae.com.br/realms/mandae`. A lib não traz padrão |
|
|
587
|
+
| `neServiceAuth.clientId` | client | — (obrigatório) | Client do MS chamador no Keycloak |
|
|
588
|
+
| `neServiceAuth.clientSecret` | client | — (obrigatório) | Secret do client. Guarde no AWS Secrets Manager; a lib não lê variáveis de ambiente |
|
|
589
|
+
| `neServiceAuth.allowedOrigins` | client | — (obrigatório) | Origens (`protocolo + host + porta`, o caminho é ignorado) que podem receber o token. Uma request para qualquer outra origem **nunca** leva o token, nem com `skipNeServiceAuth: false`. Lista não vazia de URLs absolutas; senão o construtor lança `NeServiceAuthError` |
|
|
590
|
+
| `neServiceAuth.skipByDefault` | client | `false` | `true` inverte o padrão: nenhuma request busca ou envia o token, exceto as com `skipNeServiceAuth: false`. Adoção opt-in por chamada |
|
|
591
|
+
| `neServiceAuth.expectedTokenLifespanInSeconds` | client | `28800` (8 h) | Vida do token que o client do Keycloak deve emitir. Um `expires_in` menor gera `warn` a cada emissão. Número positivo; outro valor lança `NeServiceAuthError`. Só alerta: não muda o cache nem a renovação |
|
|
592
|
+
| `neServiceAuthRequired` | request | `false` | `true` torna o token **obrigatório** nesta request |
|
|
593
|
+
| `skipNeServiceAuth` | request | `neServiceAuth.skipByDefault` (`false`) | `true` não busca nem envia o token (APIs externas). Vence `neServiceAuthRequired`. `false` explícito envia o token mesmo com `skipByDefault: true` |
|
|
594
|
+
|
|
595
|
+
Um campo ausente ou vazio (`undefined`, `null` ou `''`) em `neServiceAuth`, ou uma `allowedOrigins` que não seja uma lista
|
|
596
|
+
não vazia de URLs absolutas, faz o construtor lançar `NeServiceAuthError`
|
|
597
|
+
(`errorCode: 'invalid_configuration'`), então o erro aparece no boot do MS. Isso pega, por exemplo, uma variável de
|
|
598
|
+
ambiente não preenchida no Helm.
|
|
599
|
+
|
|
600
|
+
### Como o token é obtido
|
|
601
|
+
|
|
602
|
+
Visão geral entre os serviços:
|
|
603
|
+
|
|
604
|
+
```mermaid
|
|
605
|
+
sequenceDiagram
|
|
606
|
+
participant A as MS chamador
|
|
607
|
+
participant L as logistics-http-client
|
|
608
|
+
participant K as Keycloak
|
|
609
|
+
participant D as MS destino
|
|
610
|
+
|
|
611
|
+
A->>L: get(url, skipNeServiceAuth false, neServiceAuthRequired true)
|
|
612
|
+
L->>K: client_credentials (só sem token válido ou a cada 1 h)
|
|
613
|
+
K-->>L: access_token, TTL 8 h
|
|
614
|
+
L->>D: GET url com Authorization Bearer
|
|
615
|
+
D->>K: JWKS do realm (cache)
|
|
616
|
+
D->>D: valida assinatura e emissor
|
|
617
|
+
D-->>L: 200 ou 401
|
|
618
|
+
L-->>A: resposta ou ClientError
|
|
619
|
+
Note over L,K: Keycloak fora: o token em cache segue valendo até o fim do TTL (~7 h com o padrão de 8 h)
|
|
620
|
+
```
|
|
621
|
+
|
|
622
|
+
- O token é guardado em memória, **um por instância** do client, e reaproveitado entre as requests. O Keycloak não é
|
|
623
|
+
chamado a cada request.
|
|
624
|
+
- O token dura 8 h por padrão (configurado no client do Keycloak; a lib só avisa se vier menos, veja `expectedTokenLifespanInSeconds`) e é **renovado em segundo plano a cada 1 h**: nenhuma request
|
|
625
|
+
espera a renovação enquanto houver token válido. Se a renovação falhar, o token atual segue em uso, a falha é registrada em `warn` e a renovação só é tentada de novo 1 h depois.
|
|
626
|
+
Um token a menos de 30 s de vencer é tratado como inválido. Uma renovação cuja resposta venha sem `expires_in` não
|
|
627
|
+
substitui o token atual.
|
|
628
|
+
- Se a obtenção do token falhar numa request que não tinha token válido, as requests dos 10 s seguintes recebem o mesmo
|
|
629
|
+
`NeServiceAuthError` sem chamar o Keycloak. Assim, uma queda do Keycloak não soma até 5 s a cada request nem gera
|
|
630
|
+
uma chamada ao Keycloak por request. Passados os 10 s, uma nova obtenção é tentada.
|
|
631
|
+
- Requests simultâneas sem token compartilham uma única chamada ao Keycloak.
|
|
632
|
+
- Um token vale para todos os destinos de `allowedOrigins`. Uma request para outra origem não busca nem envia o token e
|
|
633
|
+
mantém o `Authorization` do chamador, sem `warn` (chamar APIs externas é normal). Com `neServiceAuthRequired: true` ela
|
|
634
|
+
lança `NeServiceAuthError` com `errorCode: 'origin_not_allowed'` e não chama o destino. A comparação é pela origem
|
|
635
|
+
normalizada (`HTTPS://API.com:443/x` e `https://api.com` são a mesma), depois de aplicar `pathParams`; uma URL
|
|
636
|
+
que não seja absoluta conta como fora da lista.
|
|
637
|
+
- O token enviado **substitui** qualquer `Authorization` informado pela request, em qualquer grafia, sem alterar o
|
|
638
|
+
objeto de `headers` do chamador.
|
|
639
|
+
- Quando a lib envia o token, ela força `maxRedirects: 0`: um redirect (3xx) volta como resposta e o `validateStatus`
|
|
640
|
+
da request decide o que fazer. O token nunca é reenviado para outro destino.
|
|
641
|
+
|
|
642
|
+
Fluxo da obtenção do token (`NeServiceTokenProvider`):
|
|
643
|
+
|
|
644
|
+
```mermaid
|
|
645
|
+
flowchart TD
|
|
646
|
+
A["getAccessToken"] --> B{"Token em cache<br/>com mais de 30 s de validade?"}
|
|
647
|
+
B -- "sim" --> C{"Idade do token maior que 1 h<br/>e sem renovação em andamento?"}
|
|
648
|
+
C -- "não" --> R["Devolve o token em cache"]
|
|
649
|
+
C -- "sim" --> D["Dispara renovação em segundo plano<br/>não bloqueia a request"] --> R
|
|
650
|
+
B -- "não" --> E{"Já existe chamada ao Keycloak<br/>em andamento?"}
|
|
651
|
+
E -- "sim" --> F["Aguarda a mesma chamada<br/>sem chamadas concorrentes"]
|
|
652
|
+
E -- "não" --> G["POST realm/protocol/openid-connect/token<br/>grant_type = client_credentials<br/>sem retry"]
|
|
653
|
+
G --> H{"Resposta"}
|
|
654
|
+
H -- "200 com access_token" --> I["Guarda em memória<br/>1 token por instância<br/>info sem o token"] --> R
|
|
655
|
+
H -- "erro, timeout ou resposta inválida" --> J["NeServiceAuthError<br/>sem cause e sem secret"]
|
|
656
|
+
F --> H
|
|
657
|
+
|
|
658
|
+
D -. "falha da renovação" .-> K["warn no máximo 1 por hora<br/>token atual segue valendo<br/>nova tentativa 1 h depois"]
|
|
659
|
+
```
|
|
660
|
+
|
|
661
|
+
### Modos da request
|
|
662
|
+
|
|
663
|
+
| Request | Client sem `neServiceAuth` | Client com `neServiceAuth`, token obtido | Client com `neServiceAuth`, obtenção falhou |
|
|
664
|
+
| ------------------------------------------- | -------------------------------------------------------------------------- | ---------------------------------------- | --------------------------------------------------------------------- |
|
|
665
|
+
| Sem opções (melhor esforço) | Como hoje | Envia o token | Segue **sem** token e registra `warn` |
|
|
666
|
+
| `neServiceAuthRequired: true` (obrigatório) | Segue sem token e registra `warn` `not_configured` (uma vez por instância) | Envia o token | Lança `NeServiceAuthError`, registra `warn` e **não** chama o destino |
|
|
667
|
+
| `skipNeServiceAuth: true` | Como hoje | Não busca nem envia o token | Não se aplica |
|
|
668
|
+
|
|
669
|
+
Não há opção separada para ignorar erros: o modo da request define se a falha de token é tolerada (melhor esforço) ou
|
|
670
|
+
não (obrigatório). A tabela vale para clients sem `skipByDefault`; com `skipByDefault: true` veja a
|
|
671
|
+
[precedência das opções](#precedência-das-opções).
|
|
672
|
+
|
|
673
|
+
### Precedência das opções
|
|
674
|
+
|
|
675
|
+
Três opções decidem se o token é buscado e enviado: `neServiceAuth.skipByDefault` (client), `skipNeServiceAuth` e
|
|
676
|
+
`neServiceAuthRequired` (request). A lib avalia **sempre nesta ordem**, e a primeira regra que se aplica encerra a
|
|
677
|
+
decisão:
|
|
678
|
+
|
|
679
|
+
1. **Pular?** O valor efetivo é `skipNeServiceAuth` da request **se definido**, senão `neServiceAuth.skipByDefault`,
|
|
680
|
+
senão `false` (`request ?? client`). Se for `true`, a lib não busca o token, não envia, mantém o `Authorization` do
|
|
681
|
+
chamador e **ignora `neServiceAuthRequired`**. Não registra `warn`, exceto `required_skipped_by_default` (uma vez por
|
|
682
|
+
instância) quando a request é obrigatória e não define `skipNeServiceAuth`. Fim.
|
|
683
|
+
2. **Client sem `neServiceAuth`?** Nenhum token existe. A request segue sem token; com `neServiceAuthRequired: true`
|
|
684
|
+
a lib registra `warn` `not_configured` (uma vez por instância). Fim.
|
|
685
|
+
3. **Origem fora de `allowedOrigins`?** A request segue sem token e com o `Authorization` do chamador, mesmo com
|
|
686
|
+
`skipNeServiceAuth: false`; com `neServiceAuthRequired: true` lança `NeServiceAuthError` (`origin_not_allowed`) e não
|
|
687
|
+
chama o destino. Fim.
|
|
688
|
+
4. **Buscar o token.** Com token válido, ele é enviado e substitui o `Authorization` do chamador. Sem token válido:
|
|
689
|
+
com `neServiceAuthRequired: true` a request lança `NeServiceAuthError` e não chama o destino; sem a opção, ela segue
|
|
690
|
+
sem token e registra `warn`.
|
|
691
|
+
|
|
692
|
+
Fluxo da decisão em cada request:
|
|
693
|
+
|
|
694
|
+
```mermaid
|
|
695
|
+
flowchart TD
|
|
696
|
+
A["MS chama httpClient.get / post / ..."] --> B{"skipNeServiceAuth da request<br/>definido?"}
|
|
697
|
+
B -- "sim" --> C{"valor"}
|
|
698
|
+
B -- "não, undefined" --> D{"neServiceAuth.skipByDefault<br/>do client"}
|
|
699
|
+
C -- "true" --> SKIP
|
|
700
|
+
C -- "false" --> E
|
|
701
|
+
D -- "true" --> SKIP
|
|
702
|
+
D -- "false ou ausente" --> E
|
|
703
|
+
|
|
704
|
+
SKIP["PULA: sem token, sem warn,<br/>Authorization do chamador preservado,<br/>neServiceAuthRequired ignorado<br/>com warn se for obrigatório e sem skip explícito"] --> SEND
|
|
705
|
+
|
|
706
|
+
E{"Client criado com<br/>neServiceAuth?"}
|
|
707
|
+
E -- "não" --> F{"neServiceAuthRequired?"}
|
|
708
|
+
F -- "sim" --> G["warn not_configured<br/>uma vez por instância"] --> SEND
|
|
709
|
+
F -- "não" --> SEND
|
|
710
|
+
E -- "sim" --> O{"Origem do destino<br/>em allowedOrigins?"}
|
|
711
|
+
O -- "não" --> P{"neServiceAuthRequired?"}
|
|
712
|
+
P -- "sim" --> Q["NeServiceAuthError origin_not_allowed<br/>destino NÃO é chamado"]
|
|
713
|
+
P -- "não" --> SEND
|
|
714
|
+
O -- "sim" --> H["getAccessToken"]
|
|
715
|
+
|
|
716
|
+
H --> I{"Token obtido?"}
|
|
717
|
+
I -- "sim" --> J["Authorization: Bearer token<br/>substitui o do chamador<br/>maxRedirects = 0"] --> SEND
|
|
718
|
+
I -- "não" --> K{"neServiceAuthRequired?"}
|
|
719
|
+
K -- "sim" --> L["warn + NeServiceAuthError<br/>destino NÃO é chamado"]
|
|
720
|
+
K -- "não" --> M["warn: segue sem token"] --> SEND
|
|
721
|
+
|
|
722
|
+
SEND["Executa a request<br/>retry, ErrorType, métrica e log neHttp<br/>inalterados"]
|
|
723
|
+
```
|
|
724
|
+
|
|
725
|
+
Combinações possíveis:
|
|
726
|
+
|
|
727
|
+
| `neServiceAuth.skipByDefault` (client) | `skipNeServiceAuth` (request) | Valor efetivo de pular | Resultado |
|
|
728
|
+
| -------------------------------------- | ----------------------------- | ---------------------- | ------------------------------------------------------------------------------ |
|
|
729
|
+
| `false` ou ausente | ausente (`undefined`) | não pula | Envia o token (melhor esforço, ou obrigatório com `neServiceAuthRequired`) |
|
|
730
|
+
| `false` ou ausente | `true` | pula | Sem token; `Authorization` do chamador preservado |
|
|
731
|
+
| `false` ou ausente | `false` | não pula | Igual à primeira linha |
|
|
732
|
+
| `true` | ausente (`undefined`) | pula | Sem token; `neServiceAuthRequired` é **ignorado** e registra `warn` |
|
|
733
|
+
| `true` | `false` | não pula | Envia o token (melhor esforço, ou obrigatório com `neServiceAuthRequired`) |
|
|
734
|
+
| `true` | `true` | pula | Sem token; `Authorization` do chamador preservado |
|
|
735
|
+
|
|
736
|
+
Regras para usar corretamente:
|
|
737
|
+
|
|
738
|
+
- **`undefined` não é `false`.** `skipNeServiceAuth: undefined` (campo ausente, ou variável sem valor) cai no
|
|
739
|
+
`skipByDefault` do client. Só um `false` explícito faz uma request enviar o token num client com
|
|
740
|
+
`skipByDefault: true`.
|
|
741
|
+
- **`skipByDefault: true` é adoção por chamada (opt-in).** Use-o no client compartilhado de um MS que tem destinos
|
|
742
|
+
internos ainda sem Keycloak (que estão em `allowedOrigins`): só as requests marcadas com `skipNeServiceAuth: false` buscam e enviam o
|
|
743
|
+
token. Sem ele (`false`, o padrão), o token vai em **todas** as requests para origens de `allowedOrigins`; as demais
|
|
744
|
+
origens nunca o recebem.
|
|
745
|
+
- **`neServiceAuthRequired: true` sozinho não basta com `skipByDefault: true`.** A request é pulada pela regra 1 e a
|
|
746
|
+
obrigatoriedade é ignorada, sem erro. A lib registra um `warn` `required_skipped_by_default` (uma vez por instância)
|
|
747
|
+
para sinalizar o engano. Em requests obrigatórias use sempre o par
|
|
748
|
+
`skipNeServiceAuth: false` + `neServiceAuthRequired: true`.
|
|
749
|
+
- **`skipNeServiceAuth` vence `neServiceAuthRequired`.** `skipNeServiceAuth: true` com
|
|
750
|
+
`neServiceAuthRequired: true` pula; nunca lança `NeServiceAuthError`.
|
|
751
|
+
- **`skipByDefault` só existe dentro de `neServiceAuth`.** Num client sem `neServiceAuth` ele não é configurável e a
|
|
752
|
+
lib se comporta como antes da funcionalidade.
|
|
753
|
+
- **Credenciais ausentes não mudam a decisão de pular.** Um client com `skipByDefault: true` não chama o Keycloak
|
|
754
|
+
nas requests puladas, mesmo que o Keycloak esteja fora.
|
|
755
|
+
|
|
756
|
+
Exemplo de MS em adoção gradual:
|
|
757
|
+
|
|
758
|
+
```ts
|
|
759
|
+
const httpClient = new LogisticsHttpClient(metricHandler, logger, {
|
|
760
|
+
metrics: { enabled: false, originService: 'ne-ap-com-k8s-my-service' },
|
|
761
|
+
neServiceAuth: { realmUrl, clientId, clientSecret, allowedOrigins: [pudoUrl, otherUrl], skipByDefault: true },
|
|
762
|
+
});
|
|
763
|
+
|
|
764
|
+
// Chamada de um MS que já valida o token: opt-in explícito, token obrigatório.
|
|
765
|
+
await httpClient.get(`${pudoUrl}/pudos`, { skipNeServiceAuth: false, neServiceAuthRequired: true });
|
|
766
|
+
|
|
767
|
+
// Chamada de um MS que valida o token, tolerando a falha do Keycloak (melhor esforço).
|
|
768
|
+
await httpClient.get(`${otherUrl}/items`, { skipNeServiceAuth: false });
|
|
769
|
+
|
|
770
|
+
// Demais chamadas (MSs sem Keycloak e APIs externas): nada a fazer, nenhum token é buscado nem enviado.
|
|
771
|
+
// APIs externas, fora de allowedOrigins, nunca recebem o token, com ou sem skipByDefault.
|
|
772
|
+
await httpClient.get(`${externalUrl}/data`, { headers: { Authorization: partnerToken } });
|
|
773
|
+
```
|
|
774
|
+
|
|
775
|
+
### Exemplo com NestJS
|
|
776
|
+
|
|
777
|
+
```ts
|
|
778
|
+
// http-client-provider.ts
|
|
779
|
+
// PinoLogger, MetricHandler e SecretsManagerService são os tipos do seu MS (logger, handler de métricas e wrapper do
|
|
780
|
+
// AWS Secrets Manager); `partnerToken` abaixo é o token do parceiro, obtido pelo seu MS.
|
|
781
|
+
import { LogisticsHttpClient } from '@tiendanube/logistics-http-client';
|
|
782
|
+
|
|
783
|
+
export const httpClientProvider = {
|
|
784
|
+
provide: LogisticsHttpClient.name,
|
|
785
|
+
useFactory: async (logger: PinoLogger, metricHandler: MetricHandler, secrets: SecretsManagerService) =>
|
|
786
|
+
new LogisticsHttpClient(metricHandler, logger, {
|
|
787
|
+
metrics: { enabled: false, originService: 'ne-ap-com-k8s-my-service' },
|
|
788
|
+
neServiceAuth: {
|
|
789
|
+
realmUrl: 'https://sso-hml.mandae.com.br/realms/mandae',
|
|
790
|
+
clientId: 'ne-ap-com-k8s-my-service',
|
|
791
|
+
// o secret vem do AWS Secrets Manager; nunca do código nem de log
|
|
792
|
+
clientSecret: await secrets.getOrThrow('my-service/keycloak-client-secret'),
|
|
793
|
+
// só os hosts internos que validam o token; APIs externas ficam de fora
|
|
794
|
+
allowedOrigins: ['https://other-service.internal', 'https://billing.internal'],
|
|
795
|
+
},
|
|
796
|
+
}),
|
|
797
|
+
inject: [PinoLogger, MetricHandler, SecretsManagerService],
|
|
798
|
+
};
|
|
799
|
+
```
|
|
800
|
+
|
|
801
|
+
```ts
|
|
802
|
+
// chamada interna que exige o token
|
|
803
|
+
await httpClient.post('https://other-service.internal/payments', body, {
|
|
804
|
+
validateStatus: status => status < 400,
|
|
805
|
+
neServiceAuthRequired: true,
|
|
806
|
+
});
|
|
807
|
+
|
|
808
|
+
// chamada a uma API externa: fora de allowedOrigins, o token de serviço não sai da rede interna
|
|
809
|
+
// e o Authorization do parceiro segue intacto, sem nenhuma opção extra
|
|
810
|
+
await httpClient.get('https://api.partner.com/rates', {
|
|
811
|
+
validateStatus: status => status < 400,
|
|
812
|
+
headers: { Authorization: `Bearer ${partnerToken}` },
|
|
813
|
+
});
|
|
814
|
+
```
|
|
815
|
+
|
|
816
|
+
### Checklist de adoção
|
|
817
|
+
|
|
818
|
+
Siga esta ordem. O envio é automático em toda request para uma origem de `allowedOrigins`, então uma origem a mais nessa
|
|
819
|
+
lista manda o token de serviço (válido por até 8 h) para esse host e sobrescreve o `Authorization` dele.
|
|
820
|
+
|
|
821
|
+
1. Crie o client do MS no Keycloak com `--token-lifespan 28800` (`api-client-create.sh`). O padrão do script é 300 s:
|
|
822
|
+
o client funciona, mas renova a cada ~4,5 min e perde a tolerância de 8 h a uma queda do Keycloak. Se o time adotar outro TTL, informe-o em `expectedTokenLifespanInSeconds` para o `warn` refletir o valor combinado.
|
|
823
|
+
2. Liste em `allowedOrigins` **só** os hosts internos que validam o token. Hosts externos ficam de fora e mantêm o
|
|
824
|
+
`Authorization` próprio. Um host interno da lista que exige outro `Authorization` numa chamada precisa de
|
|
825
|
+
`skipNeServiceAuth: true` nela.
|
|
826
|
+
3. Marque com `neServiceAuthRequired: true` as chamadas em que o token é obrigatório.
|
|
827
|
+
4. Configure `neServiceAuth` no provider do client, com o secret vindo do AWS Secrets Manager.
|
|
828
|
+
|
|
829
|
+
### `NeServiceAuthError`
|
|
830
|
+
|
|
831
|
+
Erro lançado quando o token é obrigatório e não foi obtido, ou quando `neServiceAuth` está incompleto. É diferente do
|
|
832
|
+
`ClientError`: não é um erro HTTP do destino e o enum `ErrorType` não muda. Propriedades: `clientId`, `statusCode`
|
|
833
|
+
(status do Keycloak, se houve resposta) e `errorCode`. Ele **não tem `cause`** e nunca contém o `clientSecret` nem o token.
|
|
834
|
+
|
|
835
|
+
```ts
|
|
836
|
+
import { ClientError, NeServiceAuthError } from '@tiendanube/logistics-http-client';
|
|
837
|
+
|
|
838
|
+
try {
|
|
839
|
+
await httpClient.get(url, { validateStatus: status => status < 400, neServiceAuthRequired: true });
|
|
840
|
+
} catch (error) {
|
|
841
|
+
if (error instanceof NeServiceAuthError) {
|
|
842
|
+
// falha de autorização: Keycloak indisponível, credencial inválida ou configuração ausente
|
|
843
|
+
} else if (error instanceof ClientError) {
|
|
844
|
+
// erro HTTP do destino
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
```
|
|
848
|
+
|
|
849
|
+
| Situação | `statusCode` | `errorCode` |
|
|
850
|
+
| ------------------------------------------------------------------------ | ------------ | ---------------------------------------------------------------- |
|
|
851
|
+
| Construtor com campo ausente ou vazio, ou `allowedOrigins` inválida | `null` | `invalid_configuration` (a mensagem cita só os nomes dos campos) |
|
|
852
|
+
| Token obrigatório e destino fora de `allowedOrigins` | `null` | `origin_not_allowed` |
|
|
853
|
+
| `realmUrl` malformado | `null` | código do axios (`ERR_INVALID_URL`) |
|
|
854
|
+
| Keycloak inacessível ou timeout | `null` | código de rede (`ETIMEDOUT`, `ECONNREFUSED`...) |
|
|
855
|
+
| Keycloak recusa as credenciais | 400/401 | `error` do OAuth (`invalid_client`, `unauthorized_client`) |
|
|
856
|
+
| Erro interno do Keycloak | 5xx | `error` do corpo, se houver |
|
|
857
|
+
| Redirect no token endpoint | 3xx | `null` |
|
|
858
|
+
| Resposta 200 sem `access_token` | 200 | `invalid_token_response` |
|
|
859
|
+
|
|
860
|
+
### Logs da biblioteca
|
|
861
|
+
|
|
862
|
+
A funcionalidade não emite métricas. Os logs abaixo usam o `logger` do client e nunca contêm o `clientSecret` nem o token.
|
|
863
|
+
O `warn` cai para `info` se o logger não implementar `warn`.
|
|
864
|
+
|
|
865
|
+
| Evento | Nível | Payload |
|
|
866
|
+
| ------------------------------------------------------------- | ------ | ------------------------------------------------------------------------------ |
|
|
867
|
+
| Token novo obtido | `info` | `{ neServiceAuth: { clientId, expiresIn } }` |
|
|
868
|
+
| Request perdeu o token (seguiu sem token ou recebeu o erro) | `warn` | `{ neServiceAuth: { clientId, statusCode, errorCode, required } }` |
|
|
869
|
+
| `neServiceAuthRequired: true` num client sem `neServiceAuth` | `warn` | `{ neServiceAuth: { reason: 'not_configured' } }`, uma vez por instância |
|
|
870
|
+
| `neServiceAuthRequired: true` pulada por `skipByDefault` | `warn` | `{ neServiceAuth: { reason: 'required_skipped_by_default' } }`, uma vez por instância |
|
|
871
|
+
| Token emitido com menos que `expectedTokenLifespanInSeconds` (8 h) de vida, ou sem `expires_in` | `warn` | `{ neServiceAuth: { clientId, expiresIn, expectedLifespanInSeconds } }`, a cada emissão |
|
|
872
|
+
| Renovação em segundo plano falhou (token atual ainda válido) | `warn` | `{ neServiceAuth: { clientId, statusCode, errorCode } }`, no máximo 1 por hora |
|
|
873
|
+
|
|
874
|
+
Sinais de saúde: um `info` de emissão a cada ~1 h por pod e nenhum `warn`. Uma renovação em segundo plano que falha com
|
|
875
|
+
token ainda válido não afeta nenhuma request: ela é registrada em `warn` e tentada de novo 1 h depois.
|
|
876
|
+
|
|
877
|
+
### Comportamento por fase
|
|
878
|
+
|
|
879
|
+
| Situação | Na transição (esta versão) | Após o rollout (_major_) |
|
|
880
|
+
| ------------------------------------------------- | ----------------------------- | --------------------------------------------- |
|
|
881
|
+
| Padrão do envio com `neServiceAuth` | melhor esforço | a definir: candidato a obrigatório por padrão |
|
|
882
|
+
| Sem token válido, request comum | segue sem token + `warn` | depende do padrão acima |
|
|
883
|
+
| Sem token válido, `neServiceAuthRequired: true` | `NeServiceAuthError` + `warn` | `NeServiceAuthError` + `warn` |
|
|
884
|
+
| `neServiceAuthRequired: true` sem `neServiceAuth` | segue sem token + `warn` | erro |
|
|
885
|
+
| `neServiceAuthRequired: true` pulada por `skipByDefault` | segue sem token + `warn` | erro |
|
|
886
|
+
|
|
887
|
+
Mudar esses padrões altera o contrato público e exige uma _major_ com seção de migração.
|
|
888
|
+
|
|
889
|
+
### Nota de mudança: `ClientError.cause`
|
|
890
|
+
|
|
891
|
+
Quando a lib adiciona o token à request, o `ClientError.cause` perde o `request` e o `response.request` (viram
|
|
892
|
+
`undefined`) e o `config` e o `response.config` perdem o `Authorization` (`headers`) e os `httpAgent`/`httpsAgent`, para
|
|
893
|
+
que o token não vaze por erros do destino, inclusive quando a conexão nem chega a abrir (`ECONNREFUSED`, `ENOTFOUND`).
|
|
894
|
+
Quem lia `cause.request` ou `cause.response.request` nesse caso passa a receber `undefined`. Nos demais
|
|
895
|
+
casos (sem `neServiceAuth`, com `skipNeServiceAuth` ou sem token obtido) o `ClientError` é idêntico ao de antes. Um
|
|
896
|
+
`Authorization` informado pelo próprio chamador continua aparecendo no `cause`, como hoje.
|
|
897
|
+
|
|
560
898
|
## Otimizações de Performance
|
|
561
899
|
|
|
562
900
|
A biblioteca implementa otimizações automáticas de rede para maximizar performance e resiliência em ambientes de alta carga.
|
package/dist/client-error.d.ts
CHANGED
|
@@ -24,4 +24,16 @@ export declare enum ErrorType {
|
|
|
24
24
|
Other = "other",
|
|
25
25
|
Instability = "instability"
|
|
26
26
|
}
|
|
27
|
+
export declare class NeServiceAuthError extends Error {
|
|
28
|
+
readonly clientId: string;
|
|
29
|
+
readonly statusCode: number | null;
|
|
30
|
+
readonly errorCode: string | null;
|
|
31
|
+
constructor({ message, clientId, statusCode, errorCode }: NeServiceAuthErrorParams);
|
|
32
|
+
}
|
|
33
|
+
type NeServiceAuthErrorParams = {
|
|
34
|
+
message: string;
|
|
35
|
+
clientId: string;
|
|
36
|
+
statusCode: number | null;
|
|
37
|
+
errorCode: string | null;
|
|
38
|
+
};
|
|
27
39
|
export {};
|
package/dist/client-error.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ErrorType = exports.ClientError = void 0;
|
|
3
|
+
exports.NeServiceAuthError = exports.ErrorType = exports.ClientError = void 0;
|
|
4
4
|
class ClientError extends Error {
|
|
5
5
|
method;
|
|
6
6
|
url;
|
|
@@ -37,4 +37,17 @@ var ErrorType;
|
|
|
37
37
|
ErrorType["Other"] = "other";
|
|
38
38
|
ErrorType["Instability"] = "instability";
|
|
39
39
|
})(ErrorType = exports.ErrorType || (exports.ErrorType = {}));
|
|
40
|
+
class NeServiceAuthError extends Error {
|
|
41
|
+
clientId;
|
|
42
|
+
statusCode;
|
|
43
|
+
errorCode;
|
|
44
|
+
constructor({ message, clientId, statusCode, errorCode }) {
|
|
45
|
+
super(message);
|
|
46
|
+
this.name = 'NeServiceAuthError';
|
|
47
|
+
this.clientId = clientId;
|
|
48
|
+
this.statusCode = statusCode;
|
|
49
|
+
this.errorCode = errorCode;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.NeServiceAuthError = NeServiceAuthError;
|
|
40
53
|
//# sourceMappingURL=client-error.js.map
|
package/dist/client-error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-error.js","sourceRoot":"","sources":["../src/client-error.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAY,SAAQ,KAAK;IACzB,MAAM,CAAS;IACf,GAAG,CAAS;IACZ,MAAM,CAAM;IACZ,UAAU,CAAiB;IAC3B,YAAY,CAAM;IAClB,SAAS,CAAiB;IAC1B,SAAS,CAAY;IAE9B,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAqB;QACzG,KAAK,CAAC,WAAW,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,EAAE,EAAE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IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;CACJ;AAZD,gDAYC"}
|
package/dist/http-client.d.ts
CHANGED
|
@@ -5,6 +5,15 @@ export type HttpClientOptions = {
|
|
|
5
5
|
dnsCache?: DnsCacheOptions;
|
|
6
6
|
metrics: MetricsOptions;
|
|
7
7
|
logging?: LoggingOptions;
|
|
8
|
+
neServiceAuth?: NeServiceAuthOptions;
|
|
9
|
+
};
|
|
10
|
+
export type NeServiceAuthOptions = {
|
|
11
|
+
realmUrl: string;
|
|
12
|
+
clientId: string;
|
|
13
|
+
clientSecret: string;
|
|
14
|
+
allowedOrigins: string[];
|
|
15
|
+
skipByDefault?: boolean;
|
|
16
|
+
expectedTokenLifespanInSeconds?: number;
|
|
8
17
|
};
|
|
9
18
|
export interface Logger {
|
|
10
19
|
info(obj: unknown, msg?: string, ...args: any[]): void;
|
|
@@ -47,6 +56,8 @@ export type RequestOptions = {
|
|
|
47
56
|
externalStoreId?: string;
|
|
48
57
|
metricEnabled?: boolean;
|
|
49
58
|
logging?: LoggingOptions;
|
|
59
|
+
neServiceAuthRequired?: boolean;
|
|
60
|
+
skipNeServiceAuth?: boolean;
|
|
50
61
|
isInstabilityError?: (errorCode: string | undefined, statusCode: number | undefined, responseData: any) => boolean;
|
|
51
62
|
};
|
|
52
63
|
export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
package/dist/http-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-client.js","sourceRoot":"","sources":["../src/http-client.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"http-client.js","sourceRoot":"","sources":["../src/http-client.ts"],"names":[],"mappings":";;;AAsGA,IAAY,MAGX;AAHD,WAAY,MAAM;IACd,uBAAa,CAAA;IACb,uBAAa,CAAA;AACjB,CAAC,EAHW,MAAM,GAAN,cAAM,KAAN,cAAM,QAGjB;AAED,IAAY,UAWX;AAXD,WAAY,UAAU;IAClB,yBAAW,CAAA;IACX,2BAAa,CAAA;IACb,6BAAe,CAAA;IACf,yBAAW,CAAA;IACX,+BAAiB,CAAA;IACjB,2BAAa,CAAA;IACb,iCAAmB,CAAA;IACnB,6BAAe,CAAA;IACf,2BAAa,CAAA;IACb,+BAAiB,CAAA;AACrB,CAAC,EAXW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAWrB"}
|
|
@@ -7,6 +7,12 @@ export declare class LogisticsHttpClient implements HttpClient {
|
|
|
7
7
|
private readonly httpsAgent;
|
|
8
8
|
private readonly metricsOptions;
|
|
9
9
|
private readonly loggingOptions;
|
|
10
|
+
private readonly tokenProvider?;
|
|
11
|
+
private readonly skipNeServiceAuthByDefault;
|
|
12
|
+
private readonly allowedOrigins;
|
|
13
|
+
private neServiceAuthClientId;
|
|
14
|
+
private notConfiguredWarned;
|
|
15
|
+
private requiredSkippedWarned;
|
|
10
16
|
private static readonly DEFAULT_AGENT_OPTIONS;
|
|
11
17
|
private static readonly DEFAULT_DNS_CACHE_OPTIONS;
|
|
12
18
|
private static readonly DEFAULT_LOGGING_OPTIONS;
|
|
@@ -21,6 +27,12 @@ export declare class LogisticsHttpClient implements HttpClient {
|
|
|
21
27
|
private sendMetric;
|
|
22
28
|
private static describeError;
|
|
23
29
|
private buildBackoffOptions;
|
|
30
|
+
private resolveNeServiceAuth;
|
|
31
|
+
private withAuthorization;
|
|
32
|
+
private originNotAllowedError;
|
|
33
|
+
private warnNotConfigured;
|
|
34
|
+
private warnRequiredSkipped;
|
|
35
|
+
private warnTokenLost;
|
|
24
36
|
private executeAxiosRequest;
|
|
25
37
|
private resolveLoggingOptions;
|
|
26
38
|
private logOutcome;
|
|
@@ -13,6 +13,9 @@ const client_error_1 = require("./client-error");
|
|
|
13
13
|
const http_client_1 = require("./http-client");
|
|
14
14
|
const metrics_1 = require("./metrics");
|
|
15
15
|
const redact_1 = require("./redact");
|
|
16
|
+
const remove_authorization_1 = require("./remove-authorization");
|
|
17
|
+
const ne_service_token_provider_1 = require("./ne-service-token-provider");
|
|
18
|
+
const origin_1 = require("./origin");
|
|
16
19
|
class LogisticsHttpClient {
|
|
17
20
|
metricHandler;
|
|
18
21
|
logger;
|
|
@@ -20,6 +23,12 @@ class LogisticsHttpClient {
|
|
|
20
23
|
httpsAgent;
|
|
21
24
|
metricsOptions;
|
|
22
25
|
loggingOptions;
|
|
26
|
+
tokenProvider;
|
|
27
|
+
skipNeServiceAuthByDefault;
|
|
28
|
+
allowedOrigins = new Set();
|
|
29
|
+
neServiceAuthClientId = '';
|
|
30
|
+
notConfiguredWarned = false;
|
|
31
|
+
requiredSkippedWarned = false;
|
|
23
32
|
static DEFAULT_AGENT_OPTIONS = {
|
|
24
33
|
keepAlive: true,
|
|
25
34
|
maxSockets: 128,
|
|
@@ -51,6 +60,15 @@ class LogisticsHttpClient {
|
|
|
51
60
|
const mergedAgentOptions = { ...LogisticsHttpClient.DEFAULT_AGENT_OPTIONS, ...options?.agent };
|
|
52
61
|
this.httpAgent = new http.Agent(mergedAgentOptions);
|
|
53
62
|
this.httpsAgent = new https.Agent(mergedAgentOptions);
|
|
63
|
+
this.skipNeServiceAuthByDefault = options.neServiceAuth?.skipByDefault ?? false;
|
|
64
|
+
if (options.neServiceAuth) {
|
|
65
|
+
this.tokenProvider = new ne_service_token_provider_1.NeServiceTokenProvider(options.neServiceAuth, logger, {
|
|
66
|
+
httpAgent: this.httpAgent,
|
|
67
|
+
httpsAgent: this.httpsAgent,
|
|
68
|
+
});
|
|
69
|
+
options.neServiceAuth.allowedOrigins.forEach(origin => this.allowedOrigins.add((0, origin_1.toOrigin)(origin)));
|
|
70
|
+
this.neServiceAuthClientId = options.neServiceAuth.clientId;
|
|
71
|
+
}
|
|
54
72
|
const dnsCacheEnabled = options.dnsCache?.enabled ?? LogisticsHttpClient.DEFAULT_DNS_CACHE_OPTIONS.enabled;
|
|
55
73
|
if (dnsCacheEnabled) {
|
|
56
74
|
const cacheableLookup = new cacheable_lookup_1.default({
|
|
@@ -79,6 +97,7 @@ class LogisticsHttpClient {
|
|
|
79
97
|
return this.request(http_client_1.HttpMethod.DELETE, url, options);
|
|
80
98
|
}
|
|
81
99
|
async request(method, url, options) {
|
|
100
|
+
const { sentOptions, tokenAdded } = await this.resolveNeServiceAuth(url, options);
|
|
82
101
|
const startTimestamp = Date.now();
|
|
83
102
|
const backoffOptions = this.buildBackoffOptions(options.retry ?? {});
|
|
84
103
|
let errorType;
|
|
@@ -87,7 +106,7 @@ class LogisticsHttpClient {
|
|
|
87
106
|
try {
|
|
88
107
|
const result = await (0, exponential_backoff_1.backOff)(() => {
|
|
89
108
|
numOfAttempts++;
|
|
90
|
-
return this.executeAxiosRequest(method, url,
|
|
109
|
+
return this.executeAxiosRequest(method, url, sentOptions, tokenAdded);
|
|
91
110
|
}, backoffOptions);
|
|
92
111
|
outcome = { statusCode: result.status, responseData: result.data };
|
|
93
112
|
return result;
|
|
@@ -159,8 +178,70 @@ class LogisticsHttpClient {
|
|
|
159
178
|
retry: error => this.shouldRetry(retryOptions, error),
|
|
160
179
|
};
|
|
161
180
|
}
|
|
162
|
-
async
|
|
163
|
-
const {
|
|
181
|
+
async resolveNeServiceAuth(url, options) {
|
|
182
|
+
const withoutToken = { sentOptions: options, tokenAdded: false };
|
|
183
|
+
if (options.skipNeServiceAuth ?? this.skipNeServiceAuthByDefault) {
|
|
184
|
+
if (options.skipNeServiceAuth === undefined && options.neServiceAuthRequired)
|
|
185
|
+
this.warnRequiredSkipped();
|
|
186
|
+
return withoutToken;
|
|
187
|
+
}
|
|
188
|
+
const required = options.neServiceAuthRequired === true;
|
|
189
|
+
if (!this.tokenProvider) {
|
|
190
|
+
if (required)
|
|
191
|
+
this.warnNotConfigured();
|
|
192
|
+
return withoutToken;
|
|
193
|
+
}
|
|
194
|
+
const origin = (0, origin_1.toOrigin)(this.replaceUrlProperties(url, options.pathParams ?? {}));
|
|
195
|
+
if (!origin || !this.allowedOrigins.has(origin)) {
|
|
196
|
+
if (required)
|
|
197
|
+
throw this.originNotAllowedError(origin);
|
|
198
|
+
return withoutToken;
|
|
199
|
+
}
|
|
200
|
+
try {
|
|
201
|
+
const token = await this.tokenProvider.getAccessToken();
|
|
202
|
+
return { sentOptions: this.withAuthorization(options, token), tokenAdded: true };
|
|
203
|
+
}
|
|
204
|
+
catch (error) {
|
|
205
|
+
this.warnTokenLost(error, required);
|
|
206
|
+
if (required)
|
|
207
|
+
throw error;
|
|
208
|
+
return withoutToken;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
withAuthorization(options, token) {
|
|
212
|
+
const callerHeaders = Object.entries(options.headers ?? {}).filter(([name]) => name.toLowerCase() !== 'authorization');
|
|
213
|
+
return {
|
|
214
|
+
...options,
|
|
215
|
+
headers: { ...Object.fromEntries(callerHeaders), Authorization: `Bearer ${token}` },
|
|
216
|
+
maxRedirects: 0,
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
originNotAllowedError(origin) {
|
|
220
|
+
return new client_error_1.NeServiceAuthError({
|
|
221
|
+
message: `Origin ${origin ?? '(not an absolute URL)'} is not in neServiceAuth.allowedOrigins`,
|
|
222
|
+
clientId: this.neServiceAuthClientId,
|
|
223
|
+
statusCode: null,
|
|
224
|
+
errorCode: 'origin_not_allowed',
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
warnNotConfigured() {
|
|
228
|
+
if (this.notConfiguredWarned)
|
|
229
|
+
return;
|
|
230
|
+
this.notConfiguredWarned = true;
|
|
231
|
+
this.emitLog('warn', { neServiceAuth: { reason: 'not_configured' } }, 'NE service auth required but not configured');
|
|
232
|
+
}
|
|
233
|
+
warnRequiredSkipped() {
|
|
234
|
+
if (this.requiredSkippedWarned)
|
|
235
|
+
return;
|
|
236
|
+
this.requiredSkippedWarned = true;
|
|
237
|
+
this.emitLog('warn', { neServiceAuth: { reason: 'required_skipped_by_default' } }, 'NE service auth required but skipped by neServiceAuth.skipByDefault, set skipNeServiceAuth: false');
|
|
238
|
+
}
|
|
239
|
+
warnTokenLost(error, required) {
|
|
240
|
+
const { clientId, statusCode, errorCode } = error;
|
|
241
|
+
this.emitLog('warn', { neServiceAuth: { clientId, statusCode, errorCode, required } }, 'NE service token unavailable');
|
|
242
|
+
}
|
|
243
|
+
async executeAxiosRequest(method, url, options, tokenAdded) {
|
|
244
|
+
const { retry, pathParams, logging, neServiceAuthRequired, skipNeServiceAuth, ...axiosRequestOptions } = options;
|
|
164
245
|
const resolvedUrl = this.replaceUrlProperties(url, pathParams ?? {});
|
|
165
246
|
try {
|
|
166
247
|
const response = await axios_1.default.request({
|
|
@@ -175,6 +256,9 @@ class LogisticsHttpClient {
|
|
|
175
256
|
}
|
|
176
257
|
catch (error) {
|
|
177
258
|
const typedError = error;
|
|
259
|
+
if (tokenAdded) {
|
|
260
|
+
(0, remove_authorization_1.removeAuthorization)(typedError);
|
|
261
|
+
}
|
|
178
262
|
throw new client_error_1.ClientError({
|
|
179
263
|
method,
|
|
180
264
|
url,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logistics-http-client.js","sourceRoot":"","sources":["../src/logistics-http-client.ts"],"names":[],"mappings":";;;AAAA,iCAA0C;AAC1C,kCAAkC;AAClC,oCAAoC;AACpC,gCAAgC;AAChC,6CAAuC;AACvC,yCAAkC;AAClC,6DAA8D;AAC9D,uDAA+C;AAC/C,iDAAwD;AACxD,+CAYuB;AAEvB,uCAAuD;AACvD,qCAAkC;AAElC,MAAa,mBAAmB;IAkCP;IACA;IAlCJ,SAAS,CAAa;IACtB,UAAU,CAAc;IACxB,cAAc,CAAiB;IAC/B,cAAc,CAAiB;IAExC,MAAM,CAAU,qBAAqB,GAAsB;QAC/D,SAAS,EAAE,IAAI;QACf,UAAU,EAAE,GAAG;QACf,cAAc,EAAE,EAAE;QAClB,OAAO,E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I,CAAC,CAAC,YAAY,EAAE,kBAAkB,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC3F,OAAO,gBAAgB,IAAI,oBAAoB,IAAI,kBAAkB,IAAI,gCAAgC,CAAC;IAC9G,CAAC;IAEO,oBAAoB,CAAC,GAAW,EAAE,UAAkC;QACxE,OAAO,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1E,CAAC;IAEO,oBAAoB,CAAC,KAAiB;QAC1C,OAAO,KAAK,CAAC,IAAI,KAAK,kBAAkB,IAAI,KAAK,CAAC,OAAO,KAAK,yBAAyB,CAAC;IAC5F,CAAC;IAEO,YAAY,CAAC,KAAiB,EAAE,oBAA0D;QAC9F,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAc,CAAC;YAAE,OAAO,wBAAS,CAAC,WAAW,CAAC;QAC7F,IAAI,IAAI,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE;YAClC,OAAO,wBAAS,CAAC,WAAW,CAAC;SAChC;QACD,OAAO,oBAAoB,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC;YACnF,CAAC,CAAC,wBAAS,CAAC,WAAW;YACvB,CAAC,CAAC,wBAAS,CAAC,KAAK,CAAC;IAC1B,CAAC;;AAzZQ,kDAAmB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import * as http from 'node:http';
|
|
4
|
+
import * as https from 'node:https';
|
|
5
|
+
import { Logger, NeServiceAuthOptions } from './http-client';
|
|
6
|
+
export declare class NeServiceTokenProvider {
|
|
7
|
+
private readonly options;
|
|
8
|
+
private readonly logger;
|
|
9
|
+
private readonly agents;
|
|
10
|
+
private static readonly TIMEOUT_IN_MS;
|
|
11
|
+
private static readonly RENEW_AFTER_IN_MS;
|
|
12
|
+
private static readonly DEFAULT_EXPECTED_LIFESPAN_IN_SECONDS;
|
|
13
|
+
private static readonly EXPIRY_MARGIN_IN_MS;
|
|
14
|
+
private static readonly RETRY_AFTER_FAILURE_IN_MS;
|
|
15
|
+
private static readonly TOKEN_PATH;
|
|
16
|
+
private cached?;
|
|
17
|
+
private inFlight?;
|
|
18
|
+
private nextRenewalAt;
|
|
19
|
+
private lastFailure?;
|
|
20
|
+
private readonly expectedLifespanInSeconds;
|
|
21
|
+
constructor(options: NeServiceAuthOptions, logger: Logger, agents: {
|
|
22
|
+
httpAgent: http.Agent;
|
|
23
|
+
httpsAgent: https.Agent;
|
|
24
|
+
});
|
|
25
|
+
getAccessToken(): Promise<string>;
|
|
26
|
+
private fetchTokenWithoutValidOne;
|
|
27
|
+
private shouldRenew;
|
|
28
|
+
private renewInBackground;
|
|
29
|
+
private logRenewalFailure;
|
|
30
|
+
private logWarn;
|
|
31
|
+
private fetchToken;
|
|
32
|
+
private requestToken;
|
|
33
|
+
private callTokenEndpoint;
|
|
34
|
+
private buildTokenRequest;
|
|
35
|
+
private toAuthError;
|
|
36
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeServiceTokenProvider = void 0;
|
|
4
|
+
const axios_1 = require("axios");
|
|
5
|
+
const client_error_1 = require("./client-error");
|
|
6
|
+
const origin_1 = require("./origin");
|
|
7
|
+
class NeServiceTokenProvider {
|
|
8
|
+
options;
|
|
9
|
+
logger;
|
|
10
|
+
agents;
|
|
11
|
+
static TIMEOUT_IN_MS = 5000;
|
|
12
|
+
static RENEW_AFTER_IN_MS = 60 * 60 * 1000;
|
|
13
|
+
static DEFAULT_EXPECTED_LIFESPAN_IN_SECONDS = 8 * 60 * 60;
|
|
14
|
+
static EXPIRY_MARGIN_IN_MS = 30 * 1000;
|
|
15
|
+
static RETRY_AFTER_FAILURE_IN_MS = 10 * 1000;
|
|
16
|
+
static TOKEN_PATH = '/protocol/openid-connect/token';
|
|
17
|
+
cached;
|
|
18
|
+
inFlight;
|
|
19
|
+
nextRenewalAt = 0;
|
|
20
|
+
lastFailure;
|
|
21
|
+
expectedLifespanInSeconds;
|
|
22
|
+
constructor(options, logger, agents) {
|
|
23
|
+
this.options = options;
|
|
24
|
+
this.logger = logger;
|
|
25
|
+
this.agents = agents;
|
|
26
|
+
assertConfigured(options);
|
|
27
|
+
this.expectedLifespanInSeconds =
|
|
28
|
+
options.expectedTokenLifespanInSeconds ?? NeServiceTokenProvider.DEFAULT_EXPECTED_LIFESPAN_IN_SECONDS;
|
|
29
|
+
}
|
|
30
|
+
async getAccessToken() {
|
|
31
|
+
const now = Date.now();
|
|
32
|
+
const cached = this.cached;
|
|
33
|
+
if (cached && cached.expiresAt - now > NeServiceTokenProvider.EXPIRY_MARGIN_IN_MS) {
|
|
34
|
+
if (this.shouldRenew(cached.issuedAt, now)) {
|
|
35
|
+
this.renewInBackground(now);
|
|
36
|
+
}
|
|
37
|
+
return cached.accessToken;
|
|
38
|
+
}
|
|
39
|
+
return this.fetchTokenWithoutValidOne(now);
|
|
40
|
+
}
|
|
41
|
+
async fetchTokenWithoutValidOne(now) {
|
|
42
|
+
if (this.lastFailure && now < this.lastFailure.retryAt) {
|
|
43
|
+
throw this.lastFailure.error;
|
|
44
|
+
}
|
|
45
|
+
try {
|
|
46
|
+
return await this.fetchToken();
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
this.lastFailure = {
|
|
50
|
+
error: error,
|
|
51
|
+
retryAt: Date.now() + NeServiceTokenProvider.RETRY_AFTER_FAILURE_IN_MS,
|
|
52
|
+
};
|
|
53
|
+
throw error;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
shouldRenew(issuedAt, now) {
|
|
57
|
+
return (now - issuedAt >= NeServiceTokenProvider.RENEW_AFTER_IN_MS && now >= this.nextRenewalAt && !this.inFlight);
|
|
58
|
+
}
|
|
59
|
+
renewInBackground(now) {
|
|
60
|
+
this.nextRenewalAt = now + NeServiceTokenProvider.RENEW_AFTER_IN_MS;
|
|
61
|
+
this.fetchToken().catch(error => this.logRenewalFailure(error));
|
|
62
|
+
}
|
|
63
|
+
logRenewalFailure({ clientId, statusCode, errorCode }) {
|
|
64
|
+
this.logWarn({ neServiceAuth: { clientId, statusCode, errorCode } }, 'NE service token renewal failed, the current token stays in use');
|
|
65
|
+
}
|
|
66
|
+
logWarn(payload, message) {
|
|
67
|
+
const log = this.logger.warn ?? this.logger.info;
|
|
68
|
+
log.call(this.logger, payload, message);
|
|
69
|
+
}
|
|
70
|
+
fetchToken() {
|
|
71
|
+
if (this.inFlight)
|
|
72
|
+
return this.inFlight;
|
|
73
|
+
const inFlight = this.requestToken().finally(() => {
|
|
74
|
+
this.inFlight = undefined;
|
|
75
|
+
});
|
|
76
|
+
this.inFlight = inFlight;
|
|
77
|
+
return inFlight;
|
|
78
|
+
}
|
|
79
|
+
async requestToken() {
|
|
80
|
+
const { clientId } = this.options;
|
|
81
|
+
const response = await this.callTokenEndpoint();
|
|
82
|
+
const issuedAt = Date.now();
|
|
83
|
+
const { access_token: accessToken, expires_in: expiresIn } = response.data ?? {};
|
|
84
|
+
if (typeof accessToken !== 'string' || !accessToken) {
|
|
85
|
+
throw new client_error_1.NeServiceAuthError({
|
|
86
|
+
message: `Keycloak answered HTTP ${response.status} without an access_token`,
|
|
87
|
+
clientId,
|
|
88
|
+
statusCode: response.status,
|
|
89
|
+
errorCode: 'invalid_token_response',
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
const hasLifespan = typeof expiresIn === 'number';
|
|
93
|
+
if (hasLifespan) {
|
|
94
|
+
this.cached = { accessToken, issuedAt, expiresAt: issuedAt + expiresIn * 1000 };
|
|
95
|
+
}
|
|
96
|
+
this.logger.info({ neServiceAuth: { clientId, expiresIn } }, 'NE service token issued');
|
|
97
|
+
if (!hasLifespan || expiresIn < this.expectedLifespanInSeconds) {
|
|
98
|
+
this.logWarn({ neServiceAuth: { clientId, expiresIn, expectedLifespanInSeconds: this.expectedLifespanInSeconds } }, 'NE service token lifespan is shorter than expected, raise the Keycloak client token lifespan or lower neServiceAuth.expectedTokenLifespanInSeconds');
|
|
99
|
+
}
|
|
100
|
+
return accessToken;
|
|
101
|
+
}
|
|
102
|
+
async callTokenEndpoint() {
|
|
103
|
+
try {
|
|
104
|
+
return await axios_1.default.request(this.buildTokenRequest());
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
throw this.toAuthError(error);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
buildTokenRequest() {
|
|
111
|
+
const { realmUrl, clientId, clientSecret } = this.options;
|
|
112
|
+
return {
|
|
113
|
+
method: 'post',
|
|
114
|
+
url: `${realmUrl.replace(/\/$/, '')}${NeServiceTokenProvider.TOKEN_PATH}`,
|
|
115
|
+
data: new URLSearchParams({
|
|
116
|
+
grant_type: 'client_credentials',
|
|
117
|
+
client_id: clientId,
|
|
118
|
+
client_secret: clientSecret,
|
|
119
|
+
}).toString(),
|
|
120
|
+
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
121
|
+
timeout: NeServiceTokenProvider.TIMEOUT_IN_MS,
|
|
122
|
+
maxRedirects: 0,
|
|
123
|
+
validateStatus: status => status >= 200 && status < 300,
|
|
124
|
+
httpAgent: this.agents.httpAgent,
|
|
125
|
+
httpsAgent: this.agents.httpsAgent,
|
|
126
|
+
transitional: { clarifyTimeoutError: true },
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
toAuthError(error) {
|
|
130
|
+
const clientId = this.options.clientId;
|
|
131
|
+
if (!error.response) {
|
|
132
|
+
const errorCode = error.code ?? null;
|
|
133
|
+
return new client_error_1.NeServiceAuthError({
|
|
134
|
+
message: `Keycloak unreachable for client_credentials: ${errorCode}`,
|
|
135
|
+
clientId,
|
|
136
|
+
statusCode: null,
|
|
137
|
+
errorCode,
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
const statusCode = error.response.status;
|
|
141
|
+
const oauthError = error.response.data?.error;
|
|
142
|
+
const errorCode = typeof oauthError === 'string' ? oauthError : null;
|
|
143
|
+
return new client_error_1.NeServiceAuthError({
|
|
144
|
+
message: `Keycloak refused client_credentials: HTTP ${statusCode} ${errorCode ?? ''}`.trim(),
|
|
145
|
+
clientId,
|
|
146
|
+
statusCode,
|
|
147
|
+
errorCode,
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
exports.NeServiceTokenProvider = NeServiceTokenProvider;
|
|
152
|
+
function assertConfigured(options) {
|
|
153
|
+
const missingFields = ['realmUrl', 'clientId', 'clientSecret'].filter(field => !options[field]);
|
|
154
|
+
if (missingFields.length) {
|
|
155
|
+
throwInvalidConfiguration(options, `missing fields: ${missingFields.join(', ')}`);
|
|
156
|
+
}
|
|
157
|
+
const origins = options.allowedOrigins;
|
|
158
|
+
if (!Array.isArray(origins) || !origins.length || !origins.every(origin => (0, origin_1.toOrigin)(origin))) {
|
|
159
|
+
throwInvalidConfiguration(options, 'allowedOrigins must be a non-empty list of absolute URLs');
|
|
160
|
+
}
|
|
161
|
+
const lifespan = options.expectedTokenLifespanInSeconds;
|
|
162
|
+
if (lifespan !== undefined && !(Number.isFinite(lifespan) && lifespan > 0)) {
|
|
163
|
+
throwInvalidConfiguration(options, 'expectedTokenLifespanInSeconds must be a positive number');
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function throwInvalidConfiguration(options, detail) {
|
|
167
|
+
throw new client_error_1.NeServiceAuthError({
|
|
168
|
+
message: `Invalid neServiceAuth configuration, ${detail}`,
|
|
169
|
+
clientId: options.clientId ?? '',
|
|
170
|
+
statusCode: null,
|
|
171
|
+
errorCode: 'invalid_configuration',
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
//# sourceMappingURL=ne-service-token-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ne-service-token-provider.js","sourceRoot":"","sources":["../src/ne-service-token-provider.ts"],"names":[],"mappings":";;;AAAA,iCAA6E;AAG7E,iDAAoD;AAEpD,qCAAoC;AASpC,MAAa,sBAAsB;IAmBV;IACA;IACA;IApBb,MAAM,CAAU,aAAa,GAAG,IAAI,CAAC;IAErC,MAAM,CAAU,iBAAiB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IACnD,MAAM,CAAU,oCAAoC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;IACnE,MAAM,CAAU,mBAAmB,GAAG,EAAE,GAAG,IAAI,CAAC;IAChD,MAAM,CAAU,yBAAyB,GAAG,EAAE,GAAG,IAAI,CAAC;IACtD,MAAM,CAAU,UAAU,GAAG,gCAAgC,CAAC;IAE9D,MAAM,CAAgE;IACtE,QAAQ,CAAmB;IAG3B,aAAa,GAAG,CAAC,CAAC;IAElB,WAAW,CAAkD;IACpD,yBAAyB,CAAS;IAEnD,YACqB,OAA6B,EAC7B,MAAc,EACd,MAA0D;QAF1D,YAAO,GAAP,OAAO,CAAsB;QAC7B,WAAM,GAAN,MAAM,CAAQ;QACd,WAAM,GAAN,MAAM,CAAoD;QAE3E,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAC1B,IAAI,CAAC,yBAAyB;YAC1B,OAAO,CAAC,8BAA8B,IAAI,sBAAsB,CAAC,oCAAoC,CAAC;IAC9G,CAAC;IAED,KAAK,CAAC,cAAc;QAChB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACvB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,IAAI,MAAM,IAAI,MAAM,CAAC,SAAS,GAAG,GAAG,GAAG,sBAAsB,CAAC,mBAAmB,EAAE;YAC/E,IAAI,IAA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AAC,CAAC,CAAC;IAC3G,IAAI,aAAa,CAAC,MAAM,EAAE;QACtB,yBAAyB,CAAC,OAAO,EAAE,mBAAmB,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KACrF;IACD,MAAM,OAAO,GAAG,OAAO,CAAC,cAAyB,CAAC;IAClD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,IAAA,iBAAQ,EAAC,MAAM,CAAC,CAAC,EAAE;QAC1F,yBAAyB,CAAC,OAAO,EAAE,0DAA0D,CAAC,CAAC;KAClG;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,8BAA8B,CAAC;IACxD,IAAI,QAAQ,KAAK,SAAS,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,QAAQ,GAAG,CAAC,CAAC,EAAE;QACxE,yBAAyB,CAAC,OAAO,EAAE,0DAA0D,CAAC,CAAC;KAClG;AACL,CAAC;AAED,SAAS,yBAAyB,CAAC,OAA6B,EAAE,MAAc;IAC5E,MAAM,IAAI,iCAAkB,CAAC;QACzB,OAAO,EAAE,wCAAwC,MAAM,EAAE;QACzD,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,EAAE;QAChC,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,uBAAuB;KACrC,CAAC,CAAC;AACP,CAAC"}
|
package/dist/origin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toOrigin(url: unknown): string | undefined;
|
package/dist/origin.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toOrigin = void 0;
|
|
4
|
+
function toOrigin(url) {
|
|
5
|
+
if (typeof url !== 'string') {
|
|
6
|
+
return undefined;
|
|
7
|
+
}
|
|
8
|
+
try {
|
|
9
|
+
const { origin } = new URL(url);
|
|
10
|
+
return origin === 'null' ? undefined : origin;
|
|
11
|
+
}
|
|
12
|
+
catch {
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.toOrigin = toOrigin;
|
|
17
|
+
//# sourceMappingURL=origin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"origin.js","sourceRoot":"","sources":["../src/origin.ts"],"names":[],"mappings":";;;AAEA,SAAgB,QAAQ,CAAC,GAAY;IACjC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QACzB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI;QACA,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QAChC,OAAO,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;KACjD;IAAC,MAAM;QACJ,OAAO,SAAS,CAAC;KACpB;AACL,CAAC;AAVD,4BAUC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeAuthorization = void 0;
|
|
4
|
+
const AUTHORIZATION = 'authorization';
|
|
5
|
+
function removeAuthorization(error) {
|
|
6
|
+
cleanConfig(error.config);
|
|
7
|
+
error.request = undefined;
|
|
8
|
+
if (error.response) {
|
|
9
|
+
cleanConfig(error.response.config);
|
|
10
|
+
error.response.request = undefined;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.removeAuthorization = removeAuthorization;
|
|
14
|
+
function cleanConfig(config) {
|
|
15
|
+
if (config) {
|
|
16
|
+
removeHeaderKeys(config.headers);
|
|
17
|
+
delete config.httpAgent;
|
|
18
|
+
delete config.httpsAgent;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function removeHeaderKeys(headers) {
|
|
22
|
+
if (typeof headers === 'object' && headers !== null) {
|
|
23
|
+
Object.keys(headers)
|
|
24
|
+
.filter(key => key.toLowerCase() === AUTHORIZATION)
|
|
25
|
+
.forEach(key => delete headers[key]);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=remove-authorization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-authorization.js","sourceRoot":"","sources":["../src/remove-authorization.ts"],"names":[],"mappings":";;;AAQA,MAAM,aAAa,GAAG,eAAe,CAAC;AAGtC,SAAgB,mBAAmB,CAAC,KAAiB;IACjD,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC;IAC1B,IAAI,KAAK,CAAC,QAAQ,EAAE;QAChB,WAAW,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACnC,KAAK,CAAC,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC;KACtC;AACL,CAAC;AAPD,kDAOC;AAED,SAAS,WAAW,CAAC,MAA4B;IAC7C,IAAI,MAAM,EAAE;QACR,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACjC,OAAO,MAAM,CAAC,SAAS,CAAC;QACxB,OAAO,MAAM,CAAC,UAAU,CAAC;KAC5B;AACL,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAgB;IACtC,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,EAAE;QACjD,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;aACf,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,aAAa,CAAC;aAClD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,OAAQ,OAAmC,CAAC,GAAG,CAAC,CAAC,CAAC;KACzE;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2022.full.d.ts","../src/client-error.ts","../src/http-client.ts","../node_modules/axios/index.d.ts","../node_modules/exponential-backoff/dist/options.d.ts","../node_modules/exponential-backoff/dist/backoff.d.ts","../node_modules/cacheable-lookup/index.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/models/metric.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/use-cases/create-metric/metric-sender-interface.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/adapters/inbound/logger-metric-handler/logger-interface.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/adapters/inbound/metric-handler-interface.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/adapters/inbound/logger-metric-handler/logger-metric-handler.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/models/statsd-metrics-config.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/adapters/inbound/statsd-metric-handler/statsd-metric-handler.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/index.d.ts","../src/metrics.ts","../src/redact.ts","../src/logistics-http-client.ts","../src/index.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/node/compatibility/disposable.d.ts","../node_modules/@types/node/compatibility/indexable.d.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/compatibility/index.d.ts","../node_modules/@types/node/ts5.6/globals.typedarray.d.ts","../node_modules/@types/node/ts5.6/buffer.buffer.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/web-globals/abortcontroller.d.ts","../node_modules/@types/node/web-globals/domexception.d.ts","../node_modules/@types/node/web-globals/events.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/file.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/web-globals/fetch.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.generated.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/ts5.6/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/@jest/expect-utils/build/index.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@sinclair/typebox/typebox.d.ts","../node_modules/@jest/schemas/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/semver/functions/inc.d.ts","../node_modules/@types/semver/classes/semver.d.ts","../node_modules/@types/semver/functions/parse.d.ts","../node_modules/@types/semver/functions/valid.d.ts","../node_modules/@types/semver/functions/clean.d.ts","../node_modules/@types/semver/functions/diff.d.ts","../node_modules/@types/semver/functions/major.d.ts","../node_modules/@types/semver/functions/minor.d.ts","../node_modules/@types/semver/functions/patch.d.ts","../node_modules/@types/semver/functions/prerelease.d.ts","../node_modules/@types/semver/functions/compare.d.ts","../node_modules/@types/semver/functions/rcompare.d.ts","../node_modules/@types/semver/functions/compare-loose.d.ts","../node_modules/@types/semver/functions/compare-build.d.ts","../node_modules/@types/semver/functions/sort.d.ts","../node_modules/@types/semver/functions/rsort.d.ts","../node_modules/@types/semver/functions/gt.d.ts","../node_modules/@types/semver/functions/lt.d.ts","../node_modules/@types/semver/functions/eq.d.ts","../node_modules/@types/semver/functions/neq.d.ts","../node_modules/@types/semver/functions/gte.d.ts","../node_modules/@types/semver/functions/lte.d.ts","../node_modules/@types/semver/functions/cmp.d.ts","../node_modules/@types/semver/functions/coerce.d.ts","../node_modules/@types/semver/classes/comparator.d.ts","../node_modules/@types/semver/classes/range.d.ts","../node_modules/@types/semver/functions/satisfies.d.ts","../node_modules/@types/semver/ranges/max-satisfying.d.ts","../node_modules/@types/semver/ranges/min-satisfying.d.ts","../node_modules/@types/semver/ranges/to-comparators.d.ts","../node_modules/@types/semver/ranges/min-version.d.ts","../node_modules/@types/semver/ranges/valid.d.ts","../node_modules/@types/semver/ranges/outside.d.ts","../node_modules/@types/semver/ranges/gtr.d.ts","../node_modules/@types/semver/ranges/ltr.d.ts","../node_modules/@types/semver/ranges/intersects.d.ts","../node_modules/@types/semver/ranges/simplify.d.ts","../node_modules/@types/semver/ranges/subset.d.ts","../node_modules/@types/semver/internals/identifiers.d.ts","../node_modules/@types/semver/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"6a6b471e7e43e15ef6f8fe617a22ce4ecb0e34efa6c3dfcfe7cebd392bcca9d2","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc",{"version":"fcd3ecc9f764f06f4d5c467677f4f117f6abf49dee6716283aa204ff1162498b","affectsGlobalScope":true},{"version":"9a60b92bca4c1257db03b349d58e63e4868cfc0d1c8d0ba60c2dbc63f4e6c9f6","affectsGlobalScope":true},{"version":"c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996","affectsGlobalScope":true},{"version":"7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c","affectsGlobalScope":true},{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"5114a95689b63f96b957e00216bc04baf9e1a1782aa4d8ee7e5e9acbf768e301","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true},{"version":"b7feb7967c6c6003e11f49efa8f5de989484e0a6ba2e5a6c41b55f8b8bd85dba","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"1df2366de6650547b3dc1d7c4147355c0f6b4729c964e3839636fa418982d131",{"version":"cbfd508f7794f22a028a59f33fe0a1f9e6e90bb1d644fb783a0c2a08bec77190","signature":"02d55833498924790b9b7de20d7cb10df38a0eec532ac2c573a6a9fd17e5f83a"},{"version":"ee2f447a9654be8864e2a098bca495958498980ac671c95dd8a8324ee34434e5","signature":"e9b87fc519a297e651c401ae586fc929f5001642550d9c2b426acd317d199e97"},"da451e3a2dfc734b3c5e1988c71ed1d69e4de602a98e68610c0355da7a46c5ab","5e5ca00fac373064d528582f9582cb0679a271f89276e5d30db64ba789d6efda","10c163f67197cf2d4d76ae7c74d68825c3a95bfb0219bf944b926d53ff648fde","4b8db4ddeab4e3d3bcdbc033f82db9c610d79d9dac4822a166b48b8115a56b86","b2aaab1a2a056855205a05810c46f3cc6bc32d375596a47036da1e32fb6cf8c6","eee5d65190bc56d3a154d50fa2d2242c1e34704a5bcc8523e37447573bf3fb7d","21a88dc6c55a953b036dbefb156a57b8c70f4a89937fd4cb012f3bcf9e9aecaf","229f04a0eb0aac5abcd9ea2ec65fc35da91bcb458c439e9ada3d823c0af8e9a6","be9b3a275c7447293e44e7f13f9fc317acd5f42681e63d4adb9ec4e208fdedb9","217977146f60b0c04aa77599e4e5c1a2b4794d46de22dcc8033b290080d1e8b1","dc83660a051c9354cffe225a1ccd89adcd7cbd26f4cd56816092c34af6341937","681e6d40399d963810deee82ff0db86edf3af2ee0e6e3976c34f7e0615a6cbcb",{"version":"0285a20596af274cc91284ad3612c1f9c3b949e49f44a3a739d1deccb59545eb","signature":"6b3a04d794ced7a61c00ead314be8a8e99dd6202499ba3bd2cb1696a512770a6"},{"version":"87fc7c2da7d67c85b62272d2e3c3c3a44c79fa1e8f81492980e9e1f8c1ee57f2","signature":"3e91355e6a501b6588d06f320d65bdaaf514f32418882a726a73ea1caec01378"},{"version":"643f49572e1e52e5d03bb01e0cacfbc7fadef680c9238f2c9c7a88df1a608e27","signature":"32a88be8d9bcadbe8c77eded33ad26881b520b676209d7b53407008e1c1a3f40"},"7716bf83faf06d86b4506fc43e40e0d0c5681a05297fbc9a76991ee939e32a92","556ccd493ec36c7d7cb130d51be66e147b91cc1415be383d71da0f1e49f742a9","b6d03c9cfe2cf0ba4c673c209fcd7c46c815b2619fd2aad59fc4229aaef2ed43","95aba78013d782537cc5e23868e736bec5d377b918990e28ed56110e3ae8b958","670a76db379b27c8ff42f1ba927828a22862e2ab0b0908e38b671f0e912cc5ed","13b77ab19ef7aadd86a1e54f2f08ea23a6d74e102909e3c00d31f231ed040f62","069bebfee29864e3955378107e243508b163e77ab10de6a5ee03ae06939f0bb9",{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true},"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a",{"version":"1456e80bd8a3870034d89f91bd7df12ac29acfb083e31c0bb1fb38ca7bf5fbc2","affectsGlobalScope":true},{"version":"a98aedd64ad81793f146d36d1611ed9ba61b8b49ff040f0d13a103ed626595d9","affectsGlobalScope":true},{"version":"6d9ef24f9a22a88e3e9b3b3d8c40ab1ddb0853f1bfbd5c843c37800138437b61","affectsGlobalScope":true},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true},"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107",{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true},"e2677634fe27e87348825bb041651e22d50a613e2fdf6a4a3ade971d71bac37e","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","8c0bcd6c6b67b4b503c11e91a1fb91522ed585900eab2ab1f61bba7d7caa9d6f",{"version":"8cd19276b6590b3ebbeeb030ac271871b9ed0afc3074ac88a94ed2449174b776","affectsGlobalScope":true},"696eb8d28f5949b87d894b26dc97318ef944c794a9a4e4f62360cd1d1958014b","3f8fa3061bd7402970b399300880d55257953ee6d3cd408722cb9ac20126460c",{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true},"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a",{"version":"68bd56c92c2bd7d2339457eb84d63e7de3bd56a69b25f3576e1568d21a162398","affectsGlobalScope":true},"3e93b123f7c2944969d291b35fed2af79a6e9e27fdd5faa99748a51c07c02d28","9d19808c8c291a9010a6c788e8532a2da70f811adb431c97520803e0ec649991","87aad3dd9752067dc875cfaa466fc44246451c0c560b820796bdd528e29bef40","4aacb0dd020eeaef65426153686cc639a78ec2885dc72ad220be1d25f1a439df","f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45",{"version":"8db0ae9cb14d9955b14c214f34dae1b9ef2baee2fe4ce794a4cd3ac2531e3255","affectsGlobalScope":true},"15fc6f7512c86810273af28f224251a5a879e4261b4d4c7e532abfbfc3983134","58adba1a8ab2d10b54dc1dced4e41f4e7c9772cbbac40939c0dc8ce2cdb1d442","641942a78f9063caa5d6b777c99304b7d1dc7328076038c6d94d8a0b81fc95c1","2de7636e6fbb9e54a61a38bcb7505b94ec5be61197fe9e840cff629ca920c4bc","855cd5f7eb396f5f1ab1bc0f8580339bff77b68a770f84c6b254e319bbfd1ac7","5650cf3dace09e7c25d384e3e6b818b938f68f4e8de96f52d9c5a1b3db068e86",{"version":"1354ca5c38bd3fd3836a68e0f7c9f91f172582ba30ab15bb8c075891b91502b7","affectsGlobalScope":true},"7e20d899c28ca26a2a7afc98beaa69e63ff7fba0a8bc47b4e3bf3ede5e09e424","2d2fcaab481b31a5882065c7951255703ddbe1c0e507af56ea42d79ac3911201","a192fe8ec33f75edbc8d8f3ed79f768dfae11ff5735e7fe52bfa69956e46d78d",{"version":"ca867399f7db82df981d6915bcbb2d81131d7d1ef683bc782b59f71dda59bc85","affectsGlobalScope":true},{"version":"372413016d17d804e1d139418aca0c68e47a83fb6669490857f4b318de8cccb3","affectsGlobalScope":true},"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","b4f70ec656a11d570e1a9edce07d118cd58d9760239e2ece99306ee9dfe61d02","3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","6e70e9570e98aae2b825b533aa6292b6abd542e8d9f6e9475e88e1d7ba17c866","f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","085f552d005479e2e6a7311cdbbe5d8c55c497b4d19274285df161ee9684cd9c","37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee",{"version":"007faacc9268357caa21d24169f3f3f2497af3e9241308df2d89f6e6d9bb3f2e","affectsGlobalScope":true},"74cf591a0f63db318651e0e04cb55f8791385f86e987a67fd4d2eaab8191f730","5eab9b3dc9b34f185417342436ec3f106898da5f4801992d8ff38ab3aff346b5",{"version":"12ed4559eba17cd977aa0db658d25c4047067444b51acfdcbf38470630642b23","affectsGlobalScope":true},"f3ffabc95802521e1e4bcba4c88d8615176dc6e09111d920c7a213bdda6e1d65","809821b8a065e3234a55b3a9d7846231ed18d66dd749f2494c66288d890daf7f","ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9",{"version":"c3b41e74b9a84b88b1dca61ec39eee25c0dbc8e7d519ba11bb070918cfacf656","affectsGlobalScope":true},{"version":"4737a9dc24d0e68b734e6cfbcea0c15a2cfafeb493485e27905f7856988c6b29","affectsGlobalScope":true},"36d8d3e7506b631c9582c251a2c0b8a28855af3f76719b12b534c6edf952748d","1ca69210cc42729e7ca97d3a9ad48f2e9cb0042bada4075b588ae5387debd318","f5ebe66baaf7c552cfa59d75f2bfba679f329204847db3cec385acda245e574e",{"version":"ed59add13139f84da271cafd32e2171876b0a0af2f798d0c663e8eeb867732cf","affectsGlobalScope":true},"b7c5e2ea4a9749097c347454805e933844ed207b6eefec6b7cfd418b5f5f7b28","0ea329e5eab6719ff83bcb97e8bd03f1faab4feb74704010783b881fc9d80f92","afe73051ff6a03a9565cbd8ebb0e956ee3df5e913ad5c1ded64218aabfa3dcb5","035a5df183489c2e22f3cf59fc1ed2b043d27f357eecc0eb8d8e840059d44245","a4809f4d92317535e6b22b01019437030077a76fec1d93b9881c9ed4738fcc54","5f53fa0bd22096d2a78533f94e02c899143b8f0f9891a46965294ee8b91a9434","cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","e1028394c1cf96d5d057ecc647e31e457b919092f882ed0c7092152b077fed9d","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec",{"version":"f8db4fea512ab759b2223b90ecbbe7dae919c02f8ce95ec03f7fb1cf757cfbeb","affectsGlobalScope":true},"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","ce6a3f09b8db73a7e9701aca91a04b4fabaf77436dd35b24482f9ee816016b17","20e086e5b64fdd52396de67761cc0e94693494deadb731264aac122adf08de3f","6e78f75403b3ec65efb41c70d392aeda94360f11cedc9fb2c039c9ea23b30962","c863198dae89420f3c552b5a03da6ed6d0acfa3807a64772b895db624b0de707","8b03a5e327d7db67112ebbc93b4f744133eda2c1743dbb0a990c61a8007823ef","42fad1f540271e35ca37cecda12c4ce2eef27f0f5cf0f8dd761d723c744d3159","ff3743a5de32bee10906aff63d1de726f6a7fd6ee2da4b8229054dfa69de2c34","83acd370f7f84f203e71ebba33ba61b7f1291ca027d7f9a662c6307d74e4ac22","1445cec898f90bdd18b2949b9590b3c012f5b7e1804e6e329fb0fe053946d5ec","0e5318ec2275d8da858b541920d9306650ae6ac8012f0e872fe66eb50321a669","cf530297c3fb3a92ec9591dd4fa229d58b5981e45fe6702a0bd2bea53a5e59be","c1f6f7d08d42148ddfe164d36d7aba91f467dbcb3caa715966ff95f55048b3a4","eefd2bbc8edb14c3bd1246794e5c070a80f9b8f3730bd42efb80df3cc50b9039","0c1ee27b8f6a00097c2d6d91a21ee4d096ab52c1e28350f6362542b55380059a","7677d5b0db9e020d3017720f853ba18f415219fb3a9597343b1b1012cfd699f7","bc1c6bc119c1784b1a2be6d9c47addec0d83ef0d52c8fbe1f14a51b4dfffc675","52cf2ce99c2a23de70225e252e9822a22b4e0adb82643ab0b710858810e00bf1","770625067bb27a20b9826255a8d47b6b5b0a2d3dfcbd21f89904c731f671ba77","d1ed6765f4d7906a05968fb5cd6d1db8afa14dbe512a4884e8ea5c0f5e142c80","799c0f1b07c092626cf1efd71d459997635911bb5f7fc1196efe449bba87e965","2a184e4462b9914a30b1b5c41cf80c6d3428f17b20d3afb711fff3f0644001fd","9eabde32a3aa5d80de34af2c2206cdc3ee094c6504a8d0c2d6d20c7c179503cc","397c8051b6cfcb48aa22656f0faca2553c5f56187262135162ee79d2b2f6c966","a8ead142e0c87dcd5dc130eba1f8eeed506b08952d905c47621dc2f583b1bff9","a02f10ea5f73130efca046429254a4e3c06b5475baecc8f7b99a0014731be8b3","c2576a4083232b0e2d9bd06875dd43d371dee2e090325a9eac0133fd5650c1cb","4c9a0564bb317349de6a24eb4efea8bb79898fa72ad63a1809165f5bd42970dd","f40ac11d8859092d20f953aae14ba967282c3bb056431a37fced1866ec7a2681","cc11e9e79d4746cc59e0e17473a59d6f104692fd0eeea1bdb2e206eabed83b03","b444a410d34fb5e98aa5ee2b381362044f4884652e8bc8a11c8fe14bbd85518e","c35808c1f5e16d2c571aa65067e3cb95afeff843b259ecfa2fc107a9519b5392","14d5dc055143e941c8743c6a21fa459f961cbc3deedf1bfe47b11587ca4b3ef5","a3ad4e1fc542751005267d50a6298e6765928c0c3a8dce1572f2ba6ca518661c","f237e7c97a3a89f4591afd49ecb3bd8d14f51a1c4adc8fcae3430febedff5eb6","3ffdfbec93b7aed71082af62b8c3e0cc71261cc68d796665faa1e91604fbae8f","662201f943ed45b1ad600d03a90dffe20841e725203ced8b708c91fcd7f9379a","c9ef74c64ed051ea5b958621e7fb853fe3b56e8787c1587aefc6ea988b3c7e79","2462ccfac5f3375794b861abaa81da380f1bbd9401de59ffa43119a0b644253d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","a56fe175741cc8841835eb72e61fa5a34adcbc249ede0e3494c229f0750f6b85","ab82804a14454734010dcdcd43f564ff7b0389bee4c5692eec76ff5b30d4cf66","bae8d023ef6b23df7da26f51cea44321f95817c190342a36882e93b80d07a960","26a770cec4bd2e7dbba95c6e536390fffe83c6268b78974a93727903b515c4e7"],"root":[61,62,[75,78]],"options":{"declaration":true,"module":1,"outDir":"./","removeComments":true,"sourceMap":true,"strict":true,"target":9},"fileIdsList":[[79,90,136],[90,136],[90,136,191],[67,90,136],[68,69,70,90,136],[68,90,136],[68,69,70,72,90,136],[70,71,73,90,136],[79,80,81,82,83,90,136],[79,81,90,136],[90,136,148,184],[90,136,186],[90,136,187],[90,136,193,196],[90,133,136],[90,135,136],[90,136,141,169],[90,136,137,142,147,155,166,177],[90,136,137,138,147,155],[85,86,87,90,136],[90,136,139,178],[90,136,140,141,148,156],[90,136,141,166,174],[90,136,142,144,147,155],[90,135,136,143],[90,136,144,145],[90,136,146,147],[90,135,136,147],[90,136,147,148,149,166,177],[90,136,147,148,149,162,166,169],[90,136,144,147,150,155,166,177],[90,136,147,148,150,151,155,166,174,177],[90,136,150,152,166,174,177],[90,136,147,153],[90,136,154,177,182],[90,136,144,147,155,166],[90,136,156],[90,136,157],[90,135,136,158],[90,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183],[90,136,160],[90,136,161],[90,136,147,162,163],[90,136,162,164,178,180],[90,136,147,166,167,169],[90,136,168,169],[90,136,166,167],[90,136,169],[90,136,170],[90,133,136,166,171],[90,136,147,172,173],[90,136,172,173],[90,136,141,155,166,174],[90,136,175],[136],[88,89,90,91,92,93,94,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183],[90,136,155,176],[90,136,150,161,177],[90,136,141,178],[90,136,166,179],[90,136,154,180],[90,136,181],[90,131,136],[90,131,136,147,149,158,166,169,177,180,182],[90,136,166,183],[90,136,200,238],[90,136,200,223,238],[90,136,199,238],[90,136,238],[90,136,200],[90,136,200,224,238],[90,136,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237],[90,136,224,238],[90,136,240],[90,136,144,150],[90,136,189,195],[64,90,136],[90,136,193],[90,136,190,194],[90,136,192],[90,103,107,136,177],[90,103,136,166,177],[90,98,136],[90,100,103,136,174,177],[90,136,155,174],[90,136,184],[90,98,136,184],[90,100,103,136,155,177],[90,95,96,99,102,136,147,166,177],[90,103,110,136],[90,95,101,136],[90,103,124,125,136],[90,99,103,136,169,177,184],[90,124,136,184],[90,97,98,136,184],[90,103,136],[90,97,98,99,100,101,102,103,104,105,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,125,126,127,128,129,130,136],[90,103,118,136],[90,103,110,111,136],[90,101,103,111,112,136],[90,102,136],[90,95,98,103,136],[90,103,107,111,112,136],[90,107,136],[90,101,103,106,136,177],[90,95,100,103,110,136],[90,136,166],[90,98,103,124,136,182,184],[90,136,150],[61,62,75,77,90,136],[61,62,63,65,66,74,75,76,90,136,144,150,152,166,178],[150],[62,74]],"referencedMap":[[81,1],[79,2],[189,2],[192,3],[191,2],[69,4],[71,5],[70,6],[73,7],[74,8],[67,2],[72,2],[68,4],[84,9],[80,1],[82,10],[83,1],[185,11],[186,2],[187,12],[188,13],[197,14],[198,2],[133,15],[134,15],[135,16],[136,17],[137,18],[138,19],[85,2],[88,20],[86,2],[87,2],[139,21],[140,22],[141,23],[142,24],[143,25],[144,26],[145,26],[146,27],[147,28],[148,29],[149,30],[91,2],[150,31],[151,32],[152,33],[153,34],[154,35],[155,36],[156,37],[157,38],[158,39],[159,40],[160,41],[161,42],[162,43],[163,43],[164,44],[165,2],[166,45],[168,46],[167,47],[169,48],[170,49],[171,50],[172,51],[173,52],[174,53],[175,54],[90,55],[89,2],[184,56],[176,57],[177,58],[178,59],[179,60],[180,61],[181,62],[92,2],[93,2],[94,2],[132,63],[182,64],[183,65],[223,66],[224,67],[200,68],[203,69],[221,66],[222,66],[212,66],[211,70],[209,66],[204,66],[217,66],[215,66],[219,66],[199,66],[216,66],[220,66],[205,66],[206,66],[218,66],[201,66],[207,66],[208,66],[210,66],[214,66],[225,71],[213,66],[202,66],[238,72],[237,2],[232,71],[234,73],[233,71],[226,71],[227,71],[229,71],[231,71],[235,73],[236,73],[228,73],[230,73],[239,2],[240,2],[241,74],[63,2],[66,75],[190,2],[196,76],[65,77],[64,2],[194,78],[195,79],[193,80],[58,2],[59,2],[10,2],[11,2],[15,2],[14,2],[2,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[23,2],[3,2],[4,2],[27,2],[24,2],[25,2],[26,2],[28,2],[29,2],[30,2],[5,2],[31,2],[32,2],[33,2],[34,2],[6,2],[38,2],[35,2],[36,2],[37,2],[39,2],[7,2],[40,2],[45,2],[46,2],[41,2],[42,2],[43,2],[44,2],[8,2],[50,2],[47,2],[48,2],[49,2],[51,2],[9,2],[52,2],[60,2],[53,2],[54,2],[57,2],[55,2],[56,2],[1,2],[13,2],[12,2],[110,81],[120,82],[109,81],[130,83],[101,84],[100,85],[129,86],[123,87],[128,88],[103,89],[117,90],[102,91],[126,92],[98,93],[97,86],[127,94],[99,95],[104,96],[105,2],[108,96],[95,2],[131,97],[121,98],[112,99],[113,100],[115,101],[111,102],[114,103],[124,86],[106,104],[107,105],[116,106],[96,107],[119,98],[118,96],[122,2],[125,108],[61,2],[62,109],[78,110],[77,111],[75,2],[76,2]],"exportedModulesMap":[[81,1],[79,2],[189,2],[192,3],[191,2],[69,4],[71,5],[70,6],[73,7],[74,8],[67,2],[72,2],[68,4],[84,9],[80,1],[82,10],[83,1],[185,11],[186,2],[187,12],[188,13],[197,14],[198,2],[133,15],[134,15],[135,16],[136,17],[137,18],[138,19],[85,2],[88,20],[86,2],[87,2],[139,21],[140,22],[141,23],[142,24],[143,25],[144,26],[145,26],[146,27],[147,28],[148,29],[149,30],[91,2],[150,31],[151,32],[152,33],[153,34],[154,35],[155,36],[156,37],[157,38],[158,39],[159,40],[160,41],[161,42],[162,43],[163,43],[164,44],[165,2],[166,45],[168,46],[167,47],[169,48],[170,49],[171,50],[172,51],[173,52],[174,53],[175,54],[90,55],[89,2],[184,56],[176,57],[177,58],[178,59],[179,60],[180,61],[181,62],[92,2],[93,2],[94,2],[132,63],[182,64],[183,65],[223,66],[224,67],[200,68],[203,69],[221,66],[222,66],[212,66],[211,70],[209,66],[204,66],[217,66],[215,66],[219,66],[199,66],[216,66],[220,66],[205,66],[206,66],[218,66],[201,66],[207,66],[208,66],[210,66],[214,66],[225,71],[213,66],[202,66],[238,72],[237,2],[232,71],[234,73],[233,71],[226,71],[227,71],[229,71],[231,71],[235,73],[236,73],[228,73],[230,73],[239,2],[240,2],[241,74],[63,2],[66,75],[190,2],[196,76],[65,77],[64,2],[194,78],[195,79],[193,80],[58,2],[59,2],[10,2],[11,2],[15,2],[14,2],[2,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[23,2],[3,2],[4,2],[27,2],[24,2],[25,2],[26,2],[28,2],[29,2],[30,2],[5,2],[31,2],[32,2],[33,2],[34,2],[6,2],[38,2],[35,2],[36,2],[37,2],[39,2],[7,2],[40,2],[45,2],[46,2],[41,2],[42,2],[43,2],[44,2],[8,2],[50,2],[47,2],[48,2],[49,2],[51,2],[9,2],[52,2],[60,2],[53,2],[54,2],[57,2],[55,2],[56,2],[1,2],[13,2],[12,2],[110,81],[120,82],[109,81],[130,83],[101,84],[100,85],[129,86],[123,87],[128,88],[103,89],[117,90],[102,91],[126,92],[98,93],[97,86],[127,94],[99,95],[104,96],[105,2],[108,96],[95,2],[131,97],[121,98],[112,99],[113,100],[115,101],[111,102],[114,103],[124,86],[106,104],[107,105],[116,106],[96,107],[119,98],[118,96],[122,2],[125,108],[62,112],[78,110],[77,113]],"semanticDiagnosticsPerFile":[81,79,189,192,191,69,71,70,73,74,67,72,68,84,80,82,83,185,186,187,188,197,198,133,134,135,136,137,138,85,88,86,87,139,140,141,142,143,144,145,146,147,148,149,91,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,168,167,169,170,171,172,173,174,175,90,89,184,176,177,178,179,180,181,92,93,94,132,182,183,223,224,200,203,221,222,212,211,209,204,217,215,219,199,216,220,205,206,218,201,207,208,210,214,225,213,202,238,237,232,234,233,226,227,229,231,235,236,228,230,239,240,241,63,66,190,196,65,64,194,195,193,58,59,10,11,15,14,2,16,17,18,19,20,21,22,23,3,4,27,24,25,26,28,29,30,5,31,32,33,34,6,38,35,36,37,39,7,40,45,46,41,42,43,44,8,50,47,48,49,51,9,52,60,53,54,57,55,56,1,13,12,110,120,109,130,101,100,129,123,128,103,117,102,126,98,97,127,99,104,105,108,95,131,121,112,113,115,111,114,124,106,107,116,96,119,118,122,125,61,62,78,77,75,76]},"version":"5.0.4"}
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2022.full.d.ts","../src/client-error.ts","../src/http-client.ts","../node_modules/axios/index.d.ts","../node_modules/exponential-backoff/dist/options.d.ts","../node_modules/exponential-backoff/dist/backoff.d.ts","../node_modules/cacheable-lookup/index.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/models/metric.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/use-cases/create-metric/metric-sender-interface.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/adapters/inbound/logger-metric-handler/logger-interface.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/adapters/inbound/metric-handler-interface.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/adapters/inbound/logger-metric-handler/logger-metric-handler.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/models/statsd-metrics-config.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/adapters/inbound/statsd-metric-handler/statsd-metric-handler.d.ts","../node_modules/@tiendanube/logistics-metric-handler/dist/index.d.ts","../src/metrics.ts","../src/redact.ts","../src/remove-authorization.ts","../src/origin.ts","../src/ne-service-token-provider.ts","../src/logistics-http-client.ts","../src/index.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/node/compatibility/disposable.d.ts","../node_modules/@types/node/compatibility/indexable.d.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/compatibility/index.d.ts","../node_modules/@types/node/ts5.6/globals.typedarray.d.ts","../node_modules/@types/node/ts5.6/buffer.buffer.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/web-globals/abortcontroller.d.ts","../node_modules/@types/node/web-globals/domexception.d.ts","../node_modules/@types/node/web-globals/events.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/file.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/web-globals/fetch.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.generated.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/ts5.6/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/@jest/expect-utils/build/index.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@sinclair/typebox/typebox.d.ts","../node_modules/@jest/schemas/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/semver/functions/inc.d.ts","../node_modules/@types/semver/classes/semver.d.ts","../node_modules/@types/semver/functions/parse.d.ts","../node_modules/@types/semver/functions/valid.d.ts","../node_modules/@types/semver/functions/clean.d.ts","../node_modules/@types/semver/functions/diff.d.ts","../node_modules/@types/semver/functions/major.d.ts","../node_modules/@types/semver/functions/minor.d.ts","../node_modules/@types/semver/functions/patch.d.ts","../node_modules/@types/semver/functions/prerelease.d.ts","../node_modules/@types/semver/functions/compare.d.ts","../node_modules/@types/semver/functions/rcompare.d.ts","../node_modules/@types/semver/functions/compare-loose.d.ts","../node_modules/@types/semver/functions/compare-build.d.ts","../node_modules/@types/semver/functions/sort.d.ts","../node_modules/@types/semver/functions/rsort.d.ts","../node_modules/@types/semver/functions/gt.d.ts","../node_modules/@types/semver/functions/lt.d.ts","../node_modules/@types/semver/functions/eq.d.ts","../node_modules/@types/semver/functions/neq.d.ts","../node_modules/@types/semver/functions/gte.d.ts","../node_modules/@types/semver/functions/lte.d.ts","../node_modules/@types/semver/functions/cmp.d.ts","../node_modules/@types/semver/functions/coerce.d.ts","../node_modules/@types/semver/classes/comparator.d.ts","../node_modules/@types/semver/classes/range.d.ts","../node_modules/@types/semver/functions/satisfies.d.ts","../node_modules/@types/semver/ranges/max-satisfying.d.ts","../node_modules/@types/semver/ranges/min-satisfying.d.ts","../node_modules/@types/semver/ranges/to-comparators.d.ts","../node_modules/@types/semver/ranges/min-version.d.ts","../node_modules/@types/semver/ranges/valid.d.ts","../node_modules/@types/semver/ranges/outside.d.ts","../node_modules/@types/semver/ranges/gtr.d.ts","../node_modules/@types/semver/ranges/ltr.d.ts","../node_modules/@types/semver/ranges/intersects.d.ts","../node_modules/@types/semver/ranges/simplify.d.ts","../node_modules/@types/semver/ranges/subset.d.ts","../node_modules/@types/semver/internals/identifiers.d.ts","../node_modules/@types/semver/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"6a6b471e7e43e15ef6f8fe617a22ce4ecb0e34efa6c3dfcfe7cebd392bcca9d2","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc",{"version":"fcd3ecc9f764f06f4d5c467677f4f117f6abf49dee6716283aa204ff1162498b","affectsGlobalScope":true},{"version":"9a60b92bca4c1257db03b349d58e63e4868cfc0d1c8d0ba60c2dbc63f4e6c9f6","affectsGlobalScope":true},{"version":"c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996","affectsGlobalScope":true},{"version":"7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c","affectsGlobalScope":true},{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"5114a95689b63f96b957e00216bc04baf9e1a1782aa4d8ee7e5e9acbf768e301","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true},{"version":"b7feb7967c6c6003e11f49efa8f5de989484e0a6ba2e5a6c41b55f8b8bd85dba","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"1df2366de6650547b3dc1d7c4147355c0f6b4729c964e3839636fa418982d131",{"version":"96d60c4d3f561493b6668267451676de6fa9359d956d4116630d4bf95d01459b","signature":"4244759d1fd147a698241e3d93a171bdbf1130827274d54ca05b87a38ab00abe"},{"version":"568220835c5bb6395e2e89f09232410d0f27a569b763fba53c75f574da488b8b","signature":"1fae23cfb9253199c24f1fd8217a0c5038da7c440cf2f1cacebf825ebee70d9b"},"da451e3a2dfc734b3c5e1988c71ed1d69e4de602a98e68610c0355da7a46c5ab","5e5ca00fac373064d528582f9582cb0679a271f89276e5d30db64ba789d6efda","10c163f67197cf2d4d76ae7c74d68825c3a95bfb0219bf944b926d53ff648fde","4b8db4ddeab4e3d3bcdbc033f82db9c610d79d9dac4822a166b48b8115a56b86","b2aaab1a2a056855205a05810c46f3cc6bc32d375596a47036da1e32fb6cf8c6","eee5d65190bc56d3a154d50fa2d2242c1e34704a5bcc8523e37447573bf3fb7d","21a88dc6c55a953b036dbefb156a57b8c70f4a89937fd4cb012f3bcf9e9aecaf","229f04a0eb0aac5abcd9ea2ec65fc35da91bcb458c439e9ada3d823c0af8e9a6","be9b3a275c7447293e44e7f13f9fc317acd5f42681e63d4adb9ec4e208fdedb9","217977146f60b0c04aa77599e4e5c1a2b4794d46de22dcc8033b290080d1e8b1","dc83660a051c9354cffe225a1ccd89adcd7cbd26f4cd56816092c34af6341937","681e6d40399d963810deee82ff0db86edf3af2ee0e6e3976c34f7e0615a6cbcb",{"version":"0285a20596af274cc91284ad3612c1f9c3b949e49f44a3a739d1deccb59545eb","signature":"6b3a04d794ced7a61c00ead314be8a8e99dd6202499ba3bd2cb1696a512770a6"},{"version":"87fc7c2da7d67c85b62272d2e3c3c3a44c79fa1e8f81492980e9e1f8c1ee57f2","signature":"3e91355e6a501b6588d06f320d65bdaaf514f32418882a726a73ea1caec01378"},{"version":"25abf87490f6d0f97447b3c8a8750e5e37bbfd144b120f3caffe12ccab9def1d","signature":"640d6045e19e5df94210d8052dd40837514deb80bcb8844d2428c8d25a3f38b8"},{"version":"869a248d313d47785e3cf0d873b3d55a609191c60a12f33825a54d440bd73831","signature":"78f328ae53ec28394a3dffc4de42b5d097e397c0fc7754057ac91f370c97feda"},{"version":"ba4c745bac385986766370405ce5631dab1756ee8648d374ff57bb5d3fce1ece","signature":"b62769e24b01481dfc3aa9bacb9f39377ce33d6ae1f1baa7952c4672749ed598"},{"version":"f28790a5ce9ae4e462fbae2a0d2696854f3db07c9c8d0ca07cbe0f2430fbb035","signature":"a08116bc325b1743e6d023ccc9f69aa6f3dcdb6c9d5d2198cc885b8b968245b6"},"7716bf83faf06d86b4506fc43e40e0d0c5681a05297fbc9a76991ee939e32a92","556ccd493ec36c7d7cb130d51be66e147b91cc1415be383d71da0f1e49f742a9","b6d03c9cfe2cf0ba4c673c209fcd7c46c815b2619fd2aad59fc4229aaef2ed43","95aba78013d782537cc5e23868e736bec5d377b918990e28ed56110e3ae8b958","670a76db379b27c8ff42f1ba927828a22862e2ab0b0908e38b671f0e912cc5ed","13b77ab19ef7aadd86a1e54f2f08ea23a6d74e102909e3c00d31f231ed040f62","069bebfee29864e3955378107e243508b163e77ab10de6a5ee03ae06939f0bb9",{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true},"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a",{"version":"1456e80bd8a3870034d89f91bd7df12ac29acfb083e31c0bb1fb38ca7bf5fbc2","affectsGlobalScope":true},{"version":"a98aedd64ad81793f146d36d1611ed9ba61b8b49ff040f0d13a103ed626595d9","affectsGlobalScope":true},{"version":"6d9ef24f9a22a88e3e9b3b3d8c40ab1ddb0853f1bfbd5c843c37800138437b61","affectsGlobalScope":true},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true},"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107",{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true},"e2677634fe27e87348825bb041651e22d50a613e2fdf6a4a3ade971d71bac37e","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","8c0bcd6c6b67b4b503c11e91a1fb91522ed585900eab2ab1f61bba7d7caa9d6f",{"version":"8cd19276b6590b3ebbeeb030ac271871b9ed0afc3074ac88a94ed2449174b776","affectsGlobalScope":true},"696eb8d28f5949b87d894b26dc97318ef944c794a9a4e4f62360cd1d1958014b","3f8fa3061bd7402970b399300880d55257953ee6d3cd408722cb9ac20126460c",{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true},"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a",{"version":"68bd56c92c2bd7d2339457eb84d63e7de3bd56a69b25f3576e1568d21a162398","affectsGlobalScope":true},"3e93b123f7c2944969d291b35fed2af79a6e9e27fdd5faa99748a51c07c02d28","9d19808c8c291a9010a6c788e8532a2da70f811adb431c97520803e0ec649991","87aad3dd9752067dc875cfaa466fc44246451c0c560b820796bdd528e29bef40","4aacb0dd020eeaef65426153686cc639a78ec2885dc72ad220be1d25f1a439df","f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45",{"version":"8db0ae9cb14d9955b14c214f34dae1b9ef2baee2fe4ce794a4cd3ac2531e3255","affectsGlobalScope":true},"15fc6f7512c86810273af28f224251a5a879e4261b4d4c7e532abfbfc3983134","58adba1a8ab2d10b54dc1dced4e41f4e7c9772cbbac40939c0dc8ce2cdb1d442","641942a78f9063caa5d6b777c99304b7d1dc7328076038c6d94d8a0b81fc95c1","2de7636e6fbb9e54a61a38bcb7505b94ec5be61197fe9e840cff629ca920c4bc","855cd5f7eb396f5f1ab1bc0f8580339bff77b68a770f84c6b254e319bbfd1ac7","5650cf3dace09e7c25d384e3e6b818b938f68f4e8de96f52d9c5a1b3db068e86",{"version":"1354ca5c38bd3fd3836a68e0f7c9f91f172582ba30ab15bb8c075891b91502b7","affectsGlobalScope":true},"7e20d899c28ca26a2a7afc98beaa69e63ff7fba0a8bc47b4e3bf3ede5e09e424","2d2fcaab481b31a5882065c7951255703ddbe1c0e507af56ea42d79ac3911201","a192fe8ec33f75edbc8d8f3ed79f768dfae11ff5735e7fe52bfa69956e46d78d",{"version":"ca867399f7db82df981d6915bcbb2d81131d7d1ef683bc782b59f71dda59bc85","affectsGlobalScope":true},{"version":"372413016d17d804e1d139418aca0c68e47a83fb6669490857f4b318de8cccb3","affectsGlobalScope":true},"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","b4f70ec656a11d570e1a9edce07d118cd58d9760239e2ece99306ee9dfe61d02","3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","6e70e9570e98aae2b825b533aa6292b6abd542e8d9f6e9475e88e1d7ba17c866","f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","085f552d005479e2e6a7311cdbbe5d8c55c497b4d19274285df161ee9684cd9c","37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee",{"version":"007faacc9268357caa21d24169f3f3f2497af3e9241308df2d89f6e6d9bb3f2e","affectsGlobalScope":true},"74cf591a0f63db318651e0e04cb55f8791385f86e987a67fd4d2eaab8191f730","5eab9b3dc9b34f185417342436ec3f106898da5f4801992d8ff38ab3aff346b5",{"version":"12ed4559eba17cd977aa0db658d25c4047067444b51acfdcbf38470630642b23","affectsGlobalScope":true},"f3ffabc95802521e1e4bcba4c88d8615176dc6e09111d920c7a213bdda6e1d65","809821b8a065e3234a55b3a9d7846231ed18d66dd749f2494c66288d890daf7f","ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9",{"version":"c3b41e74b9a84b88b1dca61ec39eee25c0dbc8e7d519ba11bb070918cfacf656","affectsGlobalScope":true},{"version":"4737a9dc24d0e68b734e6cfbcea0c15a2cfafeb493485e27905f7856988c6b29","affectsGlobalScope":true},"36d8d3e7506b631c9582c251a2c0b8a28855af3f76719b12b534c6edf952748d","1ca69210cc42729e7ca97d3a9ad48f2e9cb0042bada4075b588ae5387debd318","f5ebe66baaf7c552cfa59d75f2bfba679f329204847db3cec385acda245e574e",{"version":"ed59add13139f84da271cafd32e2171876b0a0af2f798d0c663e8eeb867732cf","affectsGlobalScope":true},"b7c5e2ea4a9749097c347454805e933844ed207b6eefec6b7cfd418b5f5f7b28","0ea329e5eab6719ff83bcb97e8bd03f1faab4feb74704010783b881fc9d80f92","afe73051ff6a03a9565cbd8ebb0e956ee3df5e913ad5c1ded64218aabfa3dcb5","035a5df183489c2e22f3cf59fc1ed2b043d27f357eecc0eb8d8e840059d44245","a4809f4d92317535e6b22b01019437030077a76fec1d93b9881c9ed4738fcc54","5f53fa0bd22096d2a78533f94e02c899143b8f0f9891a46965294ee8b91a9434","cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","e1028394c1cf96d5d057ecc647e31e457b919092f882ed0c7092152b077fed9d","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec",{"version":"f8db4fea512ab759b2223b90ecbbe7dae919c02f8ce95ec03f7fb1cf757cfbeb","affectsGlobalScope":true},"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","ce6a3f09b8db73a7e9701aca91a04b4fabaf77436dd35b24482f9ee816016b17","20e086e5b64fdd52396de67761cc0e94693494deadb731264aac122adf08de3f","6e78f75403b3ec65efb41c70d392aeda94360f11cedc9fb2c039c9ea23b30962","c863198dae89420f3c552b5a03da6ed6d0acfa3807a64772b895db624b0de707","8b03a5e327d7db67112ebbc93b4f744133eda2c1743dbb0a990c61a8007823ef","42fad1f540271e35ca37cecda12c4ce2eef27f0f5cf0f8dd761d723c744d3159","ff3743a5de32bee10906aff63d1de726f6a7fd6ee2da4b8229054dfa69de2c34","83acd370f7f84f203e71ebba33ba61b7f1291ca027d7f9a662c6307d74e4ac22","1445cec898f90bdd18b2949b9590b3c012f5b7e1804e6e329fb0fe053946d5ec","0e5318ec2275d8da858b541920d9306650ae6ac8012f0e872fe66eb50321a669","cf530297c3fb3a92ec9591dd4fa229d58b5981e45fe6702a0bd2bea53a5e59be","c1f6f7d08d42148ddfe164d36d7aba91f467dbcb3caa715966ff95f55048b3a4","eefd2bbc8edb14c3bd1246794e5c070a80f9b8f3730bd42efb80df3cc50b9039","0c1ee27b8f6a00097c2d6d91a21ee4d096ab52c1e28350f6362542b55380059a","7677d5b0db9e020d3017720f853ba18f415219fb3a9597343b1b1012cfd699f7","bc1c6bc119c1784b1a2be6d9c47addec0d83ef0d52c8fbe1f14a51b4dfffc675","52cf2ce99c2a23de70225e252e9822a22b4e0adb82643ab0b710858810e00bf1","770625067bb27a20b9826255a8d47b6b5b0a2d3dfcbd21f89904c731f671ba77","d1ed6765f4d7906a05968fb5cd6d1db8afa14dbe512a4884e8ea5c0f5e142c80","799c0f1b07c092626cf1efd71d459997635911bb5f7fc1196efe449bba87e965","2a184e4462b9914a30b1b5c41cf80c6d3428f17b20d3afb711fff3f0644001fd","9eabde32a3aa5d80de34af2c2206cdc3ee094c6504a8d0c2d6d20c7c179503cc","397c8051b6cfcb48aa22656f0faca2553c5f56187262135162ee79d2b2f6c966","a8ead142e0c87dcd5dc130eba1f8eeed506b08952d905c47621dc2f583b1bff9","a02f10ea5f73130efca046429254a4e3c06b5475baecc8f7b99a0014731be8b3","c2576a4083232b0e2d9bd06875dd43d371dee2e090325a9eac0133fd5650c1cb","4c9a0564bb317349de6a24eb4efea8bb79898fa72ad63a1809165f5bd42970dd","f40ac11d8859092d20f953aae14ba967282c3bb056431a37fced1866ec7a2681","cc11e9e79d4746cc59e0e17473a59d6f104692fd0eeea1bdb2e206eabed83b03","b444a410d34fb5e98aa5ee2b381362044f4884652e8bc8a11c8fe14bbd85518e","c35808c1f5e16d2c571aa65067e3cb95afeff843b259ecfa2fc107a9519b5392","14d5dc055143e941c8743c6a21fa459f961cbc3deedf1bfe47b11587ca4b3ef5","a3ad4e1fc542751005267d50a6298e6765928c0c3a8dce1572f2ba6ca518661c","f237e7c97a3a89f4591afd49ecb3bd8d14f51a1c4adc8fcae3430febedff5eb6","3ffdfbec93b7aed71082af62b8c3e0cc71261cc68d796665faa1e91604fbae8f","662201f943ed45b1ad600d03a90dffe20841e725203ced8b708c91fcd7f9379a","c9ef74c64ed051ea5b958621e7fb853fe3b56e8787c1587aefc6ea988b3c7e79","2462ccfac5f3375794b861abaa81da380f1bbd9401de59ffa43119a0b644253d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","a56fe175741cc8841835eb72e61fa5a34adcbc249ede0e3494c229f0750f6b85","ab82804a14454734010dcdcd43f564ff7b0389bee4c5692eec76ff5b30d4cf66","bae8d023ef6b23df7da26f51cea44321f95817c190342a36882e93b80d07a960","26a770cec4bd2e7dbba95c6e536390fffe83c6268b78974a93727903b515c4e7"],"root":[61,62,[75,81]],"options":{"declaration":true,"module":1,"outDir":"./","removeComments":true,"sourceMap":true,"strict":true,"target":9},"fileIdsList":[[82,93,139],[93,139],[93,139,194],[67,93,139],[68,69,70,93,139],[68,93,139],[68,69,70,72,93,139],[70,71,73,93,139],[82,83,84,85,86,93,139],[82,84,93,139],[93,139,151,187],[93,139,189],[93,139,190],[93,139,196,199],[93,136,139],[93,138,139],[93,139,144,172],[93,139,140,145,150,158,169,180],[93,139,140,141,150,158],[88,89,90,93,139],[93,139,142,181],[93,139,143,144,151,159],[93,139,144,169,177],[93,139,145,147,150,158],[93,138,139,146],[93,139,147,148],[93,139,149,150],[93,138,139,150],[93,139,150,151,152,169,180],[93,139,150,151,152,165,169,172],[93,139,147,150,153,158,169,180],[93,139,150,151,153,154,158,169,177,180],[93,139,153,155,169,177,180],[93,139,150,156],[93,139,157,180,185],[93,139,147,150,158,169],[93,139,159],[93,139,160],[93,138,139,161],[93,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186],[93,139,163],[93,139,164],[93,139,150,165,166],[93,139,165,167,181,183],[93,139,150,169,170,172],[93,139,171,172],[93,139,169,170],[93,139,172],[93,139,173],[93,136,139,169,174],[93,139,150,175,176],[93,139,175,176],[93,139,144,158,169,177],[93,139,178],[139],[91,92,93,94,95,96,97,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186],[93,139,158,179],[93,139,153,164,180],[93,139,144,181],[93,139,169,182],[93,139,157,183],[93,139,184],[93,134,139],[93,134,139,150,152,161,169,172,180,183,185],[93,139,169,186],[93,139,203,241],[93,139,203,226,241],[93,139,202,241],[93,139,241],[93,139,203],[93,139,203,227,241],[93,139,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240],[93,139,227,241],[93,139,243],[93,139,147,153],[93,139,192,198],[64,93,139],[93,139,196],[93,139,193,197],[93,139,195],[93,106,110,139,180],[93,106,139,169,180],[93,101,139],[93,103,106,139,177,180],[93,139,158,177],[93,139,187],[93,101,139,187],[93,103,106,139,158,180],[93,98,99,102,105,139,150,169,180],[93,106,113,139],[93,98,104,139],[93,106,127,128,139],[93,102,106,139,172,180,187],[93,127,139,187],[93,100,101,139,187],[93,106,139],[93,100,101,102,103,104,105,106,107,108,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,128,129,130,131,132,133,139],[93,106,121,139],[93,106,113,114,139],[93,104,106,114,115,139],[93,105,139],[93,98,101,106,139],[93,106,110,114,115,139],[93,110,139],[93,104,106,109,139,180],[93,98,103,106,113,139],[93,139,169],[93,101,106,127,139,185,187],[93,139,153],[61,62,75,80,93,139],[61,62,63,65,66,74,75,76,77,78,79,93,139,147,153,155,169,181],[61,62,63,78,93,139,153,155],[63,93,139],[153],[62,74],[62,153,155],[63]],"referencedMap":[[84,1],[82,2],[192,2],[195,3],[194,2],[69,4],[71,5],[70,6],[73,7],[74,8],[67,2],[72,2],[68,4],[87,9],[83,1],[85,10],[86,1],[188,11],[189,2],[190,12],[191,13],[200,14],[201,2],[136,15],[137,15],[138,16],[139,17],[140,18],[141,19],[88,2],[91,20],[89,2],[90,2],[142,21],[143,22],[144,23],[145,24],[146,25],[147,26],[148,26],[149,27],[150,28],[151,29],[152,30],[94,2],[153,31],[154,32],[155,33],[156,34],[157,35],[158,36],[159,37],[160,38],[161,39],[162,40],[163,41],[164,42],[165,43],[166,43],[167,44],[168,2],[169,45],[171,46],[170,47],[172,48],[173,49],[174,50],[175,51],[176,52],[177,53],[178,54],[93,55],[92,2],[187,56],[179,57],[180,58],[181,59],[182,60],[183,61],[184,62],[95,2],[96,2],[97,2],[135,63],[185,64],[186,65],[226,66],[227,67],[203,68],[206,69],[224,66],[225,66],[215,66],[214,70],[212,66],[207,66],[220,66],[218,66],[222,66],[202,66],[219,66],[223,66],[208,66],[209,66],[221,66],[204,66],[210,66],[211,66],[213,66],[217,66],[228,71],[216,66],[205,66],[241,72],[240,2],[235,71],[237,73],[236,71],[229,71],[230,71],[232,71],[234,71],[238,73],[239,73],[231,73],[233,73],[242,2],[243,2],[244,74],[63,2],[66,75],[193,2],[199,76],[65,77],[64,2],[197,78],[198,79],[196,80],[58,2],[59,2],[10,2],[11,2],[15,2],[14,2],[2,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[23,2],[3,2],[4,2],[27,2],[24,2],[25,2],[26,2],[28,2],[29,2],[30,2],[5,2],[31,2],[32,2],[33,2],[34,2],[6,2],[38,2],[35,2],[36,2],[37,2],[39,2],[7,2],[40,2],[45,2],[46,2],[41,2],[42,2],[43,2],[44,2],[8,2],[50,2],[47,2],[48,2],[49,2],[51,2],[9,2],[52,2],[60,2],[53,2],[54,2],[57,2],[55,2],[56,2],[1,2],[13,2],[12,2],[113,81],[123,82],[112,81],[133,83],[104,84],[103,85],[132,86],[126,87],[131,88],[106,89],[120,90],[105,91],[129,92],[101,93],[100,86],[130,94],[102,95],[107,96],[108,2],[111,96],[98,2],[134,97],[124,98],[115,99],[116,100],[118,101],[114,102],[117,103],[127,86],[109,104],[110,105],[119,106],[99,107],[122,98],[121,96],[125,2],[128,108],[61,2],[62,109],[81,110],[80,111],[75,2],[79,112],[78,2],[76,2],[77,113]],"exportedModulesMap":[[84,1],[82,2],[192,2],[195,3],[194,2],[69,4],[71,5],[70,6],[73,7],[74,8],[67,2],[72,2],[68,4],[87,9],[83,1],[85,10],[86,1],[188,11],[189,2],[190,12],[191,13],[200,14],[201,2],[136,15],[137,15],[138,16],[139,17],[140,18],[141,19],[88,2],[91,20],[89,2],[90,2],[142,21],[143,22],[144,23],[145,24],[146,25],[147,26],[148,26],[149,27],[150,28],[151,29],[152,30],[94,2],[153,31],[154,32],[155,33],[156,34],[157,35],[158,36],[159,37],[160,38],[161,39],[162,40],[163,41],[164,42],[165,43],[166,43],[167,44],[168,2],[169,45],[171,46],[170,47],[172,48],[173,49],[174,50],[175,51],[176,52],[177,53],[178,54],[93,55],[92,2],[187,56],[179,57],[180,58],[181,59],[182,60],[183,61],[184,62],[95,2],[96,2],[97,2],[135,63],[185,64],[186,65],[226,66],[227,67],[203,68],[206,69],[224,66],[225,66],[215,66],[214,70],[212,66],[207,66],[220,66],[218,66],[222,66],[202,66],[219,66],[223,66],[208,66],[209,66],[221,66],[204,66],[210,66],[211,66],[213,66],[217,66],[228,71],[216,66],[205,66],[241,72],[240,2],[235,71],[237,73],[236,71],[229,71],[230,71],[232,71],[234,71],[238,73],[239,73],[231,73],[233,73],[242,2],[243,2],[244,74],[63,2],[66,75],[193,2],[199,76],[65,77],[64,2],[197,78],[198,79],[196,80],[58,2],[59,2],[10,2],[11,2],[15,2],[14,2],[2,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[23,2],[3,2],[4,2],[27,2],[24,2],[25,2],[26,2],[28,2],[29,2],[30,2],[5,2],[31,2],[32,2],[33,2],[34,2],[6,2],[38,2],[35,2],[36,2],[37,2],[39,2],[7,2],[40,2],[45,2],[46,2],[41,2],[42,2],[43,2],[44,2],[8,2],[50,2],[47,2],[48,2],[49,2],[51,2],[9,2],[52,2],[60,2],[53,2],[54,2],[57,2],[55,2],[56,2],[1,2],[13,2],[12,2],[113,81],[123,82],[112,81],[133,83],[104,84],[103,85],[132,86],[126,87],[131,88],[106,89],[120,90],[105,91],[129,92],[101,93],[100,86],[130,94],[102,95],[107,96],[108,2],[111,96],[98,2],[134,97],[124,98],[115,99],[116,100],[118,101],[114,102],[117,103],[127,86],[109,104],[110,105],[119,106],[99,107],[122,98],[121,96],[125,2],[128,108],[62,114],[81,110],[80,115],[79,116],[77,117]],"semanticDiagnosticsPerFile":[84,82,192,195,194,69,71,70,73,74,67,72,68,87,83,85,86,188,189,190,191,200,201,136,137,138,139,140,141,88,91,89,90,142,143,144,145,146,147,148,149,150,151,152,94,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,171,170,172,173,174,175,176,177,178,93,92,187,179,180,181,182,183,184,95,96,97,135,185,186,226,227,203,206,224,225,215,214,212,207,220,218,222,202,219,223,208,209,221,204,210,211,213,217,228,216,205,241,240,235,237,236,229,230,232,234,238,239,231,233,242,243,244,63,66,193,199,65,64,197,198,196,58,59,10,11,15,14,2,16,17,18,19,20,21,22,23,3,4,27,24,25,26,28,29,30,5,31,32,33,34,6,38,35,36,37,39,7,40,45,46,41,42,43,44,8,50,47,48,49,51,9,52,60,53,54,57,55,56,1,13,12,113,123,112,133,104,103,132,126,131,106,120,105,129,101,100,130,102,107,108,111,98,134,124,115,116,118,114,117,127,109,110,119,99,122,121,125,128,61,62,81,80,75,79,78,76,77]},"version":"5.0.4"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiendanube/logistics-http-client",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0-rc.0",
|
|
4
4
|
"description": "Package responsible for executing http requests",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"dist/**/*"
|
|
29
29
|
],
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"registry": "https://registry.npmjs.org/"
|
|
32
|
+
},
|
|
30
33
|
"dependencies": {
|
|
31
34
|
"@tiendanube/logistics-metric-handler": "^2.2.4",
|
|
32
35
|
"axios": "1.16.1",
|