Skip to content

Commit

Permalink
fix: use tar fork version to fix memory leak (#625)
Browse files Browse the repository at this point in the history
closes #624
  • Loading branch information
fengmk2 authored Dec 18, 2023
1 parent 87ca86f commit 6c519f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/common/PackageUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createReadStream } from 'node:fs';
import { Readable } from 'node:stream';
import { pipeline } from 'node:stream/promises';
import * as ssri from 'ssri';
import tar from 'tar';
import tar from '@fengmk2/tar';
import { AuthorType, PackageJSONType } from '../repository/PackageRepository';


Expand Down
2 changes: 1 addition & 1 deletion app/core/service/PackageVersionFileService.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'node:fs/promises';
import { join, dirname, basename } from 'node:path';
import { randomUUID } from 'node:crypto';
import tar from 'tar';
import tar from '@fengmk2/tar';
import {
AccessLevel,
SingletonProto,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"@eggjs/tegg-schedule-plugin": "^3.12.0",
"@eggjs/tsconfig": "^1.0.0",
"@elastic/elasticsearch": "^8.8.1",
"@fengmk2/tar": "^6.2.0",
"@node-rs/crc32": "^1.2.2",
"@simplewebauthn/server": "^7.0.1",
"@sinclair/typebox": "^0.23.0",
Expand Down Expand Up @@ -108,7 +109,6 @@
"s3-cnpmcore": "^1.1.2",
"semver": "^7.3.5",
"ssri": "^8.0.1",
"tar": "^6.1.13",
"type-fest": "^2.5.3",
"ua-parser-js": "^1.0.34",
"validate-npm-package-name": "^3.0.0"
Expand Down

0 comments on commit 6c519f7

Please sign in to comment.