fix: polyfill util/types for backwards compatibility

This commit is contained in:
Amin Yahyaabadi 2024-08-07 11:55:06 -07:00
parent d5ec3ff06e
commit 36e7f447d4
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
6 changed files with 65 additions and 52 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

@ -116,6 +116,7 @@
"typescript": "^5.5.4", "typescript": "^5.5.4",
"ubuntu-version": "^2.0.0", "ubuntu-version": "^2.0.0",
"untildify-user": "workspace:*", "untildify-user": "workspace:*",
"util.types": "^0.0.2",
"web-streams-polyfill": "^4.0.0", "web-streams-polyfill": "^4.0.0",
"which": "^4.0.0" "which": "^4.0.0"
}, },
@ -146,7 +147,8 @@
"time-delta", "time-delta",
"ubuntu-version", "ubuntu-version",
"untildify-user", "untildify-user",
"web-streams-polyfill" "web-streams-polyfill",
"util.types"
], ],
"engines": { "engines": {
"node": ">=12.x", "node": ">=12.x",
@ -177,7 +179,8 @@
"admina": "admina/dist/index.mjs", "admina": "admina/dist/index.mjs",
"fs/promises": "./src/utils/compat/fs/promises.ts", "fs/promises": "./src/utils/compat/fs/promises.ts",
"stream/promises": "./src/utils/compat/stream/promises.ts", "stream/promises": "./src/utils/compat/stream/promises.ts",
"stream/web": "web-streams-polyfill/dist/ponyfill.mjs" "stream/web": "web-streams-polyfill/dist/ponyfill.mjs",
"util/types": "util.types/index.js"
}, },
"targets": { "targets": {
"main": { "main": {

View File

@ -188,6 +188,9 @@ importers:
untildify-user: untildify-user:
specifier: workspace:* specifier: workspace:*
version: link:packages/untildify-user version: link:packages/untildify-user
util.types:
specifier: ^0.0.2
version: 0.0.2
web-streams-polyfill: web-streams-polyfill:
specifier: ^4.0.0 specifier: ^4.0.0
version: 4.0.0 version: 4.0.0
@ -4993,6 +4996,9 @@ packages:
util-deprecate@1.0.2: util-deprecate@1.0.2:
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
util.types@0.0.2:
resolution: {integrity: sha512-BexVqJ5GnaSMuf3IP4xXOgD81VjbZcjHcnbpSe1C8jZp2Yu5wxAWQCoro/J8dYiY/lV2fijWjDsqtL/JD12IuA==}
utility-types@3.11.0: utility-types@3.11.0:
resolution: {integrity: sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==} resolution: {integrity: sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==}
engines: {node: '>= 4'} engines: {node: '>= 4'}
@ -11183,6 +11189,10 @@ snapshots:
util-deprecate@1.0.2: {} util-deprecate@1.0.2: {}
util.types@0.0.2:
dependencies:
define-properties: 1.2.1
utility-types@3.11.0: {} utility-types@3.11.0: {}
uuid@3.4.0: {} uuid@3.4.0: {}