diff --git a/package-lock.json b/package-lock.json index 6274702..50bce12 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/common", - "version": "5.0.0", + "version": "5.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/common", - "version": "5.0.0", + "version": "5.1.0", "license": "MIT", "dependencies": { "@fastify/formbody": "^7.4.0", @@ -37,7 +37,7 @@ "youch-terminal": "^2.2.3" }, "devDependencies": { - "@athenna/test": "^4.30.0", + "@athenna/test": "^5.0.0", "@athenna/tsconfig": "^5.0.0", "@types/bytes": "^3.1.4", "@types/callsite": "^1.0.34", @@ -99,9 +99,9 @@ "license": "MIT" }, "node_modules/@athenna/test": { - "version": "4.30.0", - "resolved": "https://registry.npmjs.org/@athenna/test/-/test-4.30.0.tgz", - "integrity": "sha512-PyvvDXUf3ZsHpBxhwqA5OBUv8JCTOFtAIxmBJZwYPJEMnf4RndlhkjdKfJ/1anE9yoazqm5iJ4G4IvAp4dZF3g==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/test/-/test-5.0.0.tgz", + "integrity": "sha512-+mrFFc/EapTrz7T3Inobo/2NKGsF1IIquZTBElQubvchoTk7kJvZcPqYOLqqNn7Ha8zpQAthUo/GouUSmDEaZw==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 076f65a..e7afcb6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/common", - "version": "5.0.0", + "version": "5.1.0", "description": "The Athenna common helpers to use in any Node.js ESM project.", "license": "MIT", "author": "João Lenon ", @@ -41,7 +41,27 @@ ".": "./src/index.js", "./types": "./src/types/index.js", "./package": "./package.json", - "./package.json": "./package.json" + "./package.json": "./package.json", + "./helpers/clean": "./src/helpers/Clean.js", + "./helpers/collection": "./src/helpers/Collection.js", + "./helpers/color": "./src/helpers/Color.js", + "./helpers/enum": "./src/helpers/enum.js", + "./helpers/exception": "./src/helpers/exception.js", + "./helpers/exec": "./src/helpers/Exec.js", + "./helpers/fake_api": "./src/helpers/FakeApi.js", + "./helpers/file": "./src/helpers/File.js", + "./helpers/folder": "./src/helpers/Folder.js", + "./helpers/http_client": "./src/helpers/HttpClient.js", + "./helpers/is": "./src/helpers/Is.js", + "./helpers/json": "./src/helpers/Json.js", + "./helpers/module": "./src/helpers/Module.js", + "./helpers/number": "./src/helpers/Number.js", + "./helpers/options": "./src/helpers/Options.js", + "./helpers/parser": "./src/helpers/Parser.js", + "./helpers/path": "./src/helpers/Path.js", + "./helpers/route": "./src/helpers/Route.js", + "./helpers/string": "./src/helpers/String.js", + "./helpers/uuid": "./src/helpers/Uuid.js" }, "imports": { "#bin/*": "./bin/*.js", @@ -82,7 +102,7 @@ "youch-terminal": "^2.2.3" }, "devDependencies": { - "@athenna/test": "^4.30.0", + "@athenna/test": "^5.0.0", "@athenna/tsconfig": "^5.0.0", "@types/bytes": "^3.1.4", "@types/callsite": "^1.0.34", diff --git a/src/helpers/Is.ts b/src/helpers/Is.ts index 4110992..60efb96 100644 --- a/src/helpers/Is.ts +++ b/src/helpers/Is.ts @@ -10,7 +10,9 @@ import kindOf from 'kind-of' import { isIP } from 'node:net' -import { File, Uuid, Exception } from '#src' +import { File } from '#src/helpers/File' +import { Uuid } from '#src/helpers/Uuid' +import { Exception } from '#src/helpers/Exception' import { isCep, isCnpj, isCpf } from 'validator-brazil' export class Is { diff --git a/src/helpers/Module.ts b/src/helpers/Module.ts index 47c14c1..0a09357 100644 --- a/src/helpers/Module.ts +++ b/src/helpers/Module.ts @@ -8,10 +8,14 @@ */ import { debug } from '#src/debug' +import { Path } from '#src/helpers/Path' +import { File } from '#src/helpers/File' import { createRequire } from 'node:module' +import { Folder } from '#src/helpers/Folder' +import { Options } from '#src/helpers/Options' +import type { ModuleResolveOptions } from '#src/types' import { fileURLToPath, pathToFileURL } from 'node:url' import { dirname, extname, isAbsolute } from 'node:path' -import { Path, File, Folder, type ModuleResolveOptions, Options } from '#src' export class Module { /**