@devvit/build-pack 0.11.19-next-2025-07-01-17-04-17-76d17d8d9.0 → 0.11.19-next-2025-07-02-17-32-32-070c5de78.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":"BundleModule.d.ts","sourceRoot":"","sources":["../../src/esbuild/BundleModule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAkB7D;;;GAGG;AACH,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAUxF;AAyCD,cAAM,aAAc,SAAQ,KAAK;gBACnB,GAAG,EAAE,MAAM;CAGxB;AAED,2DAA2D;AAC3D,MAAM,MAAM,iBAAiB,GAAG,OAAO,aAAa,CAAC"}
1
+ {"version":3,"file":"BundleModule.d.ts","sourceRoot":"","sources":["../../src/esbuild/BundleModule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAkB7D;;;GAGG;AACH,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAUxF;AAqCD,cAAM,aAAc,SAAQ,KAAK;gBACnB,GAAG,EAAE,MAAM;CAGxB;AAED,2DAA2D;AAC3D,MAAM,MAAM,iBAAiB,GAAG,OAAO,aAAa,CAAC"}
@@ -32,6 +32,7 @@ export async function dangerouslyGetBundleActor(code) {
32
32
  * Dangerously executes untrusted code and returns the default export, if any.
33
33
  * The function is asynchronous because we don't know if there are top-level
34
34
  * awaits in the code.
35
+ * @deprecated
35
36
  */
36
37
  async function dangerouslyGetBundleDefaultExport(code) {
37
38
  const module = {};
@@ -40,11 +41,6 @@ async function dangerouslyGetBundleDefaultExport(code) {
40
41
  const require = function (path) {
41
42
  if (path === '@devvit/protos')
42
43
  return protos;
43
- // play does not implement a bundler and expects @devvit/public-api to exist
44
- // in the environment. When running in compute-go, the library is injected
45
- // as a global.
46
- if (path === '@devvit/public-api' && 'devvitPublicAPI' in globalThis)
47
- return globalThis.devvitPublicAPI;
48
44
  return globalThis.require(path);
49
45
  };
50
46
  // JS please forgive us
@@ -1 +1 @@
1
- {"version":3,"file":"templatizer.d.ts","sourceRoot":"","sources":["../../../src/esbuild/templatizer/templatizer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D,gBAAgB;AAChB,wBAAgB,UAAU,CAAC,IAAI,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAOxF"}
1
+ {"version":3,"file":"templatizer.d.ts","sourceRoot":"","sources":["../../../src/esbuild/templatizer/templatizer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,gBAAgB;AAChB,wBAAgB,UAAU,CAAC,IAAI,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAOxF"}
@@ -1,10 +1,9 @@
1
1
  import path from 'node:path';
2
- const __dirname = new URL('.', import.meta.url).pathname;
3
2
  /** @internal */
4
3
  export function templatize(root, blocksEntry) {
5
4
  // Import user code second so that it has precedence.
6
5
  return `
7
- import Devvit from '${__dirname}blocks.template.js';
6
+ import Devvit from '${path.resolve(import.meta.dirname, 'blocks.template.js')}';
8
7
  ${blocksEntry ? `import '${path.resolve(root, blocksEntry)}';` : ''}
9
8
  export default Devvit;
10
9
  `.trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/build-pack",
3
- "version": "0.11.19-next-2025-07-01-17-04-17-76d17d8d9.0",
3
+ "version": "0.11.19-next-2025-07-02-17-32-32-070c5de78.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,22 +23,21 @@
23
23
  },
24
24
  "types": "./index.d.ts",
25
25
  "dependencies": {
26
- "@devvit/protos": "0.11.19-next-2025-07-01-17-04-17-76d17d8d9.0",
27
- "@devvit/shared-types": "0.11.19-next-2025-07-01-17-04-17-76d17d8d9.0",
26
+ "@devvit/protos": "0.11.19-next-2025-07-02-17-32-32-070c5de78.0",
27
+ "@devvit/shared-types": "0.11.19-next-2025-07-02-17-32-32-070c5de78.0",
28
28
  "esbuild": "0.23.0",
29
29
  "rxjs": "7.8.1",
30
30
  "tsv": "0.2.0",
31
31
  "typescript": "5.8.3"
32
32
  },
33
33
  "peerDependencies": {
34
- "@devvit/public-api": "*",
35
34
  "@devvit/server": "*"
36
35
  },
37
36
  "devDependencies": {
38
- "@devvit/public-api": "0.11.19-next-2025-07-01-17-04-17-76d17d8d9.0",
39
- "@devvit/repo-tools": "0.11.19-next-2025-07-01-17-04-17-76d17d8d9.0",
40
- "@devvit/server": "0.11.19-next-2025-07-01-17-04-17-76d17d8d9.0",
41
- "@devvit/tsconfig": "0.11.19-next-2025-07-01-17-04-17-76d17d8d9.0",
37
+ "@devvit/public-api": "0.11.19-next-2025-07-02-17-32-32-070c5de78.0",
38
+ "@devvit/repo-tools": "0.11.19-next-2025-07-02-17-32-32-070c5de78.0",
39
+ "@devvit/server": "0.11.19-next-2025-07-02-17-32-32-070c5de78.0",
40
+ "@devvit/tsconfig": "0.11.19-next-2025-07-02-17-32-32-070c5de78.0",
42
41
  "@types/tsv": "0.2.1",
43
42
  "eslint": "9.11.1",
44
43
  "vitest": "1.6.1"
@@ -47,5 +46,5 @@
47
46
  "directory": "dist"
48
47
  },
49
48
  "source": "./src/index.ts",
50
- "gitHead": "c2f0162348ad3bf31ebcf8688024223229b7bb2e"
49
+ "gitHead": "ff0d94c018a35999e6089a0ad16f872d35e4f5c2"
51
50
  }