fix(core): update

This commit is contained in:
2023-07-25 18:14:51 +02:00
parent e0a9e9702a
commit afa511550d
17 changed files with 1736 additions and 14631 deletions

View File

@@ -1,7 +1,7 @@
import * as plugins from './smartnpm.plugins.js';
import { NpmRegistry } from './smartnpm.classes.npmregistry.js';
import { PackageDisttag } from './smartnpm.classes.packagedisttag.js';
import { PackageVersion, IVersionData } from './smartnpm.classes.packageversion.js';
import { PackageVersion, type IVersionData } from './smartnpm.classes.packageversion.js';
export class NpmPackage {
public static async createFromFullMetadataAndVersionData(
@@ -139,7 +139,7 @@ export class NpmPackage {
// lets resolve with the wanted file
done.resolve([fileArg]);
subscription.unsubscribe();
} else if(!returnOnFirstArg && fileArg.path.startsWith(wantedFilePath)) {
} else if (!returnOnFirstArg && fileArg.path.startsWith(wantedFilePath)) {
allMatchingFiles.push(fileArg);
}
},
@@ -157,7 +157,7 @@ export class NpmPackage {
/**
* get files from package
*/
public async getFileFromPackage(
public async getFileFromPackage(
filePath: string,
optionsArg?: {
distTag?: string;