@cloudsnorkel/cdk-github-runners 0.7.4 → 0.7.6

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 (34) hide show
  1. package/.jsii +101 -45
  2. package/API.md +30 -1
  3. package/lib/lambdas/aws-image-builder-versioner/index.js +11 -1
  4. package/lib/lambdas/build-image/index.js +4 -0
  5. package/lib/lambdas/delete-ami/index.js +4 -0
  6. package/lib/lambdas/delete-runner/index.js +8626 -2144
  7. package/lib/lambdas/setup/index.html +4 -4
  8. package/lib/lambdas/setup/index.js +283 -4
  9. package/lib/lambdas/status/index.js +8637 -2155
  10. package/lib/lambdas/token-retriever/index.js +8626 -2144
  11. package/lib/lambdas/update-lambda/index.js +216 -1867
  12. package/lib/lambdas/webhook-handler/index.js +5 -0
  13. package/lib/providers/codebuild.js +1 -1
  14. package/lib/providers/common.d.ts +3 -3
  15. package/lib/providers/common.js +4 -4
  16. package/lib/providers/ec2.d.ts +1 -1
  17. package/lib/providers/ec2.js +71 -44
  18. package/lib/providers/fargate.js +1 -1
  19. package/lib/providers/image-builders/ami.d.ts +7 -1
  20. package/lib/providers/image-builders/ami.js +25 -21
  21. package/lib/providers/image-builders/codebuild.js +1 -1
  22. package/lib/providers/image-builders/common.js +1 -1
  23. package/lib/providers/image-builders/container.d.ts +1 -1
  24. package/lib/providers/image-builders/container.js +11 -11
  25. package/lib/providers/image-builders/linux-components.d.ts +1 -1
  26. package/lib/providers/image-builders/linux-components.js +21 -19
  27. package/lib/providers/image-builders/static.js +6 -6
  28. package/lib/providers/image-builders/windows-components.d.ts +1 -1
  29. package/lib/providers/image-builders/windows-components.js +14 -12
  30. package/lib/providers/lambda.js +3 -3
  31. package/lib/runner.d.ts +1 -0
  32. package/lib/runner.js +19 -2
  33. package/lib/secrets.js +1 -1
  34. package/package.json +10 -10
package/.jsii CHANGED
@@ -3114,7 +3114,7 @@
3114
3114
  "stability": "experimental"
3115
3115
  },
3116
3116
  "homepage": "https://github.com/CloudSnorkel/cdk-github-runners.git",
3117
- "jsiiVersion": "1.72.0 (build 4b8828b)",
3117
+ "jsiiVersion": "1.73.0 (build 6faeda3)",
3118
3118
  "keywords": [
3119
3119
  "aws",
3120
3120
  "aws-cdk",
@@ -3184,7 +3184,7 @@
3184
3184
  },
3185
3185
  "locationInModule": {
3186
3186
  "filename": "src/providers/image-builders/ami.ts",
3187
- "line": 223
3187
+ "line": 230
3188
3188
  },
3189
3189
  "parameters": [
3190
3190
  {
@@ -3215,7 +3215,7 @@
3215
3215
  "kind": "class",
3216
3216
  "locationInModule": {
3217
3217
  "filename": "src/providers/image-builders/ami.ts",
3218
- "line": 220
3218
+ "line": 227
3219
3219
  },
3220
3220
  "methods": [
3221
3221
  {
@@ -3225,7 +3225,7 @@
3225
3225
  },
3226
3226
  "locationInModule": {
3227
3227
  "filename": "src/providers/image-builders/ami.ts",
3228
- "line": 285
3228
+ "line": 296
3229
3229
  },
3230
3230
  "name": "addComponent",
3231
3231
  "parameters": [
@@ -3245,7 +3245,7 @@
3245
3245
  },
3246
3246
  "locationInModule": {
3247
3247
  "filename": "src/providers/image-builders/ami.ts",
3248
- "line": 300
3248
+ "line": 311
3249
3249
  },
3250
3250
  "name": "addExtraCertificates",
3251
3251
  "parameters": [
@@ -3267,7 +3267,7 @@
3267
3267
  },
3268
3268
  "locationInModule": {
3269
3269
  "filename": "src/providers/image-builders/ami.ts",
3270
- "line": 313
3270
+ "line": 324
3271
3271
  },
3272
3272
  "name": "bind",
3273
3273
  "overrides": "@cloudsnorkel/cdk-github-runners.IAmiBuilder",
@@ -3438,7 +3438,7 @@
3438
3438
  },
3439
3439
  "locationInModule": {
3440
3440
  "filename": "src/providers/image-builders/ami.ts",
3441
- "line": 271
3441
+ "line": 282
3442
3442
  },
3443
3443
  "name": "prependComponent",
3444
3444
  "parameters": [
@@ -3599,6 +3599,25 @@
3599
3599
  "fqn": "@cloudsnorkel/cdk-github-runners.Architecture"
3600
3600
  }
3601
3601
  },
3602
+ {
3603
+ "abstract": true,
3604
+ "docs": {
3605
+ "default": "true",
3606
+ "remarks": "You may want to disable this if you are building a Windows image and don't have a Docker Desktop license.",
3607
+ "stability": "experimental",
3608
+ "summary": "Install Docker inside the image, so it can be used by the runner."
3609
+ },
3610
+ "immutable": true,
3611
+ "locationInModule": {
3612
+ "filename": "src/providers/image-builders/ami.ts",
3613
+ "line": 115
3614
+ },
3615
+ "name": "installDocker",
3616
+ "optional": true,
3617
+ "type": {
3618
+ "primitive": "boolean"
3619
+ }
3620
+ },
3602
3621
  {
3603
3622
  "abstract": true,
3604
3623
  "docs": {
@@ -4480,7 +4499,16 @@
4480
4499
  {
4481
4500
  "name": "task",
4482
4501
  "type": {
4483
- "fqn": "aws-cdk-lib.aws_stepfunctions.TaskStateBase"
4502
+ "union": {
4503
+ "types": [
4504
+ {
4505
+ "fqn": "aws-cdk-lib.aws_stepfunctions.Parallel"
4506
+ },
4507
+ {
4508
+ "fqn": "aws-cdk-lib.aws_stepfunctions.TaskStateBase"
4509
+ }
4510
+ ]
4511
+ }
4484
4512
  }
4485
4513
  },
4486
4514
  {
@@ -5680,7 +5708,16 @@
5680
5708
  {
5681
5709
  "name": "task",
5682
5710
  "type": {
5683
- "fqn": "aws-cdk-lib.aws_stepfunctions.TaskStateBase"
5711
+ "union": {
5712
+ "types": [
5713
+ {
5714
+ "fqn": "aws-cdk-lib.aws_stepfunctions.Parallel"
5715
+ },
5716
+ {
5717
+ "fqn": "aws-cdk-lib.aws_stepfunctions.TaskStateBase"
5718
+ }
5719
+ ]
5720
+ }
5684
5721
  }
5685
5722
  },
5686
5723
  {
@@ -5734,7 +5771,7 @@
5734
5771
  },
5735
5772
  "locationInModule": {
5736
5773
  "filename": "src/providers/ec2.ts",
5737
- "line": 370
5774
+ "line": 402
5738
5775
  },
5739
5776
  "name": "grantStateMachine",
5740
5777
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -5803,7 +5840,7 @@
5803
5840
  },
5804
5841
  "locationInModule": {
5805
5842
  "filename": "src/providers/ec2.ts",
5806
- "line": 400
5843
+ "line": 432
5807
5844
  },
5808
5845
  "name": "status",
5809
5846
  "overrides": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
@@ -5832,7 +5869,7 @@
5832
5869
  "immutable": true,
5833
5870
  "locationInModule": {
5834
5871
  "filename": "src/providers/ec2.ts",
5835
- "line": 421
5872
+ "line": 453
5836
5873
  },
5837
5874
  "name": "connections",
5838
5875
  "overrides": "aws-cdk-lib.aws_ec2.IConnectable",
@@ -6177,7 +6214,16 @@
6177
6214
  {
6178
6215
  "name": "task",
6179
6216
  "type": {
6180
- "fqn": "aws-cdk-lib.aws_stepfunctions.TaskStateBase"
6217
+ "union": {
6218
+ "types": [
6219
+ {
6220
+ "fqn": "aws-cdk-lib.aws_stepfunctions.Parallel"
6221
+ },
6222
+ {
6223
+ "fqn": "aws-cdk-lib.aws_stepfunctions.TaskStateBase"
6224
+ }
6225
+ ]
6226
+ }
6181
6227
  }
6182
6228
  },
6183
6229
  {
@@ -6825,7 +6871,7 @@
6825
6871
  },
6826
6872
  "locationInModule": {
6827
6873
  "filename": "src/runner.ts",
6828
- "line": 187
6874
+ "line": 188
6829
6875
  },
6830
6876
  "parameters": [
6831
6877
  {
@@ -6852,7 +6898,7 @@
6852
6898
  "kind": "class",
6853
6899
  "locationInModule": {
6854
6900
  "filename": "src/runner.ts",
6855
- "line": 169
6901
+ "line": 170
6856
6902
  },
6857
6903
  "name": "GitHubRunners",
6858
6904
  "properties": [
@@ -6864,7 +6910,7 @@
6864
6910
  "immutable": true,
6865
6911
  "locationInModule": {
6866
6912
  "filename": "src/runner.ts",
6867
- "line": 173
6913
+ "line": 174
6868
6914
  },
6869
6915
  "name": "providers",
6870
6916
  "type": {
@@ -6884,7 +6930,7 @@
6884
6930
  "immutable": true,
6885
6931
  "locationInModule": {
6886
6932
  "filename": "src/runner.ts",
6887
- "line": 178
6933
+ "line": 179
6888
6934
  },
6889
6935
  "name": "secrets",
6890
6936
  "type": {
@@ -6898,7 +6944,7 @@
6898
6944
  "immutable": true,
6899
6945
  "locationInModule": {
6900
6946
  "filename": "src/runner.ts",
6901
- "line": 187
6947
+ "line": 188
6902
6948
  },
6903
6949
  "name": "props",
6904
6950
  "optional": true,
@@ -6920,7 +6966,7 @@
6920
6966
  "kind": "interface",
6921
6967
  "locationInModule": {
6922
6968
  "filename": "src/runner.ts",
6923
- "line": 24
6969
+ "line": 25
6924
6970
  },
6925
6971
  "name": "GitHubRunnersProps",
6926
6972
  "properties": [
@@ -6935,7 +6981,7 @@
6935
6981
  "immutable": true,
6936
6982
  "locationInModule": {
6937
6983
  "filename": "src/runner.ts",
6938
- "line": 47
6984
+ "line": 48
6939
6985
  },
6940
6986
  "name": "allowPublicSubnet",
6941
6987
  "optional": true,
@@ -6953,7 +6999,7 @@
6953
6999
  "immutable": true,
6954
7000
  "locationInModule": {
6955
7001
  "filename": "src/runner.ts",
6956
- "line": 79
7002
+ "line": 80
6957
7003
  },
6958
7004
  "name": "extraCertificates",
6959
7005
  "optional": true,
@@ -6972,7 +7018,7 @@
6972
7018
  "immutable": true,
6973
7019
  "locationInModule": {
6974
7020
  "filename": "src/runner.ts",
6975
- "line": 86
7021
+ "line": 87
6976
7022
  },
6977
7023
  "name": "idleTimeout",
6978
7024
  "optional": true,
@@ -6990,7 +7036,7 @@
6990
7036
  "immutable": true,
6991
7037
  "locationInModule": {
6992
7038
  "filename": "src/runner.ts",
6993
- "line": 93
7039
+ "line": 94
6994
7040
  },
6995
7041
  "name": "logOptions",
6996
7042
  "optional": true,
@@ -7009,7 +7055,7 @@
7009
7055
  "immutable": true,
7010
7056
  "locationInModule": {
7011
7057
  "filename": "src/runner.ts",
7012
- "line": 30
7058
+ "line": 31
7013
7059
  },
7014
7060
  "name": "providers",
7015
7061
  "optional": true,
@@ -7032,7 +7078,7 @@
7032
7078
  "immutable": true,
7033
7079
  "locationInModule": {
7034
7080
  "filename": "src/runner.ts",
7035
- "line": 52
7081
+ "line": 53
7036
7082
  },
7037
7083
  "name": "securityGroup",
7038
7084
  "optional": true,
@@ -7050,7 +7096,7 @@
7050
7096
  "immutable": true,
7051
7097
  "locationInModule": {
7052
7098
  "filename": "src/runner.ts",
7053
- "line": 35
7099
+ "line": 36
7054
7100
  },
7055
7101
  "name": "vpc",
7056
7102
  "optional": true,
@@ -7068,7 +7114,7 @@
7068
7114
  "immutable": true,
7069
7115
  "locationInModule": {
7070
7116
  "filename": "src/runner.ts",
7071
- "line": 40
7117
+ "line": 41
7072
7118
  },
7073
7119
  "name": "vpcSubnets",
7074
7120
  "optional": true,
@@ -7279,7 +7325,8 @@
7279
7325
  "fqn": "@cloudsnorkel/cdk-github-runners.IRunnerProvider",
7280
7326
  "interfaces": [
7281
7327
  "aws-cdk-lib.aws_ec2.IConnectable",
7282
- "aws-cdk-lib.aws_iam.IGrantable"
7328
+ "aws-cdk-lib.aws_iam.IGrantable",
7329
+ "constructs.IConstruct"
7283
7330
  ],
7284
7331
  "kind": "interface",
7285
7332
  "locationInModule": {
@@ -7898,7 +7945,16 @@
7898
7945
  {
7899
7946
  "name": "task",
7900
7947
  "type": {
7901
- "fqn": "aws-cdk-lib.aws_stepfunctions.TaskStateBase"
7948
+ "union": {
7949
+ "types": [
7950
+ {
7951
+ "fqn": "aws-cdk-lib.aws_stepfunctions.Parallel"
7952
+ },
7953
+ {
7954
+ "fqn": "aws-cdk-lib.aws_stepfunctions.TaskStateBase"
7955
+ }
7956
+ ]
7957
+ }
7902
7958
  }
7903
7959
  },
7904
7960
  {
@@ -8407,7 +8463,7 @@
8407
8463
  },
8408
8464
  "locationInModule": {
8409
8465
  "filename": "src/providers/image-builders/linux-components.ts",
8410
- "line": 49
8466
+ "line": 51
8411
8467
  },
8412
8468
  "name": "awsCli",
8413
8469
  "parameters": [
@@ -8443,7 +8499,7 @@
8443
8499
  },
8444
8500
  "locationInModule": {
8445
8501
  "filename": "src/providers/image-builders/linux-components.ts",
8446
- "line": 135
8502
+ "line": 137
8447
8503
  },
8448
8504
  "name": "docker",
8449
8505
  "parameters": [
@@ -8479,7 +8535,7 @@
8479
8535
  },
8480
8536
  "locationInModule": {
8481
8537
  "filename": "src/providers/image-builders/linux-components.ts",
8482
- "line": 154
8538
+ "line": 156
8483
8539
  },
8484
8540
  "name": "extraCertificates",
8485
8541
  "parameters": [
@@ -8515,7 +8571,7 @@
8515
8571
  },
8516
8572
  "locationInModule": {
8517
8573
  "filename": "src/providers/image-builders/linux-components.ts",
8518
- "line": 89
8574
+ "line": 91
8519
8575
  },
8520
8576
  "name": "git",
8521
8577
  "parameters": [
@@ -8551,7 +8607,7 @@
8551
8607
  },
8552
8608
  "locationInModule": {
8553
8609
  "filename": "src/providers/image-builders/linux-components.ts",
8554
- "line": 73
8610
+ "line": 75
8555
8611
  },
8556
8612
  "name": "githubCli",
8557
8613
  "parameters": [
@@ -8587,7 +8643,7 @@
8587
8643
  },
8588
8644
  "locationInModule": {
8589
8645
  "filename": "src/providers/image-builders/linux-components.ts",
8590
- "line": 103
8646
+ "line": 105
8591
8647
  },
8592
8648
  "name": "githubRunner",
8593
8649
  "parameters": [
@@ -8710,7 +8766,7 @@
8710
8766
  "kind": "interface",
8711
8767
  "locationInModule": {
8712
8768
  "filename": "src/runner.ts",
8713
- "line": 99
8769
+ "line": 100
8714
8770
  },
8715
8771
  "name": "LogOptions",
8716
8772
  "properties": [
@@ -8724,7 +8780,7 @@
8724
8780
  "immutable": true,
8725
8781
  "locationInModule": {
8726
8782
  "filename": "src/runner.ts",
8727
- "line": 110
8783
+ "line": 111
8728
8784
  },
8729
8785
  "name": "includeExecutionData",
8730
8786
  "optional": true,
@@ -8742,7 +8798,7 @@
8742
8798
  "immutable": true,
8743
8799
  "locationInModule": {
8744
8800
  "filename": "src/runner.ts",
8745
- "line": 117
8801
+ "line": 118
8746
8802
  },
8747
8803
  "name": "level",
8748
8804
  "optional": true,
@@ -8759,7 +8815,7 @@
8759
8815
  "immutable": true,
8760
8816
  "locationInModule": {
8761
8817
  "filename": "src/runner.ts",
8762
- "line": 103
8818
+ "line": 104
8763
8819
  },
8764
8820
  "name": "logGroupName",
8765
8821
  "optional": true,
@@ -8778,7 +8834,7 @@
8778
8834
  "immutable": true,
8779
8835
  "locationInModule": {
8780
8836
  "filename": "src/runner.ts",
8781
- "line": 126
8837
+ "line": 127
8782
8838
  },
8783
8839
  "name": "logRetention",
8784
8840
  "optional": true,
@@ -9833,7 +9889,7 @@
9833
9889
  },
9834
9890
  "locationInModule": {
9835
9891
  "filename": "src/providers/image-builders/windows-components.ts",
9836
- "line": 99
9892
+ "line": 101
9837
9893
  },
9838
9894
  "name": "docker",
9839
9895
  "parameters": [
@@ -9863,7 +9919,7 @@
9863
9919
  },
9864
9920
  "locationInModule": {
9865
9921
  "filename": "src/providers/image-builders/windows-components.ts",
9866
- "line": 119
9922
+ "line": 121
9867
9923
  },
9868
9924
  "name": "extraCertificates",
9869
9925
  "parameters": [
@@ -9959,7 +10015,7 @@
9959
10015
  },
9960
10016
  "locationInModule": {
9961
10017
  "filename": "src/providers/image-builders/windows-components.ts",
9962
- "line": 72
10018
+ "line": 74
9963
10019
  },
9964
10020
  "name": "githubRunner",
9965
10021
  "parameters": [
@@ -9994,6 +10050,6 @@
9994
10050
  "symbolId": "src/providers/image-builders/windows-components:WindowsComponents"
9995
10051
  }
9996
10052
  },
9997
- "version": "0.7.4",
9998
- "fingerprint": "3UVhk5ng35wJIwrOZROcnXMz+h05AAzyrjETi7b4/50="
10053
+ "version": "0.7.6",
10054
+ "fingerprint": "ZZyPQhyjY7Cdx+RPoiCGbrij9KNR68fpSulMzukmnhg="
9999
10055
  }
package/API.md CHANGED
@@ -2379,6 +2379,7 @@ const amiBuilderProps: AmiBuilderProps = { ... }
2379
2379
  | **Name** | **Type** | **Description** |
2380
2380
  | --- | --- | --- |
2381
2381
  | <code><a href="#@cloudsnorkel/cdk-github-runners.AmiBuilderProps.property.architecture">architecture</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.Architecture">Architecture</a></code> | Image architecture. |
2382
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.AmiBuilderProps.property.installDocker">installDocker</a></code> | <code>boolean</code> | Install Docker inside the image, so it can be used by the runner. |
2382
2383
  | <code><a href="#@cloudsnorkel/cdk-github-runners.AmiBuilderProps.property.instanceType">instanceType</a></code> | <code>aws-cdk-lib.aws_ec2.InstanceType</code> | The instance type used to build the image. |
2383
2384
  | <code><a href="#@cloudsnorkel/cdk-github-runners.AmiBuilderProps.property.logRemovalPolicy">logRemovalPolicy</a></code> | <code>aws-cdk-lib.RemovalPolicy</code> | Removal policy for logs of image builds. |
2384
2385
  | <code><a href="#@cloudsnorkel/cdk-github-runners.AmiBuilderProps.property.logRetention">logRetention</a></code> | <code>aws-cdk-lib.aws_logs.RetentionDays</code> | The number of days log events are kept in CloudWatch Logs. |
@@ -2405,6 +2406,21 @@ Image architecture.
2405
2406
 
2406
2407
  ---
2407
2408
 
2409
+ ##### `installDocker`<sup>Optional</sup> <a name="installDocker" id="@cloudsnorkel/cdk-github-runners.AmiBuilderProps.property.installDocker"></a>
2410
+
2411
+ ```typescript
2412
+ public readonly installDocker: boolean;
2413
+ ```
2414
+
2415
+ - *Type:* boolean
2416
+ - *Default:* true
2417
+
2418
+ Install Docker inside the image, so it can be used by the runner.
2419
+
2420
+ You may want to disable this if you are building a Windows image and don't have a Docker Desktop license.
2421
+
2422
+ ---
2423
+
2408
2424
  ##### `instanceType`<sup>Optional</sup> <a name="instanceType" id="@cloudsnorkel/cdk-github-runners.AmiBuilderProps.property.instanceType"></a>
2409
2425
 
2410
2426
  ```typescript
@@ -5691,7 +5707,7 @@ Log group name for the image builder where history of image builds can be analyz
5691
5707
 
5692
5708
  ### IRunnerProvider <a name="IRunnerProvider" id="@cloudsnorkel/cdk-github-runners.IRunnerProvider"></a>
5693
5709
 
5694
- - *Extends:* aws-cdk-lib.aws_ec2.IConnectable, aws-cdk-lib.aws_iam.IGrantable
5710
+ - *Extends:* aws-cdk-lib.aws_ec2.IConnectable, aws-cdk-lib.aws_iam.IGrantable, constructs.IConstruct
5695
5711
 
5696
5712
  - *Implemented By:* <a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunner">CodeBuildRunner</a>, <a href="#@cloudsnorkel/cdk-github-runners.Ec2Runner">Ec2Runner</a>, <a href="#@cloudsnorkel/cdk-github-runners.FargateRunner">FargateRunner</a>, <a href="#@cloudsnorkel/cdk-github-runners.LambdaRunner">LambdaRunner</a>, <a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider">IRunnerProvider</a>
5697
5713
 
@@ -5770,6 +5786,7 @@ grantable for the status function.
5770
5786
  | --- | --- | --- |
5771
5787
  | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.connections">connections</a></code> | <code>aws-cdk-lib.aws_ec2.Connections</code> | The network connections associated with this resource. |
5772
5788
  | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.grantPrincipal">grantPrincipal</a></code> | <code>aws-cdk-lib.aws_iam.IPrincipal</code> | The principal to grant permissions to. |
5789
+ | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
5773
5790
  | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.labels">labels</a></code> | <code>string[]</code> | GitHub Actions labels used for this provider. |
5774
5791
 
5775
5792
  ---
@@ -5798,6 +5815,18 @@ The principal to grant permissions to.
5798
5815
 
5799
5816
  ---
5800
5817
 
5818
+ ##### `node`<sup>Required</sup> <a name="node" id="@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.node"></a>
5819
+
5820
+ ```typescript
5821
+ public readonly node: Node;
5822
+ ```
5823
+
5824
+ - *Type:* constructs.Node
5825
+
5826
+ The tree node.
5827
+
5828
+ ---
5829
+
5801
5830
  ##### `labels`<sup>Required</sup> <a name="labels" id="@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.labels"></a>
5802
5831
 
5803
5832
  ```typescript
@@ -21,6 +21,10 @@ var __copyProps = (to, from, except, desc) => {
21
21
  return to;
22
22
  };
23
23
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ // If the importer is in node compatibility mode or this is not an ESM
25
+ // file that has been converted to a CommonJS file using a Babel-
26
+ // compatible transform (i.e. "__esModule" has not been set), then set
27
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
28
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
29
  mod
26
30
  ));
@@ -31,7 +35,8 @@ var require_constants = __commonJS({
31
35
  "node_modules/semver/internal/constants.js"(exports, module2) {
32
36
  var SEMVER_SPEC_VERSION = "2.0.0";
33
37
  var MAX_LENGTH = 256;
34
- var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
38
+ var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
39
+ 9007199254740991;
35
40
  var MAX_SAFE_COMPONENT_LENGTH = 16;
36
41
  module2.exports = {
37
42
  SEMVER_SPEC_VERSION,
@@ -289,6 +294,8 @@ var require_semver = __commonJS({
289
294
  }
290
295
  } while (++i);
291
296
  }
297
+ // preminor will bump the version up to the next minor release, and immediately
298
+ // down to pre-release. premajor and prepatch work the same way.
292
299
  inc(release, identifier) {
293
300
  switch (release) {
294
301
  case "premajor":
@@ -1137,6 +1144,7 @@ var require_lru_cache = __commonJS({
1137
1144
  this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
1138
1145
  this.reset();
1139
1146
  }
1147
+ // resize the cache when the max changes.
1140
1148
  set max(mL) {
1141
1149
  if (typeof mL !== "number" || mL < 0)
1142
1150
  throw new TypeError("max must be a non-negative number");
@@ -1161,6 +1169,7 @@ var require_lru_cache = __commonJS({
1161
1169
  get maxAge() {
1162
1170
  return this[MAX_AGE];
1163
1171
  }
1172
+ // resize the cache when the lengthCalculator changes.
1164
1173
  set lengthCalculator(lC) {
1165
1174
  if (typeof lC !== "function")
1166
1175
  lC = naiveLength;
@@ -1475,6 +1484,7 @@ var require_range = __commonJS({
1475
1484
  });
1476
1485
  });
1477
1486
  }
1487
+ // if ANY of the sets match ALL of its comparators, then pass
1478
1488
  test(version) {
1479
1489
  if (!version) {
1480
1490
  return false;
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -14,6 +14,10 @@ var __copyProps = (to, from, except, desc) => {
14
14
  return to;
15
15
  };
16
16
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
17
21
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
18
22
  mod
19
23
  ));