@aws-sdk/client-cognito-sync 3.943.0 → 3.946.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.
Files changed (43) hide show
  1. package/dist-cjs/index.js +37 -172
  2. package/dist-cjs/runtimeConfig.browser.js +2 -2
  3. package/dist-cjs/runtimeConfig.js +3 -4
  4. package/dist-es/CognitoSyncClient.js +2 -2
  5. package/dist-es/runtimeConfig.browser.js +2 -2
  6. package/dist-es/runtimeConfig.js +2 -3
  7. package/dist-es/schemas/schemas_0.js +37 -172
  8. package/dist-types/CognitoSync.d.ts +1 -1
  9. package/dist-types/CognitoSyncClient.d.ts +10 -10
  10. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  11. package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
  12. package/dist-types/commands/BulkPublishCommand.d.ts +3 -3
  13. package/dist-types/commands/DeleteDatasetCommand.d.ts +3 -3
  14. package/dist-types/commands/DescribeDatasetCommand.d.ts +3 -3
  15. package/dist-types/commands/DescribeIdentityPoolUsageCommand.d.ts +3 -3
  16. package/dist-types/commands/DescribeIdentityUsageCommand.d.ts +3 -3
  17. package/dist-types/commands/GetBulkPublishDetailsCommand.d.ts +3 -3
  18. package/dist-types/commands/GetCognitoEventsCommand.d.ts +3 -3
  19. package/dist-types/commands/GetIdentityPoolConfigurationCommand.d.ts +3 -3
  20. package/dist-types/commands/ListDatasetsCommand.d.ts +3 -3
  21. package/dist-types/commands/ListIdentityPoolUsageCommand.d.ts +3 -3
  22. package/dist-types/commands/ListRecordsCommand.d.ts +3 -3
  23. package/dist-types/commands/RegisterDeviceCommand.d.ts +3 -3
  24. package/dist-types/commands/SetCognitoEventsCommand.d.ts +3 -3
  25. package/dist-types/commands/SetIdentityPoolConfigurationCommand.d.ts +3 -3
  26. package/dist-types/commands/SubscribeToDatasetCommand.d.ts +3 -3
  27. package/dist-types/commands/UnsubscribeFromDatasetCommand.d.ts +3 -3
  28. package/dist-types/commands/UpdateRecordsCommand.d.ts +3 -3
  29. package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
  30. package/dist-types/endpoint/endpointResolver.d.ts +5 -2
  31. package/dist-types/extensionConfiguration.d.ts +4 -4
  32. package/dist-types/models/CognitoSyncServiceException.d.ts +1 -1
  33. package/dist-types/models/errors.d.ts +1 -1
  34. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  35. package/dist-types/runtimeConfig.d.ts +1 -1
  36. package/dist-types/runtimeConfig.native.d.ts +1 -1
  37. package/dist-types/runtimeConfig.shared.d.ts +1 -1
  38. package/dist-types/runtimeExtensions.d.ts +1 -1
  39. package/dist-types/schemas/schemas_0.d.ts +1 -1
  40. package/dist-types/ts3.4/CognitoSyncClient.d.ts +3 -3
  41. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  42. package/dist-types/ts3.4/models/CognitoSyncServiceException.d.ts +1 -1
  43. package/package.json +13 -12
package/dist-cjs/index.js CHANGED
@@ -409,11 +409,7 @@ var AlreadyStreamedException = [
409
409
  -3,
410
410
  n0,
411
411
  _ASE,
412
- {
413
- [_e]: _c,
414
- [_hE]: 400,
415
- [_aQE]: [`AlreadyStreamed`, 400],
416
- },
412
+ { [_e]: _c, [_hE]: 400, [_aQE]: [`AlreadyStreamed`, 400] },
417
413
  [_m],
418
414
  [0],
419
415
  ];
@@ -425,11 +421,7 @@ var ConcurrentModificationException = [
425
421
  -3,
426
422
  n0,
427
423
  _CME,
428
- {
429
- [_e]: _c,
430
- [_hE]: 400,
431
- [_aQE]: [`ConcurrentModification`, 400],
432
- },
424
+ { [_e]: _c, [_hE]: 400, [_aQE]: [`ConcurrentModification`, 400] },
433
425
  [_m],
434
426
  [0],
435
427
  ];
@@ -493,11 +485,7 @@ var DuplicateRequestException = [
493
485
  -3,
494
486
  n0,
495
487
  _DRE,
496
- {
497
- [_e]: _c,
498
- [_hE]: 400,
499
- [_aQE]: [`DuplicateRequest`, 400],
500
- },
488
+ { [_e]: _c, [_hE]: 400, [_aQE]: [`DuplicateRequest`, 400] },
501
489
  [_m],
502
490
  [0],
503
491
  ];
@@ -528,11 +516,7 @@ var InternalErrorException = [
528
516
  -3,
529
517
  n0,
530
518
  _IEE,
531
- {
532
- [_e]: _s,
533
- [_hE]: 500,
534
- [_aQE]: [`InternalError`, 500],
535
- },
519
+ { [_e]: _s, [_hE]: 500, [_aQE]: [`InternalError`, 500] },
536
520
  [_m],
537
521
  [0],
538
522
  ];
@@ -541,11 +525,7 @@ var InvalidConfigurationException = [
541
525
  -3,
542
526
  n0,
543
527
  _ICE,
544
- {
545
- [_e]: _c,
546
- [_hE]: 400,
547
- [_aQE]: [`InvalidConfiguration`, 400],
548
- },
528
+ { [_e]: _c, [_hE]: 400, [_aQE]: [`InvalidConfiguration`, 400] },
549
529
  [_m],
550
530
  [0],
551
531
  ];
@@ -554,11 +534,7 @@ var InvalidLambdaFunctionOutputException = [
554
534
  -3,
555
535
  n0,
556
536
  _ILFOE,
557
- {
558
- [_e]: _c,
559
- [_hE]: 400,
560
- [_aQE]: [`InvalidLambdaFunctionOutput`, 400],
561
- },
537
+ { [_e]: _c, [_hE]: 400, [_aQE]: [`InvalidLambdaFunctionOutput`, 400] },
562
538
  [_m],
563
539
  [0],
564
540
  ];
@@ -567,11 +543,7 @@ var InvalidParameterException = [
567
543
  -3,
568
544
  n0,
569
545
  _IPE,
570
- {
571
- [_e]: _c,
572
- [_hE]: 400,
573
- [_aQE]: [`InvalidParameter`, 400],
574
- },
546
+ { [_e]: _c, [_hE]: 400, [_aQE]: [`InvalidParameter`, 400] },
575
547
  [_m],
576
548
  [0],
577
549
  ];
@@ -580,11 +552,7 @@ var LambdaThrottledException = [
580
552
  -3,
581
553
  n0,
582
554
  _LTE,
583
- {
584
- [_e]: _c,
585
- [_hE]: 429,
586
- [_aQE]: [`LambdaThrottled`, 429],
587
- },
555
+ { [_e]: _c, [_hE]: 429, [_aQE]: [`LambdaThrottled`, 429] },
588
556
  [_m],
589
557
  [0],
590
558
  ];
@@ -593,11 +561,7 @@ var LimitExceededException = [
593
561
  -3,
594
562
  n0,
595
563
  _LEE,
596
- {
597
- [_e]: _c,
598
- [_hE]: 400,
599
- [_aQE]: [`LimitExceeded`, 400],
600
- },
564
+ { [_e]: _c, [_hE]: 400, [_aQE]: [`LimitExceeded`, 400] },
601
565
  [_m],
602
566
  [0],
603
567
  ];
@@ -611,18 +575,8 @@ var ListDatasetsRequest = [
611
575
  [
612
576
  [0, 1],
613
577
  [0, 1],
614
- [
615
- 0,
616
- {
617
- [_hQ]: _nT,
618
- },
619
- ],
620
- [
621
- 1,
622
- {
623
- [_hQ]: _mR,
624
- },
625
- ],
578
+ [0, { [_hQ]: _nT }],
579
+ [1, { [_hQ]: _mR }],
626
580
  ],
627
581
  ];
628
582
  var ListDatasetsResponse = [3, n0, _LDRi, 0, [_Da, _C, _NT], [() => DatasetList, 1, 0]];
@@ -633,18 +587,8 @@ var ListIdentityPoolUsageRequest = [
633
587
  0,
634
588
  [_NT, _MR],
635
589
  [
636
- [
637
- 0,
638
- {
639
- [_hQ]: _nT,
640
- },
641
- ],
642
- [
643
- 1,
644
- {
645
- [_hQ]: _mR,
646
- },
647
- ],
590
+ [0, { [_hQ]: _nT }],
591
+ [1, { [_hQ]: _mR }],
648
592
  ],
649
593
  ];
650
594
  var ListIdentityPoolUsageResponse = [
@@ -665,30 +609,10 @@ var ListRecordsRequest = [
665
609
  [0, 1],
666
610
  [0, 1],
667
611
  [0, 1],
668
- [
669
- 1,
670
- {
671
- [_hQ]: _lSC,
672
- },
673
- ],
674
- [
675
- 0,
676
- {
677
- [_hQ]: _nT,
678
- },
679
- ],
680
- [
681
- 1,
682
- {
683
- [_hQ]: _mR,
684
- },
685
- ],
686
- [
687
- 0,
688
- {
689
- [_hQ]: _sST,
690
- },
691
- ],
612
+ [1, { [_hQ]: _lSC }],
613
+ [0, { [_hQ]: _nT }],
614
+ [1, { [_hQ]: _mR }],
615
+ [0, { [_hQ]: _sST }],
692
616
  ],
693
617
  ];
694
618
  var ListRecordsResponse = [
@@ -703,11 +627,7 @@ var NotAuthorizedException = [
703
627
  -3,
704
628
  n0,
705
629
  _NAE,
706
- {
707
- [_e]: _c,
708
- [_hE]: 403,
709
- [_aQE]: [`NotAuthorizedError`, 403],
710
- },
630
+ { [_e]: _c, [_hE]: 403, [_aQE]: [`NotAuthorizedError`, 403] },
711
631
  [_m],
712
632
  [0],
713
633
  ];
@@ -721,11 +641,7 @@ var ResourceConflictException = [
721
641
  -3,
722
642
  n0,
723
643
  _RCE,
724
- {
725
- [_e]: _c,
726
- [_hE]: 409,
727
- [_aQE]: [`ResourceConflict`, 409],
728
- },
644
+ { [_e]: _c, [_hE]: 409, [_aQE]: [`ResourceConflict`, 409] },
729
645
  [_m],
730
646
  [0],
731
647
  ];
@@ -734,11 +650,7 @@ var ResourceNotFoundException = [
734
650
  -3,
735
651
  n0,
736
652
  _RNFE,
737
- {
738
- [_e]: _c,
739
- [_hE]: 404,
740
- [_aQE]: [`ResourceNotFound`, 404],
741
- },
653
+ { [_e]: _c, [_hE]: 404, [_aQE]: [`ResourceNotFound`, 404] },
742
654
  [_m],
743
655
  [0],
744
656
  ];
@@ -778,11 +690,7 @@ var TooManyRequestsException = [
778
690
  -3,
779
691
  n0,
780
692
  _TMRE,
781
- {
782
- [_e]: _c,
783
- [_hE]: 429,
784
- [_aQE]: [`TooManyRequests`, 429],
785
- },
693
+ { [_e]: _c, [_hE]: 429, [_aQE]: [`TooManyRequests`, 429] },
786
694
  [_m],
787
695
  [0],
788
696
  ];
@@ -807,20 +715,7 @@ var UpdateRecordsRequest = [
807
715
  _URR,
808
716
  0,
809
717
  [_IPI, _II, _DN, _DI, _RPe, _SST, _CC],
810
- [
811
- [0, 1],
812
- [0, 1],
813
- [0, 1],
814
- 0,
815
- () => RecordPatchList,
816
- 0,
817
- [
818
- 0,
819
- {
820
- [_hH]: _xaCC,
821
- },
822
- ],
823
- ],
718
+ [[0, 1], [0, 1], [0, 1], 0, () => RecordPatchList, 0, [0, { [_hH]: _xaCC }]],
824
719
  ];
825
720
  var UpdateRecordsResponse = [3, n0, _URRp, 0, [_R], [() => RecordList]];
826
721
  var __Unit = "unit";
@@ -834,9 +729,7 @@ var BulkPublish = [
834
729
  9,
835
730
  n0,
836
731
  _BP,
837
- {
838
- [_h]: ["POST", "/identitypools/{IdentityPoolId}/bulkpublish", 200],
839
- },
732
+ { [_h]: ["POST", "/identitypools/{IdentityPoolId}/bulkpublish", 200] },
840
733
  () => BulkPublishRequest,
841
734
  () => BulkPublishResponse,
842
735
  ];
@@ -844,9 +737,7 @@ var DeleteDataset = [
844
737
  9,
845
738
  n0,
846
739
  _DD,
847
- {
848
- [_h]: ["DELETE", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", 200],
849
- },
740
+ { [_h]: ["DELETE", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", 200] },
850
741
  () => DeleteDatasetRequest,
851
742
  () => DeleteDatasetResponse,
852
743
  ];
@@ -854,9 +745,7 @@ var DescribeDataset = [
854
745
  9,
855
746
  n0,
856
747
  _DDe,
857
- {
858
- [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", 200],
859
- },
748
+ { [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", 200] },
860
749
  () => DescribeDatasetRequest,
861
750
  () => DescribeDatasetResponse,
862
751
  ];
@@ -864,9 +753,7 @@ var DescribeIdentityPoolUsage = [
864
753
  9,
865
754
  n0,
866
755
  _DIPU,
867
- {
868
- [_h]: ["GET", "/identitypools/{IdentityPoolId}", 200],
869
- },
756
+ { [_h]: ["GET", "/identitypools/{IdentityPoolId}", 200] },
870
757
  () => DescribeIdentityPoolUsageRequest,
871
758
  () => DescribeIdentityPoolUsageResponse,
872
759
  ];
@@ -874,9 +761,7 @@ var DescribeIdentityUsage = [
874
761
  9,
875
762
  n0,
876
763
  _DIU,
877
- {
878
- [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}", 200],
879
- },
764
+ { [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}", 200] },
880
765
  () => DescribeIdentityUsageRequest,
881
766
  () => DescribeIdentityUsageResponse,
882
767
  ];
@@ -884,9 +769,7 @@ var GetBulkPublishDetails = [
884
769
  9,
885
770
  n0,
886
771
  _GBPD,
887
- {
888
- [_h]: ["POST", "/identitypools/{IdentityPoolId}/getBulkPublishDetails", 200],
889
- },
772
+ { [_h]: ["POST", "/identitypools/{IdentityPoolId}/getBulkPublishDetails", 200] },
890
773
  () => GetBulkPublishDetailsRequest,
891
774
  () => GetBulkPublishDetailsResponse,
892
775
  ];
@@ -894,9 +777,7 @@ var GetCognitoEvents = [
894
777
  9,
895
778
  n0,
896
779
  _GCE,
897
- {
898
- [_h]: ["GET", "/identitypools/{IdentityPoolId}/events", 200],
899
- },
780
+ { [_h]: ["GET", "/identitypools/{IdentityPoolId}/events", 200] },
900
781
  () => GetCognitoEventsRequest,
901
782
  () => GetCognitoEventsResponse,
902
783
  ];
@@ -904,9 +785,7 @@ var GetIdentityPoolConfiguration = [
904
785
  9,
905
786
  n0,
906
787
  _GIPC,
907
- {
908
- [_h]: ["GET", "/identitypools/{IdentityPoolId}/configuration", 200],
909
- },
788
+ { [_h]: ["GET", "/identitypools/{IdentityPoolId}/configuration", 200] },
910
789
  () => GetIdentityPoolConfigurationRequest,
911
790
  () => GetIdentityPoolConfigurationResponse,
912
791
  ];
@@ -914,9 +793,7 @@ var ListDatasets = [
914
793
  9,
915
794
  n0,
916
795
  _LD,
917
- {
918
- [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets", 200],
919
- },
796
+ { [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets", 200] },
920
797
  () => ListDatasetsRequest,
921
798
  () => ListDatasetsResponse,
922
799
  ];
@@ -924,9 +801,7 @@ var ListIdentityPoolUsage = [
924
801
  9,
925
802
  n0,
926
803
  _LIPU,
927
- {
928
- [_h]: ["GET", "/identitypools", 200],
929
- },
804
+ { [_h]: ["GET", "/identitypools", 200] },
930
805
  () => ListIdentityPoolUsageRequest,
931
806
  () => ListIdentityPoolUsageResponse,
932
807
  ];
@@ -934,9 +809,7 @@ var ListRecords = [
934
809
  9,
935
810
  n0,
936
811
  _LR,
937
- {
938
- [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records", 200],
939
- },
812
+ { [_h]: ["GET", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records", 200] },
940
813
  () => ListRecordsRequest,
941
814
  () => ListRecordsResponse,
942
815
  ];
@@ -944,9 +817,7 @@ var RegisterDevice = [
944
817
  9,
945
818
  n0,
946
819
  _RD,
947
- {
948
- [_h]: ["POST", "/identitypools/{IdentityPoolId}/identity/{IdentityId}/device", 200],
949
- },
820
+ { [_h]: ["POST", "/identitypools/{IdentityPoolId}/identity/{IdentityId}/device", 200] },
950
821
  () => RegisterDeviceRequest,
951
822
  () => RegisterDeviceResponse,
952
823
  ];
@@ -954,9 +825,7 @@ var SetCognitoEvents = [
954
825
  9,
955
826
  n0,
956
827
  _SCE,
957
- {
958
- [_h]: ["POST", "/identitypools/{IdentityPoolId}/events", 200],
959
- },
828
+ { [_h]: ["POST", "/identitypools/{IdentityPoolId}/events", 200] },
960
829
  () => SetCognitoEventsRequest,
961
830
  () => __Unit,
962
831
  ];
@@ -964,9 +833,7 @@ var SetIdentityPoolConfiguration = [
964
833
  9,
965
834
  n0,
966
835
  _SIPC,
967
- {
968
- [_h]: ["POST", "/identitypools/{IdentityPoolId}/configuration", 200],
969
- },
836
+ { [_h]: ["POST", "/identitypools/{IdentityPoolId}/configuration", 200] },
970
837
  () => SetIdentityPoolConfigurationRequest,
971
838
  () => SetIdentityPoolConfigurationResponse,
972
839
  ];
@@ -1002,9 +869,7 @@ var UpdateRecords = [
1002
869
  9,
1003
870
  n0,
1004
871
  _UR,
1005
- {
1006
- [_h]: ["POST", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", 200],
1007
- },
872
+ { [_h]: ["POST", "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", 200] },
1008
873
  () => UpdateRecordsRequest,
1009
874
  () => UpdateRecordsResponse,
1010
875
  ];
@@ -8,11 +8,11 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
8
  const config_resolver_1 = require("@smithy/config-resolver");
9
9
  const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
10
10
  const invalid_dependency_1 = require("@smithy/invalid-dependency");
11
+ const smithy_client_1 = require("@smithy/smithy-client");
11
12
  const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
13
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
12
14
  const util_retry_1 = require("@smithy/util-retry");
13
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
14
- const smithy_client_1 = require("@smithy/smithy-client");
15
- const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
16
16
  const getRuntimeConfig = (config) => {
17
17
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
18
18
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -11,14 +11,13 @@ const hash_node_1 = require("@smithy/hash-node");
11
11
  const middleware_retry_1 = require("@smithy/middleware-retry");
12
12
  const node_config_provider_1 = require("@smithy/node-config-provider");
13
13
  const node_http_handler_1 = require("@smithy/node-http-handler");
14
+ const smithy_client_1 = require("@smithy/smithy-client");
14
15
  const util_body_length_node_1 = require("@smithy/util-body-length-node");
16
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
15
17
  const util_retry_1 = require("@smithy/util-retry");
16
18
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
- const smithy_client_1 = require("@smithy/smithy-client");
18
- const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
19
- const smithy_client_2 = require("@smithy/smithy-client");
20
19
  const getRuntimeConfig = (config) => {
21
- (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
20
+ (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
22
21
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
22
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
23
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -6,8 +6,8 @@ import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
7
  import { getSchemaSerdePlugin } from "@smithy/core/schema";
8
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
9
- import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
10
- import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
9
+ import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
10
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
11
11
  import { Client as __Client, } from "@smithy/smithy-client";
12
12
  import { defaultCognitoSyncHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
13
13
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
@@ -4,11 +4,11 @@ import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
5
5
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
6
  import { invalidProvider } from "@smithy/invalid-dependency";
7
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
7
8
  import { calculateBodyLength } from "@smithy/util-body-length-browser";
9
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
8
10
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
9
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
12
12
  export const getRuntimeConfig = (config) => {
13
13
  const defaultsMode = resolveDefaultsModeConfig(config);
14
14
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
@@ -7,12 +7,11 @@ import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
10
11
  import { calculateBodyLength } from "@smithy/util-body-length-node";
12
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
11
13
  import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
12
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
14
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
15
- import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
16
15
  export const getRuntimeConfig = (config) => {
17
16
  emitWarningIfUnsupportedVersion(process.version);
18
17
  const defaultsMode = resolveDefaultsModeConfig(config);