construct-hub 0.3.191 → 0.3.192
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +154 -54
- package/API.md +83 -4
- package/changelog.md +1 -1
- package/lib/construct-hub.d.ts +3 -2
- package/lib/construct-hub.js +2 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/package-sources/code-artifact.js +1 -1
- package/lib/package-sources/npmjs.js +1 -1
- package/lib/package-tag/index.js +2 -2
- package/lib/package-tag-group/index.js +2 -2
- package/lib/preload-file/index.d.ts +30 -0
- package/lib/preload-file/index.js +48 -0
- package/lib/s3/storage.js +1 -1
- package/lib/spdx-license.js +1 -1
- package/lib/webapp/index.d.ts +3 -2
- package/lib/webapp/index.js +3 -3
- package/package.json +1 -1
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
package/.jsii
CHANGED
@@ -1997,7 +1997,7 @@
|
|
1997
1997
|
"kind": "interface",
|
1998
1998
|
"locationInModule": {
|
1999
1999
|
"filename": "src/webapp/index.ts",
|
2000
|
-
"line":
|
2000
|
+
"line": 107
|
2001
2001
|
},
|
2002
2002
|
"name": "Category",
|
2003
2003
|
"properties": [
|
@@ -2010,7 +2010,7 @@
|
|
2010
2010
|
"immutable": true,
|
2011
2011
|
"locationInModule": {
|
2012
2012
|
"filename": "src/webapp/index.ts",
|
2013
|
-
"line":
|
2013
|
+
"line": 111
|
2014
2014
|
},
|
2015
2015
|
"name": "title",
|
2016
2016
|
"type": {
|
@@ -2028,7 +2028,7 @@
|
|
2028
2028
|
"immutable": true,
|
2029
2029
|
"locationInModule": {
|
2030
2030
|
"filename": "src/webapp/index.ts",
|
2031
|
-
"line":
|
2031
|
+
"line": 120
|
2032
2032
|
},
|
2033
2033
|
"name": "url",
|
2034
2034
|
"type": {
|
@@ -2049,7 +2049,7 @@
|
|
2049
2049
|
"kind": "interface",
|
2050
2050
|
"locationInModule": {
|
2051
2051
|
"filename": "src/construct-hub.ts",
|
2052
|
-
"line":
|
2052
|
+
"line": 200
|
2053
2053
|
},
|
2054
2054
|
"name": "CodeArtifactDomainProps",
|
2055
2055
|
"properties": [
|
@@ -2062,7 +2062,7 @@
|
|
2062
2062
|
"immutable": true,
|
2063
2063
|
"locationInModule": {
|
2064
2064
|
"filename": "src/construct-hub.ts",
|
2065
|
-
"line":
|
2065
|
+
"line": 204
|
2066
2066
|
},
|
2067
2067
|
"name": "name",
|
2068
2068
|
"type": {
|
@@ -2078,7 +2078,7 @@
|
|
2078
2078
|
"immutable": true,
|
2079
2079
|
"locationInModule": {
|
2080
2080
|
"filename": "src/construct-hub.ts",
|
2081
|
-
"line":
|
2081
|
+
"line": 210
|
2082
2082
|
},
|
2083
2083
|
"name": "upstreams",
|
2084
2084
|
"optional": true,
|
@@ -2108,7 +2108,7 @@
|
|
2108
2108
|
},
|
2109
2109
|
"locationInModule": {
|
2110
2110
|
"filename": "src/construct-hub.ts",
|
2111
|
-
"line":
|
2111
|
+
"line": 219
|
2112
2112
|
},
|
2113
2113
|
"parameters": [
|
2114
2114
|
{
|
@@ -2138,7 +2138,7 @@
|
|
2138
2138
|
"kind": "class",
|
2139
2139
|
"locationInModule": {
|
2140
2140
|
"filename": "src/construct-hub.ts",
|
2141
|
-
"line":
|
2141
|
+
"line": 216
|
2142
2142
|
},
|
2143
2143
|
"name": "ConstructHub",
|
2144
2144
|
"properties": [
|
@@ -2150,7 +2150,7 @@
|
|
2150
2150
|
"immutable": true,
|
2151
2151
|
"locationInModule": {
|
2152
2152
|
"filename": "src/construct-hub.ts",
|
2153
|
-
"line":
|
2153
|
+
"line": 411
|
2154
2154
|
},
|
2155
2155
|
"name": "grantPrincipal",
|
2156
2156
|
"overrides": "@aws-cdk/aws-iam.IGrantable",
|
@@ -2165,7 +2165,7 @@
|
|
2165
2165
|
"immutable": true,
|
2166
2166
|
"locationInModule": {
|
2167
2167
|
"filename": "src/construct-hub.ts",
|
2168
|
-
"line":
|
2168
|
+
"line": 415
|
2169
2169
|
},
|
2170
2170
|
"name": "ingestionQueue",
|
2171
2171
|
"type": {
|
@@ -2186,7 +2186,7 @@
|
|
2186
2186
|
"kind": "interface",
|
2187
2187
|
"locationInModule": {
|
2188
2188
|
"filename": "src/construct-hub.ts",
|
2189
|
-
"line":
|
2189
|
+
"line": 36
|
2190
2190
|
},
|
2191
2191
|
"name": "ConstructHubProps",
|
2192
2192
|
"properties": [
|
@@ -2200,7 +2200,7 @@
|
|
2200
2200
|
"immutable": true,
|
2201
2201
|
"locationInModule": {
|
2202
2202
|
"filename": "src/construct-hub.ts",
|
2203
|
-
"line":
|
2203
|
+
"line": 189
|
2204
2204
|
},
|
2205
2205
|
"name": "additionalDomains",
|
2206
2206
|
"optional": true,
|
@@ -2222,7 +2222,7 @@
|
|
2222
2222
|
"immutable": true,
|
2223
2223
|
"locationInModule": {
|
2224
2224
|
"filename": "src/construct-hub.ts",
|
2225
|
-
"line":
|
2225
|
+
"line": 45
|
2226
2226
|
},
|
2227
2227
|
"name": "alarmActions",
|
2228
2228
|
"optional": true,
|
@@ -2240,7 +2240,7 @@
|
|
2240
2240
|
"immutable": true,
|
2241
2241
|
"locationInModule": {
|
2242
2242
|
"filename": "src/construct-hub.ts",
|
2243
|
-
"line":
|
2243
|
+
"line": 107
|
2244
2244
|
},
|
2245
2245
|
"name": "allowedLicenses",
|
2246
2246
|
"optional": true,
|
@@ -2262,7 +2262,7 @@
|
|
2262
2262
|
"immutable": true,
|
2263
2263
|
"locationInModule": {
|
2264
2264
|
"filename": "src/construct-hub.ts",
|
2265
|
-
"line":
|
2265
|
+
"line": 86
|
2266
2266
|
},
|
2267
2267
|
"name": "backendDashboardName",
|
2268
2268
|
"optional": true,
|
@@ -2280,7 +2280,7 @@
|
|
2280
2280
|
"immutable": true,
|
2281
2281
|
"locationInModule": {
|
2282
2282
|
"filename": "src/construct-hub.ts",
|
2283
|
-
"line":
|
2283
|
+
"line": 160
|
2284
2284
|
},
|
2285
2285
|
"name": "categories",
|
2286
2286
|
"optional": true,
|
@@ -2304,7 +2304,7 @@
|
|
2304
2304
|
"immutable": true,
|
2305
2305
|
"locationInModule": {
|
2306
2306
|
"filename": "src/construct-hub.ts",
|
2307
|
-
"line":
|
2307
|
+
"line": 118
|
2308
2308
|
},
|
2309
2309
|
"name": "codeArtifactDomain",
|
2310
2310
|
"optional": true,
|
@@ -2322,7 +2322,7 @@
|
|
2322
2322
|
"immutable": true,
|
2323
2323
|
"locationInModule": {
|
2324
2324
|
"filename": "src/construct-hub.ts",
|
2325
|
-
"line":
|
2325
|
+
"line": 93
|
2326
2326
|
},
|
2327
2327
|
"name": "denyList",
|
2328
2328
|
"optional": true,
|
@@ -2344,7 +2344,7 @@
|
|
2344
2344
|
"immutable": true,
|
2345
2345
|
"locationInModule": {
|
2346
2346
|
"filename": "src/construct-hub.ts",
|
2347
|
-
"line":
|
2347
|
+
"line": 40
|
2348
2348
|
},
|
2349
2349
|
"name": "domain",
|
2350
2350
|
"optional": true,
|
@@ -2364,7 +2364,7 @@
|
|
2364
2364
|
"immutable": true,
|
2365
2365
|
"locationInModule": {
|
2366
2366
|
"filename": "src/construct-hub.ts",
|
2367
|
-
"line":
|
2367
|
+
"line": 171
|
2368
2368
|
},
|
2369
2369
|
"name": "failoverStorage",
|
2370
2370
|
"optional": true,
|
@@ -2382,7 +2382,7 @@
|
|
2382
2382
|
"immutable": true,
|
2383
2383
|
"locationInModule": {
|
2384
2384
|
"filename": "src/construct-hub.ts",
|
2385
|
-
"line":
|
2385
|
+
"line": 139
|
2386
2386
|
},
|
2387
2387
|
"name": "featuredPackages",
|
2388
2388
|
"optional": true,
|
@@ -2399,7 +2399,7 @@
|
|
2399
2399
|
"immutable": true,
|
2400
2400
|
"locationInModule": {
|
2401
2401
|
"filename": "src/construct-hub.ts",
|
2402
|
-
"line":
|
2402
|
+
"line": 144
|
2403
2403
|
},
|
2404
2404
|
"name": "featureFlags",
|
2405
2405
|
"optional": true,
|
@@ -2417,7 +2417,7 @@
|
|
2417
2417
|
"immutable": true,
|
2418
2418
|
"locationInModule": {
|
2419
2419
|
"filename": "src/construct-hub.ts",
|
2420
|
-
"line":
|
2420
|
+
"line": 154
|
2421
2421
|
},
|
2422
2422
|
"name": "fetchPackageStats",
|
2423
2423
|
"optional": true,
|
@@ -2436,7 +2436,7 @@
|
|
2436
2436
|
"immutable": true,
|
2437
2437
|
"locationInModule": {
|
2438
2438
|
"filename": "src/construct-hub.ts",
|
2439
|
-
"line":
|
2439
|
+
"line": 59
|
2440
2440
|
},
|
2441
2441
|
"name": "isolateSensitiveTasks",
|
2442
2442
|
"optional": true,
|
@@ -2456,7 +2456,7 @@
|
|
2456
2456
|
"immutable": true,
|
2457
2457
|
"locationInModule": {
|
2458
2458
|
"filename": "src/construct-hub.ts",
|
2459
|
-
"line":
|
2459
|
+
"line": 80
|
2460
2460
|
},
|
2461
2461
|
"name": "logRetention",
|
2462
2462
|
"optional": true,
|
@@ -2473,7 +2473,7 @@
|
|
2473
2473
|
"immutable": true,
|
2474
2474
|
"locationInModule": {
|
2475
2475
|
"filename": "src/construct-hub.ts",
|
2476
|
-
"line":
|
2476
|
+
"line": 123
|
2477
2477
|
},
|
2478
2478
|
"name": "packageLinks",
|
2479
2479
|
"optional": true,
|
@@ -2496,7 +2496,7 @@
|
|
2496
2496
|
"immutable": true,
|
2497
2497
|
"locationInModule": {
|
2498
2498
|
"filename": "src/construct-hub.ts",
|
2499
|
-
"line":
|
2499
|
+
"line": 100
|
2500
2500
|
},
|
2501
2501
|
"name": "packageSources",
|
2502
2502
|
"optional": true,
|
@@ -2518,7 +2518,7 @@
|
|
2518
2518
|
"immutable": true,
|
2519
2519
|
"locationInModule": {
|
2520
2520
|
"filename": "src/construct-hub.ts",
|
2521
|
-
"line":
|
2521
|
+
"line": 133
|
2522
2522
|
},
|
2523
2523
|
"name": "packageTagGroups",
|
2524
2524
|
"optional": true,
|
@@ -2540,7 +2540,7 @@
|
|
2540
2540
|
"immutable": true,
|
2541
2541
|
"locationInModule": {
|
2542
2542
|
"filename": "src/construct-hub.ts",
|
2543
|
-
"line":
|
2543
|
+
"line": 128
|
2544
2544
|
},
|
2545
2545
|
"name": "packageTags",
|
2546
2546
|
"optional": true,
|
@@ -2557,17 +2557,17 @@
|
|
2557
2557
|
"abstract": true,
|
2558
2558
|
"docs": {
|
2559
2559
|
"stability": "experimental",
|
2560
|
-
"summary": "
|
2560
|
+
"summary": "Javascript to run on webapp before app loads."
|
2561
2561
|
},
|
2562
2562
|
"immutable": true,
|
2563
2563
|
"locationInModule": {
|
2564
2564
|
"filename": "src/construct-hub.ts",
|
2565
|
-
"line":
|
2565
|
+
"line": 194
|
2566
2566
|
},
|
2567
2567
|
"name": "preloadScript",
|
2568
2568
|
"optional": true,
|
2569
2569
|
"type": {
|
2570
|
-
"
|
2570
|
+
"fqn": "construct-hub.PreloadFile"
|
2571
2571
|
}
|
2572
2572
|
},
|
2573
2573
|
{
|
@@ -2582,7 +2582,7 @@
|
|
2582
2582
|
"immutable": true,
|
2583
2583
|
"locationInModule": {
|
2584
2584
|
"filename": "src/construct-hub.ts",
|
2585
|
-
"line":
|
2585
|
+
"line": 181
|
2586
2586
|
},
|
2587
2587
|
"name": "reprocessFrequency",
|
2588
2588
|
"optional": true,
|
@@ -2601,7 +2601,7 @@
|
|
2601
2601
|
"immutable": true,
|
2602
2602
|
"locationInModule": {
|
2603
2603
|
"filename": "src/construct-hub.ts",
|
2604
|
-
"line":
|
2604
|
+
"line": 73
|
2605
2605
|
},
|
2606
2606
|
"name": "sensitiveTaskIsolation",
|
2607
2607
|
"optional": true,
|
@@ -2829,7 +2829,7 @@
|
|
2829
2829
|
"kind": "interface",
|
2830
2830
|
"locationInModule": {
|
2831
2831
|
"filename": "src/webapp/index.ts",
|
2832
|
-
"line":
|
2832
|
+
"line": 98
|
2833
2833
|
},
|
2834
2834
|
"name": "FeatureFlags",
|
2835
2835
|
"properties": [
|
@@ -2841,7 +2841,7 @@
|
|
2841
2841
|
"immutable": true,
|
2842
2842
|
"locationInModule": {
|
2843
2843
|
"filename": "src/webapp/index.ts",
|
2844
|
-
"line":
|
2844
|
+
"line": 99
|
2845
2845
|
},
|
2846
2846
|
"name": "homeRedesign",
|
2847
2847
|
"optional": true,
|
@@ -2857,7 +2857,7 @@
|
|
2857
2857
|
"immutable": true,
|
2858
2858
|
"locationInModule": {
|
2859
2859
|
"filename": "src/webapp/index.ts",
|
2860
|
-
"line":
|
2860
|
+
"line": 100
|
2861
2861
|
},
|
2862
2862
|
"name": "searchRedesign",
|
2863
2863
|
"optional": true,
|
@@ -2879,7 +2879,7 @@
|
|
2879
2879
|
"kind": "interface",
|
2880
2880
|
"locationInModule": {
|
2881
2881
|
"filename": "src/webapp/index.ts",
|
2882
|
-
"line":
|
2882
|
+
"line": 51
|
2883
2883
|
},
|
2884
2884
|
"name": "FeaturedPackages",
|
2885
2885
|
"properties": [
|
@@ -2892,7 +2892,7 @@
|
|
2892
2892
|
"immutable": true,
|
2893
2893
|
"locationInModule": {
|
2894
2894
|
"filename": "src/webapp/index.ts",
|
2895
|
-
"line":
|
2895
|
+
"line": 55
|
2896
2896
|
},
|
2897
2897
|
"name": "sections",
|
2898
2898
|
"type": {
|
@@ -2918,7 +2918,7 @@
|
|
2918
2918
|
"kind": "interface",
|
2919
2919
|
"locationInModule": {
|
2920
2920
|
"filename": "src/webapp/index.ts",
|
2921
|
-
"line":
|
2921
|
+
"line": 83
|
2922
2922
|
},
|
2923
2923
|
"name": "FeaturedPackagesDetail",
|
2924
2924
|
"properties": [
|
@@ -2931,7 +2931,7 @@
|
|
2931
2931
|
"immutable": true,
|
2932
2932
|
"locationInModule": {
|
2933
2933
|
"filename": "src/webapp/index.ts",
|
2934
|
-
"line":
|
2934
|
+
"line": 87
|
2935
2935
|
},
|
2936
2936
|
"name": "name",
|
2937
2937
|
"type": {
|
@@ -2947,7 +2947,7 @@
|
|
2947
2947
|
"immutable": true,
|
2948
2948
|
"locationInModule": {
|
2949
2949
|
"filename": "src/webapp/index.ts",
|
2950
|
-
"line":
|
2950
|
+
"line": 92
|
2951
2951
|
},
|
2952
2952
|
"name": "comment",
|
2953
2953
|
"optional": true,
|
@@ -2969,7 +2969,7 @@
|
|
2969
2969
|
"kind": "interface",
|
2970
2970
|
"locationInModule": {
|
2971
2971
|
"filename": "src/webapp/index.ts",
|
2972
|
-
"line":
|
2972
|
+
"line": 61
|
2973
2973
|
},
|
2974
2974
|
"name": "FeaturedPackagesSection",
|
2975
2975
|
"properties": [
|
@@ -2982,7 +2982,7 @@
|
|
2982
2982
|
"immutable": true,
|
2983
2983
|
"locationInModule": {
|
2984
2984
|
"filename": "src/webapp/index.ts",
|
2985
|
-
"line":
|
2985
|
+
"line": 65
|
2986
2986
|
},
|
2987
2987
|
"name": "name",
|
2988
2988
|
"type": {
|
@@ -2999,7 +2999,7 @@
|
|
2999
2999
|
"immutable": true,
|
3000
3000
|
"locationInModule": {
|
3001
3001
|
"filename": "src/webapp/index.ts",
|
3002
|
-
"line":
|
3002
|
+
"line": 71
|
3003
3003
|
},
|
3004
3004
|
"name": "showLastUpdated",
|
3005
3005
|
"optional": true,
|
@@ -3017,7 +3017,7 @@
|
|
3017
3017
|
"immutable": true,
|
3018
3018
|
"locationInModule": {
|
3019
3019
|
"filename": "src/webapp/index.ts",
|
3020
|
-
"line":
|
3020
|
+
"line": 77
|
3021
3021
|
},
|
3022
3022
|
"name": "showPackages",
|
3023
3023
|
"optional": true,
|
@@ -3463,7 +3463,7 @@
|
|
3463
3463
|
"kind": "enum",
|
3464
3464
|
"locationInModule": {
|
3465
3465
|
"filename": "src/construct-hub.ts",
|
3466
|
-
"line":
|
3466
|
+
"line": 530
|
3467
3467
|
},
|
3468
3468
|
"members": [
|
3469
3469
|
{
|
@@ -3620,7 +3620,7 @@
|
|
3620
3620
|
"kind": "interface",
|
3621
3621
|
"locationInModule": {
|
3622
3622
|
"filename": "src/webapp/index.ts",
|
3623
|
-
"line":
|
3623
|
+
"line": 21
|
3624
3624
|
},
|
3625
3625
|
"name": "PackageLinkConfig",
|
3626
3626
|
"properties": [
|
@@ -3633,7 +3633,7 @@
|
|
3633
3633
|
"immutable": true,
|
3634
3634
|
"locationInModule": {
|
3635
3635
|
"filename": "src/webapp/index.ts",
|
3636
|
-
"line":
|
3636
|
+
"line": 31
|
3637
3637
|
},
|
3638
3638
|
"name": "configKey",
|
3639
3639
|
"type": {
|
@@ -3649,7 +3649,7 @@
|
|
3649
3649
|
"immutable": true,
|
3650
3650
|
"locationInModule": {
|
3651
3651
|
"filename": "src/webapp/index.ts",
|
3652
|
-
"line":
|
3652
|
+
"line": 25
|
3653
3653
|
},
|
3654
3654
|
"name": "linkLabel",
|
3655
3655
|
"type": {
|
@@ -3666,7 +3666,7 @@
|
|
3666
3666
|
"immutable": true,
|
3667
3667
|
"locationInModule": {
|
3668
3668
|
"filename": "src/webapp/index.ts",
|
3669
|
-
"line":
|
3669
|
+
"line": 45
|
3670
3670
|
},
|
3671
3671
|
"name": "allowedDomains",
|
3672
3672
|
"optional": true,
|
@@ -3689,7 +3689,7 @@
|
|
3689
3689
|
"immutable": true,
|
3690
3690
|
"locationInModule": {
|
3691
3691
|
"filename": "src/webapp/index.ts",
|
3692
|
-
"line":
|
3692
|
+
"line": 38
|
3693
3693
|
},
|
3694
3694
|
"name": "linkText",
|
3695
3695
|
"optional": true,
|
@@ -4349,6 +4349,106 @@
|
|
4349
4349
|
],
|
4350
4350
|
"symbolId": "src/package-tag-group/index:PackageTagGroupProps"
|
4351
4351
|
},
|
4352
|
+
"construct-hub.PreloadFile": {
|
4353
|
+
"assembly": "construct-hub",
|
4354
|
+
"docs": {
|
4355
|
+
"remarks": "This can allow operators to add their own client monitors or analytics if they wish",
|
4356
|
+
"stability": "experimental",
|
4357
|
+
"summary": "Represents a javascript file to load before the webapp."
|
4358
|
+
},
|
4359
|
+
"fqn": "construct-hub.PreloadFile",
|
4360
|
+
"initializer": {
|
4361
|
+
"docs": {
|
4362
|
+
"stability": "experimental"
|
4363
|
+
},
|
4364
|
+
"locationInModule": {
|
4365
|
+
"filename": "src/preload-file/index.ts",
|
4366
|
+
"line": 23
|
4367
|
+
},
|
4368
|
+
"parameters": [
|
4369
|
+
{
|
4370
|
+
"name": "data",
|
4371
|
+
"type": {
|
4372
|
+
"primitive": "string"
|
4373
|
+
}
|
4374
|
+
}
|
4375
|
+
]
|
4376
|
+
},
|
4377
|
+
"kind": "class",
|
4378
|
+
"locationInModule": {
|
4379
|
+
"filename": "src/preload-file/index.ts",
|
4380
|
+
"line": 7
|
4381
|
+
},
|
4382
|
+
"methods": [
|
4383
|
+
{
|
4384
|
+
"docs": {
|
4385
|
+
"stability": "experimental",
|
4386
|
+
"summary": "Creates a PreloadFile instance directly from source code."
|
4387
|
+
},
|
4388
|
+
"locationInModule": {
|
4389
|
+
"filename": "src/preload-file/index.ts",
|
4390
|
+
"line": 19
|
4391
|
+
},
|
4392
|
+
"name": "fromCode",
|
4393
|
+
"parameters": [
|
4394
|
+
{
|
4395
|
+
"name": "code",
|
4396
|
+
"type": {
|
4397
|
+
"primitive": "string"
|
4398
|
+
}
|
4399
|
+
}
|
4400
|
+
],
|
4401
|
+
"returns": {
|
4402
|
+
"type": {
|
4403
|
+
"fqn": "construct-hub.PreloadFile"
|
4404
|
+
}
|
4405
|
+
},
|
4406
|
+
"static": true
|
4407
|
+
},
|
4408
|
+
{
|
4409
|
+
"docs": {
|
4410
|
+
"stability": "experimental",
|
4411
|
+
"summary": "Creates a PreloadFile instance from a filepath to load."
|
4412
|
+
},
|
4413
|
+
"locationInModule": {
|
4414
|
+
"filename": "src/preload-file/index.ts",
|
4415
|
+
"line": 11
|
4416
|
+
},
|
4417
|
+
"name": "fromFile",
|
4418
|
+
"parameters": [
|
4419
|
+
{
|
4420
|
+
"name": "path",
|
4421
|
+
"type": {
|
4422
|
+
"primitive": "string"
|
4423
|
+
}
|
4424
|
+
}
|
4425
|
+
],
|
4426
|
+
"returns": {
|
4427
|
+
"type": {
|
4428
|
+
"fqn": "construct-hub.PreloadFile"
|
4429
|
+
}
|
4430
|
+
},
|
4431
|
+
"static": true
|
4432
|
+
},
|
4433
|
+
{
|
4434
|
+
"docs": {
|
4435
|
+
"stability": "experimental"
|
4436
|
+
},
|
4437
|
+
"locationInModule": {
|
4438
|
+
"filename": "src/preload-file/index.ts",
|
4439
|
+
"line": 25
|
4440
|
+
},
|
4441
|
+
"name": "bind",
|
4442
|
+
"returns": {
|
4443
|
+
"type": {
|
4444
|
+
"primitive": "string"
|
4445
|
+
}
|
4446
|
+
}
|
4447
|
+
}
|
4448
|
+
],
|
4449
|
+
"name": "PreloadFile",
|
4450
|
+
"symbolId": "src/preload-file/index:PreloadFile"
|
4451
|
+
},
|
4352
4452
|
"construct-hub.S3StorageFactory": {
|
4353
4453
|
"assembly": "construct-hub",
|
4354
4454
|
"base": "@aws-cdk/core.Construct",
|
@@ -14243,6 +14343,6 @@
|
|
14243
14343
|
"symbolId": "src/package-sources/npmjs:NpmJsProps"
|
14244
14344
|
}
|
14245
14345
|
},
|
14246
|
-
"version": "0.3.
|
14247
|
-
"fingerprint": "
|
14346
|
+
"version": "0.3.192",
|
14347
|
+
"fingerprint": "+l5qfUPFrDEwMN975C+V3k9kSJjKw07k6MwA4G1iBNg="
|
14248
14348
|
}
|
package/API.md
CHANGED
@@ -359,7 +359,7 @@ const constructHubProps: ConstructHubProps = { ... }
|
|
359
359
|
| [`packageSources`](#constructhubconstructhubpropspropertypackagesources) | [`construct-hub.IPackageSource`](#construct-hub.IPackageSource)[] | The package sources to register with this ConstructHub instance. |
|
360
360
|
| [`packageTagGroups`](#constructhubconstructhubpropspropertypackagetaggroups) | [`construct-hub.PackageTagGroup`](#construct-hub.PackageTagGroup)[] | Optional configuration for grouping custom package tags. |
|
361
361
|
| [`packageTags`](#constructhubconstructhubpropspropertypackagetags) | [`construct-hub.PackageTag`](#construct-hub.PackageTag)[] | Configuration for custom package tags. |
|
362
|
-
| [`preloadScript`](#constructhubconstructhubpropspropertypreloadscript) | `
|
362
|
+
| [`preloadScript`](#constructhubconstructhubpropspropertypreloadscript) | [`construct-hub.PreloadFile`](#construct-hub.PreloadFile) | Javascript to run on webapp before app loads. |
|
363
363
|
| [`reprocessFrequency`](#constructhubconstructhubpropspropertyreprocessfrequency) | [`@aws-cdk/core.Duration`](#@aws-cdk/core.Duration) | How frequently all packages should get fully reprocessed. |
|
364
364
|
| [`sensitiveTaskIsolation`](#constructhubconstructhubpropspropertysensitivetaskisolation) | [`construct-hub.Isolation`](#construct-hub.Isolation) | Whether compute environments for sensitive tasks (which operate on un-trusted complex data, such as the transliterator, which operates with externally-sourced npm package tarballs) should run in network-isolated environments. |
|
365
365
|
|
@@ -604,12 +604,12 @@ Configuration for custom package tags.
|
|
604
604
|
##### `preloadScript`<sup>Optional</sup> <a name="construct-hub.ConstructHubProps.property.preloadScript" id="constructhubconstructhubpropspropertypreloadscript"></a>
|
605
605
|
|
606
606
|
```typescript
|
607
|
-
public readonly preloadScript:
|
607
|
+
public readonly preloadScript: PreloadFile;
|
608
608
|
```
|
609
609
|
|
610
|
-
- *Type:* `
|
610
|
+
- *Type:* [`construct-hub.PreloadFile`](#construct-hub.PreloadFile)
|
611
611
|
|
612
|
-
|
612
|
+
Javascript to run on webapp before app loads.
|
613
613
|
|
614
614
|
---
|
615
615
|
|
@@ -2124,6 +2124,85 @@ public readonly tooltip: string;
|
|
2124
2124
|
---
|
2125
2125
|
|
2126
2126
|
|
2127
|
+
### PreloadFile <a name="construct-hub.PreloadFile" id="constructhubpreloadfile"></a>
|
2128
|
+
|
2129
|
+
Represents a javascript file to load before the webapp.
|
2130
|
+
|
2131
|
+
This can allow operators to add their own client monitors or analytics if they wish
|
2132
|
+
|
2133
|
+
#### Initializers <a name="construct-hub.PreloadFile.Initializer" id="constructhubpreloadfileinitializer"></a>
|
2134
|
+
|
2135
|
+
```typescript
|
2136
|
+
import { PreloadFile } from 'construct-hub'
|
2137
|
+
|
2138
|
+
new PreloadFile(data: string)
|
2139
|
+
```
|
2140
|
+
|
2141
|
+
| **Name** | **Type** | **Description** |
|
2142
|
+
| --- | --- | --- |
|
2143
|
+
| [`data`](#constructhubpreloadfileparameterdata)<span title="Required">*</span> | `string` | *No description.* |
|
2144
|
+
|
2145
|
+
---
|
2146
|
+
|
2147
|
+
##### `data`<sup>Required</sup> <a name="construct-hub.PreloadFile.parameter.data" id="constructhubpreloadfileparameterdata"></a>
|
2148
|
+
|
2149
|
+
- *Type:* `string`
|
2150
|
+
|
2151
|
+
---
|
2152
|
+
|
2153
|
+
#### Methods <a name="Methods" id="methods"></a>
|
2154
|
+
|
2155
|
+
| **Name** | **Description** |
|
2156
|
+
| --- | --- |
|
2157
|
+
| [`bind`](#constructhubpreloadfilebind) | *No description.* |
|
2158
|
+
|
2159
|
+
---
|
2160
|
+
|
2161
|
+
##### `bind` <a name="construct-hub.PreloadFile.bind" id="constructhubpreloadfilebind"></a>
|
2162
|
+
|
2163
|
+
```typescript
|
2164
|
+
public bind()
|
2165
|
+
```
|
2166
|
+
|
2167
|
+
#### Static Functions <a name="Static Functions" id="static-functions"></a>
|
2168
|
+
|
2169
|
+
| **Name** | **Description** |
|
2170
|
+
| --- | --- |
|
2171
|
+
| [`fromCode`](#constructhubpreloadfilefromcode) | Creates a PreloadFile instance directly from source code. |
|
2172
|
+
| [`fromFile`](#constructhubpreloadfilefromfile) | Creates a PreloadFile instance from a filepath to load. |
|
2173
|
+
|
2174
|
+
---
|
2175
|
+
|
2176
|
+
##### `fromCode` <a name="construct-hub.PreloadFile.fromCode" id="constructhubpreloadfilefromcode"></a>
|
2177
|
+
|
2178
|
+
```typescript
|
2179
|
+
import { PreloadFile } from 'construct-hub'
|
2180
|
+
|
2181
|
+
PreloadFile.fromCode(code: string)
|
2182
|
+
```
|
2183
|
+
|
2184
|
+
###### `code`<sup>Required</sup> <a name="construct-hub.PreloadFile.parameter.code" id="constructhubpreloadfileparametercode"></a>
|
2185
|
+
|
2186
|
+
- *Type:* `string`
|
2187
|
+
|
2188
|
+
---
|
2189
|
+
|
2190
|
+
##### `fromFile` <a name="construct-hub.PreloadFile.fromFile" id="constructhubpreloadfilefromfile"></a>
|
2191
|
+
|
2192
|
+
```typescript
|
2193
|
+
import { PreloadFile } from 'construct-hub'
|
2194
|
+
|
2195
|
+
PreloadFile.fromFile(path: string)
|
2196
|
+
```
|
2197
|
+
|
2198
|
+
###### `path`<sup>Required</sup> <a name="construct-hub.PreloadFile.parameter.path" id="constructhubpreloadfileparameterpath"></a>
|
2199
|
+
|
2200
|
+
- *Type:* `string`
|
2201
|
+
|
2202
|
+
---
|
2203
|
+
|
2204
|
+
|
2205
|
+
|
2127
2206
|
### SpdxLicense <a name="construct-hub.SpdxLicense" id="constructhubspdxlicense"></a>
|
2128
2207
|
|
2129
2208
|
Valid SPDX License identifiers.
|
package/changelog.md
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
|
2
|
-
### [0.3.
|
2
|
+
### [0.3.192](https://github.com/cdklabs/construct-hub/compare/v0.3.191...v0.3.192) (2022-01-08)
|