Skip to content

Commit 0d60b99

Browse files
committed
refactor(cloud-function): move libs into internal subfolder
1 parent 1bde2f0 commit 0d60b99

34 files changed

Lines changed: 16 additions & 16 deletions

cloud-function/src/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import cookieParser from "cookie-parser";
22
import express, { Request, Response } from "express";
33
import { Router } from "express";
44

5-
import { ANY_ATTACHMENT_EXT } from "./constants/index.js";
5+
import { ANY_ATTACHMENT_EXT } from "./internal/constants/index.js";
66

77
import { Origin } from "./env.js";
88
import { proxyContent } from "./handlers/proxy-content.js";
@@ -23,7 +23,7 @@ import { requireOrigin } from "./middlewares/require-origin.js";
2323
import { notFound } from "./middlewares/not-found.js";
2424
import { stripForwardedHostHeaders } from "./middlewares/stripForwardedHostHeaders.js";
2525
import { proxyPong } from "./handlers/proxy-pong.js";
26-
import { handleRunner } from "./play/index.js";
26+
import { handleRunner } from "./internal/play/index.js";
2727
import { proxyContentAssets } from "./handlers/proxy-content-assets.js";
2828
import { proxySharedAssets } from "./handlers/proxy-shared-assets.js";
2929

cloud-function/src/build-redirects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
44

55
import dotenv from "dotenv";
66

7-
import { VALID_LOCALES } from "./constants/index.js";
7+
import { VALID_LOCALES } from "./internal/constants/index.js";
88

99
const dirname = path.dirname(fileURLToPath(import.meta.url));
1010

cloud-function/src/handlers/proxy-bsa.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import type { Request, Response } from "express";
22

3-
import { Coder } from "../pong/index.js";
3+
import { Coder } from "../internal/pong/index.js";
44
import {
55
createPong2GetHandler,
66
createPong2ClickHandler,
77
createPong2ViewedHandler,
88
fetchImage,
9-
} from "../pong/index.js";
9+
} from "../internal/pong/index.js";
1010

1111
import stagePlusLookup from "../stripe-plans/stage.js";
1212
import prodPlusLookup from "../stripe-plans/prod.js";

cloud-function/src/handlers/proxy-content-assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
import { withContentResponseHeaders } from "../headers.js";
99
import { Source, sourceUri, WILDCARD_ENABLED } from "../env.js";
1010
import { PROXY_TIMEOUT } from "../constants.js";
11-
import { ACTIVE_LOCALES } from "../constants/index.js";
11+
import { ACTIVE_LOCALES } from "../internal/constants/index.js";
1212

1313
const target = sourceUri(Source.content);
1414

cloud-function/src/handlers/proxy-kevel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { Client } from "@adzerk/decision-sdk";
22
import type { Request, Response } from "express";
33

4-
import { Coder } from "../pong/index.js";
4+
import { Coder } from "../internal/pong/index.js";
55
import {
66
createPongGetHandler,
77
createPongClickHandler,
88
createPongViewedHandler,
99
fetchImage,
10-
} from "../pong/index.js";
10+
} from "../internal/pong/index.js";
1111

1212
import stagePlusLookup from "../stripe-plans/stage.js";
1313
import prodPlusLookup from "../stripe-plans/prod.js";

cloud-function/src/headers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { IncomingMessage, ServerResponse } from "node:http";
22

3-
import { CSP_VALUE } from "./constants/index.js";
3+
import { CSP_VALUE } from "./internal/constants/index.js";
44
import { isLiveSampleURL } from "./utils.js";
55
import { ORIGIN_TRIAL_TOKEN, WILDCARD_ENABLED } from "./env.js";
66

File renamed without changes.
File renamed without changes.

cloud-function/src/fundamental-redirects/index.d.ts renamed to cloud-function/src/internal/fundamental-redirects/index.d.ts

File renamed without changes.

cloud-function/src/fundamental-redirects/index.ts renamed to cloud-function/src/internal/fundamental-redirects/index.ts

File renamed without changes.

0 commit comments

Comments
 (0)