mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-17 04:26:00 +00:00
Modules
This commit is contained in:
2
node_modules/@firebase/performance/CHANGELOG.md
generated
vendored
Normal file
2
node_modules/@firebase/performance/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
# Unreleased
|
||||
- [changed] Internal transport protocol update from proto2 to proto3.
|
5
node_modules/@firebase/performance/README.md
generated
vendored
Normal file
5
node_modules/@firebase/performance/README.md
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# @firebase/performance
|
||||
|
||||
This is the Firebase Performance component of the Firebase JS SDK.
|
||||
|
||||
**This package is not intended for direct usage, and should only be used via the officially supported [firebase](https://www.npmjs.com/package/firebase) package.**
|
1345
node_modules/@firebase/performance/dist/index.cjs.js
generated
vendored
Normal file
1345
node_modules/@firebase/performance/dist/index.cjs.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/@firebase/performance/dist/index.cjs.js.map
generated
vendored
Normal file
1
node_modules/@firebase/performance/dist/index.cjs.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
30
node_modules/@firebase/performance/dist/index.d.ts
generated
vendored
Normal file
30
node_modules/@firebase/performance/dist/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import '@firebase/installations';
|
||||
import { FirebaseNamespace } from '@firebase/app-types';
|
||||
import { FirebasePerformance } from '@firebase/performance-types';
|
||||
export declare function registerPerformance(instance: FirebaseNamespace): void;
|
||||
declare module '@firebase/app-types' {
|
||||
interface FirebaseNamespace {
|
||||
performance?: {
|
||||
(app?: FirebaseApp): FirebasePerformance;
|
||||
};
|
||||
}
|
||||
interface FirebaseApp {
|
||||
performance?(): FirebasePerformance;
|
||||
}
|
||||
}
|
1339
node_modules/@firebase/performance/dist/index.esm.js
generated
vendored
Normal file
1339
node_modules/@firebase/performance/dist/index.esm.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/@firebase/performance/dist/index.esm.js.map
generated
vendored
Normal file
1
node_modules/@firebase/performance/dist/index.esm.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1313
node_modules/@firebase/performance/dist/index.esm2017.js
generated
vendored
Normal file
1313
node_modules/@firebase/performance/dist/index.esm2017.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/@firebase/performance/dist/index.esm2017.js.map
generated
vendored
Normal file
1
node_modules/@firebase/performance/dist/index.esm2017.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
32
node_modules/@firebase/performance/dist/src/constants.d.ts
generated
vendored
Normal file
32
node_modules/@firebase/performance/dist/src/constants.d.ts
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export declare const SDK_VERSION: string;
|
||||
/** The prefix for start User Timing marks used for creating Traces. */
|
||||
export declare const TRACE_START_MARK_PREFIX = "FB-PERF-TRACE-START";
|
||||
/** The prefix for stop User Timing marks used for creating Traces. */
|
||||
export declare const TRACE_STOP_MARK_PREFIX = "FB-PERF-TRACE-STOP";
|
||||
/** The prefix for User Timing measure used for creating Traces. */
|
||||
export declare const TRACE_MEASURE_PREFIX = "FB-PERF-TRACE-MEASURE";
|
||||
/** The prefix for out of the box page load Trace name. */
|
||||
export declare const OOB_TRACE_PAGE_LOAD_PREFIX = "_wt_";
|
||||
export declare const FIRST_PAINT_COUNTER_NAME = "_fp";
|
||||
export declare const FIRST_CONTENTFUL_PAINT_COUNTER_NAME = "_fcp";
|
||||
export declare const FIRST_INPUT_DELAY_COUNTER_NAME = "_fid";
|
||||
export declare const CONFIG_LOCAL_STORAGE_KEY = "@firebase/performance/config";
|
||||
export declare const CONFIG_EXPIRY_LOCAL_STORAGE_KEY = "@firebase/performance/configexpire";
|
||||
export declare const SERVICE = "performance";
|
||||
export declare const SERVICE_NAME = "Performance";
|
28
node_modules/@firebase/performance/dist/src/controllers/perf.d.ts
generated
vendored
Normal file
28
node_modules/@firebase/performance/dist/src/controllers/perf.d.ts
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { Trace } from '../resources/trace';
|
||||
import { FirebaseApp } from '@firebase/app-types';
|
||||
import { FirebasePerformance } from '@firebase/performance-types';
|
||||
export declare class PerformanceController implements FirebasePerformance {
|
||||
readonly app: FirebaseApp;
|
||||
constructor(app: FirebaseApp);
|
||||
trace(name: string): Trace;
|
||||
set instrumentationEnabled(val: boolean);
|
||||
get instrumentationEnabled(): boolean;
|
||||
set dataCollectionEnabled(val: boolean);
|
||||
get dataCollectionEnabled(): boolean;
|
||||
}
|
17
node_modules/@firebase/performance/dist/src/controllers/perf.test.d.ts
generated
vendored
Normal file
17
node_modules/@firebase/performance/dist/src/controllers/perf.test.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import '../../test/setup';
|
41
node_modules/@firebase/performance/dist/src/resources/network_request.d.ts
generated
vendored
Normal file
41
node_modules/@firebase/performance/dist/src/resources/network_request.d.ts
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export declare const enum HttpMethod {
|
||||
HTTP_METHOD_UNKNOWN = 0,
|
||||
GET = 1,
|
||||
PUT = 2,
|
||||
POST = 3,
|
||||
DELETE = 4,
|
||||
HEAD = 5,
|
||||
PATCH = 6,
|
||||
OPTIONS = 7,
|
||||
TRACE = 8,
|
||||
CONNECT = 9
|
||||
}
|
||||
export interface NetworkRequest {
|
||||
url: string;
|
||||
httpMethod?: HttpMethod;
|
||||
requestPayloadBytes?: number;
|
||||
responsePayloadBytes?: number;
|
||||
httpResponseCode?: number;
|
||||
responseContentType?: string;
|
||||
startTimeUs?: number;
|
||||
timeToRequestCompletedUs?: number;
|
||||
timeToResponseInitiatedUs?: number;
|
||||
timeToResponseCompletedUs?: number;
|
||||
}
|
||||
export declare function createNetworkRequestEntry(entry: PerformanceEntry): void;
|
17
node_modules/@firebase/performance/dist/src/resources/network_request.test.d.ts
generated
vendored
Normal file
17
node_modules/@firebase/performance/dist/src/resources/network_request.test.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import '../../test/setup';
|
115
node_modules/@firebase/performance/dist/src/resources/trace.d.ts
generated
vendored
Normal file
115
node_modules/@firebase/performance/dist/src/resources/trace.d.ts
generated
vendored
Normal file
@ -0,0 +1,115 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { PerformanceTrace } from '@firebase/performance-types';
|
||||
export declare class Trace implements PerformanceTrace {
|
||||
readonly name: string;
|
||||
readonly isAuto: boolean;
|
||||
private state;
|
||||
startTimeUs: number;
|
||||
durationUs: number;
|
||||
private customAttributes;
|
||||
counters: {
|
||||
[counterName: string]: number;
|
||||
};
|
||||
private api;
|
||||
private randomId;
|
||||
private traceStartMark;
|
||||
private traceStopMark;
|
||||
private traceMeasure;
|
||||
/**
|
||||
* @param name The name of the trace.
|
||||
* @param isAuto If the trace is auto-instrumented.
|
||||
* @param traceMeasureName The name of the measure marker in user timing specification. This field
|
||||
* is only set when the trace is built for logging when the user directly uses the user timing
|
||||
* api (performance.mark and performance.measure).
|
||||
*/
|
||||
constructor(name: string, isAuto?: boolean, traceMeasureName?: string);
|
||||
/**
|
||||
* Starts a trace. The measurement of the duration starts at this point.
|
||||
*/
|
||||
start(): void;
|
||||
/**
|
||||
* Stops the trace. The measurement of the duration of the trace stops at this point and trace
|
||||
* is logged.
|
||||
*/
|
||||
stop(): void;
|
||||
/**
|
||||
* Records a trace with predetermined values. If this method is used a trace is created and logged
|
||||
* directly. No need to use start and stop methods.
|
||||
* @param startTime Trace start time since epoch in millisec
|
||||
* @param duration The duraction of the trace in millisec
|
||||
* @param options An object which can optionally hold maps of custom metrics and custom attributes
|
||||
*/
|
||||
record(startTime: number, duration: number, options?: {
|
||||
metrics?: {
|
||||
[key: string]: number;
|
||||
};
|
||||
attributes?: {
|
||||
[key: string]: string;
|
||||
};
|
||||
}): void;
|
||||
/**
|
||||
* Increments a custom metric by a certain number or 1 if number not specified. Will create a new
|
||||
* custom metric if one with the given name does not exist.
|
||||
* @param counter Name of the custom metric
|
||||
* @param num Increment by value
|
||||
*/
|
||||
incrementMetric(counter: string, num?: number): void;
|
||||
/**
|
||||
* Sets a custom metric to a specified value. Will create a new custom metric if one with the
|
||||
* given name does not exist.
|
||||
* @param counter Name of the custom metric
|
||||
* @param num Set custom metric to this value
|
||||
*/
|
||||
putMetric(counter: string, num: number): void;
|
||||
/**
|
||||
* Returns the value of the custom metric by that name. If a custom metric with that name does
|
||||
* not exist will return zero.
|
||||
* @param counter
|
||||
*/
|
||||
getMetric(counter: string): number;
|
||||
/**
|
||||
* Sets a custom attribute of a trace to a certain value.
|
||||
* @param attr
|
||||
* @param value
|
||||
*/
|
||||
putAttribute(attr: string, value: string): void;
|
||||
/**
|
||||
* Retrieves the value a custom attribute of a trace is set to.
|
||||
* @param attr
|
||||
*/
|
||||
getAttribute(attr: string): string | undefined;
|
||||
removeAttribute(attr: string): void;
|
||||
getAttributes(): {
|
||||
[key: string]: string;
|
||||
};
|
||||
private setStartTime;
|
||||
private setDuration;
|
||||
/**
|
||||
* Calculates and assigns the duration and start time of the trace using the measure performance
|
||||
* entry.
|
||||
*/
|
||||
private calculateTraceMetrics;
|
||||
/**
|
||||
* @param navigationTimings A single element array which contains the navigationTIming object of
|
||||
* the page load
|
||||
* @param paintTimings A array which contains paintTiming object of the page load
|
||||
* @param firstInputDelay First input delay in millisec
|
||||
*/
|
||||
static createOobTrace(navigationTimings: PerformanceNavigationTiming[], paintTimings: PerformanceEntry[], firstInputDelay?: number): void;
|
||||
static createUserTimingTrace(measureName: string): void;
|
||||
}
|
17
node_modules/@firebase/performance/dist/src/resources/trace.test.d.ts
generated
vendored
Normal file
17
node_modules/@firebase/performance/dist/src/resources/trace.test.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import '../../test/setup';
|
51
node_modules/@firebase/performance/dist/src/services/api_service.d.ts
generated
vendored
Normal file
51
node_modules/@firebase/performance/dist/src/services/api_service.d.ts
generated
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
declare global {
|
||||
interface Window {
|
||||
PerformanceObserver: typeof PerformanceObserver;
|
||||
perfMetrics?: {
|
||||
onFirstInputDelay: Function;
|
||||
};
|
||||
}
|
||||
}
|
||||
export declare type EntryType = 'mark' | 'measure' | 'paint' | 'resource' | 'frame' | 'navigation';
|
||||
/**
|
||||
* This class holds a reference to various browser related objects injected by
|
||||
* set methods.
|
||||
*/
|
||||
export declare class Api {
|
||||
readonly window?: Window | undefined;
|
||||
private readonly performance;
|
||||
/** PreformanceObserver constructor function. */
|
||||
private readonly PerformanceObserver;
|
||||
private readonly windowLocation;
|
||||
readonly onFirstInputDelay?: Function;
|
||||
readonly localStorage?: Storage;
|
||||
readonly document: Document;
|
||||
readonly navigator: Navigator;
|
||||
constructor(window?: Window | undefined);
|
||||
getUrl(): string;
|
||||
mark(name: string): void;
|
||||
measure(measureName: string, mark1: string, mark2: string): void;
|
||||
getEntriesByType(type: EntryType): PerformanceEntry[];
|
||||
getEntriesByName(name: string): PerformanceEntry[];
|
||||
getTimeOrigin(): number;
|
||||
requiredApisAvailable(): boolean;
|
||||
setupObserver(entryType: EntryType, callback: (entry: PerformanceEntry) => void): void;
|
||||
static getInstance(): Api;
|
||||
}
|
||||
export declare function setupApi(window: Window): void;
|
17
node_modules/@firebase/performance/dist/src/services/api_service.test.d.ts
generated
vendored
Normal file
17
node_modules/@firebase/performance/dist/src/services/api_service.test.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import '../../test/setup';
|
4
node_modules/@firebase/performance/dist/src/services/iid_service.d.ts
generated
vendored
Normal file
4
node_modules/@firebase/performance/dist/src/services/iid_service.d.ts
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare function getIidPromise(): Promise<string>;
|
||||
export declare function getIid(): string | undefined;
|
||||
export declare function getAuthTokenPromise(): Promise<string>;
|
||||
export declare function getAuthenticationToken(): string | undefined;
|
17
node_modules/@firebase/performance/dist/src/services/iid_service.test.d.ts
generated
vendored
Normal file
17
node_modules/@firebase/performance/dist/src/services/iid_service.test.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import '../../test/setup';
|
18
node_modules/@firebase/performance/dist/src/services/initialization_service.d.ts
generated
vendored
Normal file
18
node_modules/@firebase/performance/dist/src/services/initialization_service.d.ts
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export declare function getInitializationPromise(): Promise<void>;
|
||||
export declare function isPerfInitialized(): boolean;
|
17
node_modules/@firebase/performance/dist/src/services/initialization_service.test.d.ts
generated
vendored
Normal file
17
node_modules/@firebase/performance/dist/src/services/initialization_service.test.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import '../../test/setup';
|
1
node_modules/@firebase/performance/dist/src/services/oob_resources_service.d.ts
generated
vendored
Normal file
1
node_modules/@firebase/performance/dist/src/services/oob_resources_service.d.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export declare function setupOobResources(): void;
|
17
node_modules/@firebase/performance/dist/src/services/oob_resources_service.test.d.ts
generated
vendored
Normal file
17
node_modules/@firebase/performance/dist/src/services/oob_resources_service.test.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import '../../test/setup';
|
20
node_modules/@firebase/performance/dist/src/services/perf_logger.d.ts
generated
vendored
Normal file
20
node_modules/@firebase/performance/dist/src/services/perf_logger.d.ts
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { NetworkRequest } from '../resources/network_request';
|
||||
import { Trace } from '../resources/trace';
|
||||
export declare function logTrace(trace: Trace): void;
|
||||
export declare function logNetworkRequest(networkRequest: NetworkRequest): void;
|
17
node_modules/@firebase/performance/dist/src/services/perf_logger.test.d.ts
generated
vendored
Normal file
17
node_modules/@firebase/performance/dist/src/services/perf_logger.test.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import '../../test/setup';
|
17
node_modules/@firebase/performance/dist/src/services/remote_config_service.d.ts
generated
vendored
Normal file
17
node_modules/@firebase/performance/dist/src/services/remote_config_service.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export declare function getConfig(iid: string): Promise<void>;
|
1
node_modules/@firebase/performance/dist/src/services/remote_config_service.test.d.ts
generated
vendored
Normal file
1
node_modules/@firebase/performance/dist/src/services/remote_config_service.test.d.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
import '../../test/setup';
|
36
node_modules/@firebase/performance/dist/src/services/settings_service.d.ts
generated
vendored
Normal file
36
node_modules/@firebase/performance/dist/src/services/settings_service.d.ts
generated
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { FirebaseApp } from '@firebase/app-types';
|
||||
import { FirebaseInstallations } from '@firebase/installations-types';
|
||||
export declare class SettingsService {
|
||||
instrumentationEnabled: boolean;
|
||||
dataCollectionEnabled: boolean;
|
||||
loggingEnabled: boolean;
|
||||
tracesSamplingRate: number;
|
||||
networkRequestsSamplingRate: number;
|
||||
logEndPointUrl: string;
|
||||
logSource: number;
|
||||
logTraceAfterSampling: boolean;
|
||||
logNetworkAfterSampling: boolean;
|
||||
configTimeToLive: number;
|
||||
firebaseAppInstance: FirebaseApp;
|
||||
installationsService: FirebaseInstallations;
|
||||
getAppId(): string;
|
||||
getProjectId(): string;
|
||||
getApiKey(): string;
|
||||
static getInstance(): SettingsService;
|
||||
}
|
19
node_modules/@firebase/performance/dist/src/services/transport_service.d.ts
generated
vendored
Normal file
19
node_modules/@firebase/performance/dist/src/services/transport_service.d.ts
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export declare function setupTransportService(): void;
|
||||
/** Log handler for cc service to send the performance logs to the server. */
|
||||
export declare function transportHandler(serializer: (...args: any[]) => string): (...args: unknown[]) => void;
|
17
node_modules/@firebase/performance/dist/src/services/transport_service.test.d.ts
generated
vendored
Normal file
17
node_modules/@firebase/performance/dist/src/services/transport_service.test.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export {};
|
17
node_modules/@firebase/performance/dist/src/utils/attribute_utils.test.d.ts
generated
vendored
Normal file
17
node_modules/@firebase/performance/dist/src/utils/attribute_utils.test.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF unknown KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import '../../test/setup';
|
40
node_modules/@firebase/performance/dist/src/utils/attributes_utils.d.ts
generated
vendored
Normal file
40
node_modules/@firebase/performance/dist/src/utils/attributes_utils.d.ts
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
declare const enum ServiceWorkerStatus {
|
||||
UNKNOWN = 0,
|
||||
UNSUPPORTED = 1,
|
||||
CONTROLLED = 2,
|
||||
UNCONTROLLED = 3
|
||||
}
|
||||
export declare enum VisibilityState {
|
||||
UNKNOWN = 0,
|
||||
VISIBLE = 1,
|
||||
HIDDEN = 2
|
||||
}
|
||||
declare const enum EffectiveConnectionType {
|
||||
UNKNOWN = 0,
|
||||
CONNECTION_SLOW_2G = 1,
|
||||
CONNECTION_2G = 2,
|
||||
CONNECTION_3G = 3,
|
||||
CONNECTION_4G = 4
|
||||
}
|
||||
export declare function getServiceWorkerStatus(): ServiceWorkerStatus;
|
||||
export declare function getVisibilityState(): VisibilityState;
|
||||
export declare function getEffectiveConnectionType(): EffectiveConnectionType;
|
||||
export declare function isValidCustomAttributeName(name: string): boolean;
|
||||
export declare function isValidCustomAttributeValue(value: string): boolean;
|
||||
export {};
|
18
node_modules/@firebase/performance/dist/src/utils/console_logger.d.ts
generated
vendored
Normal file
18
node_modules/@firebase/performance/dist/src/utils/console_logger.d.ts
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { Logger } from '@firebase/logger';
|
||||
export declare const consoleLogger: Logger;
|
50
node_modules/@firebase/performance/dist/src/utils/errors.d.ts
generated
vendored
Normal file
50
node_modules/@firebase/performance/dist/src/utils/errors.d.ts
generated
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { ErrorFactory } from '@firebase/util';
|
||||
export declare const enum ErrorCode {
|
||||
TRACE_STARTED_BEFORE = "trace started",
|
||||
TRACE_STOPPED_BEFORE = "trace stopped",
|
||||
NO_WINDOW = "no window",
|
||||
NO_APP_ID = "no app id",
|
||||
NO_PROJECT_ID = "no project id",
|
||||
NO_API_KEY = "no api key",
|
||||
INVALID_CC_LOG = "invalid cc log",
|
||||
FB_NOT_DEFAULT = "FB not default",
|
||||
RC_NOT_OK = "RC response not ok",
|
||||
INVALID_ATTRIBUTE_NAME = "invalid attribute name",
|
||||
INVALID_ATTRIBUTE_VALUE = "invalid attribute value",
|
||||
INVALID_CUSTOM_METRIC_NAME = "invalide custom metric name"
|
||||
}
|
||||
interface ErrorParams {
|
||||
[ErrorCode.TRACE_STARTED_BEFORE]: {
|
||||
traceName: string;
|
||||
};
|
||||
[ErrorCode.TRACE_STOPPED_BEFORE]: {
|
||||
traceName: string;
|
||||
};
|
||||
[ErrorCode.INVALID_ATTRIBUTE_NAME]: {
|
||||
attributeName: string;
|
||||
};
|
||||
[ErrorCode.INVALID_ATTRIBUTE_VALUE]: {
|
||||
attributeValue: string;
|
||||
};
|
||||
[ErrorCode.INVALID_CUSTOM_METRIC_NAME]: {
|
||||
customMetricName: string;
|
||||
};
|
||||
}
|
||||
export declare const ERROR_FACTORY: ErrorFactory<ErrorCode, ErrorParams>;
|
||||
export {};
|
21
node_modules/@firebase/performance/dist/src/utils/metric_utils.d.ts
generated
vendored
Normal file
21
node_modules/@firebase/performance/dist/src/utils/metric_utils.d.ts
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* Returns true if the metric is custom and does not start with reserved prefix, or if
|
||||
* the metric is one of out of the box page load trace metrics.
|
||||
*/
|
||||
export declare function isValidMetricName(name: string, traceName?: string): boolean;
|
17
node_modules/@firebase/performance/dist/src/utils/metric_utils.test.d.ts
generated
vendored
Normal file
17
node_modules/@firebase/performance/dist/src/utils/metric_utils.test.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF unknown KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import '../../test/setup';
|
17
node_modules/@firebase/performance/dist/test/setup.d.ts
generated
vendored
Normal file
17
node_modules/@firebase/performance/dist/test/setup.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export {};
|
87
node_modules/@firebase/performance/package.json
generated
vendored
Normal file
87
node_modules/@firebase/performance/package.json
generated
vendored
Normal file
@ -0,0 +1,87 @@
|
||||
{
|
||||
"_from": "@firebase/performance@0.2.31",
|
||||
"_id": "@firebase/performance@0.2.31",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-vg60k0wnMeTRhW8myOiJPn8vuVHlusnhg2YlN0PlH2epvzUPUv9bAeYVC6/XESORxmBmqUzfMsAaD3oCAQ8boQ==",
|
||||
"_location": "/@firebase/performance",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "@firebase/performance@0.2.31",
|
||||
"name": "@firebase/performance",
|
||||
"escapedName": "@firebase%2fperformance",
|
||||
"scope": "@firebase",
|
||||
"rawSpec": "0.2.31",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "0.2.31"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/firebase"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@firebase/performance/-/performance-0.2.31.tgz",
|
||||
"_shasum": "6df2ee15f07db207e3316f630d05d7f43bffc125",
|
||||
"_spec": "@firebase/performance@0.2.31",
|
||||
"_where": "C:\\Users\\matia\\Documents\\GitHub\\Musix-V3\\node_modules\\firebase",
|
||||
"author": {
|
||||
"name": "Firebase",
|
||||
"email": "firebase-support@google.com",
|
||||
"url": "https://firebase.google.com/"
|
||||
},
|
||||
"browser": "dist/index.cjs.js",
|
||||
"bugs": {
|
||||
"url": "https://github.com/firebase/firebase-js-sdk/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"@firebase/component": "0.1.4",
|
||||
"@firebase/installations": "0.4.1",
|
||||
"@firebase/logger": "0.1.34",
|
||||
"@firebase/performance-types": "0.0.8",
|
||||
"@firebase/util": "0.2.39",
|
||||
"tslib": "1.10.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Firebase performance for web",
|
||||
"devDependencies": {
|
||||
"rollup": "1.28.0",
|
||||
"rollup-plugin-json": "4.0.0",
|
||||
"rollup-plugin-typescript2": "0.25.3",
|
||||
"typescript": "3.7.3"
|
||||
},
|
||||
"esm2017": "dist/index.esm2017.js",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"main": "dist/index.cjs.js",
|
||||
"module": "dist/index.esm.js",
|
||||
"name": "@firebase/performance",
|
||||
"nyc": {
|
||||
"extension": [
|
||||
".ts"
|
||||
],
|
||||
"reportDir": "./coverage/node"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@firebase/app": "0.x",
|
||||
"@firebase/app-types": "0.x"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/firebase/firebase-js-sdk/tree/master/packages/performance"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"dev": "rollup -c -w",
|
||||
"lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
|
||||
"lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts'",
|
||||
"prepare": "yarn build",
|
||||
"prettier": "prettier --write '{src,test}/**/*.{js,ts}'",
|
||||
"test": "run-p lint test:browser",
|
||||
"test:browser": "karma start --single-run",
|
||||
"test:debug": "karma start --browsers=Chrome --auto-watch"
|
||||
},
|
||||
"typings": "dist/index.d.ts",
|
||||
"version": "0.2.31"
|
||||
}
|
Reference in New Issue
Block a user