@cloudsnorkel/cdk-github-runners 0.14.13 → 0.14.14

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/.jsii CHANGED
@@ -3834,7 +3834,7 @@
3834
3834
  "stability": "experimental"
3835
3835
  },
3836
3836
  "homepage": "https://github.com/CloudSnorkel/cdk-github-runners.git",
3837
- "jsiiVersion": "5.8.21 (build 0b7c0ba)",
3837
+ "jsiiVersion": "5.8.22 (build 160a3ef)",
3838
3838
  "keywords": [
3839
3839
  "aws",
3840
3840
  "aws-cdk",
@@ -13053,7 +13053,7 @@
13053
13053
  },
13054
13054
  "locationInModule": {
13055
13055
  "filename": "src/image-builders/components.ts",
13056
- "line": 475
13056
+ "line": 477
13057
13057
  },
13058
13058
  "name": "dockerInDocker",
13059
13059
  "returns": {
@@ -13071,7 +13071,7 @@
13071
13071
  },
13072
13072
  "locationInModule": {
13073
13073
  "filename": "src/image-builders/components.ts",
13074
- "line": 578
13074
+ "line": 580
13075
13075
  },
13076
13076
  "name": "environmentVariables",
13077
13077
  "parameters": [
@@ -13102,7 +13102,7 @@
13102
13102
  },
13103
13103
  "locationInModule": {
13104
13104
  "filename": "src/image-builders/components.ts",
13105
- "line": 485
13105
+ "line": 487
13106
13106
  },
13107
13107
  "name": "extraCertificates",
13108
13108
  "parameters": [
@@ -13203,7 +13203,7 @@
13203
13203
  },
13204
13204
  "locationInModule": {
13205
13205
  "filename": "src/image-builders/components.ts",
13206
- "line": 535
13206
+ "line": 537
13207
13207
  },
13208
13208
  "name": "lambdaEntrypoint",
13209
13209
  "returns": {
@@ -13255,7 +13255,7 @@
13255
13255
  },
13256
13256
  "locationInModule": {
13257
13257
  "filename": "src/image-builders/components.ts",
13258
- "line": 615
13258
+ "line": 617
13259
13259
  },
13260
13260
  "name": "getAssets",
13261
13261
  "parameters": [
@@ -13292,7 +13292,7 @@
13292
13292
  },
13293
13293
  "locationInModule": {
13294
13294
  "filename": "src/image-builders/components.ts",
13295
- "line": 610
13295
+ "line": 612
13296
13296
  },
13297
13297
  "name": "getCommands",
13298
13298
  "parameters": [
@@ -13328,7 +13328,7 @@
13328
13328
  },
13329
13329
  "locationInModule": {
13330
13330
  "filename": "src/image-builders/components.ts",
13331
- "line": 624
13331
+ "line": 626
13332
13332
  },
13333
13333
  "name": "getDockerCommands",
13334
13334
  "parameters": [
@@ -13363,7 +13363,7 @@
13363
13363
  },
13364
13364
  "locationInModule": {
13365
13365
  "filename": "src/image-builders/components.ts",
13366
- "line": 631
13366
+ "line": 633
13367
13367
  },
13368
13368
  "name": "shouldReboot",
13369
13369
  "parameters": [
@@ -13399,7 +13399,7 @@
13399
13399
  "immutable": true,
13400
13400
  "locationInModule": {
13401
13401
  "filename": "src/image-builders/components.ts",
13402
- "line": 605
13402
+ "line": 607
13403
13403
  },
13404
13404
  "name": "name",
13405
13405
  "type": {
@@ -14375,6 +14375,6 @@
14375
14375
  "symbolId": "src/image-builders/aws-image-builder/deprecated/windows-components:WindowsComponents"
14376
14376
  }
14377
14377
  },
14378
- "version": "0.14.13",
14379
- "fingerprint": "w17P0wg0NASTyXij/rw+r+u5nlJ0XZnmagSv7A1GSGQ="
14378
+ "version": "0.14.14",
14379
+ "fingerprint": "8IRIjcZz9Js5CoP0LWKQwFTPGgQXtPhvQc4KDOq6psM="
14380
14380
  }
package/API.md CHANGED
@@ -178,6 +178,20 @@ AmiBuilder.isConstruct(x: any)
178
178
 
179
179
  Checks if `x` is a construct.
180
180
 
181
+ Use this method instead of `instanceof` to properly detect `Construct`
182
+ instances, even when the construct library is symlinked.
183
+
184
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
185
+ disk are seen as independent, completely different libraries. As a
186
+ consequence, the class `Construct` in each copy of the `constructs` library
187
+ is seen as a different class, and an instance of one class will not test as
188
+ `instanceof` the other class. `npm install` will not create installations
189
+ like this, but users may manually symlink construct libraries together or
190
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
191
+ library can be accidentally installed, and `instanceof` will behave
192
+ unpredictably. It is safest to avoid using `instanceof`, and using
193
+ this type-testing method instead.
194
+
181
195
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.AmiBuilder.isConstruct.parameter.x"></a>
182
196
 
183
197
  - *Type:* any
@@ -463,6 +477,20 @@ CodeBuildImageBuilder.isConstruct(x: any)
463
477
 
464
478
  Checks if `x` is a construct.
465
479
 
480
+ Use this method instead of `instanceof` to properly detect `Construct`
481
+ instances, even when the construct library is symlinked.
482
+
483
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
484
+ disk are seen as independent, completely different libraries. As a
485
+ consequence, the class `Construct` in each copy of the `constructs` library
486
+ is seen as a different class, and an instance of one class will not test as
487
+ `instanceof` the other class. `npm install` will not create installations
488
+ like this, but users may manually symlink construct libraries together or
489
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
490
+ library can be accidentally installed, and `instanceof` will behave
491
+ unpredictably. It is safest to avoid using `instanceof`, and using
492
+ this type-testing method instead.
493
+
466
494
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.CodeBuildImageBuilder.isConstruct.parameter.x"></a>
467
495
 
468
496
  - *Type:* any
@@ -645,6 +673,20 @@ CodeBuildRunner.isConstruct(x: any)
645
673
 
646
674
  Checks if `x` is a construct.
647
675
 
676
+ Use this method instead of `instanceof` to properly detect `Construct`
677
+ instances, even when the construct library is symlinked.
678
+
679
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
680
+ disk are seen as independent, completely different libraries. As a
681
+ consequence, the class `Construct` in each copy of the `constructs` library
682
+ is seen as a different class, and an instance of one class will not test as
683
+ `instanceof` the other class. `npm install` will not create installations
684
+ like this, but users may manually symlink construct libraries together or
685
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
686
+ library can be accidentally installed, and `instanceof` will behave
687
+ unpredictably. It is safest to avoid using `instanceof`, and using
688
+ this type-testing method instead.
689
+
648
690
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.CodeBuildRunner.isConstruct.parameter.x"></a>
649
691
 
650
692
  - *Type:* any
@@ -1007,7 +1049,7 @@ Also gives the status function any needed permissions to query the Docker image
1007
1049
 
1008
1050
  ---
1009
1051
 
1010
- ##### ~~`isConstruct`~~ <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.CodeBuildRunnerProvider.isConstruct"></a>
1052
+ ##### `isConstruct` <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.CodeBuildRunnerProvider.isConstruct"></a>
1011
1053
 
1012
1054
  ```typescript
1013
1055
  import { CodeBuildRunnerProvider } from '@cloudsnorkel/cdk-github-runners'
@@ -1017,6 +1059,20 @@ CodeBuildRunnerProvider.isConstruct(x: any)
1017
1059
 
1018
1060
  Checks if `x` is a construct.
1019
1061
 
1062
+ Use this method instead of `instanceof` to properly detect `Construct`
1063
+ instances, even when the construct library is symlinked.
1064
+
1065
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
1066
+ disk are seen as independent, completely different libraries. As a
1067
+ consequence, the class `Construct` in each copy of the `constructs` library
1068
+ is seen as a different class, and an instance of one class will not test as
1069
+ `instanceof` the other class. `npm install` will not create installations
1070
+ like this, but users may manually symlink construct libraries together or
1071
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
1072
+ library can be accidentally installed, and `instanceof` will behave
1073
+ unpredictably. It is safest to avoid using `instanceof`, and using
1074
+ this type-testing method instead.
1075
+
1020
1076
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.CodeBuildRunnerProvider.isConstruct.parameter.x"></a>
1021
1077
 
1022
1078
  - *Type:* any
@@ -1408,6 +1464,20 @@ ContainerImageBuilder.isConstruct(x: any)
1408
1464
 
1409
1465
  Checks if `x` is a construct.
1410
1466
 
1467
+ Use this method instead of `instanceof` to properly detect `Construct`
1468
+ instances, even when the construct library is symlinked.
1469
+
1470
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
1471
+ disk are seen as independent, completely different libraries. As a
1472
+ consequence, the class `Construct` in each copy of the `constructs` library
1473
+ is seen as a different class, and an instance of one class will not test as
1474
+ `instanceof` the other class. `npm install` will not create installations
1475
+ like this, but users may manually symlink construct libraries together or
1476
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
1477
+ library can be accidentally installed, and `instanceof` will behave
1478
+ unpredictably. It is safest to avoid using `instanceof`, and using
1479
+ this type-testing method instead.
1480
+
1411
1481
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.ContainerImageBuilder.isConstruct.parameter.x"></a>
1412
1482
 
1413
1483
  - *Type:* any
@@ -1592,6 +1662,20 @@ Ec2Runner.isConstruct(x: any)
1592
1662
 
1593
1663
  Checks if `x` is a construct.
1594
1664
 
1665
+ Use this method instead of `instanceof` to properly detect `Construct`
1666
+ instances, even when the construct library is symlinked.
1667
+
1668
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
1669
+ disk are seen as independent, completely different libraries. As a
1670
+ consequence, the class `Construct` in each copy of the `constructs` library
1671
+ is seen as a different class, and an instance of one class will not test as
1672
+ `instanceof` the other class. `npm install` will not create installations
1673
+ like this, but users may manually symlink construct libraries together or
1674
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
1675
+ library can be accidentally installed, and `instanceof` will behave
1676
+ unpredictably. It is safest to avoid using `instanceof`, and using
1677
+ this type-testing method instead.
1678
+
1595
1679
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.Ec2Runner.isConstruct.parameter.x"></a>
1596
1680
 
1597
1681
  - *Type:* any
@@ -1865,7 +1949,7 @@ Also gives the status function any needed permissions to query the Docker image
1865
1949
 
1866
1950
  ---
1867
1951
 
1868
- ##### ~~`isConstruct`~~ <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.Ec2RunnerProvider.isConstruct"></a>
1952
+ ##### `isConstruct` <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.Ec2RunnerProvider.isConstruct"></a>
1869
1953
 
1870
1954
  ```typescript
1871
1955
  import { Ec2RunnerProvider } from '@cloudsnorkel/cdk-github-runners'
@@ -1875,6 +1959,20 @@ Ec2RunnerProvider.isConstruct(x: any)
1875
1959
 
1876
1960
  Checks if `x` is a construct.
1877
1961
 
1962
+ Use this method instead of `instanceof` to properly detect `Construct`
1963
+ instances, even when the construct library is symlinked.
1964
+
1965
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
1966
+ disk are seen as independent, completely different libraries. As a
1967
+ consequence, the class `Construct` in each copy of the `constructs` library
1968
+ is seen as a different class, and an instance of one class will not test as
1969
+ `instanceof` the other class. `npm install` will not create installations
1970
+ like this, but users may manually symlink construct libraries together or
1971
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
1972
+ library can be accidentally installed, and `instanceof` will behave
1973
+ unpredictably. It is safest to avoid using `instanceof`, and using
1974
+ this type-testing method instead.
1975
+
1878
1976
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.Ec2RunnerProvider.isConstruct.parameter.x"></a>
1879
1977
 
1880
1978
  - *Type:* any
@@ -2140,7 +2238,7 @@ Also gives the status function any needed permissions to query the Docker image
2140
2238
 
2141
2239
  ---
2142
2240
 
2143
- ##### ~~`isConstruct`~~ <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.EcsRunnerProvider.isConstruct"></a>
2241
+ ##### `isConstruct` <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.EcsRunnerProvider.isConstruct"></a>
2144
2242
 
2145
2243
  ```typescript
2146
2244
  import { EcsRunnerProvider } from '@cloudsnorkel/cdk-github-runners'
@@ -2150,6 +2248,20 @@ EcsRunnerProvider.isConstruct(x: any)
2150
2248
 
2151
2249
  Checks if `x` is a construct.
2152
2250
 
2251
+ Use this method instead of `instanceof` to properly detect `Construct`
2252
+ instances, even when the construct library is symlinked.
2253
+
2254
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
2255
+ disk are seen as independent, completely different libraries. As a
2256
+ consequence, the class `Construct` in each copy of the `constructs` library
2257
+ is seen as a different class, and an instance of one class will not test as
2258
+ `instanceof` the other class. `npm install` will not create installations
2259
+ like this, but users may manually symlink construct libraries together or
2260
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
2261
+ library can be accidentally installed, and `instanceof` will behave
2262
+ unpredictably. It is safest to avoid using `instanceof`, and using
2263
+ this type-testing method instead.
2264
+
2153
2265
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.EcsRunnerProvider.isConstruct.parameter.x"></a>
2154
2266
 
2155
2267
  - *Type:* any
@@ -2414,6 +2526,20 @@ FargateRunner.isConstruct(x: any)
2414
2526
 
2415
2527
  Checks if `x` is a construct.
2416
2528
 
2529
+ Use this method instead of `instanceof` to properly detect `Construct`
2530
+ instances, even when the construct library is symlinked.
2531
+
2532
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
2533
+ disk are seen as independent, completely different libraries. As a
2534
+ consequence, the class `Construct` in each copy of the `constructs` library
2535
+ is seen as a different class, and an instance of one class will not test as
2536
+ `instanceof` the other class. `npm install` will not create installations
2537
+ like this, but users may manually symlink construct libraries together or
2538
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
2539
+ library can be accidentally installed, and `instanceof` will behave
2540
+ unpredictably. It is safest to avoid using `instanceof`, and using
2541
+ this type-testing method instead.
2542
+
2417
2543
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.FargateRunner.isConstruct.parameter.x"></a>
2418
2544
 
2419
2545
  - *Type:* any
@@ -2857,7 +2983,7 @@ Also gives the status function any needed permissions to query the Docker image
2857
2983
 
2858
2984
  ---
2859
2985
 
2860
- ##### ~~`isConstruct`~~ <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.FargateRunnerProvider.isConstruct"></a>
2986
+ ##### `isConstruct` <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.FargateRunnerProvider.isConstruct"></a>
2861
2987
 
2862
2988
  ```typescript
2863
2989
  import { FargateRunnerProvider } from '@cloudsnorkel/cdk-github-runners'
@@ -2867,6 +2993,20 @@ FargateRunnerProvider.isConstruct(x: any)
2867
2993
 
2868
2994
  Checks if `x` is a construct.
2869
2995
 
2996
+ Use this method instead of `instanceof` to properly detect `Construct`
2997
+ instances, even when the construct library is symlinked.
2998
+
2999
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
3000
+ disk are seen as independent, completely different libraries. As a
3001
+ consequence, the class `Construct` in each copy of the `constructs` library
3002
+ is seen as a different class, and an instance of one class will not test as
3003
+ `instanceof` the other class. `npm install` will not create installations
3004
+ like this, but users may manually symlink construct libraries together or
3005
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
3006
+ library can be accidentally installed, and `instanceof` will behave
3007
+ unpredictably. It is safest to avoid using `instanceof`, and using
3008
+ this type-testing method instead.
3009
+
2870
3010
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.FargateRunnerProvider.isConstruct.parameter.x"></a>
2871
3011
 
2872
3012
  - *Type:* any
@@ -3361,7 +3501,7 @@ This time may be longer than the time the runner took.
3361
3501
 
3362
3502
  ---
3363
3503
 
3364
- ##### ~~`isConstruct`~~ <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.GitHubRunners.isConstruct"></a>
3504
+ ##### `isConstruct` <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.GitHubRunners.isConstruct"></a>
3365
3505
 
3366
3506
  ```typescript
3367
3507
  import { GitHubRunners } from '@cloudsnorkel/cdk-github-runners'
@@ -3371,6 +3511,20 @@ GitHubRunners.isConstruct(x: any)
3371
3511
 
3372
3512
  Checks if `x` is a construct.
3373
3513
 
3514
+ Use this method instead of `instanceof` to properly detect `Construct`
3515
+ instances, even when the construct library is symlinked.
3516
+
3517
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
3518
+ disk are seen as independent, completely different libraries. As a
3519
+ consequence, the class `Construct` in each copy of the `constructs` library
3520
+ is seen as a different class, and an instance of one class will not test as
3521
+ `instanceof` the other class. `npm install` will not create installations
3522
+ like this, but users may manually symlink construct libraries together or
3523
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
3524
+ library can be accidentally installed, and `instanceof` will behave
3525
+ unpredictably. It is safest to avoid using `instanceof`, and using
3526
+ this type-testing method instead.
3527
+
3374
3528
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.GitHubRunners.isConstruct.parameter.x"></a>
3375
3529
 
3376
3530
  - *Type:* any
@@ -3601,6 +3755,20 @@ ImageBuilderComponent.isConstruct(x: any)
3601
3755
 
3602
3756
  Checks if `x` is a construct.
3603
3757
 
3758
+ Use this method instead of `instanceof` to properly detect `Construct`
3759
+ instances, even when the construct library is symlinked.
3760
+
3761
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
3762
+ disk are seen as independent, completely different libraries. As a
3763
+ consequence, the class `Construct` in each copy of the `constructs` library
3764
+ is seen as a different class, and an instance of one class will not test as
3765
+ `instanceof` the other class. `npm install` will not create installations
3766
+ like this, but users may manually symlink construct libraries together or
3767
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
3768
+ library can be accidentally installed, and `instanceof` will behave
3769
+ unpredictably. It is safest to avoid using `instanceof`, and using
3770
+ this type-testing method instead.
3771
+
3604
3772
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.ImageBuilderComponent.isConstruct.parameter.x"></a>
3605
3773
 
3606
3774
  - *Type:* any
@@ -3856,6 +4024,20 @@ LambdaRunner.isConstruct(x: any)
3856
4024
 
3857
4025
  Checks if `x` is a construct.
3858
4026
 
4027
+ Use this method instead of `instanceof` to properly detect `Construct`
4028
+ instances, even when the construct library is symlinked.
4029
+
4030
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
4031
+ disk are seen as independent, completely different libraries. As a
4032
+ consequence, the class `Construct` in each copy of the `constructs` library
4033
+ is seen as a different class, and an instance of one class will not test as
4034
+ `instanceof` the other class. `npm install` will not create installations
4035
+ like this, but users may manually symlink construct libraries together or
4036
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
4037
+ library can be accidentally installed, and `instanceof` will behave
4038
+ unpredictably. It is safest to avoid using `instanceof`, and using
4039
+ this type-testing method instead.
4040
+
3859
4041
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.LambdaRunner.isConstruct.parameter.x"></a>
3860
4042
 
3861
4043
  - *Type:* any
@@ -4210,7 +4392,7 @@ Also gives the status function any needed permissions to query the Docker image
4210
4392
 
4211
4393
  ---
4212
4394
 
4213
- ##### ~~`isConstruct`~~ <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.LambdaRunnerProvider.isConstruct"></a>
4395
+ ##### `isConstruct` <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.LambdaRunnerProvider.isConstruct"></a>
4214
4396
 
4215
4397
  ```typescript
4216
4398
  import { LambdaRunnerProvider } from '@cloudsnorkel/cdk-github-runners'
@@ -4220,6 +4402,20 @@ LambdaRunnerProvider.isConstruct(x: any)
4220
4402
 
4221
4403
  Checks if `x` is a construct.
4222
4404
 
4405
+ Use this method instead of `instanceof` to properly detect `Construct`
4406
+ instances, even when the construct library is symlinked.
4407
+
4408
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
4409
+ disk are seen as independent, completely different libraries. As a
4410
+ consequence, the class `Construct` in each copy of the `constructs` library
4411
+ is seen as a different class, and an instance of one class will not test as
4412
+ `instanceof` the other class. `npm install` will not create installations
4413
+ like this, but users may manually symlink construct libraries together or
4414
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
4415
+ library can be accidentally installed, and `instanceof` will behave
4416
+ unpredictably. It is safest to avoid using `instanceof`, and using
4417
+ this type-testing method instead.
4418
+
4223
4419
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.LambdaRunnerProvider.isConstruct.parameter.x"></a>
4224
4420
 
4225
4421
  - *Type:* any
@@ -4566,7 +4762,7 @@ Removal is done by component name. Multiple components with the same name will a
4566
4762
 
4567
4763
  ---
4568
4764
 
4569
- ##### ~~`isConstruct`~~ <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.RunnerImageBuilder.isConstruct"></a>
4765
+ ##### `isConstruct` <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.RunnerImageBuilder.isConstruct"></a>
4570
4766
 
4571
4767
  ```typescript
4572
4768
  import { RunnerImageBuilder } from '@cloudsnorkel/cdk-github-runners'
@@ -4576,6 +4772,20 @@ RunnerImageBuilder.isConstruct(x: any)
4576
4772
 
4577
4773
  Checks if `x` is a construct.
4578
4774
 
4775
+ Use this method instead of `instanceof` to properly detect `Construct`
4776
+ instances, even when the construct library is symlinked.
4777
+
4778
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
4779
+ disk are seen as independent, completely different libraries. As a
4780
+ consequence, the class `Construct` in each copy of the `constructs` library
4781
+ is seen as a different class, and an instance of one class will not test as
4782
+ `instanceof` the other class. `npm install` will not create installations
4783
+ like this, but users may manually symlink construct libraries together or
4784
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
4785
+ library can be accidentally installed, and `instanceof` will behave
4786
+ unpredictably. It is safest to avoid using `instanceof`, and using
4787
+ this type-testing method instead.
4788
+
4579
4789
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.RunnerImageBuilder.isConstruct.parameter.x"></a>
4580
4790
 
4581
4791
  - *Type:* any
@@ -4716,7 +4926,7 @@ Returns a string representation of this construct.
4716
4926
 
4717
4927
  ---
4718
4928
 
4719
- ##### ~~`isConstruct`~~ <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.Secrets.isConstruct"></a>
4929
+ ##### `isConstruct` <a name="isConstruct" id="@cloudsnorkel/cdk-github-runners.Secrets.isConstruct"></a>
4720
4930
 
4721
4931
  ```typescript
4722
4932
  import { Secrets } from '@cloudsnorkel/cdk-github-runners'
@@ -4726,6 +4936,20 @@ Secrets.isConstruct(x: any)
4726
4936
 
4727
4937
  Checks if `x` is a construct.
4728
4938
 
4939
+ Use this method instead of `instanceof` to properly detect `Construct`
4940
+ instances, even when the construct library is symlinked.
4941
+
4942
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
4943
+ disk are seen as independent, completely different libraries. As a
4944
+ consequence, the class `Construct` in each copy of the `constructs` library
4945
+ is seen as a different class, and an instance of one class will not test as
4946
+ `instanceof` the other class. `npm install` will not create installations
4947
+ like this, but users may manually symlink construct libraries together or
4948
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
4949
+ library can be accidentally installed, and `instanceof` will behave
4950
+ unpredictably. It is safest to avoid using `instanceof`, and using
4951
+ this type-testing method instead.
4952
+
4729
4953
  ###### `x`<sup>Required</sup> <a name="x" id="@cloudsnorkel/cdk-github-runners.Secrets.isConstruct.parameter.x"></a>
4730
4954
 
4731
4955
  - *Type:* any