@hyperframes/gcp-cloud-run 0.9.55 → 0.9.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/sdk/deploySite.d.ts +1 -0
- package/dist/sdk/index.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -812,12 +812,12 @@ import { mkdtempSync as mkdtempSync3, rmSync as rmSync4, statSync as statSync3 }
|
|
|
812
812
|
import { tmpdir as tmpdir3 } from "node:os";
|
|
813
813
|
import { join as join3 } from "node:path";
|
|
814
814
|
import { Storage as Storage2 } from "@google-cloud/storage";
|
|
815
|
-
import { hashProjectDir,
|
|
815
|
+
import { hashProjectDir, listSiteFilesForUpload } from "@hyperframes/producer/distributed";
|
|
816
816
|
async function deploySite(opts) {
|
|
817
817
|
if (!statSync3(opts.projectDir).isDirectory()) {
|
|
818
818
|
throw new Error(`[deploySite] projectDir is not a directory: ${opts.projectDir}`);
|
|
819
819
|
}
|
|
820
|
-
const files =
|
|
820
|
+
const files = listSiteFilesForUpload(opts.projectDir, opts.onNotice);
|
|
821
821
|
const siteId = opts.siteId ?? hashProjectDir(opts.projectDir, files);
|
|
822
822
|
const key = `sites/${siteId}/project.tar.gz`;
|
|
823
823
|
const projectGcsUri = formatGcsUri({ bucket: opts.bucketName, key });
|
package/dist/sdk/deploySite.d.ts
CHANGED
package/dist/sdk/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { mkdtempSync, rmSync as rmSync2, statSync as statSync2 } from "node:fs";
|
|
|
3
3
|
import { tmpdir } from "node:os";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { Storage } from "@google-cloud/storage";
|
|
6
|
-
import { hashProjectDir,
|
|
6
|
+
import { hashProjectDir, listSiteFilesForUpload } from "@hyperframes/producer/distributed";
|
|
7
7
|
|
|
8
8
|
// src/gcsTransport.ts
|
|
9
9
|
import {
|
|
@@ -65,7 +65,7 @@ async function deploySite(opts) {
|
|
|
65
65
|
if (!statSync2(opts.projectDir).isDirectory()) {
|
|
66
66
|
throw new Error(`[deploySite] projectDir is not a directory: ${opts.projectDir}`);
|
|
67
67
|
}
|
|
68
|
-
const files =
|
|
68
|
+
const files = listSiteFilesForUpload(opts.projectDir, opts.onNotice);
|
|
69
69
|
const siteId = opts.siteId ?? hashProjectDir(opts.projectDir, files);
|
|
70
70
|
const key = `sites/${siteId}/project.tar.gz`;
|
|
71
71
|
const projectGcsUri = formatGcsUri({ bucket: opts.bucketName, key });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/gcp-cloud-run",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.56",
|
|
4
4
|
"description": "Google Cloud Run + Workflows adapter for HyperFrames distributed rendering — request handler, client-side SDK, and Terraform module.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"hono": "^4.13.16",
|
|
46
46
|
"puppeteer-core": "^25.8.0",
|
|
47
47
|
"tar": "^7.5.22",
|
|
48
|
-
"@hyperframes/producer": "^0.9.
|
|
48
|
+
"@hyperframes/producer": "^0.9.56"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^25.0.10",
|