(appId: string)
| 15 | } |
| 16 | |
| 17 | export function parseProjectNumber(appId: string): string { |
| 18 | const appIdParts = appId.split(":"); |
| 19 | if (appIdParts.length > 1) { |
| 20 | return appIdParts[1]; |
| 21 | } |
| 22 | throw new FirebaseError("Unable to get the projectId from the AppId."); |
| 23 | } |
| 24 | |
| 25 | export function parsePlatform(appId: string): PLATFORM_PATH { |
| 26 | const appIdParts = appId.split(":"); |
no outgoing calls
no test coverage detected
searching dependent graphs…