diff --git a/index.js b/index.js index ed0f92f7..f18505b1 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ const fs = require("node:fs"); const path = require("node:path"); const {exec} = require("node:child_process"); -require("source-map-support").install(); +process.setSourceMapsEnabled(true); /** @type {import("./dist/controller").Controller | undefined} */ let controller; diff --git a/package.json b/package.json index 0a5f3b24..0f0e6a54 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,6 @@ "mqtt": "^5.15.2", "object-assign-deep": "^0.4.0", "semver": "^7.8.5", - "source-map-support": "^0.5.21", "throttleit": "^3.0.0", "winston": "^3.19.0", "winston-syslog": "^2.7.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 38cf7ba8..eb3c6c1a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,9 +50,6 @@ importers: semver: specifier: ^7.8.5 version: 7.8.5 - source-map-support: - specifier: ^0.5.21 - version: 0.5.21 throttleit: specifier: ^3.0.0 version: 3.0.0 @@ -1278,13 +1275,6 @@ packages: resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} engines: {node: '>=0.10.0'} - source-map-support@0.5.21: - resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} - - source-map@0.6.1: - resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} - engines: {node: '>=0.10.0'} - split2@4.2.0: resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} engines: {node: '>= 10.x'} @@ -2575,13 +2565,6 @@ snapshots: source-map-js@1.2.1: {} - source-map-support@0.5.21: - dependencies: - buffer-from: 1.1.2 - source-map: 0.6.1 - - source-map@0.6.1: {} - split2@4.2.0: {} stack-trace@0.0.10: {}