@xdevplatform/xdk 0.1.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.
- package/README.md +348 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/index.cjs +14431 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +10366 -0
- package/dist/index.d.ts +10366 -0
- package/dist/index.js +14372 -0
- package/dist/index.js.map +1 -0
- package/package.json +126 -0
package/package.json
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xdevplatform/xdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A modern TypeScript/JavaScript SDK for the X API",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.cjs",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./client": {
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"require": "./dist/index.cjs",
|
|
18
|
+
"types": "./dist/index.d.ts"
|
|
19
|
+
},
|
|
20
|
+
"./http-client": {
|
|
21
|
+
"import": "./dist/index.js",
|
|
22
|
+
"require": "./dist/index.cjs",
|
|
23
|
+
"types": "./dist/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./oauth2": {
|
|
26
|
+
"import": "./dist/index.js",
|
|
27
|
+
"require": "./dist/index.cjs",
|
|
28
|
+
"types": "./dist/index.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./oauth1": {
|
|
31
|
+
"import": "./dist/index.js",
|
|
32
|
+
"require": "./dist/index.cjs",
|
|
33
|
+
"types": "./dist/index.d.ts"
|
|
34
|
+
},
|
|
35
|
+
"./crypto": {
|
|
36
|
+
"import": "./dist/index.js",
|
|
37
|
+
"require": "./dist/index.cjs",
|
|
38
|
+
"types": "./dist/index.d.ts"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"README.md"
|
|
44
|
+
],
|
|
45
|
+
"keywords": [
|
|
46
|
+
"x-api",
|
|
47
|
+
"twitter-api",
|
|
48
|
+
"typescript",
|
|
49
|
+
"sdk",
|
|
50
|
+
"api-client",
|
|
51
|
+
"oauth2",
|
|
52
|
+
"oauth1",
|
|
53
|
+
"bearer-token",
|
|
54
|
+
"crypto",
|
|
55
|
+
"hmac-sha1",
|
|
56
|
+
"pkce"
|
|
57
|
+
],
|
|
58
|
+
"author": "X API SDK Team",
|
|
59
|
+
"license": "MIT",
|
|
60
|
+
"repository": {
|
|
61
|
+
"type": "git",
|
|
62
|
+
"url": "https://github.com/xdevplatform/xdk"
|
|
63
|
+
},
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/xdevplatform/xdk/issues"
|
|
66
|
+
},
|
|
67
|
+
"homepage": "https://github.com/xdevplatform/xdk",
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"access": "public"
|
|
70
|
+
},
|
|
71
|
+
"engines": {
|
|
72
|
+
"node": ">=16.14"
|
|
73
|
+
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"node-fetch": "^3.3.0"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@types/node": "^20.0.0",
|
|
79
|
+
"typescript": "^5.0.0",
|
|
80
|
+
"tsup": "^7.0.0",
|
|
81
|
+
"prettier": "^3.0.0",
|
|
82
|
+
"eslint": "^8.0.0",
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
84
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
85
|
+
"typedoc": "^0.25.0",
|
|
86
|
+
"typedoc-plugin-markdown": "^3.15.0",
|
|
87
|
+
"chokidar": "^3.5.3",
|
|
88
|
+
"http-server": "^14.1.1"
|
|
89
|
+
},
|
|
90
|
+
"scripts": {
|
|
91
|
+
"build": "tsup",
|
|
92
|
+
"dev": "tsup --watch",
|
|
93
|
+
"clean": "rm -rf dist",
|
|
94
|
+
"format": "prettier --write \"src/**/*.{ts,js}\"",
|
|
95
|
+
"lint": "eslint \"src/**/*.{ts,js}\"",
|
|
96
|
+
"type-check": "tsc --noEmit",
|
|
97
|
+
"test": "echo \"No tests specified\" && exit 0",
|
|
98
|
+
"docs": "typedoc",
|
|
99
|
+
"docs:build": "typedoc && echo \"Documentation generated in docs/\"",
|
|
100
|
+
"docs:build-simple": "node generate-docs-simple.js",
|
|
101
|
+
"docs:serve": "npx http-server docs -p 8080 -o",
|
|
102
|
+
"docs:watch": "node watch-docs.js",
|
|
103
|
+
"docs:mintlify": "node process-for-mintlify.js"
|
|
104
|
+
},
|
|
105
|
+
"prettier": {
|
|
106
|
+
"semi": true,
|
|
107
|
+
"trailingComma": "es5",
|
|
108
|
+
"singleQuote": true,
|
|
109
|
+
"printWidth": 80,
|
|
110
|
+
"tabWidth": 2
|
|
111
|
+
},
|
|
112
|
+
"eslintConfig": {
|
|
113
|
+
"extends": [
|
|
114
|
+
"@typescript-eslint/recommended"
|
|
115
|
+
],
|
|
116
|
+
"parser": "@typescript-eslint/parser",
|
|
117
|
+
"plugins": [
|
|
118
|
+
"@typescript-eslint"
|
|
119
|
+
],
|
|
120
|
+
"rules": {
|
|
121
|
+
"@typescript-eslint/no-unused-vars": "error",
|
|
122
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
123
|
+
"@typescript-eslint/explicit-module-boundary-types": "off"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|