@devvit/server 0.11.19-next-2025-07-21-15-41-14-f32293e0f.0 → 0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.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.
- package/context.d.ts.map +1 -1
- package/context.js +7 -1
- package/package.json +8 -8
package/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAyB3D;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,CAAC,EACpC,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACzB,OAAO,CAAC,CAAC,CAAC,CAEZ;AAED,eAAO,MAAM,OAAO,gBAalB,CAAC;AAEH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAMjE;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAM7D"}
|
package/context.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
2
|
-
|
|
2
|
+
let requestContextStorage;
|
|
3
|
+
try {
|
|
4
|
+
requestContextStorage = new AsyncLocalStorage();
|
|
5
|
+
}
|
|
6
|
+
catch {
|
|
7
|
+
// Hack: workaround inclusion in Blocks client builds.
|
|
8
|
+
}
|
|
3
9
|
/**
|
|
4
10
|
* Gets the current RequestContext. This is set by the server when handling a request. If there is no
|
|
5
11
|
* context, this will throw an error.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/server",
|
|
3
|
-
"version": "0.11.19-next-2025-07-
|
|
3
|
+
"version": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
},
|
|
24
24
|
"types": "./index.d.ts",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@devvit/protos": "0.11.19-next-2025-07-
|
|
27
|
-
"@devvit/public-api": "0.11.19-next-2025-07-
|
|
28
|
-
"@devvit/shared": "0.11.19-next-2025-07-
|
|
29
|
-
"@devvit/shared-types": "0.11.19-next-2025-07-
|
|
26
|
+
"@devvit/protos": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
27
|
+
"@devvit/public-api": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
28
|
+
"@devvit/shared": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
29
|
+
"@devvit/shared-types": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@devvit/repo-tools": "0.11.19-next-2025-07-
|
|
33
|
-
"@devvit/tsconfig": "0.11.19-next-2025-07-
|
|
32
|
+
"@devvit/repo-tools": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
33
|
+
"@devvit/tsconfig": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
34
34
|
"eslint": "9.11.1",
|
|
35
35
|
"typescript": "5.8.3",
|
|
36
36
|
"vitest": "1.6.1"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"directory": "dist"
|
|
40
40
|
},
|
|
41
41
|
"source": "./src/index.ts",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "0e0ea85be41aa3f3d5c3c685ae2b6e3ebfc919f0"
|
|
43
43
|
}
|