Skip to content

Commit b0aadaa

Browse files
committed
2 parents 53f18c6 + 77bc597 commit b0aadaa

File tree

104 files changed

+3807
-2704
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+3807
-2704
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@
708708
/types/bull-arena/ @levibostian @gtpan77
709709
/types/bumblebee-hotword/ @sheunglaili
710710
/types/bump-regex/ @silkentrance
711-
/types/bun/ @Jarred-Sumner @electroid @paperclover @robobun @dylan-conway @nektro @RiskyMH @alii
711+
/types/bun/ @Jarred-Sumner @electroid @robobun @dylan-conway @nektro @RiskyMH @alii
712712
/types/bundle-id/ @LeoDog896
713713
/types/bundle-name/ @LeoDog896
714714
/types/bunnymq/ @cyrilschumacher
@@ -1139,6 +1139,7 @@
11391139
/types/counterpart/ @santiagodoldan
11401140
/types/country-data/ @biltongza @mikemaccana
11411141
/types/country-flag-icons/ @peterblazejewicz
1142+
/types/country-iso/ @TylerWon
11421143
/types/country-list/ @iRoachie @Kimahriman
11431144
/types/country-list/v1/ @iRoachie
11441145
/types/country-list-js/ @digorydoo
@@ -3599,7 +3600,7 @@
35993600
/types/jcof/ @MatyiFKBT
36003601
/types/jconv/ @thany
36013602
/types/jdataview/ @RReverser
3602-
/types/jest/ @NoHomey @jwbay @asvetliakov @alexjoverm @epicallan @ikatyang @wsmd @JamieMason @douglasduteil @ahnpnl @UselessPickles @r3nya @hotell @sebald @andys8 @antoinebrault @gstamac @ExE-Boss @quassnoi @Belco90 @tonyhallett @ycmjason @pawfa @gerkindev @domdomegg @mrazauskas
3603+
/types/jest/ @NoHomey @jwbay @asvetliakov @alexjoverm @epicallan @ikatyang @wsmd @JamieMason @douglasduteil @ahnpnl @UselessPickles @r3nya @hotell @sebald @andys8 @antoinebrault @gstamac @ExE-Boss @quassnoi @Belco90 @tonyhallett @ycmjason @pawfa @gerkindev @domdomegg
36033604
/types/jest-axe/ @erbridge
36043605
/types/jest-dev-server/ @ifiokjr @UziTech
36053606
/types/jest-environment-puppeteer/ @ifiokjr
@@ -5169,6 +5170,7 @@
51695170
/types/node/ @Microsoft @jkomyno @alvis @r3nya @btoueg @smac89 @touffy @DeividasBakanas @eyqs @Hannes-Magnusson-CK @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @galkin @parambirs @eps1lon @ThomasdenH @WilcoBakker @wwwy3y3 @samuela @kuehlein @bhongy @chyzwar @trivikr @yoursunny @qwelias @ExE-Boss @peterblazejewicz @addaleax @victorperin @NodeJS @LinusU @wafuwafu13 @mcollina @Semigradsky @Renegade334
51705171
/types/node/v18/ @Microsoft @jkomyno @alvis @r3nya @btoueg @smac89 @touffy @DeividasBakanas @eyqs @Hannes-Magnusson-CK @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @galkin @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @samuela @kuehlein @bhongy @chyzwar @trivikr @yoursunny @qwelias @ExE-Boss @peterblazejewicz @addaleax @victorperin @NodeJS @LinusU @wafuwafu13 @mcollina @Semigradsky
51715172
/types/node/v20/ @Microsoft @jkomyno @alvis @r3nya @btoueg @smac89 @touffy @DeividasBakanas @eyqs @Hannes-Magnusson-CK @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @galkin @parambirs @eps1lon @ThomasdenH @WilcoBakker @wwwy3y3 @samuela @kuehlein @bhongy @chyzwar @trivikr @yoursunny @qwelias @ExE-Boss @peterblazejewicz @addaleax @victorperin @NodeJS @LinusU @wafuwafu13 @mcollina @Semigradsky
5173+
/types/node/v22/ @Microsoft @jkomyno @alvis @r3nya @btoueg @smac89 @touffy @DeividasBakanas @eyqs @Hannes-Magnusson-CK @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @galkin @parambirs @eps1lon @ThomasdenH @WilcoBakker @wwwy3y3 @samuela @kuehlein @bhongy @chyzwar @trivikr @yoursunny @qwelias @ExE-Boss @peterblazejewicz @addaleax @victorperin @NodeJS @LinusU @wafuwafu13 @mcollina @Semigradsky @Renegade334
51725174
/types/node-7z/ @erkie @colin969
51735175
/types/node-abi/ @ffflorian
51745176
/types/node-apple-receipt-verify/ @serinuntius

notNeededPackages.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2149,6 +2149,10 @@
21492149
"libraryName": "@ffmpeg-installer/ffmpeg",
21502150
"asOfVersion": "1.1.0"
21512151
},
2152+
"ffmpeg-static": {
2153+
"libraryName": "ffmpeg-static",
2154+
"asOfVersion": "5.1.0"
2155+
},
21522156
"fhir-kit-client": {
21532157
"libraryName": "fhir-kit-client",
21542158
"asOfVersion": "1.6.7"
@@ -2597,6 +2601,10 @@
25972601
"libraryName": "@hapi/boom",
25982602
"asOfVersion": "9.0.0"
25992603
},
2604+
"hapi__catbox": {
2605+
"libraryName": "@hapi/catbox",
2606+
"asOfVersion": "12.1.0"
2607+
},
26002608
"hapi__catbox-memory": {
26012609
"libraryName": "@hapi/catbox-memory",
26022610
"asOfVersion": "6.0.2"
@@ -3601,6 +3609,10 @@
36013609
"libraryName": "lambda-phi",
36023610
"asOfVersion": "1.0.1"
36033611
},
3612+
"lang.js": {
3613+
"libraryName": "lang.js",
3614+
"asOfVersion": "1.1.13"
3615+
},
36043616
"latest-semver": {
36053617
"libraryName": "latest-semver",
36063618
"asOfVersion": "2.0.0"
@@ -6887,6 +6899,10 @@
68876899
"libraryName": "spotify-web-api-js",
68886900
"asOfVersion": "0.21.0"
68896901
},
6902+
"sql-bricks": {
6903+
"libraryName": "sql-bricks",
6904+
"asOfVersion": "3.0.0"
6905+
},
68906906
"sql-formatter": {
68916907
"libraryName": "sql-formatter",
68926908
"asOfVersion": "4.0.1"
@@ -7639,6 +7655,10 @@
76397655
"libraryName": "viewerjs",
76407656
"asOfVersion": "1.0.0"
76417657
},
7658+
"vinyl-file": {
7659+
"libraryName": "vinyl-file",
7660+
"asOfVersion": "4.1.0"
7661+
},
76427662
"vite-plugin-react-control-statements": {
76437663
"libraryName": "vite-plugin-react-control-statements",
76447664
"asOfVersion": "0.0.1"

types/aws-lambda/test/cloudfront-tests.ts

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type {
77
CloudFrontRequestHandler,
88
CloudFrontRequestResult,
99
CloudFrontResponseEvent,
10+
CloudFrontResponseEventRecord,
1011
CloudFrontResponseHandler,
1112
CloudFrontResponseResult,
1213
CloudFrontS3Origin,
@@ -554,6 +555,133 @@ const originResponseEvent: CloudFrontResponseEvent = {
554555
],
555556
};
556557

558+
const originResponseEventRecord: CloudFrontResponseEventRecord = {
559+
cf: {
560+
config: {
561+
distributionDomainName: "d111111abcdef8.cloudfront.net",
562+
distributionId: "EDFDVBD6EXAMPLE",
563+
eventType: "origin-response",
564+
requestId: "4TyzHTaYWb1GX1qTfsHhEqV6HUDd_BzoBZnwfnvQc_1oF26ClkoUSEQ==",
565+
},
566+
request: {
567+
clientIp: "203.0.113.178",
568+
headers: {
569+
"x-forwarded-for": [
570+
{
571+
key: "X-Forwarded-For",
572+
value: "203.0.113.178",
573+
},
574+
],
575+
"user-agent": [
576+
{
577+
key: "User-Agent",
578+
value: "Amazon CloudFront",
579+
},
580+
],
581+
via: [
582+
{
583+
key: "Via",
584+
value: "2.0 8f22423015641505b8c857a37450d6c0.cloudfront.net (CloudFront)",
585+
},
586+
],
587+
host: [
588+
{
589+
key: "Host",
590+
value: "example.org",
591+
},
592+
],
593+
"cache-control": [
594+
{
595+
key: "Cache-Control",
596+
value: "no-cache, cf-no-cache",
597+
},
598+
],
599+
},
600+
method: "GET",
601+
origin: {
602+
custom: {
603+
customHeaders: {},
604+
domainName: "example.org",
605+
keepaliveTimeout: 5,
606+
path: "",
607+
port: 443,
608+
protocol: "https",
609+
readTimeout: 30,
610+
sslProtocols: ["TLSv1", "TLSv1.1", "TLSv1.2"],
611+
},
612+
},
613+
querystring: "",
614+
uri: "/",
615+
},
616+
response: {
617+
headers: {
618+
"access-control-allow-credentials": [
619+
{
620+
key: "Access-Control-Allow-Credentials",
621+
value: "true",
622+
},
623+
],
624+
"access-control-allow-origin": [
625+
{
626+
key: "Access-Control-Allow-Origin",
627+
value: "*",
628+
},
629+
],
630+
date: [
631+
{
632+
key: "Date",
633+
value: "Mon, 13 Jan 2020 20:12:38 GMT",
634+
},
635+
],
636+
"referrer-policy": [
637+
{
638+
key: "Referrer-Policy",
639+
value: "no-referrer-when-downgrade",
640+
},
641+
],
642+
server: [
643+
{
644+
key: "Server",
645+
value: "ExampleCustomOriginServer",
646+
},
647+
],
648+
"x-content-type-options": [
649+
{
650+
key: "X-Content-Type-Options",
651+
value: "nosniff",
652+
},
653+
],
654+
"x-frame-options": [
655+
{
656+
key: "X-Frame-Options",
657+
value: "DENY",
658+
},
659+
],
660+
"x-xss-protection": [
661+
{
662+
key: "X-XSS-Protection",
663+
value: "1; mode=block",
664+
},
665+
],
666+
"content-type": [
667+
{
668+
key: "Content-Type",
669+
value: "text/html; charset=utf-8",
670+
},
671+
],
672+
"content-length": [
673+
{
674+
key: "Content-Length",
675+
value: "9593",
676+
},
677+
],
678+
},
679+
status: "200",
680+
statusDescription: "OK",
681+
},
682+
},
683+
};
684+
557685
const cloudFrontFunctionsEvent: CloudFrontFunctionsEvent = {
558686
version: "1.0",
559687
context: {

types/aws-lambda/trigger/cloudfront-response.d.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@ import { Callback, Handler } from "../handler";
44
export type CloudFrontResponseHandler = Handler<CloudFrontResponseEvent, CloudFrontResponseResult>;
55
export type CloudFrontResponseCallback = Callback<CloudFrontResponseResult>;
66

7+
export interface CloudFrontResponseEventRecord {
8+
cf: CloudFrontEvent & {
9+
readonly request: Pick<CloudFrontRequest, Exclude<keyof CloudFrontRequest, "body">>;
10+
response: CloudFrontResponse;
11+
};
12+
}
13+
714
/**
815
* CloudFront viewer response or origin response event
916
*
1017
* https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#lambda-event-structure-response
1118
*/
1219
export interface CloudFrontResponseEvent {
13-
Records: Array<{
14-
cf: CloudFrontEvent & {
15-
readonly request: Pick<CloudFrontRequest, Exclude<keyof CloudFrontRequest, "body">>;
16-
response: CloudFrontResponse;
17-
};
18-
}>;
20+
Records: CloudFrontResponseEventRecord[];
1921
}
2022

2123
export type CloudFrontResponseResult = undefined | null | CloudFrontResultResponse;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { get } from "country-iso";
2+
3+
// $ExpectType string[]
4+
const results = get(51.5074, -0.1278);

types/country-iso/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export function get(lat: number, lng: number): string[];

types/country-iso/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"private": true,
3+
"name": "@types/country-iso",
4+
"version": "2.0.9999",
5+
"projects": [
6+
"https://github.com/simonepri/country-iso#readme"
7+
],
8+
"devDependencies": {
9+
"@types/country-iso": "workspace:."
10+
},
11+
"owners": [
12+
{
13+
"name": "Tyler Won",
14+
"githubUsername": "TylerWon"
15+
}
16+
]
17+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
],
77
"noImplicitAny": true,
88
"noImplicitThis": true,
9-
"strictNullChecks": true,
109
"strictFunctionTypes": true,
10+
"strictNullChecks": true,
1111
"types": [],
1212
"noEmit": true,
1313
"forceConsistentCasingInFileNames": true
1414
},
1515
"files": [
1616
"index.d.ts",
17-
"sql-bricks-tests.ts"
17+
"country-iso-tests.ts"
1818
]
1919
}

types/dockerode/dockerode-tests.ts

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,73 @@ docker.createNetwork({ Name: "networkName" }, (err, network) => {
387387
});
388388
});
389389

390+
// Should support all network create options
391+
// See: https://github.com/moby/moby/blob/7ea613d780be40e08665f0fc15bf53f5993455a9/api/types/network/network.go#L23-L46
392+
docker.createNetwork({
393+
Name: "networkName",
394+
CheckDuplicate: true,
395+
abortSignal: new AbortController().signal,
396+
Driver: "bridge",
397+
Scope: "local",
398+
EnableIPv4: true,
399+
EnableIPv6: true,
400+
IPAM: {
401+
Driver: "default",
402+
Options: {
403+
foo: "bar",
404+
},
405+
Config: [
406+
{
407+
Subnet: "172.28.0.0/16",
408+
IPRange: "172.28.1.0/24",
409+
Gateway: "172.28.0.1",
410+
},
411+
],
412+
},
413+
Internal: true,
414+
Attachable: true,
415+
Ingress: true,
416+
// Docker doesn't accept ConfigFrom & ConfigOnly together,
417+
// but that's not dockerode's job to enforce.
418+
ConfigOnly: true,
419+
ConfigFrom: { Network: "configOnlyNetwork" },
420+
Options: { someOption: "someValue" },
421+
Labels: { someLabel: "someValue" },
422+
}, (err, network) => {
423+
network.remove((err, data) => {
424+
// NOOP
425+
});
426+
});
427+
428+
// Should support all network create IPAM config options
429+
// See: https://github.com/moby/moby/blob/5d7550e9ef36f860738af643d321a132539452af/api/types/network/ipam.go#L11-L24
430+
docker.createNetwork({
431+
Name: "ipamNetwork",
432+
IPAM: {
433+
Driver: "default",
434+
Config: [
435+
{
436+
Subnet: "172.28.0.0/16",
437+
IPRange: "172.28.5.0/24",
438+
Gateway: "172.28.5.254",
439+
AuxiliaryAddresses: {
440+
host1: "172.28.1.5",
441+
host2: "172.28.1.6",
442+
host3: "172.28.1.7",
443+
},
444+
},
445+
],
446+
Options: {
447+
foo: "bar",
448+
bar: "0",
449+
},
450+
},
451+
}, (err, network) => {
452+
network.remove((err, data) => {
453+
// NOOP
454+
});
455+
});
456+
390457
docker.createVolume();
391458

392459
docker.createVolume({ Name: "volumeName", abortSignal: new AbortController().signal });

0 commit comments

Comments
 (0)