Suppress Buffer() deprecation warning

This commit is contained in:
Hani
2023-02-11 10:59:49 -05:00
parent 8d4dd0813a
commit c0c9cd1646
5 changed files with 22 additions and 7 deletions
+10 -2
View File
@@ -1,4 +1,13 @@
require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap
const origWarning = process.emitWarning;
process.emitWarning = function(...args) {
if (args[2] !== 'DEP0005') {
// pass any other warnings through normally
return origWarning.apply(process, args);
} else {
// do nothing, eat the warning
}
};
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ 7351:
@@ -63066,4 +63075,3 @@ if (octokit) {
module.exports = __webpack_exports__;
/******/ })()
;
//# sourceMappingURL=index.js.map
-1
View File
File diff suppressed because one or more lines are too long
-1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -4,7 +4,7 @@
"description": "JavaScript Action Template",
"main": "index.js",
"scripts": {
"prepare": "ncc build index.js -o dist --source-map"
"prepare": "ncc build index.js -o dist && cat patch.js dist/index.js > dist/temp.js && mv dist/temp.js dist/index.js"
},
"repository": {
"type": "git",
+9
View File
@@ -0,0 +1,9 @@
const origWarning = process.emitWarning;
process.emitWarning = function(...args) {
if (args[2] !== 'DEP0005') {
// pass any other warnings through normally
return origWarning.apply(process, args);
} else {
// do nothing, eat the warning
}
};