Skip to content

Commit 0e4d480

Browse files
committed
fix(*): update js-yaml import to use default import for Node.js 22 compatibility
1 parent a5076d7 commit 0e4d480

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

scripts/bin-test/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as fs from "fs/promises";
55
import * as os from "os";
66

77
import { expect } from "chai";
8-
import * as yaml from "js-yaml";
8+
import yaml from "js-yaml";
99
import fetch from "node-fetch";
1010
import * as portfinder from "portfinder";
1111

src/common/providers/tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import express from "express";
2424
import { DecodedIdToken } from "firebase-admin/auth";
2525

2626
import * as logger from "../../logger";
27-
import * as https from "./https";
2827
import { Expression } from "../../params";
2928
import { ResetValue } from "../options";
29+
import * as https from "./https";
3030

3131
/** How a task should be retried in the event of a non-2xx return. */
3232
export interface RetryConfig {

src/v1/providers/https.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@
2323
import express from "express";
2424

2525
import { convertIfPresent, convertInvoker } from "../../common/encoding";
26+
import { withInit } from "../../common/onInit";
2627
import {
2728
CallableContext,
2829
FunctionsErrorCode,
2930
HttpsError,
3031
onCallHandler,
3132
Request,
3233
} from "../../common/providers/https";
33-
import { HttpsFunction, optionsToEndpoint, optionsToTrigger, Runnable } from "../cloud-functions";
34-
import { DeploymentOptions } from "../function-configuration";
3534
import { initV1Endpoint } from "../../runtime/manifest";
36-
import { withInit } from "../../common/onInit";
3735
import { wrapTraceContext } from "../../v2/trace";
36+
import { HttpsFunction, optionsToEndpoint, optionsToTrigger, Runnable } from "../cloud-functions";
37+
import { DeploymentOptions } from "../function-configuration";
3838

39-
export { Request, CallableContext, FunctionsErrorCode, HttpsError };
39+
export { CallableContext, FunctionsErrorCode, HttpsError, Request };
4040

4141
/**
4242
* Handle HTTP requests.

src/v1/providers/tasks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ import {
3131
TaskContext,
3232
} from "../../common/providers/tasks";
3333
import {
34-
initV1Endpoint,
3534
initTaskQueueTrigger,
35+
initV1Endpoint,
3636
ManifestEndpoint,
3737
ManifestRequiredAPI,
3838
} from "../../runtime/manifest";
3939
import { optionsToEndpoint, optionsToTrigger } from "../cloud-functions";
4040
import { DeploymentOptions } from "../function-configuration";
4141

42-
export { RetryConfig, RateLimits, TaskContext };
42+
export { RateLimits, RetryConfig, TaskContext };
4343

4444
/**
4545
* Options for configuring the task queue to listen to.

src/v2/providers/scheduler.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@
2323
import express from "express";
2424

2525
import { copyIfPresent } from "../../common/encoding";
26+
import { withInit } from "../../common/onInit";
2627
import { ResetValue } from "../../common/options";
2728
import { timezone } from "../../common/timezone";
29+
import * as logger from "../../logger";
30+
import { Expression } from "../../params";
2831
import {
2932
initV2Endpoint,
3033
initV2ScheduleTrigger,
3134
ManifestEndpoint,
3235
ManifestRequiredAPI,
3336
} from "../../runtime/manifest";
34-
import { HttpsFunction } from "./https";
35-
import { wrapTraceContext } from "../trace";
36-
import { Expression } from "../../params";
37-
import * as logger from "../../logger";
3837
import * as options from "../options";
39-
import { withInit } from "../../common/onInit";
38+
import { wrapTraceContext } from "../trace";
39+
import { HttpsFunction } from "./https";
4040

4141
/** @hidden */
4242
interface SeparatedOpts {

0 commit comments

Comments
 (0)