@fungi.computer/ear-tag 0.0.0-stage → 0.0.1
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/LICENSE +21 -0
- package/README.md +149 -2
- package/dist/grants.d.ts +74 -0
- package/dist/grants.js +113 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +17 -0
- package/dist/keys-node.d.ts +8 -0
- package/dist/keys-node.js +22 -0
- package/dist/keys.d.ts +242 -0
- package/dist/keys.js +567 -0
- package/docs/api/README.md +16 -0
- package/docs/api/grants.md +191 -0
- package/docs/api/index.md +100 -0
- package/docs/api/keys-node.md +31 -0
- package/docs/api/keys.md +406 -0
- package/package.json +75 -3
package/package.json
CHANGED
|
@@ -1,6 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/ear-tag",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"author": "Levi <levi@technomancy.dev>",
|
|
5
|
+
"description": "Worker-safe bearer-key generation and hashing primitives",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./grants": {
|
|
16
|
+
"types": "./dist/grants.d.ts",
|
|
17
|
+
"import": "./dist/grants.js"
|
|
18
|
+
},
|
|
19
|
+
"./keys": {
|
|
20
|
+
"types": "./dist/keys.d.ts",
|
|
21
|
+
"import": "./dist/keys.js"
|
|
22
|
+
},
|
|
23
|
+
"./keys/node": {
|
|
24
|
+
"types": "./dist/keys-node.d.ts",
|
|
25
|
+
"import": "./dist/keys-node.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist",
|
|
30
|
+
"docs/api",
|
|
31
|
+
"README.md",
|
|
32
|
+
"LICENSE"
|
|
33
|
+
],
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@fungi.computer/cairn": "0.0.1",
|
|
36
|
+
"zod": "4.4.3"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@cloudflare/vitest-plugin": "1.1.2",
|
|
40
|
+
"@types/node": "24.13.3",
|
|
41
|
+
"typescript": "5.9.3",
|
|
42
|
+
"vitest": "4.1.11"
|
|
43
|
+
},
|
|
44
|
+
"botanical": {
|
|
45
|
+
"role": "package",
|
|
46
|
+
"operations": {
|
|
47
|
+
"lint": "required",
|
|
48
|
+
"typecheck": "required",
|
|
49
|
+
"build": "required",
|
|
50
|
+
"test": "required",
|
|
51
|
+
"docs": "required",
|
|
52
|
+
"pack": "required",
|
|
53
|
+
"smoke": "required",
|
|
54
|
+
"stranger": "required"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"license": "MIT",
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "git+https://github.com/fungi-computer/ear-tag.git"
|
|
61
|
+
},
|
|
62
|
+
"scripts": {
|
|
63
|
+
"lint": "eslint src test --max-warnings=0 && ../../node_modules/.bin/oxlint --config ../../oxlint.config.ts --deny-warnings src test",
|
|
64
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
65
|
+
"build": "pnpm run clean && tsc -p tsconfig.build.json",
|
|
66
|
+
"clean": "node --input-type=module --eval \"import { rm } from 'node:fs/promises'; await rm('dist', { recursive: true, force: true });\"",
|
|
67
|
+
"test": "pnpm run test:node && pnpm run test:cloudflare",
|
|
68
|
+
"test:node": "vitest run --config vitest.node.config.mjs",
|
|
69
|
+
"test:cloudflare": "vitest run --config vitest.cloudflare.config.mjs",
|
|
70
|
+
"docs": "tsx ../../tooling/repository/src/docs/cli.ts check --root ../..",
|
|
71
|
+
"docs:write": "tsx ../../tooling/repository/src/docs/cli.ts write --root ../..",
|
|
72
|
+
"pack": "mkdir -p ../../.botanical/ear-tag-pack && pnpm pack --pack-destination ../../.botanical/ear-tag-pack",
|
|
73
|
+
"smoke": "node --input-type=module -e \"import('./dist/index.js').then(({generateKey, hashKey}) => { const key = generateKey({ prefix: 'test' }); if (!key.startsWith('test_')) process.exit(1); return hashKey(key); }).then((hash) => { if (hash.length !== 64) process.exit(1); })\"",
|
|
74
|
+
"stranger": "tsx ../../tooling/repository/src/artifacts/cli.ts --repo-root ../.. .",
|
|
75
|
+
"format:check": "node ../../tooling/repository/scripts/format-package-check.mjs",
|
|
76
|
+
"lint:anti-slop": "node ../../tooling/repository/scripts/lint-package-anti-slop.mjs"
|
|
77
|
+
}
|
|
6
78
|
}
|