@opys/authliberty 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. package/README.md +46 -0
  2. package/package.json +3 -3
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # @opys/authliberty
2
+
3
+ [![npm](https://img.shields.io/npm/v/@opys/authliberty.svg)](https://www.npmjs.com/package/@opys/authliberty)
4
+
5
+ [AuthLiberty](https://gitlab.com/harmoniya/authliberty) plugin — an
6
+ `authlib-injector`-style `-javaagent` that rewires Minecraft's
7
+ Mojang-account calls to a self-hosted Yggdrasil server. Resolves
8
+ the agent JAR from a GitLab generic package registry.
9
+
10
+ ```sh
11
+ npm install @opys/authliberty
12
+ ```
13
+
14
+ ```js
15
+ import { defineConfig } from '@opys/dev';
16
+ import { minecraft } from '@opys/minecraft-vanilla';
17
+ import { authliberty } from '@opys/authliberty';
18
+ import { java } from '@opys/java';
19
+
20
+ export default defineConfig({
21
+ output: 'opys.json',
22
+ plugins: [
23
+ minecraft('1.20.1'),
24
+ authliberty('0.3', {
25
+ hosts: { authserver: 'https://auth.example.com' },
26
+ }),
27
+ java('17'),
28
+ ],
29
+ manifest: {
30
+ command: ({ java }) => java.bin,
31
+ args: ({ minecraft, authliberty }) => [
32
+ authliberty.jvmArgs, // -javaagent argument
33
+ minecraft.jvmArgs,
34
+ minecraft.mainClass,
35
+ minecraft.gameArgs,
36
+ ],
37
+ workdir: '${game_directory}',
38
+ },
39
+ });
40
+ ```
41
+
42
+ Accepts an exact version (`'0.3'`) or `'latest'` (the auto-updating
43
+ `latest` channel — sha256 is frozen at build time).
44
+
45
+ Part of the [opys](https://github.com/harmoniya-net/opys) toolkit;
46
+ re-exported by [`@opys/minecraft`](https://www.npmjs.com/package/@opys/minecraft).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opys/authliberty",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "exports": {
@@ -15,8 +15,8 @@
15
15
  "test": "vitest run tests/unit --passWithNoTests"
16
16
  },
17
17
  "dependencies": {
18
- "@opys/core": "^0.1.6",
19
- "@opys/dev": "^0.1.6"
18
+ "@opys/core": "^0.1.7",
19
+ "@opys/dev": "^0.1.7"
20
20
  },
21
21
  "devDependencies": {
22
22
  "tsdown": "*",