@kkkermit/trading212.js 0.0.0-stage → 0.1.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/package.json CHANGED
@@ -1,6 +1,135 @@
1
1
  {
2
- "name": "@kkkermit/trading212.js",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@kkkermit/trading212.js",
3
+ "version": "0.1.1",
4
+ "description": "Unofficial, zero-dependency TypeScript client for the Trading 212 Public API: typed, rate-limit aware, safe around live money, with errors that tell you how to fix them.",
5
+ "keywords": [
6
+ "trading212",
7
+ "trading 212",
8
+ "t212",
9
+ "stocks",
10
+ "isa",
11
+ "investing",
12
+ "trading",
13
+ "api",
14
+ "sdk",
15
+ "client",
16
+ "typescript"
17
+ ],
18
+ "license": "MIT",
19
+ "author": "kkkermit",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/Kkkermit/Trading212.js.git"
23
+ },
24
+ "bugs": {
25
+ "url": "https://github.com/Kkkermit/Trading212.js/issues"
26
+ },
27
+ "homepage": "https://github.com/Kkkermit/Trading212.js#readme",
28
+ "type": "module",
29
+ "sideEffects": false,
30
+ "engines": {
31
+ "node": ">=22"
32
+ },
33
+ "main": "./dist/index.cjs",
34
+ "module": "./dist/index.js",
35
+ "types": "./dist/index.d.ts",
36
+ "exports": {
37
+ ".": {
38
+ "import": {
39
+ "types": "./dist/index.d.ts",
40
+ "default": "./dist/index.js"
41
+ },
42
+ "require": {
43
+ "types": "./dist/index.d.cts",
44
+ "default": "./dist/index.cjs"
45
+ }
46
+ },
47
+ "./testing": {
48
+ "import": {
49
+ "types": "./dist/testing.d.ts",
50
+ "default": "./dist/testing.js"
51
+ },
52
+ "require": {
53
+ "types": "./dist/testing.d.cts",
54
+ "default": "./dist/testing.cjs"
55
+ }
56
+ },
57
+ "./csv": {
58
+ "import": {
59
+ "types": "./dist/csv.d.ts",
60
+ "default": "./dist/csv.js"
61
+ },
62
+ "require": {
63
+ "types": "./dist/csv.d.cts",
64
+ "default": "./dist/csv.cjs"
65
+ }
66
+ },
67
+ "./package.json": "./package.json"
68
+ },
69
+ "bin": {
70
+ "trading212": "dist/cli.js"
71
+ },
72
+ "files": [
73
+ "dist",
74
+ "README.md",
75
+ "LICENSE",
76
+ "CHANGELOG.md"
77
+ ],
78
+ "publishConfig": {
79
+ "access": "public",
80
+ "provenance": true
81
+ },
82
+ "scripts": {
83
+ "build": "tsup",
84
+ "check": "npm run typecheck && npm run lint && npm run format:check && npm run test && npm run build && npm run check:package && npm run size",
85
+ "check:package": "publint --strict && attw --pack . --profile node16",
86
+ "typecheck": "tsc --noEmit && tsc --noEmit -p examples && tsc --noEmit -p docs/src/examples",
87
+ "lint": "eslint .",
88
+ "lint:fix": "eslint . --fix",
89
+ "format": "prettier --write .",
90
+ "format:check": "prettier --check .",
91
+ "test": "vitest run --coverage",
92
+ "test:watch": "vitest",
93
+ "test:demo": "vitest run --config vitest.contract.config.ts",
94
+ "size": "size-limit",
95
+ "generate": "tsx scripts/generateApi.ts",
96
+ "generate:check": "tsx scripts/generateApi.ts --check",
97
+ "spec:fetch": "tsx scripts/fetchSpec.ts",
98
+ "fixtures:capture": "tsx scripts/captureErrors.ts",
99
+ "secrets": "secretlint \"**/*\"",
100
+ "changeset": "changeset",
101
+ "prepack": "npm run build",
102
+ "prepare": "husky",
103
+ "smoke": "node scripts/smoke.mjs && node scripts/smoke.cjs",
104
+ "example": "tsx --tsconfig examples/tsconfig.json",
105
+ "docs:dev": "node scripts/docs.mjs dev",
106
+ "docs:build": "node scripts/docs.mjs build"
107
+ },
108
+ "devDependencies": {
109
+ "@arethetypeswrong/cli": "^0.18.5",
110
+ "@changesets/cli": "^3.0.3",
111
+ "@commitlint/cli": "^21.2.4",
112
+ "@eslint/js": "^10.0.1",
113
+ "@secretlint/secretlint-rule-preset-recommend": "^13.1.0",
114
+ "@size-limit/preset-small-lib": "^14.3.0",
115
+ "@types/node": "^22.20.5",
116
+ "@vitest/coverage-v8": "^5.1.0",
117
+ "eslint": "^10.14.0",
118
+ "eslint-config-prettier": "^10.1.8",
119
+ "husky": "^9.1.7",
120
+ "lint-staged": "^17.6.0",
121
+ "prettier": "^3.9.10",
122
+ "publint": "^0.3.25",
123
+ "secretlint": "^13.1.0",
124
+ "size-limit": "^14.3.0",
125
+ "tsup": "^9.0.0",
126
+ "tsx": "^4.23.15",
127
+ "typescript": "~6.0.3",
128
+ "typescript-eslint": "^8.72.1",
129
+ "vitest": "^5.1.0",
130
+ "yaml": "^2.9.1"
131
+ },
132
+ "overrides": {
133
+ "minimatch": "^11.0.5"
134
+ }
135
+ }