fix: polyfill diagnostics_channel for backwards compatibility

This commit is contained in:
Amin Yahyaabadi 2024-08-07 11:57:08 -07:00
parent 36e7f447d4
commit a993cd60c0
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
6 changed files with 61 additions and 49 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -79,6 +79,7 @@
"cross-env": "7.0.3",
"cross-spawn": "^7.0.3",
"cspell": "^8.13.1",
"diagnostics_channel": "^1.1.0",
"dprint": "^0.47.2",
"escape-path-with-spaces": "^1.0.2",
"escape-quotes": "^1.0.2",
@ -148,7 +149,8 @@
"ubuntu-version",
"untildify-user",
"web-streams-polyfill",
"util.types"
"util.types",
"diagnostics_channel"
],
"engines": {
"node": ">=12.x",
@ -180,7 +182,8 @@
"fs/promises": "./src/utils/compat/fs/promises.ts",
"stream/promises": "./src/utils/compat/stream/promises.ts",
"stream/web": "web-streams-polyfill/dist/ponyfill.mjs",
"util/types": "util.types/index.js"
"util/types": "util.types/index.js",
"diagnostics_channel": "diagnostics_channel/index.js"
},
"targets": {
"main": {

View File

@ -77,6 +77,9 @@ importers:
cspell:
specifier: ^8.13.1
version: 8.13.1
diagnostics_channel:
specifier: ^1.1.0
version: 1.1.0
dprint:
specifier: ^0.47.2
version: 0.47.2
@ -2419,6 +2422,10 @@ packages:
devlop@1.1.0:
resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==}
diagnostics_channel@1.1.0:
resolution: {integrity: sha512-OE1ngLDjSBPG6Tx0YATELzYzy3RKHC+7veQ8gLa8yS7AAgw65mFbVdcsu3501abqOZCEZqZyAIemB0zXlqDSuw==}
engines: {node: '>=4'}
diff-sequences@29.6.3:
resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
@ -8050,6 +8057,8 @@ snapshots:
dependencies:
dequal: 2.0.3
diagnostics_channel@1.1.0: {}
diff-sequences@29.6.3: {}
diff@4.0.2: {}