@x402/extensions 0.0.1 → 2.0.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/package.json CHANGED
@@ -1,12 +1,85 @@
1
1
  {
2
2
  "name": "@x402/extensions",
3
- "version": "0.0.1",
4
- "description": "The Extensions package for the x402 payment protocol",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "author": "Coinbase Inc.",
3
+ "version": "2.0.0",
4
+ "main": "./dist/cjs/index.js",
5
+ "module": "./dist/esm/index.js",
6
+ "types": "./dist/cjs/index.d.ts",
7
+ "keywords": [
8
+ "x402",
9
+ "payment",
10
+ "protocol",
11
+ "extensions"
12
+ ],
10
13
  "license": "Apache-2.0",
11
- "repository": "https://github.com/coinbase/x402"
14
+ "author": "Coinbase Inc.",
15
+ "repository": "https://github.com/coinbase/x402",
16
+ "description": "x402 Payment Protocol Extensions",
17
+ "devDependencies": {
18
+ "@eslint/js": "^9.24.0",
19
+ "@types/node": "^22.13.4",
20
+ "@typescript-eslint/eslint-plugin": "^8.29.1",
21
+ "@typescript-eslint/parser": "^8.29.1",
22
+ "eslint": "^9.24.0",
23
+ "eslint-plugin-import": "^2.31.0",
24
+ "eslint-plugin-jsdoc": "^50.6.9",
25
+ "eslint-plugin-prettier": "^5.2.6",
26
+ "prettier": "3.5.2",
27
+ "tsup": "^8.4.0",
28
+ "tsx": "^4.19.2",
29
+ "typescript": "^5.7.3",
30
+ "vite": "^6.2.6",
31
+ "vite-tsconfig-paths": "^5.1.4",
32
+ "vitest": "^3.0.5"
33
+ },
34
+ "dependencies": {
35
+ "ajv": "^8.17.1",
36
+ "zod": "^3.24.2",
37
+ "@x402/core": "2.0.0"
38
+ },
39
+ "exports": {
40
+ ".": {
41
+ "import": {
42
+ "types": "./dist/esm/index.d.mts",
43
+ "default": "./dist/esm/index.mjs"
44
+ },
45
+ "require": {
46
+ "types": "./dist/cjs/index.d.ts",
47
+ "default": "./dist/cjs/index.js"
48
+ }
49
+ },
50
+ "./bazaar": {
51
+ "import": {
52
+ "types": "./dist/esm/bazaar/index.d.mts",
53
+ "default": "./dist/esm/bazaar/index.mjs"
54
+ },
55
+ "require": {
56
+ "types": "./dist/cjs/bazaar/index.d.ts",
57
+ "default": "./dist/cjs/bazaar/index.js"
58
+ }
59
+ },
60
+ "./sign-in-with-x": {
61
+ "import": {
62
+ "types": "./dist/esm/sign-in-with-x/index.d.mts",
63
+ "default": "./dist/esm/sign-in-with-x/index.mjs"
64
+ },
65
+ "require": {
66
+ "types": "./dist/cjs/sign-in-with-x/index.d.ts",
67
+ "default": "./dist/cjs/sign-in-with-x/index.js"
68
+ }
69
+ }
70
+ },
71
+ "files": [
72
+ "dist"
73
+ ],
74
+ "scripts": {
75
+ "start": "tsx --env-file=.env index.ts",
76
+ "build": "tsup",
77
+ "test": "vitest run",
78
+ "test:watch": "vitest",
79
+ "watch": "tsc --watch",
80
+ "format": "prettier -c .prettierrc --write \"**/*.{ts,js,cjs,json,md}\"",
81
+ "format:check": "prettier -c .prettierrc --check \"**/*.{ts,js,cjs,json,md}\"",
82
+ "lint": "eslint . --ext .ts --fix",
83
+ "lint:check": "eslint . --ext .ts"
84
+ }
12
85
  }
package/index.js DELETED
@@ -1,3 +0,0 @@
1
- // Placeholder for @x402/paywall
2
- module.exports = {};
3
-