Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -9,17 +9,18 @@ import {
|
||||
buildJsonExportArtifact,
|
||||
buildPdfExportArtifact,
|
||||
buildXlsxExportArtifact,
|
||||
createStoredZipBuffer,
|
||||
normalizeExportTable,
|
||||
serializeExportTableToCsv,
|
||||
serializeExportTableToJson,
|
||||
serializeExportTableToJsonLines,
|
||||
serializeExportTableToPdf,
|
||||
serializeExportTableToXlsx,
|
||||
} from "@toolctrl/exports";
|
||||
} from "@hivegrid/exports";
|
||||
|
||||
const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)));
|
||||
|
||||
describe("@toolctrl/exports public entrypoint", () => {
|
||||
describe("@hivegrid/exports public entrypoint", () => {
|
||||
it("publishes dedicated subpaths so lightweight consumers can avoid the aggregate entrypoint", async () => {
|
||||
const packageJson = JSON.parse(
|
||||
await readFile(join(packageRoot, "package.json"), "utf8"),
|
||||
@@ -34,12 +35,13 @@ describe("@toolctrl/exports public entrypoint", () => {
|
||||
"./pdf": "./src/pdf/index.ts",
|
||||
"./s3-multipart": "./src/sinks/s3-multipart.ts",
|
||||
"./types": "./src/types.ts",
|
||||
"./zip": "./src/zip.ts",
|
||||
"./xlsx": "./src/xlsx/index.ts",
|
||||
});
|
||||
});
|
||||
|
||||
it("exposes CSV, JSON, shared validation, XLSX, and PDF APIs exactly once", async () => {
|
||||
const exportsModule = await import("@toolctrl/exports");
|
||||
it("exposes CSV, JSON, shared validation, ZIP, XLSX, and PDF APIs exactly once", async () => {
|
||||
const exportsModule = await import("@hivegrid/exports");
|
||||
const expectedExports = [
|
||||
"AUDIT_PDF_CONTENT_TYPE",
|
||||
"AUDIT_PDF_HARD_ROW_LIMIT",
|
||||
@@ -60,6 +62,7 @@ describe("@toolctrl/exports public entrypoint", () => {
|
||||
"buildPdfExportArtifact",
|
||||
"buildXlsxExportArtifact",
|
||||
"createS3MultipartUploadSink",
|
||||
"createStoredZipBuffer",
|
||||
"normalizeExportTable",
|
||||
"resolveExportRowCap",
|
||||
"serializeAuditEventsToPdf",
|
||||
@@ -83,6 +86,7 @@ describe("@toolctrl/exports public entrypoint", () => {
|
||||
expect(exportsModule.buildJsonExportArtifact).toBe(buildJsonExportArtifact);
|
||||
expect(exportsModule.buildPdfExportArtifact).toBe(buildPdfExportArtifact);
|
||||
expect(exportsModule.buildXlsxExportArtifact).toBe(buildXlsxExportArtifact);
|
||||
expect(exportsModule.createStoredZipBuffer).toBe(createStoredZipBuffer);
|
||||
expect(exportsModule.normalizeExportTable).toBe(normalizeExportTable);
|
||||
expect(exportsModule.serializeExportTableToCsv).toBe(serializeExportTableToCsv);
|
||||
expect(exportsModule.serializeExportTableToJson).toBe(serializeExportTableToJson);
|
||||
|
||||
Reference in new issue
Block a user