Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Licensed under the MIT License.
*/

import { performance } from "@fluidframework/common-utils";
import { performance } from "@fluidframework/server-services-client";
import {
type IClient,
type IClientJoin,
Expand Down
1 change: 0 additions & 1 deletion server/routerlicious/packages/routerlicious/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
},
"dependencies": {
"@fluidframework/common-utils": "^3.1.0",
"@fluidframework/gitresources": "workspace:~",
"@fluidframework/protocol-definitions": "^3.2.0",
"@fluidframework/server-kafka-orderer": "workspace:~",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,10 @@ export class NetworkInformation {
// @internal (undocumented)
export function parseToken(tenantId: string, authorization: string | undefined): string | undefined;

// @internal
const performance_2: Performance;
export { performance_2 as performance }

// @internal (undocumented)
export function promiseTimeout(mSec: number, promise: Promise<any>): Promise<any>;

Expand Down
1 change: 1 addition & 0 deletions server/routerlicious/packages/services-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export {
parseToken,
} from "./historian";
export type { IAlfredTenant, ISession } from "./interfaces";
export { performance } from "./performance";
export { promiseTimeout } from "./promiseTimeout";
export { RestLessClient, RestLessFieldNames } from "./restLessClient";
export {
Expand Down
11 changes: 11 additions & 0 deletions server/routerlicious/packages/services-client/src/performance.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/

/**
* Isomorphic access to the {@link https://developer.mozilla.org/en-US/docs/Web/API/Performance|Performance API}.
*
* @internal
*/
export const performance = globalThis.performance;
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
} from "axios";
import safeStringify from "json-stringify-safe";
import { v4 as uuid } from "uuid";
import { performance } from "./performance";

import {
CallingServiceHeaderName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import { strict as assert } from "assert";
import sinon from "sinon";
import { performance } from "@fluidframework/server-services-client";
import { StageTrace } from "../trace";
import { performance } from "@fluidframework/common-utils";

describe("StageTrace", () => {
let clock: sinon.SinonFakeTimers;
Expand Down
2 changes: 1 addition & 1 deletion server/routerlicious/packages/services-core/src/trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Licensed under the MIT License.
*/

import { performance } from "@fluidframework/common-utils";
import { performance } from "@fluidframework/server-services-client";

/**
* @internal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
* Licensed under the MIT License.
*/

import { EventEmitter } from "events";
import type * as http from "http";
import { performance } from "perf_hooks";
import { EventEmitter } from "node:events";
import type * as http from "node:http";

import { performance } from "@fluidframework/server-services-client";
import type * as core from "@fluidframework/server-services-core";
import {
BaseTelemetryProperties,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"temp-directory": "nyc/.nyc_output"
},
"dependencies": {
"@fluidframework/common-utils": "^3.1.0",
"json-stringify-safe": "^5.0.1",
"path-browserify": "^1.0.1",
"serialize-error": "^8.1.0",
Expand Down
1 change: 0 additions & 1 deletion server/routerlicious/packages/services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"temp-directory": "nyc/.nyc_output"
},
"dependencies": {
"@fluidframework/common-utils": "^3.1.0",
"@fluidframework/protocol-definitions": "^3.2.0",
"@fluidframework/server-services-client": "workspace:~",
"@fluidframework/server-services-core": "workspace:~",
Expand Down
9 changes: 0 additions & 9 deletions server/routerlicious/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading