@automattic/mcp-wordpress-remote 0.2.10 → 0.2.11

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,9 +1,9 @@
1
1
  {
2
2
  "name": "@automattic/mcp-wordpress-remote",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "MCP WordPress Remote proxy server",
5
5
  "engines": {
6
- "node": ">=22.0.0"
6
+ "node": ">=18.0.0"
7
7
  },
8
8
  "keywords": [
9
9
  "mcp",
@@ -47,6 +47,7 @@
47
47
  "dependencies": {
48
48
  "@modelcontextprotocol/sdk": "^1.8.0",
49
49
  "express": "^4.18.2",
50
+ "node-fetch": "^3.3.2",
50
51
  "open": "^10.0.0"
51
52
  },
52
53
  "devDependencies": {
@@ -54,7 +55,7 @@
54
55
  "@types/express": "^4.17.21",
55
56
  "@types/jest": "^29.5.12",
56
57
  "@types/mockdate": "^2.0.0",
57
- "@types/node": "^20.11.19",
58
+ "@types/node": "^18.19.0",
58
59
  "@types/supertest": "^6.0.3",
59
60
  "@types/tmp": "^0.2.6",
60
61
  "jest": "^29.7.0",
@@ -77,7 +78,23 @@
77
78
  ],
78
79
  "dts": true,
79
80
  "clean": true,
80
- "outDir": "dist"
81
+ "outDir": "dist",
82
+ "noExternal": [
83
+ "@modelcontextprotocol/sdk",
84
+ "express",
85
+ "node-fetch",
86
+ "open"
87
+ ],
88
+ "external": [
89
+ "node:*"
90
+ ],
91
+ "minify": false,
92
+ "sourcemap": false,
93
+ "target": "node18",
94
+ "platform": "node",
95
+ "banner": {
96
+ "js": "import { createRequire } from 'module'; const require = createRequire(import.meta.url);"
97
+ }
81
98
  },
82
99
  "jest": {
83
100
  "testEnvironment": "node",
@@ -96,18 +113,25 @@
96
113
  "json",
97
114
  "node"
98
115
  ],
99
- "extensionsToTreatAsEsm": [".ts"],
116
+ "extensionsToTreatAsEsm": [
117
+ ".ts"
118
+ ],
100
119
  "preset": "ts-jest/presets/default-esm",
101
120
  "transform": {
102
- "^.+\\.ts$": ["ts-jest", {
103
- "useESM": true
104
- }]
121
+ "^.+\\.ts$": [
122
+ "ts-jest",
123
+ {
124
+ "useESM": true
125
+ }
126
+ ]
105
127
  },
106
128
  "moduleNameMapper": {
107
129
  "^(\\.{1,2}/.*)\\.js$": "$1",
108
130
  "^open$": "<rootDir>/tests/__mocks__/open.ts"
109
131
  },
110
- "setupFilesAfterEnv": ["<rootDir>/tests/setup.ts"],
132
+ "setupFilesAfterEnv": [
133
+ "<rootDir>/tests/setup.ts"
134
+ ],
111
135
  "collectCoverageFrom": [
112
136
  "src/**/*.ts",
113
137
  "!src/**/*.d.ts",