Skip to content

Commit d2dc5c6

Browse files
committed
dependencies(@types/find-package-json): upgrade to 1.2.0
1 parent bf40050 commit d2dc5c6

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

packages/mongodb-memory-server-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@types/debug": "^4.1.5",
3535
"@types/dedent": "^0.7.0",
3636
"@types/find-cache-dir": "^3.2.0",
37-
"@types/find-package-json": "^1.1.1",
37+
"@types/find-package-json": "^1.2.0",
3838
"@types/lockfile": "^1.0.1",
3939
"@types/md5-file": "^4.0.2",
4040
"@types/mkdirp": "^1.0.1",

packages/mongodb-memory-server-core/src/util/resolveConfig.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
import camelCase from 'camelcase';
2-
import finder, { FinderIterator, Package } from 'find-package-json';
2+
import finder from 'find-package-json';
33
import debug from 'debug';
44
import * as path from 'path';
55

66
const log = debug('MongoMS:ResolveConfig');
77

8-
// Workaround, because that package dosnt implement the default iterator
9-
interface CustomFinderIterator extends FinderIterator {
10-
[Symbol.iterator](): Iterator<Package>;
11-
}
12-
138
export enum ResolveConfigVariables {
149
DOWNLOAD_DIR = 'DOWNLOAD_DIR',
1510
PLATFORM = 'PLATFORM',
@@ -52,7 +47,7 @@ let packageJsonConfig: Record<string, string> = {};
5247
* @param directory Set an custom directory to search the config in (default: process.cwd())
5348
*/
5449
export function findPackageJson(directory?: string): Record<string, string> {
55-
for (const found of finder(directory || process.cwd()) as CustomFinderIterator) {
50+
for (const found of finder(directory || process.cwd())) {
5651
// This is an hidden property, using this because an "for..of" loop dosnt return the "filename" value that is besides the "done" and "value" value
5752
const filename = found.__path as string;
5853
log(`findPackageJson: Found package.json at "${filename}"`);

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,10 +1955,10 @@
19551955
resolved "https://registry.yarnpkg.com/@types/find-cache-dir/-/find-cache-dir-3.2.0.tgz#eaaf331699dccf52c47926e4d4f8f3ed8db33f3c"
19561956
integrity sha512-+JeT9qb2Jwzw72WdjU+TSvD5O1QRPWCeRpDJV+guiIq+2hwR0DFGw+nZNbTFjMIVe6Bf4GgAKeB/6Ytx6+MbeQ==
19571957

1958-
"@types/find-package-json@^1.1.1":
1959-
version "1.1.1"
1960-
resolved "https://registry.yarnpkg.com/@types/find-package-json/-/find-package-json-1.1.1.tgz#c0d296ac74fe3309ed0fe75a9c3edb42a776d30c"
1961-
integrity sha512-XMCocYkg6VUpkbOQMKa3M5cgc3MvU/LJKQwd3VUJrWZbLr2ARUggupsCAF8DxjEEIuSO6HlnH+vl+XV4bgVeEQ==
1958+
"@types/find-package-json@^1.2.0":
1959+
version "1.2.0"
1960+
resolved "https://registry.yarnpkg.com/@types/find-package-json/-/find-package-json-1.2.0.tgz#bd8cb2be70338e50713628154d6addd1fb4999e2"
1961+
integrity sha512-6MllVGBx1F+O3w1dozG1PtI+rKDZf7r7llwd+M3JaSJqTcOiiELFzzaeWKmg335Ibt+ihOdepRseFii5/femfA==
19621962
dependencies:
19631963
"@types/node" "*"
19641964

0 commit comments

Comments
 (0)