@metricinsights/pp-dev 0.16.0 → 0.17.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/CHANGELOG.md +12 -0
- package/dist/CHANGELOG.md +12 -0
- package/dist/cjs/cli.js +1 -1
- package/dist/cjs/cli.js.map +1 -1
- package/dist/cjs/helpers.js.map +1 -1
- package/dist/cjs/index-Bu8AM2lb.js.map +1 -1
- package/dist/cjs/package.json +15 -11
- package/dist/cjs/plugin-D-TIdILy.js.map +1 -1
- package/dist/cjs/version-plugin-Cj4Pv-pw.js.map +1 -1
- package/dist/esm/cli.js +1 -1
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/helpers.js.map +1 -1
- package/dist/esm/index-Cx5STeh7.js.map +1 -1
- package/dist/esm/package.json +15 -11
- package/dist/esm/plugin-CE47-pTE.js.map +1 -1
- package/dist/esm/version-plugin-B1n39tE6.js.map +1 -1
- package/package.json +23 -19
- package/scripts/patch-npm-bundled-vulnerabilities.mjs +30 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-plugin-B1n39tE6.js","sources":["
|
|
1
|
+
{"version":3,"file":"version-plugin-B1n39tE6.js","sources":["../../../../src/plugins/version-plugin.ts"],"sourcesContent":[null],"names":["walkDir","dir","baseDir","excludeFile","entries","readdirSync","withFileTypes","files","entry","fullPath","path","join","name","relativePath","relative","replace","isDirectory","push","isFile","sha256OfContent","filePath","content","readFileSync","createHash","update","digest","versionPlugin","config","apply","enforce","closeBundle","enabled","outDir","versionFileTemplate","packageVersion","outDirResolved","resolve","process","cwd","statSync","throwIfNoEntry","manifestDate","Date","toISOString","versionFileName","template","currentDate","resolveVersionFileName","allPaths","checksum","hashesConcatenated","Object","keys","sort","map","p","computeChecksum","manifest","version","date","manifestPath","writeFileSync","JSON","stringify"],"mappings":"4IAkBA,SAASA,EAAQC,EAAaC,EAAiBC,GAC7C,MAAMC,EAAUC,EAAYJ,EAAK,CAAEK,e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AAO,MAChE,CAgDuB+B,CAAgBjD,GAE3BkD,EAA4B,CAChCC,QAAS,IAAIxB,IACbyB,KAAMlB,EACNQ,WACA1C,SAGIqD,EAAelD,EAAKC,KAAKwB,EAAgBS,GAE/CiB,EAAcD,EAAcE,KAAKC,UAAUN,EAAU,KAAM,GAAI,QACjE,EAEJ"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metricinsights/pp-dev",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.17.0",
|
|
5
5
|
"description": "Portal Page dev build tool",
|
|
6
6
|
"bin": {
|
|
7
7
|
"pp-dev": "bin/pp-dev.js"
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"main": "dist/esm/index.js",
|
|
10
10
|
"types": "dist/types/index.d.ts",
|
|
11
11
|
"scripts": {
|
|
12
|
+
"postinstall": "node scripts/patch-npm-bundled-vulnerabilities.mjs",
|
|
12
13
|
"clean": "rimraf ./dist",
|
|
13
14
|
"prebuild": "npm run clean",
|
|
14
15
|
"build": "npm run build:parallel",
|
|
@@ -66,11 +67,13 @@
|
|
|
66
67
|
"node": ">=22.14"
|
|
67
68
|
},
|
|
68
69
|
"overrides": {
|
|
70
|
+
"@xmldom/xmldom": ">=0.8.12",
|
|
71
|
+
"brace-expansion": "5.0.5",
|
|
69
72
|
"chokidar": "^5.0.0",
|
|
70
|
-
"file-type": "^
|
|
73
|
+
"file-type": "^22.0.0",
|
|
71
74
|
"minimatch": "10.2.4",
|
|
72
|
-
"npm": ">=11.
|
|
73
|
-
"serialize-javascript": ">=7.0.
|
|
75
|
+
"npm": ">=11.12.1",
|
|
76
|
+
"serialize-javascript": ">=7.0.5",
|
|
74
77
|
"undici": ">=6.24.0"
|
|
75
78
|
},
|
|
76
79
|
"peerDependencies": {
|
|
@@ -83,36 +86,37 @@
|
|
|
83
86
|
}
|
|
84
87
|
},
|
|
85
88
|
"dependencies": {
|
|
86
|
-
"axios": "^1.
|
|
89
|
+
"axios": "^1.14.0",
|
|
87
90
|
"cac": "^7.0.0",
|
|
88
91
|
"chokidar": "^5.0.0",
|
|
89
92
|
"deepmerge-ts": "^7.1.5",
|
|
90
93
|
"diff-match-patch": "^1.0.5",
|
|
91
94
|
"dir-compare": "^5.0.0",
|
|
92
95
|
"ejs": "^5.0.1",
|
|
96
|
+
"esbuild": "^0.27.7",
|
|
93
97
|
"express": "^5.2.1",
|
|
94
98
|
"extract-zip": "^2.0.1",
|
|
95
|
-
"file-type": "^
|
|
99
|
+
"file-type": "^22.0.0",
|
|
96
100
|
"formdata-node": "^6.0.3",
|
|
97
101
|
"http-proxy-middleware": "^3.0.5",
|
|
98
102
|
"isbinaryfile": "^6.0.0",
|
|
99
|
-
"jsdom": "
|
|
103
|
+
"jsdom": "28.0.0",
|
|
100
104
|
"memory-cache": "^0.2.0",
|
|
101
105
|
"picocolors": "^1.1.1",
|
|
102
|
-
"rollup": "^4.
|
|
103
|
-
"sass": "^1.
|
|
106
|
+
"rollup": "^4.60.1",
|
|
107
|
+
"sass": "^1.99.0",
|
|
104
108
|
"sharp": "^0.34.5",
|
|
105
109
|
"source-map-support": "^0.5.21",
|
|
106
110
|
"svgo": "^4.0.1",
|
|
107
111
|
"svgtofont": "^6.5.1",
|
|
108
|
-
"typescript": "^
|
|
109
|
-
"vite": "^8.0.
|
|
112
|
+
"typescript": "^6.0.2",
|
|
113
|
+
"vite": "^8.0.3",
|
|
110
114
|
"vite-plugin-image-optimizer": "^2.0.3",
|
|
111
115
|
"vite-plugin-zip-pack": "^1.2.4",
|
|
112
116
|
"winston": "^3.19.0"
|
|
113
117
|
},
|
|
114
118
|
"devDependencies": {
|
|
115
|
-
"@playwright/test": "^1.
|
|
119
|
+
"@playwright/test": "^1.59.1",
|
|
116
120
|
"@rollup/plugin-terser": "^1.0.0",
|
|
117
121
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
118
122
|
"@rollup/plugin-url": "^8.0.2",
|
|
@@ -122,27 +126,27 @@
|
|
|
122
126
|
"@types/diff-match-patch": "^1.0.36",
|
|
123
127
|
"@types/ejs": "^3.1.5",
|
|
124
128
|
"@types/express": "^5.0.6",
|
|
125
|
-
"@types/jsdom": "^28.0.
|
|
129
|
+
"@types/jsdom": "^28.0.1",
|
|
126
130
|
"@types/memory-cache": "^0.2.6",
|
|
127
|
-
"@types/node": "^25.5.
|
|
128
|
-
"@vitest/coverage-v8": "^4.1.
|
|
131
|
+
"@types/node": "^25.5.2",
|
|
132
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
129
133
|
"connect": "^3.7.0",
|
|
130
|
-
"
|
|
131
|
-
"next": "^16.2.0",
|
|
134
|
+
"next": "^16.2.2",
|
|
132
135
|
"prettier": "^3.8.1",
|
|
133
136
|
"rimraf": "^6.1.3",
|
|
134
|
-
"rollup-plugin-dts": "^6.4.
|
|
137
|
+
"rollup-plugin-dts": "^6.4.1",
|
|
135
138
|
"rollup-plugin-scss": "^4.0.1",
|
|
136
139
|
"rollup-plugin-visualizer": "7.0.1",
|
|
137
140
|
"semantic-release": "^25.0.3",
|
|
138
141
|
"tslib": "^2.8.1",
|
|
139
142
|
"tsx": "^4.21.0",
|
|
140
|
-
"vitest": "^4.1.
|
|
143
|
+
"vitest": "^4.1.2",
|
|
141
144
|
"yargs": "^18.0.0"
|
|
142
145
|
},
|
|
143
146
|
"files": [
|
|
144
147
|
"bin",
|
|
145
148
|
"dist",
|
|
149
|
+
"scripts/patch-npm-bundled-vulnerabilities.mjs",
|
|
146
150
|
"package.json",
|
|
147
151
|
"README.md",
|
|
148
152
|
"LICENSE.md",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `npm` package vendors dependencies (bundleDependencies). npm overrides do not
|
|
3
|
+
* replace those copies, so `npm audit` still flags known-fixed versions that exist
|
|
4
|
+
* hoisted at the project root. Sync patched trees into npm's bundle after install.
|
|
5
|
+
*/
|
|
6
|
+
import { cpSync, existsSync, rmSync } from "node:fs";
|
|
7
|
+
import { dirname, join } from "node:path";
|
|
8
|
+
import { fileURLToPath } from "node:url";
|
|
9
|
+
|
|
10
|
+
const root = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
11
|
+
const npmRoot = join(root, "node_modules", "npm");
|
|
12
|
+
|
|
13
|
+
function replaceDir(src, dest) {
|
|
14
|
+
if (!existsSync(src) || !existsSync(dirname(dest))) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
rmSync(dest, { recursive: true, force: true });
|
|
18
|
+
cpSync(src, dest, { recursive: true });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (existsSync(npmRoot)) {
|
|
22
|
+
replaceDir(
|
|
23
|
+
join(root, "node_modules", "brace-expansion"),
|
|
24
|
+
join(npmRoot, "node_modules", "brace-expansion"),
|
|
25
|
+
);
|
|
26
|
+
replaceDir(
|
|
27
|
+
join(root, "node_modules", "picomatch"),
|
|
28
|
+
join(npmRoot, "node_modules", "tinyglobby", "node_modules", "picomatch"),
|
|
29
|
+
);
|
|
30
|
+
}
|