tinfoil 0.1.3 → 0.2.2

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,50 +1,46 @@
1
1
  {
2
- "name": "tinfoil",
3
- "version": "0.1.3",
4
- "description": "Web analytics client for Tinfoil",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "browser": "dist/browser.js",
8
- "type": "module",
9
- "license": "MIT",
10
- "scripts": {
11
- "build": "npm run clean && npm run build:lib && npm run build:browser",
12
- "build:lib": "tsc",
13
- "build:browser": "esbuild src/browser.ts --minify --bundle --sourcemap --outfile=dist/browser.js --tree-shaking=true --main-fields=main,browser",
14
- "clean": "rimraf dist",
15
- "test": "vitest",
16
- "test:cover": "vitest run --coverage",
17
- "test:e2e": "playwright test --project=chromium",
18
- "test:e2e:ui": "playwright test --ui --project=chromium",
19
- "lint": "eslint ./src ./tests",
20
- "serve": "python3 -m http.server 8223"
21
- },
22
- "dependencies": {
23
- "@divviup/dap": "^0.9.1",
24
- "ua-parser-js": "^2.0.0"
25
- },
26
- "devDependencies": {
27
- "@eslint/js": "^9.13.0",
28
- "@playwright/test": "^1.48.2",
29
- "@tsconfig/node20": "^20.1.4",
30
- "@types/node": "^22.8.1",
31
- "@types/ua-parser-js": "^0.7.39",
32
- "@vitest/coverage-v8": "^2.1.4",
33
- "@vitest/ui": "^2.1.4",
34
- "esbuild": "^0.24.0",
35
- "eslint": "^9.13.0",
36
- "globals": "^15.11.0",
37
- "rimraf": "^5.0.0",
38
- "ts-node": "^10.9.2",
39
- "typescript": "^5.2.2",
40
- "typescript-eslint": "^8.11.0",
41
- "vitest": "^2.1.4"
42
- },
43
- "directories": {
44
- "test": "tests"
45
- },
46
- "repository": {
47
- "type": "git",
48
- "url": "git+https://github.com/tinfoilanalytics/tinfoil-ts.git"
49
- }
2
+ "name": "tinfoil",
3
+ "version": "0.2.2",
4
+ "description": "Official Tinfoil secure OpenAI client wrapper",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc && cp src/wasm-exec.js dist/",
9
+ "test": "jest --config jest.config.cjs",
10
+ "lint": "eslint src/**/*.ts",
11
+ "prepublishOnly": "npm run build"
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "README.md",
16
+ "LICENSE"
17
+ ],
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/tinfoilsh/tinfoil-node.git"
21
+ },
22
+ "keywords": [
23
+ "openai",
24
+ "security",
25
+ "AI",
26
+ "tinfoil"
27
+ ],
28
+ "author": "Tinfoil",
29
+ "license": "AGPL-3.0-or-later",
30
+ "dependencies": {
31
+ "dotenv": "^16.4.7",
32
+ "node-fetch": "^2.7.0",
33
+ "openai": "^4.87.3",
34
+ "ts-node": "^10.9.2"
35
+ },
36
+ "devDependencies": {
37
+ "@types/jest": "^29.5.12",
38
+ "@types/node": "^20.11.24",
39
+ "@typescript-eslint/eslint-plugin": "^8.26.1",
40
+ "@typescript-eslint/parser": "^8.26.1",
41
+ "eslint": "^8.57.0",
42
+ "jest": "^29.7.0",
43
+ "ts-jest": "^29.1.2",
44
+ "typescript": "~5.5.0"
45
+ }
50
46
  }