@rspack-canary/test-tools 1.7.0-canary-22d591c5-20251222090400 → 1.7.0-canary-dcc2f8c9-20251223064055
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.
|
@@ -4,24 +4,16 @@
|
|
|
4
4
|
Author Tobias Koppers @sokra
|
|
5
5
|
*/
|
|
6
6
|
"use strict";
|
|
7
|
-
const util = require("util");
|
|
8
7
|
let interception = undefined;
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
19
|
-
return fn.apply(this, args);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return original.apply(this, args);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
8
|
+
const originalWarn = console.warn;
|
|
9
|
+
console.warn = (message, ...args) => {
|
|
10
|
+
if (interception && typeof message === 'string' && message.includes('[Rspack Deprecation]')) {
|
|
11
|
+
interception.set(message, {
|
|
12
|
+
message,
|
|
13
|
+
stack: new Error(message).stack
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return originalWarn.apply(console, [message, ...args]);
|
|
25
17
|
};
|
|
26
18
|
exports.start = handler => {
|
|
27
19
|
interception = new Map();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/test-tools",
|
|
3
|
-
"version": "1.7.0-canary-
|
|
3
|
+
"version": "1.7.0-canary-dcc2f8c9-20251223064055",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Test tools for rspack",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@types/jsdom": "^21.1.7",
|
|
66
66
|
"typescript": "^5.9.3",
|
|
67
67
|
"wast-loader": "^1.14.1",
|
|
68
|
-
"@rspack/core": "npm:@rspack-canary/core@1.7.0-canary-
|
|
68
|
+
"@rspack/core": "npm:@rspack-canary/core@1.7.0-canary-dcc2f8c9-20251223064055"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@rspack/core": ">=1.0.0"
|