@opys/binding 0.3.0 → 0.4.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/index.d.ts CHANGED
@@ -267,6 +267,18 @@ export declare namespace lwjgl3ify {
267
267
  /** The canonical document index base URL. */
268
268
  export function defaultLwjgl3ifyIndex(): string
269
269
  }
270
+ export declare namespace minecraftServer {
271
+ /** The versions a core has a server for, newest first. */
272
+ export function serverVersions(core: Json, apisRaw?: Json | undefined | null): Promise<Json>
273
+ /** The builds a core has of one version, newest first. */
274
+ export function serverBuilds(core: Json, version: string, apisRaw?: Json | undefined | null): Promise<Json>
275
+ /** What a config resolves to: `{ pinned, label, files }`. */
276
+ export function resolveServer(options: Json): Promise<Json>
277
+ /** Run the `server` plugin: `{ output: { name, contribution }, label, pinned }`. */
278
+ export function buildServer(options: Json): Promise<Json>
279
+ /** The feature that has an install write `eula.txt`. */
280
+ export function eulaFeature(): string
281
+ }
270
282
  export declare namespace minecraftServerlist {
271
283
  /**
272
284
  * Run the `serverlist` plugin: `{ name, contribution }`, the contribution
@@ -427,6 +439,12 @@ export declare namespace runtime {
427
439
  * The source decodes itself — see `opys_runtime::ManifestSource`.
428
440
  */
429
441
  export function install(source: Json, options?: InstallOptionsJs | undefined | null, progress?: (...args: any[]) => any | undefined | null): Promise<unknown>
442
+ /**
443
+ * The head of the bundle a source names, or `null` for a manifest in
444
+ * memory. The manifest is left unread, and a URL is asked for the front of
445
+ * the file alone.
446
+ */
447
+ export function readHead(source: Json): Promise<Json | null>
430
448
  export interface LaunchSpec {
431
449
  command: string
432
450
  args: Array<string>
Binary file
Binary file
package/index.js CHANGED
@@ -310,7 +310,7 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { authliberty, bifrost, bundle, cleanroom, core, curseforge, dev, dgpuj, fabric, forge, java, links, lwjgl3ify, minecraftServerlist, minecraftVanilla, modrinth, mojang, neoforge, runtime } = nativeBinding
313
+ const { authliberty, bifrost, bundle, cleanroom, core, curseforge, dev, dgpuj, fabric, forge, java, links, lwjgl3ify, minecraftServer, minecraftServerlist, minecraftVanilla, modrinth, mojang, neoforge, runtime } = nativeBinding
314
314
 
315
315
  module.exports.authliberty = authliberty
316
316
  module.exports.bifrost = bifrost
@@ -325,6 +325,7 @@ module.exports.forge = forge
325
325
  module.exports.java = java
326
326
  module.exports.links = links
327
327
  module.exports.lwjgl3ify = lwjgl3ify
328
+ module.exports.minecraftServer = minecraftServer
328
329
  module.exports.minecraftServerlist = minecraftServerlist
329
330
  module.exports.minecraftVanilla = minecraftVanilla
330
331
  module.exports.modrinth = modrinth
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opys/binding",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "The napi-rs addon of opys: every native function, one namespace per package. Not consumed directly.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -37,12 +37,12 @@
37
37
  "access": "public"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@opys/binding-darwin-arm64": "0.3.0",
41
- "@opys/binding-darwin-x64": "0.3.0",
42
- "@opys/binding-linux-arm64-gnu": "0.3.0",
43
- "@opys/binding-linux-arm64-musl": "0.3.0",
44
- "@opys/binding-linux-x64-gnu": "0.3.0",
45
- "@opys/binding-linux-x64-musl": "0.3.0",
46
- "@opys/binding-win32-x64-msvc": "0.3.0"
40
+ "@opys/binding-darwin-arm64": "0.4.0",
41
+ "@opys/binding-darwin-x64": "0.4.0",
42
+ "@opys/binding-linux-arm64-gnu": "0.4.0",
43
+ "@opys/binding-linux-arm64-musl": "0.4.0",
44
+ "@opys/binding-linux-x64-gnu": "0.4.0",
45
+ "@opys/binding-linux-x64-musl": "0.4.0",
46
+ "@opys/binding-win32-x64-msvc": "0.4.0"
47
47
  }
48
48
  }