@revenium/perplexity 2.0.7 → 2.0.8
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/.env.example +10 -0
- package/CHANGELOG.md +82 -113
- package/LICENSE +21 -21
- package/README.md +408 -376
- package/SECURITY.md +34 -34
- package/examples/README.md +274 -230
- package/examples/advanced.ts +123 -123
- package/examples/basic.ts +45 -45
- package/examples/getting_started.ts +41 -41
- package/examples/metadata.ts +68 -68
- package/examples/stream.ts +53 -53
- package/package.json +80 -72
package/package.json
CHANGED
|
@@ -1,72 +1,80 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@revenium/perplexity",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "NodeJS middleware for Perplexity AI API with Revenium metering",
|
|
5
|
-
"homepage": "https://github.com/revenium/revenium-middleware-perplexity-node#readme",
|
|
6
|
-
"bugs": {
|
|
7
|
-
"url": "https://github.com/revenium/revenium-middleware-perplexity-node/issues"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/revenium/revenium-middleware-perplexity-node.git"
|
|
12
|
-
},
|
|
13
|
-
"main": "dist/cjs/index.js",
|
|
14
|
-
"module": "dist/esm/index.js",
|
|
15
|
-
"types": "dist/types/index.d.ts",
|
|
16
|
-
"exports": {
|
|
17
|
-
".": {
|
|
18
|
-
"import":
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
}
|
|
72
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@revenium/perplexity",
|
|
3
|
+
"version": "2.0.8",
|
|
4
|
+
"description": "NodeJS middleware for Perplexity AI API with Revenium metering",
|
|
5
|
+
"homepage": "https://github.com/revenium/revenium-middleware-perplexity-node#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/revenium/revenium-middleware-perplexity-node/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/revenium/revenium-middleware-perplexity-node.git"
|
|
12
|
+
},
|
|
13
|
+
"main": "dist/cjs/index.js",
|
|
14
|
+
"module": "dist/esm/index.js",
|
|
15
|
+
"types": "dist/types/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"import": {
|
|
19
|
+
"types": "./dist/types/index.d.ts",
|
|
20
|
+
"default": "./dist/esm/index.js"
|
|
21
|
+
},
|
|
22
|
+
"require": {
|
|
23
|
+
"types": "./dist/types/index.d.ts",
|
|
24
|
+
"default": "./dist/cjs/index.js"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist/",
|
|
30
|
+
"examples/",
|
|
31
|
+
".env.example",
|
|
32
|
+
"README.md",
|
|
33
|
+
"CHANGELOG.md",
|
|
34
|
+
"LICENSE",
|
|
35
|
+
"SECURITY.md"
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"clean": "rm -rf dist",
|
|
39
|
+
"build:esm": "tsc -p tsconfig.esm.json",
|
|
40
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
41
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
42
|
+
"build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:types",
|
|
43
|
+
"prepublishOnly": "npm run build",
|
|
44
|
+
"example:getting-started": "npx tsx examples/getting_started.ts",
|
|
45
|
+
"example:basic": "npx tsx examples/basic.ts",
|
|
46
|
+
"example:metadata": "npx tsx examples/metadata.ts",
|
|
47
|
+
"example:advanced": "npx tsx examples/advanced.ts",
|
|
48
|
+
"example:stream": "npx tsx examples/stream.ts",
|
|
49
|
+
"test": "npm run example:getting-started && npm run example:stream"
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"revenium",
|
|
53
|
+
"middleware",
|
|
54
|
+
"perplexity",
|
|
55
|
+
"ai",
|
|
56
|
+
"chat",
|
|
57
|
+
"completion",
|
|
58
|
+
"metering",
|
|
59
|
+
"monitoring",
|
|
60
|
+
"typescript"
|
|
61
|
+
],
|
|
62
|
+
"author": "Revenium",
|
|
63
|
+
"license": "MIT",
|
|
64
|
+
"type": "commonjs",
|
|
65
|
+
"engines": {
|
|
66
|
+
"node": ">=20.0.0"
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"dotenv": "^17.2.2",
|
|
70
|
+
"uuid": "^13.0.0"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@types/node": "^24.7.1",
|
|
74
|
+
"tsx": "^4.19.2",
|
|
75
|
+
"typescript": "^5.9.2"
|
|
76
|
+
},
|
|
77
|
+
"peerDependencies": {
|
|
78
|
+
"openai": "^5.0.0"
|
|
79
|
+
}
|
|
80
|
+
}
|