Skip to content

Commit 6862d42

Browse files
committed
2 parents 49a8f2e + 853cd8e commit 6862d42

44 files changed

Lines changed: 742 additions & 1721 deletions

Some content is hidden

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

README.zh-Hans.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ declare module "libname" {
105105

106106
你可直接编辑 `node_modules/@types/foo/index.d.ts` 来验证你的修改。接着,请使用下文所述的步骤将这些修改加入本仓库。
107107

108-
你亦可以使用[模块扩充(Module Argumentation)](https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation)来向 Definitely Typed 模块中添加类型,或使用上文所示的 `declare module` 方法来覆盖 `node_modules` 中的版本。
108+
你亦可以使用[模块扩充(Module Augmentation](https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation)来向 Definitely Typed 模块中添加类型,或使用上文所示的 `declare module` 方法来覆盖 `node_modules` 中的版本。
109109

110110
#### 为新增的软件包添加测试
111111

attw.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,12 @@
323323
"vue-scroll-up",
324324
"vue-select",
325325
"vue-splitpane",
326-
"vue-tel-input",
327326
"vue2-editor",
328327
"webidl2",
329328
"webscopeio__react-textarea-autocomplete",
330329
"when",
331330
"wnumb",
331+
"wordpress__server-side-render",
332332
"yargs-parser",
333333
"yargs-parser/v20",
334334
"yargs/v16",

notNeededPackages.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,6 +1969,10 @@
19691969
"libraryName": "escape-string-regexp",
19701970
"asOfVersion": "2.0.0"
19711971
},
1972+
"eslint-plugin-mocha": {
1973+
"libraryName": "eslint-plugin-mocha",
1974+
"asOfVersion": "11.1.0"
1975+
},
19721976
"eslint-visitor-keys": {
19731977
"libraryName": "eslint-visitor-keys",
19741978
"asOfVersion": "3.3.0"
@@ -2289,6 +2293,10 @@
22892293
"libraryName": "figures",
22902294
"asOfVersion": "3.0.0"
22912295
},
2296+
"file-entry-cache": {
2297+
"libraryName": "file-entry-cache",
2298+
"asOfVersion": "10.0.0"
2299+
},
22922300
"file-type": {
22932301
"libraryName": "file-type",
22942302
"asOfVersion": "10.9.1"
@@ -4061,6 +4069,10 @@
40614069
"libraryName": "map-obj",
40624070
"asOfVersion": "3.1.0"
40634071
},
4072+
"mapbox__point-geometry": {
4073+
"libraryName": "@mapbox/point-geometry",
4074+
"asOfVersion": "1.0.0"
4075+
},
40644076
"mapbox__vector-tile": {
40654077
"libraryName": "@mapbox/vector-tile",
40664078
"asOfVersion": "2.0.0"
@@ -7559,6 +7571,10 @@
75597571
"libraryName": "tap",
75607572
"asOfVersion": "18.0.0"
75617573
},
7574+
"tar": {
7575+
"libraryName": "tar",
7576+
"asOfVersion": "7.0.0"
7577+
},
75627578
"tcomb": {
75637579
"libraryName": "tcomb",
75647580
"asOfVersion": "2.6.0"
@@ -7779,6 +7795,10 @@
77797795
"libraryName": "@typeform/embed",
77807796
"asOfVersion": "1.0.0"
77817797
},
7798+
"vue-tel-input": {
7799+
"libraryName": "vue-tel-input",
7800+
"asOfVersion": "9.7.1"
7801+
},
77827802
"typescript": {
77837803
"libraryName": "typescript",
77847804
"asOfVersion": "2.0.0"

types/ali-oss/ali-oss-tests.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,25 @@ client.getSymlink("newfile.png");
2323
client.getSymlink("newfile.png", { versionId: "123" });
2424

2525
client.listV2({ "max-keys": 1000 });
26+
27+
async function listV2Exhaustive() {
28+
let continuationToken = "";
29+
30+
while (true) {
31+
let res = await client.listV2({
32+
"max-keys": 1000,
33+
"continuation-token": continuationToken,
34+
});
35+
36+
if (res.isTruncated) {
37+
continuationToken = res.nextContinuationToken;
38+
} else {
39+
continuationToken = "";
40+
break;
41+
}
42+
}
43+
}
44+
2645
client.copy("newfile.png", "sourcefile.png");
2746
client.copy("newfile.png", "sourcefile.png", { timeout: 1000 });
2847
client.copy("newfile.png", "sourcefile.png", "sourceBucket");

types/ali-oss/index.d.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,15 @@ declare namespace OSS {
317317
res: NormalSuccessResponse;
318318
}
319319

320+
interface ListV2ObjectResult {
321+
objects: ObjectMeta[];
322+
prefixes: string[];
323+
isTruncated: boolean;
324+
nextContinuationToken: string;
325+
keyCount: number;
326+
res: NormalSuccessResponse;
327+
}
328+
320329
interface PutObjectOptions {
321330
/** the operation timeout */
322331
timeout?: number | undefined;
@@ -680,7 +689,7 @@ declare namespace OSS {
680689
/**
681690
* @since 6.12.0
682691
*/
683-
listV2(query: ListV2ObjectsQuery | null, options?: RequestOptions): Promise<ListObjectResult>;
692+
listV2(query: ListV2ObjectsQuery | null, options?: RequestOptions): Promise<ListV2ObjectResult>;
684693

685694
put(name: string, file: any, options?: PutObjectOptions): Promise<PutObjectResult>;
686695

@@ -1017,7 +1026,7 @@ declare class OSS {
10171026
/**
10181027
* List Objects in the bucket.(V2)
10191028
*/
1020-
listV2(query: OSS.ListV2ObjectsQuery | null, options?: OSS.RequestOptions): Promise<OSS.ListObjectResult>;
1029+
listV2(query: OSS.ListV2ObjectsQuery | null, options?: OSS.RequestOptions): Promise<OSS.ListV2ObjectResult>;
10211030

10221031
/**
10231032
* Add an object to the bucket.

types/eslint-plugin-mocha/eslint-plugin-mocha-tests.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

types/eslint-plugin-mocha/index.d.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

types/eslint-plugin-mocha/package.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

types/file-entry-cache/file-entry-cache-tests.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

types/file-entry-cache/index.d.ts

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)