@devvit/shared-types 0.12.0-next-2025-04-12-5721a9506.0 → 0.12.0-next-2025-04-24-137462f28.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/Header.d.ts +2 -0
- package/Header.d.ts.map +1 -1
- package/Header.js +2 -0
- package/package.json +6 -6
- package/webbit.d.ts +7 -0
- package/webbit.d.ts.map +1 -0
- package/webbit.js +1 -0
package/Header.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export declare const Header: Readonly<{
|
|
|
36
36
|
AppDependencies: "devvit-app-dependencies";
|
|
37
37
|
}>;
|
|
38
38
|
export type Header = (typeof Header)[keyof typeof Header];
|
|
39
|
+
/** Prefix common to all Devvit system headers. */
|
|
40
|
+
export declare const headerPrefix: string;
|
|
39
41
|
/** See DevvitGlobal and ContextDebugInfo. */
|
|
40
42
|
export declare const enum AppDebug {
|
|
41
43
|
/** Enable debug logging for blocks. */
|
package/Header.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../src/Header.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BjB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAE1D,6CAA6C;AAC7C,0BAAkB,QAAQ;IACxB,uCAAuC;IACvC,MAAM,WAAW;IACjB;;;;OAIG;IACH,aAAa,kBAAkB;IAC/B,6BAA6B;IAC7B,SAAS,cAAc;IACvB,+DAA+D;IAC/D,QAAQ,aAAa;IACrB,6CAA6C;IAC7C,OAAO,YAAY;IACnB,8DAA8D;IAC9D,OAAO,YAAY;IACnB,2DAA2D;IAC3D,QAAQ,aAAa;IACrB,6CAA6C;IAC7C,QAAQ,aAAa;IACrB,+BAA+B;IAC/B,SAAS,cAAc;IACvB,yBAAyB;IACzB,OAAO,YAAY;CACpB"}
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../src/Header.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BjB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAE1D,kDAAkD;AAClD,eAAO,MAAM,YAAY,EAAE,MAAkB,CAAC;AAE9C,6CAA6C;AAC7C,0BAAkB,QAAQ;IACxB,uCAAuC;IACvC,MAAM,WAAW;IACjB;;;;OAIG;IACH,aAAa,kBAAkB;IAC/B,6BAA6B;IAC7B,SAAS,cAAc;IACvB,+DAA+D;IAC/D,QAAQ,aAAa;IACrB,6CAA6C;IAC7C,OAAO,YAAY;IACnB,8DAA8D;IAC9D,OAAO,YAAY;IACnB,2DAA2D;IAC3D,QAAQ,aAAa;IACrB,6CAA6C;IAC7C,QAAQ,aAAa;IACrB,+BAA+B;IAC/B,SAAS,cAAc;IACvB,yBAAyB;IACzB,OAAO,YAAY;CACpB"}
|
package/Header.js
CHANGED
|
@@ -35,6 +35,8 @@ export const Header = Object.freeze({
|
|
|
35
35
|
Traceparent: 'traceparent',
|
|
36
36
|
AppDependencies: 'devvit-app-dependencies',
|
|
37
37
|
});
|
|
38
|
+
/** Prefix common to all Devvit system headers. */
|
|
39
|
+
export const headerPrefix = 'devvit-';
|
|
38
40
|
/** See DevvitGlobal and ContextDebugInfo. */
|
|
39
41
|
export var AppDebug;
|
|
40
42
|
(function (AppDebug) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/shared-types",
|
|
3
|
-
"version": "0.12.0-next-2025-04-
|
|
3
|
+
"version": "0.12.0-next-2025-04-24-137462f28.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"types": "./index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@devvit/protos": "0.12.0-next-2025-04-
|
|
28
|
+
"@devvit/protos": "0.12.0-next-2025-04-24-137462f28.0",
|
|
29
29
|
"jsonschema": "1.4.1",
|
|
30
30
|
"uuid": "9.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@devvit/repo-tools": "0.12.0-next-2025-04-
|
|
34
|
-
"@devvit/tsconfig": "0.12.0-next-2025-04-
|
|
33
|
+
"@devvit/repo-tools": "0.12.0-next-2025-04-24-137462f28.0",
|
|
34
|
+
"@devvit/tsconfig": "0.12.0-next-2025-04-24-137462f28.0",
|
|
35
35
|
"@types/redis-mock": "0.17.1",
|
|
36
36
|
"@types/uuid": "9.0.0",
|
|
37
37
|
"chokidar-cli": "3.0.0",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"redis": "4.6.6",
|
|
41
41
|
"redis-mock": "0.56.3",
|
|
42
42
|
"typescript": "5.3.2",
|
|
43
|
-
"vitest": "1.6.
|
|
43
|
+
"vitest": "1.6.1"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"directory": "dist"
|
|
47
47
|
},
|
|
48
48
|
"source": "./src/index.ts",
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "6c680b1ce74f21ae0200dc527053c7382e75fd58"
|
|
50
50
|
}
|
package/webbit.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Signed Webbit user JWT (header, payload, signature base64 strings separated by dots).
|
|
2
|
+
* Users shouldn't share their JWTs with others, but perfectly fine for a given user to see.
|
|
3
|
+
* Named WebbitToken to match GQL's definition.
|
|
4
|
+
* */
|
|
5
|
+
export type WebbitToken = `${string}.${string}.${string}`;
|
|
6
|
+
export declare const noWebbitToken: WebbitToken;
|
|
7
|
+
//# sourceMappingURL=webbit.d.ts.map
|
package/webbit.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webbit.d.ts","sourceRoot":"","sources":["../src/webbit.ts"],"names":[],"mappings":"AAAA;;;KAGK;AACL,MAAM,MAAM,WAAW,GAAG,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;AAC1D,eAAO,MAAM,aAAa,EAAE,WAAqB,CAAC"}
|
package/webbit.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const noWebbitToken = `0.0.0`;
|