@automattic/mcp-wordpress-remote 0.2.9 → 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.9",
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",
@@ -38,11 +38,16 @@
38
38
  "test:integration": "jest --testPathPattern=integration",
39
39
  "test:e2e": "playwright test",
40
40
  "test:coverage": "jest --coverage",
41
- "test:ci": "jest --ci --coverage --watchAll=false"
41
+ "test:ci": "jest --ci --coverage --watchAll=false",
42
+ "security:audit": "npm audit --audit-level moderate",
43
+ "security:fix": "npm audit fix",
44
+ "deps:update": "npm update",
45
+ "deps:check": "npm outdated"
42
46
  },
43
47
  "dependencies": {
44
48
  "@modelcontextprotocol/sdk": "^1.8.0",
45
49
  "express": "^4.18.2",
50
+ "node-fetch": "^3.3.2",
46
51
  "open": "^10.0.0"
47
52
  },
48
53
  "devDependencies": {
@@ -50,7 +55,7 @@
50
55
  "@types/express": "^4.17.21",
51
56
  "@types/jest": "^29.5.12",
52
57
  "@types/mockdate": "^2.0.0",
53
- "@types/node": "^20.11.19",
58
+ "@types/node": "^18.19.0",
54
59
  "@types/supertest": "^6.0.3",
55
60
  "@types/tmp": "^0.2.6",
56
61
  "jest": "^29.7.0",
@@ -73,7 +78,23 @@
73
78
  ],
74
79
  "dts": true,
75
80
  "clean": true,
76
- "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
+ }
77
98
  },
78
99
  "jest": {
79
100
  "testEnvironment": "node",
@@ -92,17 +113,25 @@
92
113
  "json",
93
114
  "node"
94
115
  ],
95
- "extensionsToTreatAsEsm": [".ts"],
116
+ "extensionsToTreatAsEsm": [
117
+ ".ts"
118
+ ],
96
119
  "preset": "ts-jest/presets/default-esm",
97
120
  "transform": {
98
- "^.+\\.ts$": ["ts-jest", {
99
- "useESM": true
100
- }]
121
+ "^.+\\.ts$": [
122
+ "ts-jest",
123
+ {
124
+ "useESM": true
125
+ }
126
+ ]
101
127
  },
102
128
  "moduleNameMapper": {
103
- "^(\\.{1,2}/.*)\\.js$": "$1"
129
+ "^(\\.{1,2}/.*)\\.js$": "$1",
130
+ "^open$": "<rootDir>/tests/__mocks__/open.ts"
104
131
  },
105
- "setupFilesAfterEnv": ["<rootDir>/tests/setup.ts"],
132
+ "setupFilesAfterEnv": [
133
+ "<rootDir>/tests/setup.ts"
134
+ ],
106
135
  "collectCoverageFrom": [
107
136
  "src/**/*.ts",
108
137
  "!src/**/*.d.ts",