Skip to content

Commit bbfc41e

Browse files
committed
Set up more tests
1 parent fb27e02 commit bbfc41e

File tree

11 files changed

+1161
-150
lines changed

11 files changed

+1161
-150
lines changed

common/api-review/storage.api.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
## API Report File for "@firebase/storage"
2+
3+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4+
5+
```ts
6+
7+
import { FirebaseApp } from '@firebase/app-types';
8+
import { FirebaseAuthInternalName } from '@firebase/auth-interop-types';
9+
import { Provider } from '@firebase/component';
10+
11+
// Warning: (ae-forgotten-export) The symbol "Reference" needs to be exported by the entry point index.d.ts
12+
//
13+
// @public
14+
export function deleteObject(ref: Reference): Promise<void>;
15+
16+
// @public (undocumented)
17+
export function getDownloadURL(ref: Reference): Promise<string>;
18+
19+
// Warning: (ae-forgotten-export) The symbol "Metadata" needs to be exported by the entry point index.d.ts
20+
//
21+
// @public
22+
export function getMetadata(ref: Reference): Promise<Metadata>;
23+
24+
// Warning: (ae-forgotten-export) The symbol "ListOptions" needs to be exported by the entry point index.d.ts
25+
// Warning: (ae-forgotten-export) The symbol "ListResult" needs to be exported by the entry point index.d.ts
26+
//
27+
// @public
28+
export function list(ref: Reference, options?: ListOptions | null): Promise<ListResult>;
29+
30+
// @public
31+
export function listAll(ref: Reference): Promise<ListResult>;
32+
33+
// @public (undocumented)
34+
export function parentReference(ref: Reference): Reference | null;
35+
36+
// Warning: (ae-forgotten-export) The symbol "StorageService" needs to be exported by the entry point index.d.ts
37+
//
38+
// @public (undocumented)
39+
export function ref(storage: StorageService, url?: string): Reference;
40+
41+
// @public (undocumented)
42+
export function ref(storageOrRef: StorageService | Reference, path?: string): Reference;
43+
44+
// @public (undocumented)
45+
export function registerStorage(): void;
46+
47+
// @public
48+
export function updateMetadata(ref: Reference, metadata: Metadata): Promise<Metadata>;
49+
50+
// Warning: (ae-forgotten-export) The symbol "UploadTask" needs to be exported by the entry point index.d.ts
51+
//
52+
// @public
53+
export function uploadBytes(ref: Reference, data: Blob | Uint8Array | ArrayBuffer, metadata?: Metadata | null): UploadTask;
54+
55+
// Warning: (ae-forgotten-export) The symbol "StringFormat" needs to be exported by the entry point index.d.ts
56+
//
57+
// @public
58+
export function uploadString(ref: Reference, value: string, format?: StringFormat, metadata?: Metadata): UploadTask;
59+
60+
61+
// (No @packageDocumentation comment for this package)
62+
63+
```

packages-exp/firebase-exp/firebase-firestore/lite.js

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages-exp/firebase-exp/firebase-firestore/lite.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/storage-types/exp/index.d.ts

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

packages/storage/api-extractor.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "../../config/api-extractor.json",
3+
// Point it to your entry point d.ts file.
4+
"mainEntryPointFilePath": "<projectFolder>/exp/dist/exp/index.d.ts",
5+
"dtsRollup": {
6+
"enabled": true,
7+
"untrimmedFilePath": "<projectFolder>/exp/dist/<unscopedPackageName>.d.ts",
8+
"publicTrimmedFilePath": "<projectFolder>/exp/dist/<unscopedPackageName>-public.d.ts"
9+
}
10+
}

packages/storage/exp/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import {
2929
} from '@firebase/component';
3030

3131
import { name, version } from '../package.json';
32-
import { FirebaseStorage } from '@firebase/storage-types/exp';
3332

3433
export { ref } from '../src/service';
3534
export {
@@ -40,7 +39,8 @@ export {
4039
list,
4140
listAll,
4241
getDownloadURL,
43-
deleteObject
42+
deleteObject,
43+
getParent as parentReference
4444
} from '../src/reference';
4545

4646
/**
@@ -83,6 +83,6 @@ registerStorage();
8383

8484
declare module '@firebase/component' {
8585
interface NameServiceMapping {
86-
'storage-exp': FirebaseStorage;
86+
'storage-exp': StorageService;
8787
}
8888
}

packages/storage/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"test:browser:integration": "karma start --single-run --integration",
2121
"test:browser": "karma start --single-run",
2222
"prepare": "yarn build",
23-
"prettier": "prettier --write 'src/**/*.ts' 'test/**/*.ts'"
23+
"prettier": "prettier --write 'src/**/*.ts' 'test/**/*.ts'",
24+
"api-report": "api-extractor run --local --verbose"
2425
},
2526
"license": "Apache-2.0",
2627
"dependencies": {

0 commit comments

Comments
 (0)