@simeonradivoev/gameflow-sdk 1.5.2 → 1.6.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/build.ts +1 -1
- package/hooks/auth.ts +2 -1
- package/hooks/games.ts +1 -1
- package/index.ts +1 -0
- package/package.json +2 -2
- package/shared.ts +8 -0
package/build.ts
CHANGED
|
@@ -19,7 +19,7 @@ await Bun.build({
|
|
|
19
19
|
entrypoints: [values.entry],
|
|
20
20
|
outdir: values.outdir,
|
|
21
21
|
minify: values.minify,
|
|
22
|
-
sourcemap: values.sourcemap,
|
|
22
|
+
sourcemap: values.sourcemap as any,
|
|
23
23
|
external: [...Object.keys(pkg.peerDependencies), pkg.name],
|
|
24
24
|
target: "bun",
|
|
25
25
|
});
|
package/hooks/auth.ts
CHANGED
package/hooks/games.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { EmulatorPackageType, GameListFilterType, CommandEntry, DownloadInfo, EmulatorSourceEntryType, EmulatorSupport, EmulatorSystem, FrontEndCollection, FrontEndFilterSets, FrontEndGameType, FrontEndGameTypeDetailed, FrontEndGameTypeWithIds, FrontEndId, FrontEndPlatformType, GameLookup, SaveFileChange, SaveSlots } from '../shared';
|
|
3
|
-
import { SyncBailHook, AsyncSeriesHook, AsyncSeriesBailHook,
|
|
3
|
+
import { SyncBailHook, AsyncSeriesHook, AsyncSeriesBailHook, AsyncSeriesWaterfallHook } from 'tapable';
|
|
4
4
|
|
|
5
5
|
export default class GameHooks
|
|
6
6
|
{
|
package/index.ts
CHANGED
|
@@ -38,6 +38,7 @@ export const PluginDescriptionSchema = z.object({
|
|
|
38
38
|
description: z.string().optional(),
|
|
39
39
|
icon: z.url().optional().describe("Can be an external URL to an image or a data url"),
|
|
40
40
|
keywords: z.array(z.string()).optional(),
|
|
41
|
+
peerDependencies: z.record(z.string(), z.string()).optional(),
|
|
41
42
|
category: z.string().default("other"),
|
|
42
43
|
main: z.string().describe("The main entry. It must export a default class implementing PluginType"),
|
|
43
44
|
canDisable: z.boolean().default(true).optional().describe("Can the plugin be disabled or enabled by the user")
|
package/package.json
CHANGED
package/shared.ts
CHANGED
|
@@ -184,6 +184,7 @@ export const PluginEntrySchema = z.object({
|
|
|
184
184
|
}),
|
|
185
185
|
searchScore: z.number(),
|
|
186
186
|
installed: z.boolean(),
|
|
187
|
+
update: z.object({ from: z.string() }).optional(),
|
|
187
188
|
package: z.object({
|
|
188
189
|
name: z.string(),
|
|
189
190
|
keywords: z.string().array(),
|
|
@@ -501,6 +502,13 @@ export interface FrontendPlugin
|
|
|
501
502
|
hasSettings: boolean;
|
|
502
503
|
version: string;
|
|
503
504
|
icon?: string;
|
|
505
|
+
update?: PluginUpdateCheck;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export interface PluginUpdateCheck
|
|
509
|
+
{
|
|
510
|
+
current: string;
|
|
511
|
+
new: string;
|
|
504
512
|
}
|
|
505
513
|
|
|
506
514
|
export type PluginSourceType = "builtin" | "store";
|