@revenium/anthropic 1.0.0 → 1.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.
Files changed (3) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +807 -807
  3. package/package.json +82 -74
package/package.json CHANGED
@@ -1,74 +1,82 @@
1
- {
2
- "name": "@revenium/anthropic",
3
- "version": "1.0.0",
4
- "description": "Transparent TypeScript middleware for automatic Revenium usage tracking with Anthropic Claude AI",
5
- "main": "dist/cjs/index.js",
6
- "module": "dist/esm/index.js",
7
- "types": "dist/types/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": {
11
- "types": "./dist/types/index.d.ts",
12
- "default": "./dist/esm/index.js"
13
- },
14
- "require": {
15
- "types": "./dist/types/index.d.ts",
16
- "default": "./dist/cjs/index.js"
17
- }
18
- }
19
- },
20
- "scripts": {
21
- "build": "npm run build:cjs && npm run build:esm && npm run build:types && npm run fix-esm",
22
- "build:cjs": "tsc -p tsconfig.json",
23
- "build:esm": "tsc -p tsconfig.esm.json",
24
- "build:types": "tsc -p tsconfig.types.json",
25
- "fix-esm": "node scripts/fix-esm-imports.js",
26
- "dev": "tsc --watch",
27
- "test": "npm run build && echo 'Build successful - no automated tests configured'",
28
- "example": "npm run build && tsx examples/basic-usage.ts",
29
- "example:basic": "npm run build && tsx examples/basic-usage.ts",
30
- "example:advanced": "npm run build && tsx examples/advanced-features.ts",
31
- "clean": "rimraf dist",
32
- "prepublishOnly": "npm run clean && npm run build"
33
- },
34
- "keywords": [
35
- "anthropic",
36
- "claude",
37
- "revenium",
38
- "middleware",
39
- "typescript",
40
- "nodejs",
41
- "usage-tracking",
42
- "metering",
43
- "ai"
44
- ],
45
- "author": "Revenium",
46
- "license": "MIT",
47
- "dependencies": {
48
- "node-fetch": "^3.3.2"
49
- },
50
- "peerDependencies": {
51
- "@anthropic-ai/sdk": ">=0.24.0"
52
- },
53
- "devDependencies": {
54
- "@anthropic-ai/sdk": "^0.55.1",
55
- "@types/node": "^20.0.0",
56
- "@types/node-fetch": "^2.6.12",
57
- "dotenv": "^16.5.0",
58
- "rimraf": "^6.0.1",
59
- "ts-node": "^10.9.2",
60
- "tsx": "^4.20.3",
61
- "typescript": "^5.8.3"
62
- },
63
- "files": [
64
- "dist/cjs/**/*.js",
65
- "dist/esm/**/*.js",
66
- "dist/types/**/*.d.ts",
67
- "README.md",
68
- "LICENSE"
69
- ],
70
- "sideEffects": false,
71
- "engines": {
72
- "node": ">=16.0.0"
73
- }
74
- }
1
+ {
2
+ "name": "@revenium/anthropic",
3
+ "version": "1.0.1",
4
+ "description": "Transparent TypeScript middleware for automatic Revenium usage tracking with Anthropic Claude AI",
5
+ "main": "dist/cjs/index.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/types/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/types/index.d.ts",
12
+ "default": "./dist/esm/index.js"
13
+ },
14
+ "require": {
15
+ "types": "./dist/types/index.d.ts",
16
+ "default": "./dist/cjs/index.js"
17
+ }
18
+ }
19
+ },
20
+ "scripts": {
21
+ "build": "npm run build:cjs && npm run build:esm && npm run build:types && npm run fix-esm",
22
+ "build:cjs": "tsc -p tsconfig.json",
23
+ "build:esm": "tsc -p tsconfig.esm.json",
24
+ "build:types": "tsc -p tsconfig.types.json",
25
+ "fix-esm": "node scripts/fix-esm-imports.js",
26
+ "dev": "tsc --watch",
27
+ "test": "npm run build && echo 'Build successful - no automated tests configured'",
28
+ "example": "npm run build && tsx examples/basic-usage.ts",
29
+ "example:basic": "npm run build && tsx examples/basic-usage.ts",
30
+ "example:advanced": "npm run build && tsx examples/advanced-features.ts",
31
+ "clean": "rimraf dist",
32
+ "prepublishOnly": "npm run clean && npm run build"
33
+ },
34
+ "keywords": [
35
+ "anthropic",
36
+ "claude",
37
+ "revenium",
38
+ "middleware",
39
+ "typescript",
40
+ "nodejs",
41
+ "usage-tracking",
42
+ "metering",
43
+ "ai"
44
+ ],
45
+ "author": "Revenium",
46
+ "license": "MIT",
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "git+https://github.com/revenium/revenium-middleware-anthropic-node.git"
50
+ },
51
+ "homepage": "https://github.com/revenium/revenium-middleware-anthropic-node#readme",
52
+ "bugs": {
53
+ "url": "https://github.com/revenium/revenium-middleware-anthropic-node/issues"
54
+ },
55
+ "dependencies": {
56
+ "node-fetch": "^3.3.2"
57
+ },
58
+ "peerDependencies": {
59
+ "@anthropic-ai/sdk": ">=0.24.0"
60
+ },
61
+ "devDependencies": {
62
+ "@anthropic-ai/sdk": "^0.55.1",
63
+ "@types/node": "^20.0.0",
64
+ "@types/node-fetch": "^2.6.12",
65
+ "dotenv": "^16.5.0",
66
+ "rimraf": "^6.0.1",
67
+ "ts-node": "^10.9.2",
68
+ "tsx": "^4.20.3",
69
+ "typescript": "^5.8.3"
70
+ },
71
+ "files": [
72
+ "dist/cjs/**/*.js",
73
+ "dist/esm/**/*.js",
74
+ "dist/types/**/*.d.ts",
75
+ "README.md",
76
+ "LICENSE"
77
+ ],
78
+ "sideEffects": false,
79
+ "engines": {
80
+ "node": ">=16.0.0"
81
+ }
82
+ }