@kedaruma/revlm-shared 1.0.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.
Files changed (2) hide show
  1. package/README.md +20 -0
  2. package/package.json +69 -0
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # @kedaruma/revlm-shared
2
+
3
+ English documentation | [日本語ドキュメントはこちら](README-ja.md)
4
+
5
+ Shared TypeScript declarations, BSON helpers, and auth utilities consumed by both the Revlm server and client packages.
6
+
7
+ ## Contents
8
+
9
+ - `models/` – user and MongoDB document types
10
+ - `auth-token` – HKDF + AES-GCM token utilities used for provisional login
11
+ - `utils/asserts` – runtime `ensureDefined` and related helpers
12
+
13
+ ## Build
14
+
15
+ ```bash
16
+ pnpm install
17
+ pnpm run build
18
+ ```
19
+
20
+ Running `pnpm run build` compiles `src` to `dist` with `.d.ts` outputs so the other packages can consume them via project references.
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@kedaruma/revlm-shared",
3
+ "version": "1.0.0",
4
+ "private": false,
5
+ "description": "Shared TypeScript types, auth helpers, and utilities for the Revlm client/server packages.",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.js"
14
+ },
15
+ "./auth-token": {
16
+ "types": "./dist/auth-token.d.ts",
17
+ "import": "./dist/auth-token.js",
18
+ "require": "./dist/auth-token.js"
19
+ },
20
+ "./models/user-types": {
21
+ "types": "./dist/models/user-types.d.ts",
22
+ "import": "./dist/models/user-types.js",
23
+ "require": "./dist/models/user-types.js"
24
+ },
25
+ "./utils/asserts": {
26
+ "types": "./dist/utils/asserts.d.ts",
27
+ "import": "./dist/utils/asserts.js",
28
+ "require": "./dist/utils/asserts.js"
29
+ },
30
+ "./models/*": {
31
+ "types": "./dist/models/*.d.ts",
32
+ "import": "./dist/models/*.js",
33
+ "require": "./dist/models/*.js"
34
+ }
35
+ },
36
+ "typesVersions": {
37
+ "*": {
38
+ "models/*": [
39
+ "dist/models/*.d.ts"
40
+ ],
41
+ "models/user-types": [
42
+ "dist/models/user-types.d.ts"
43
+ ],
44
+ "auth-token": [
45
+ "dist/auth-token.d.ts"
46
+ ],
47
+ "utils/asserts": [
48
+ "dist/utils/asserts.d.ts"
49
+ ],
50
+ "*": [
51
+ "dist/index.d.ts"
52
+ ]
53
+ }
54
+ },
55
+ "files": [
56
+ "dist/"
57
+ ],
58
+ "license": "ISC",
59
+ "publishConfig": {
60
+ "access": "public"
61
+ },
62
+ "dependencies": {
63
+ "bson": "^6.10.4"
64
+ },
65
+ "scripts": {
66
+ "build": "tsc -p tsconfig.json",
67
+ "clean": "rm -rf dist node_modules kedaruma-revlm-shared-*.tgz"
68
+ }
69
+ }