@zhin.js/plugin-answers 0.0.9 → 0.0.11
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/lib/config.d.ts +13 -6
- package/lib/config.d.ts.map +1 -1
- package/package.json +6 -6
package/lib/config.d.ts
CHANGED
|
@@ -11,12 +11,19 @@ export declare const answersConfig: Schema<Schema.InputRecord<{
|
|
|
11
11
|
timezone: Schema<string, string> & Schema.Present;
|
|
12
12
|
quizTimeoutSeconds: Schema<number, number> & Schema.Present;
|
|
13
13
|
enableDrivingQuiz: Schema<boolean, boolean> & Schema.Present;
|
|
14
|
-
}>, {
|
|
15
|
-
dailyStable: boolean;
|
|
16
|
-
timezone: string;
|
|
17
|
-
quizTimeoutSeconds: number;
|
|
18
|
-
enableDrivingQuiz: boolean;
|
|
19
|
-
} & {
|
|
14
|
+
}>, Schema.RecordTypes<{
|
|
15
|
+
dailyStable: Schema<boolean, boolean> & Schema.Present;
|
|
16
|
+
timezone: Schema<string, string> & Schema.Present;
|
|
17
|
+
quizTimeoutSeconds: Schema<number, number> & Schema.Present;
|
|
18
|
+
enableDrivingQuiz: Schema<boolean, boolean> & Schema.Present;
|
|
19
|
+
}>> & {
|
|
20
|
+
readonly output?: Schema.RecordTypes<{
|
|
21
|
+
dailyStable: Schema<boolean, boolean> & Schema.Present;
|
|
22
|
+
timezone: Schema<string, string> & Schema.Present;
|
|
23
|
+
quizTimeoutSeconds: Schema<number, number> & Schema.Present;
|
|
24
|
+
enableDrivingQuiz: Schema<boolean, boolean> & Schema.Present;
|
|
25
|
+
}> | undefined;
|
|
26
|
+
};
|
|
20
27
|
export type AnswersConfig = Schema.Output<typeof answersConfig>;
|
|
21
28
|
/** Missing fields fall back to defaults so commands stay usable when Runtime passes a partial view. */
|
|
22
29
|
export declare function resolveAnswersConfig(config: Partial<AnswersConfig> | undefined): AnswersConfig;
|
package/lib/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,eAAO,MAAM,sBAAsB;;;;;EAKjC,CAAC;AAEH,gIAAgI;AAChI,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,eAAO,MAAM,sBAAsB;;;;;EAKjC,CAAC;AAEH,gIAAgI;AAChI,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;CAKxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAEhE,uGAAuG;AACvG,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,SAAS,GAAG,aAAa,CAE9F"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/plugin-answers",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "Zhin.js 答案之书、趣味选择题与交规小测(原创内容,Plugin Runtime)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
},
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@zhin.js/core": "1.1.
|
|
40
|
+
"@zhin.js/core": "1.1.57"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"typescript": "^6.0.3",
|
|
44
44
|
"vitest": "^4.1.10",
|
|
45
|
-
"zhin.js": "1.1.
|
|
45
|
+
"zhin.js": "1.1.22"
|
|
46
46
|
},
|
|
47
47
|
"repository": {
|
|
48
48
|
"type": "git",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"plugins": []
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@zhin.js/command": "^1.1.
|
|
79
|
-
"@zhin.js/middleware": "^1.1.
|
|
80
|
-
"zhin.js": "^1.1.
|
|
78
|
+
"@zhin.js/command": "^1.1.15",
|
|
79
|
+
"@zhin.js/middleware": "^1.1.14",
|
|
80
|
+
"zhin.js": "^1.1.22"
|
|
81
81
|
},
|
|
82
82
|
"peerDependenciesMeta": {
|
|
83
83
|
"@zhin.js/command": {
|