diff --git a/package.json b/package.json index dfeb6157af..1a20d9050c 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "syncpack": "^5.6.10", "ts-jest": "^26.4.4", "ts-node": "^9.1.1", - "typescript": "4.1.5", + "typescript": "^4.2.3", "verdaccio": "^4.11.0", "yarn": "^1.22.10" }, diff --git a/packages/outdated/test/outdated.spec.ts b/packages/outdated/test/outdated.spec.ts index e3e9e02d3e..1c34ff3be0 100644 --- a/packages/outdated/test/outdated.spec.ts +++ b/packages/outdated/test/outdated.spec.ts @@ -19,7 +19,7 @@ async function getLatestManifest (packageName: string) { name: 'pkg-with-1-dep', version: '1.0.0', }, - })[packageName] || null + })[packageName] ?? null } test('outdated()', async () => { diff --git a/packages/plugin-commands-rebuild/src/implementation/extendRebuildOptions.ts b/packages/plugin-commands-rebuild/src/implementation/extendRebuildOptions.ts index 75fa06bd1d..8f0cdbfacf 100644 --- a/packages/plugin-commands-rebuild/src/implementation/extendRebuildOptions.ts +++ b/packages/plugin-commands-rebuild/src/implementation/extendRebuildOptions.ts @@ -62,8 +62,7 @@ const defaults = async (opts: RebuildOptions) => { storeDir: opts.storeDir, unsafePerm: process.platform === 'win32' || process.platform === 'cygwin' || - !(process.getuid && process.setuid && - process.getgid && process.setgid) || + !process.setgid || process.getuid() !== 0, useLockfile: true, userAgent: `${packageManager.name}/${packageManager.version} npm/? node/${process.version} ${process.platform} ${process.arch}`, diff --git a/packages/supi/src/install/extendInstallOptions.ts b/packages/supi/src/install/extendInstallOptions.ts index ba75febfb1..e7172ee7cc 100644 --- a/packages/supi/src/install/extendInstallOptions.ts +++ b/packages/supi/src/install/extendInstallOptions.ts @@ -135,8 +135,7 @@ const defaults = async (opts: InstallOptions) => { tag: 'latest', unsafePerm: process.platform === 'win32' || process.platform === 'cygwin' || - !(process.getuid && process.setuid && - process.getgid && process.setgid) || + !process.setgid || process.getuid() !== 0, update: false, useLockfile: true, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a1c02bfc5c..4533fc5276 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,9 +23,9 @@ importers: rimraf: 3.0.2 shx: 0.3.3 syncpack: 5.7.11 - ts-jest: 26.5.2_jest@26.6.3+typescript@4.1.5 - ts-node: 9.1.1_typescript@4.1.5 - typescript: 4.1.5 + ts-jest: 26.5.3_jest@26.6.3+typescript@4.2.3 + ts-node: 9.1.1_typescript@4.2.3 + typescript: 4.2.3 verdaccio: 4.11.0 yarn: 1.22.10 specifiers: @@ -52,7 +52,7 @@ importers: syncpack: ^5.6.10 ts-jest: ^26.4.4 ts-node: ^9.1.1 - typescript: 4.1.5 + typescript: ^4.2.3 verdaccio: ^4.11.0 yarn: ^1.22.10 @@ -4040,11 +4040,11 @@ packages: engines: node: '>= 10.14.2' transitivePeerDependencies: - - ts-node - - supports-color - bufferutil - - utf-8-validate - canvas + - supports-color + - ts-node + - utf-8-validate /@jest/environment/26.6.2: resolution: {integrity: sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA==} @@ -4148,11 +4148,11 @@ packages: engines: node: '>= 10.14.2' transitivePeerDependencies: - - ts-node - - supports-color - bufferutil - - utf-8-validate - canvas + - supports-color + - ts-node + - utf-8-validate /@jest/transform/26.6.2: resolution: {integrity: sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==} @@ -4481,8 +4481,8 @@ packages: hasBin: true transitivePeerDependencies: - bufferutil - - utf-8-validate - canvas + - utf-8-validate /@pnpm/self-installer/2.1.0: resolution: {integrity: sha512-bfMgLFmg33kY1XBPBgdkbpld6fSeyt6iAlXbIMioArHd1t58EAMFmM2cYZQt4I2MguUpLRDlZwOpYYmirDHhsg==} @@ -5054,8 +5054,8 @@ packages: dev: true transitivePeerDependencies: - bufferutil - - utf-8-validate - canvas + - utf-8-validate /@verdaccio/streams/9.7.2: resolution: {integrity: sha512-SoCG1btVFPxOcrs8w9wLJCfe8nfE6EaEXCXyRwGbh+Sr3NLEG0R8JOugGJbuSE+zIRuUs5JaUKjzSec+JKLvZw==} @@ -9709,11 +9709,11 @@ packages: node: '>= 10.14.2' hasBin: true transitivePeerDependencies: - - ts-node - - supports-color - bufferutil - - utf-8-validate - canvas + - supports-color + - ts-node + - utf-8-validate /jest-config/26.6.3_ts-node@9.1.1: resolution: {integrity: sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==} @@ -9736,7 +9736,7 @@ packages: jest-validate: 26.6.2 micromatch: 4.0.2 pretty-format: 26.6.2 - ts-node: 9.1.1_typescript@4.1.5 + ts-node: 9.1.1_typescript@4.2.3 dev: true engines: node: '>= 10.14.2' @@ -9746,10 +9746,10 @@ packages: ts-node: optional: true transitivePeerDependencies: - - supports-color - bufferutil - - utf-8-validate - canvas + - supports-color + - utf-8-validate /jest-diff/26.6.2: resolution: {integrity: sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==} @@ -9797,8 +9797,8 @@ packages: node: '>= 10.14.2' transitivePeerDependencies: - bufferutil - - utf-8-validate - canvas + - utf-8-validate /jest-environment-node/26.6.2: resolution: {integrity: sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag==} @@ -9866,11 +9866,11 @@ packages: engines: node: '>= 10.14.2' transitivePeerDependencies: - - ts-node - - supports-color - bufferutil - - utf-8-validate - canvas + - supports-color + - ts-node + - utf-8-validate /jest-leak-detector/26.6.2: resolution: {integrity: sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==} @@ -9988,11 +9988,11 @@ packages: engines: node: '>= 10.14.2' transitivePeerDependencies: - - ts-node - - supports-color - bufferutil - - utf-8-validate - canvas + - supports-color + - ts-node + - utf-8-validate /jest-runtime/26.6.3_ts-node@9.1.1: resolution: {integrity: sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==} @@ -10029,11 +10029,11 @@ packages: node: '>= 10.14.2' hasBin: true transitivePeerDependencies: - - ts-node - - supports-color - bufferutil - - utf-8-validate - canvas + - supports-color + - ts-node + - utf-8-validate /jest-serializer/26.6.2: resolution: {integrity: sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==} @@ -10128,11 +10128,11 @@ packages: node: '>= 10.14.2' hasBin: true transitivePeerDependencies: - - ts-node - - supports-color - bufferutil - - utf-8-validate - canvas + - supports-color + - ts-node + - utf-8-validate /js-tokens/4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -12885,7 +12885,7 @@ packages: /request-promise-core/1.1.4_request@2.88.2: resolution: {integrity: sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==} dependencies: - lodash: 4.17.20 + lodash: 4.17.21 request: 2.88.2 dev: true engines: @@ -14268,8 +14268,8 @@ packages: engines: node: '>=0.10.0' - /ts-jest/26.5.2_jest@26.6.3+typescript@4.1.5: - resolution: {integrity: sha512-bwyJ2zJieSugf7RB+o8fgkMeoMVMM2KPDE0UklRLuACxjwJsOrZNo6chrcScmK33YavPSwhARffy8dZx5LJdUQ==} + /ts-jest/26.5.3_jest@26.6.3+typescript@4.2.3: + resolution: {integrity: sha512-nBiiFGNvtujdLryU7MiMQh1iPmnZ/QvOskBbD2kURiI1MwqvxlxNnaAB/z9TbslMqCsSbu5BXvSSQPc5tvHGeA==} dependencies: '@types/jest': 26.0.20 bs-logger: 0.2.6 @@ -14282,7 +14282,7 @@ packages: make-error: 1.3.6 mkdirp: 1.0.4 semver: 7.3.4 - typescript: 4.1.5 + typescript: 4.2.3 yargs-parser: 20.2.6 dev: true engines: @@ -14292,7 +14292,7 @@ packages: jest: '>=26 <27' typescript: '>=3.8 <5.0' - /ts-node/9.1.1_typescript@4.1.5: + /ts-node/9.1.1_typescript@4.2.3: resolution: {integrity: sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg==} dependencies: arg: 4.1.3 @@ -14300,7 +14300,7 @@ packages: diff: 4.0.2 make-error: 1.3.6 source-map-support: 0.5.19 - typescript: 4.1.5 + typescript: 4.2.3 yn: 3.1.1 dev: true engines: @@ -14335,8 +14335,8 @@ packages: tslint-eslint-rules: 5.4.0 dev: true transitivePeerDependencies: - - typescript - tslint + - typescript /tslint-eslint-rules/5.4.0: resolution: {integrity: sha512-WlSXE+J2vY/VPgIcqQuijMQiel+UtmXS+4nvK4ZzlDiqBfXse8FAvkNnTcYhnQyOTW5KFM+uRRGXxYhFpuBc6w==} @@ -14471,8 +14471,8 @@ packages: /typedarray/0.0.6: resolution: {integrity: sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=} - /typescript/4.1.5: - resolution: {integrity: sha512-6OSu9PTIzmn9TCDiovULTnET6BgXtDYL4Gg4szY+cGsc3JP1dQL8qvE8kShTRx1NIw4Q9IBHlwODjkjWEtMUyA==} + /typescript/4.2.3: + resolution: {integrity: sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==} dev: true engines: node: '>=4.2.0' @@ -14740,8 +14740,8 @@ packages: hasBin: true transitivePeerDependencies: - bufferutil - - utf-8-validate - canvas + - utf-8-validate /verror/1.10.0: resolution: {integrity: sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=}