@devvit/build-pack 0.12.1-next-2025-09-08-18-38-43-78ed48666.0 → 0.12.1-next-2025-09-08-20-55-43-6ce1b439e.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.template.d.ts","sourceRoot":"","sources":["../../../src/esbuild/templatizer/blocks.template.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGvD,OAAO,EAEL,MAAM,EACN,KAAK,OAAO,EAMb,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,0BAA0B,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE7F,OAAO,KAAK,EAAE,UAAU,EAAa,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAiB7F,OAAO,QAAQ,oBAAoB,CAAC;IAGlC,UAAU,MAAM,CAAC;QACf,SAAS,UAAU,IAAI,IAAI,CAAC;QAC5B,SAAS,SAAS,IAAI,IAAI,CAAC;QAC3B,SAAS,cAAc,IAAI,IAAI,CAAC;QAChC,SAAS,aAAa,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC;KAC7D;CACF;AAQD,oFAAoF;AACpF,eAAO,MAAM,UAAU,EAAE;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAA;CAAO,CAAC;AAE7D,gBAAgB;AAChB,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAuGD,gBAAgB;AAChB,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAC/B,OAAO,CAAC,GAAG,IAAI,UAAU,CAiE3B;AAED,gBAAgB;AAChB,wBAAgB,gCAAgC,CAC9C,GAAG,EAAE,QAAQ,CAAC,UAAU,CAAC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IAAI,UAAU,CAiE3B;AAED,gBAAgB;AAChB,wBAAgB,gCAAgC,CAC9C,GAAG,EAAE,QAAQ,CAAC,UAAU,CAAC,GACxB,OAAO,CAAC,GAAG,IAAI,0BAA0B,CAO3C;AA4CD;;;;;;;;;GASG;AACH,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,QAAQ,CAAC,iBAAiB,CAAC,EACjC,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,GACvB,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAgEjC;AAmJD,eAAe,MAAM,CAAC"}
@@ -224,12 +224,6 @@ export async function fetchWebbit(endpoint, body, meta) {
224
224
  throw Error(`${preamble} HTTP status ${rsp.status}: ensure the server handles the \`${endpoint}\` endpoint`);
225
225
  if (!rsp.ok)
226
226
  throw Error(`${preamble} HTTP status ${rsp.status}: ${rsp.statusText}`);
227
- if (!Number(rsp.headers.get('Content-Length')))
228
- return;
229
- const contentType = rsp.headers.get('Content-Type');
230
- if (!contentType || !contentType.includes('application/json')) {
231
- throw Error(`${preamble} Content-Type header "${contentType}" but only "application/json" is supported`);
232
- }
233
227
  let text;
234
228
  try {
235
229
  text = await rsp.text();
@@ -237,6 +231,15 @@ export async function fetchWebbit(endpoint, body, meta) {
237
231
  catch {
238
232
  throw Error(`${preamble} an unreadable JSON body`);
239
233
  }
234
+ if (!text)
235
+ return;
236
+ const contentLen = rsp.headers.get('Content-Length');
237
+ if (!Number(contentLen))
238
+ throw Error(`${preamble} Content-Length header "${contentLen}" but greater than zero required for nonempty response`);
239
+ const contentType = rsp.headers.get('Content-Type');
240
+ if (!contentType || !contentType.includes('application/json')) {
241
+ throw Error(`${preamble} Content-Type header "${contentType}" but only "application/json" is supported`);
242
+ }
240
243
  let json;
241
244
  try {
242
245
  json = JSON.parse(text);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/build-pack",
3
- "version": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
3
+ "version": "0.12.1-next-2025-09-08-20-55-43-6ce1b439e.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "types": "./dist/index.d.ts",
33
33
  "dependencies": {
34
- "@devvit/protos": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
35
- "@devvit/shared-types": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
36
- "@devvit/splash": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
34
+ "@devvit/protos": "0.12.1-next-2025-09-08-20-55-43-6ce1b439e.0",
35
+ "@devvit/shared-types": "0.12.1-next-2025-09-08-20-55-43-6ce1b439e.0",
36
+ "@devvit/splash": "0.12.1-next-2025-09-08-20-55-43-6ce1b439e.0",
37
37
  "esbuild": "0.25.9",
38
38
  "rxjs": "7.8.1",
39
39
  "tsv": "0.2.0",
@@ -44,16 +44,16 @@
44
44
  "@devvit/shared": "*"
45
45
  },
46
46
  "devDependencies": {
47
- "@devvit/public-api": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
48
- "@devvit/repo-tools": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
49
- "@devvit/scheduler": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
50
- "@devvit/server": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
51
- "@devvit/shared": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
52
- "@devvit/tsconfig": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
47
+ "@devvit/public-api": "0.12.1-next-2025-09-08-20-55-43-6ce1b439e.0",
48
+ "@devvit/repo-tools": "0.12.1-next-2025-09-08-20-55-43-6ce1b439e.0",
49
+ "@devvit/scheduler": "0.12.1-next-2025-09-08-20-55-43-6ce1b439e.0",
50
+ "@devvit/server": "0.12.1-next-2025-09-08-20-55-43-6ce1b439e.0",
51
+ "@devvit/shared": "0.12.1-next-2025-09-08-20-55-43-6ce1b439e.0",
52
+ "@devvit/tsconfig": "0.12.1-next-2025-09-08-20-55-43-6ce1b439e.0",
53
53
  "@types/tsv": "0.2.1",
54
54
  "eslint": "9.11.1",
55
55
  "vitest": "1.6.1"
56
56
  },
57
57
  "source": "./src/index.ts",
58
- "gitHead": "1c9c60672fd6a2b30e77e758618e5b65a56eb0e8"
58
+ "gitHead": "b51d40c1c3ee49d6215ddc2ac677a5f9d179d920"
59
59
  }