apeframework 0.0.0-dev.21 → 0.0.0-dev.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{cipher → dist/cipher}/Cipher.d.ts +1 -1
- package/{cipher → dist/cipher}/Cipher.js +6 -6
- package/{cipher → dist/cipher}/errors/DecryptError.d.ts +1 -1
- package/{cipher → dist/cipher}/errors/DecryptError.js +1 -1
- package/{jwt → dist/cipher}/errors/SecretLengthError.d.ts +1 -1
- package/{cipher → dist/cipher}/errors/SecretLengthError.js +1 -1
- package/{cipher → dist/cipher}/validateSecretLength.d.ts +1 -1
- package/{cipher → dist/cipher}/validateSecretLength.js +2 -2
- package/{cli → dist/cli}/Command.d.ts +1 -1
- package/{cli → dist/cli}/getArgs.d.ts +1 -1
- package/{cli → dist/cli}/getArgs.js +1 -1
- package/{cli → dist/cli}/parseArgs.d.ts +1 -1
- package/{config → dist/config}/Properties.d.ts +1 -1
- package/{config → dist/config}/errors/FileReadError.d.ts +1 -1
- package/{config → dist/config}/errors/FileReadError.js +1 -1
- package/{config → dist/config}/errors/PropertyNameError.d.ts +1 -1
- package/{config → dist/config}/errors/PropertyNameError.js +1 -1
- package/{config → dist/config}/errors/PropertyParseError.d.ts +1 -1
- package/{config → dist/config}/errors/PropertyParseError.js +1 -1
- package/{config → dist/config}/getConfig.d.ts +4 -4
- package/{config → dist/config}/getConfig.js +4 -4
- package/{config → dist/config}/parseProperty.d.ts +1 -1
- package/{config → dist/config}/parseProperty.js +1 -1
- package/{config → dist/config}/readFile.js +1 -1
- package/{config → dist/config}/validatePropertyName.js +1 -1
- package/{env → dist/env}/errors/FileReadError.d.ts +1 -1
- package/{tls → dist/env}/errors/FileReadError.js +1 -1
- package/{env → dist/env}/getEnv.d.ts +1 -1
- package/{env → dist/env}/getEnv.js +1 -1
- package/{env → dist/env}/readFile.d.ts +1 -1
- package/{env → dist/env}/readFile.js +1 -1
- package/{jwt → dist/jwt}/Jwt.d.ts +2 -2
- package/{jwt → dist/jwt}/Jwt.js +1 -1
- package/{cipher → dist/jwt}/errors/SecretLengthError.d.ts +1 -1
- package/{jwt → dist/jwt}/errors/SecretLengthError.js +1 -1
- package/{jwt → dist/jwt}/validateSecretLength.d.ts +1 -1
- package/{jwt → dist/jwt}/validateSecretLength.js +2 -2
- package/{logger → dist/logger}/adapters/file/FileLogger.d.ts +2 -2
- package/{logger → dist/logger}/adapters/file/FileLogger.js +4 -4
- package/{logger → dist/logger}/adapters/file/errors/FileInitError.d.ts +1 -1
- package/{logger → dist/logger}/adapters/file/errors/FileInitError.js +1 -1
- package/{logger → dist/logger}/adapters/file/initFile.js +1 -1
- package/{logger → dist/logger}/adapters/noop/NoopLogger.d.ts +1 -1
- package/{logger → dist/logger}/adapters/noop/NoopLogger.js +1 -1
- package/{logger → dist/logger}/adapters/stdio/StdioLogger.d.ts +2 -2
- package/{logger → dist/logger}/adapters/stdio/StdioLogger.js +3 -3
- package/{mailer → dist/mailer}/Event.d.ts +2 -2
- package/{mailer → dist/mailer}/Mail.d.ts +4 -4
- package/{mailer → dist/mailer}/Mailer.d.ts +1 -1
- package/{mailer → dist/mailer}/Mailer.js +5 -5
- package/{mailer → dist/mailer}/adapters/noop/NoopMailer.d.ts +2 -2
- package/{mailer → dist/mailer}/adapters/noop/NoopMailer.js +1 -1
- package/{mailer → dist/mailer}/adapters/smtp/SmtpMailer.d.ts +3 -3
- package/{mailer → dist/mailer}/adapters/smtp/SmtpMailer.js +6 -6
- package/{mailer → dist/mailer}/adapters/smtp/getAddress.d.ts +1 -1
- package/{mailer → dist/mailer}/adapters/smtp/getAddresses.d.ts +1 -1
- package/{mailer → dist/mailer}/adapters/smtp/getAddresses.js +1 -1
- package/{mailer → dist/mailer}/adapters/smtp/getAttachments.d.ts +1 -1
- package/{mailer → dist/mailer}/errors/AddressEmailError.d.ts +1 -1
- package/{mailer → dist/mailer}/errors/AddressEmailError.js +1 -1
- package/{mailer → dist/mailer}/errors/EventAttachmentUrlError.d.ts +1 -1
- package/{mailer → dist/mailer}/errors/EventAttachmentUrlError.js +1 -1
- package/{mailer → dist/mailer}/errors/EventGeolocationError.d.ts +1 -1
- package/{mailer → dist/mailer}/errors/EventGeolocationError.js +1 -1
- package/{mailer → dist/mailer}/errors/EventUrlError.d.ts +1 -1
- package/{mailer → dist/mailer}/errors/EventUrlError.js +1 -1
- package/{mailer → dist/mailer}/errors/ListUrlError.d.ts +1 -1
- package/{mailer → dist/mailer}/errors/ListUrlError.js +1 -1
- package/{mailer → dist/mailer}/getIcalendar.d.ts +1 -1
- package/{mailer → dist/mailer}/validateAddressEmail.js +2 -2
- package/{mailer → dist/mailer}/validateEventAttachmentUrl.js +2 -2
- package/{mailer → dist/mailer}/validateEventGeolocation.js +2 -2
- package/{mailer → dist/mailer}/validateEventUrl.js +2 -2
- package/{mailer → dist/mailer}/validateListUrl.js +2 -2
- package/{parser → dist/parser}/errors/ParseError.d.ts +1 -1
- package/{parser → dist/parser}/errors/ParseError.js +1 -1
- package/dist/parser/factories/enum/createEnumParser.d.ts +6 -0
- package/{parser → dist/parser}/factories/enum/createEnumParser.js +1 -1
- package/{parser → dist/parser}/factories/unit/createUnitParser.d.ts +2 -2
- package/{parser → dist/parser}/factories/unit/createUnitParser.js +3 -3
- package/{parser → dist/parser}/parseBoolean.d.ts +1 -1
- package/{parser → dist/parser}/parseBoolean.js +1 -1
- package/dist/parser/parseBytes.d.ts +2 -0
- package/{parser → dist/parser}/parseBytes.js +1 -1
- package/{parser → dist/parser}/parseInteger.d.ts +1 -1
- package/{parser → dist/parser}/parseInteger.js +2 -2
- package/dist/parser/parseMilliseconds.d.ts +2 -0
- package/{parser → dist/parser}/parseMilliseconds.js +1 -1
- package/{parser → dist/parser}/parseNumber.d.ts +1 -1
- package/{parser → dist/parser}/parseNumber.js +1 -1
- package/{parser → dist/parser}/parseString.d.ts +1 -1
- package/{parser → dist/parser}/parseString.js +1 -1
- package/{pwd → dist/pwd}/Pwd.js +1 -1
- package/{pwd → dist/pwd}/errors/HashRoundsError.d.ts +1 -1
- package/{pwd → dist/pwd}/errors/HashRoundsError.js +1 -1
- package/{pwd → dist/pwd}/validateHashRounds.js +1 -1
- package/{server → dist/server}/Route.d.ts +3 -3
- package/{server → dist/server}/Server.d.ts +5 -5
- package/{server → dist/server}/Server.js +2 -2
- package/{server → dist/server}/getAjv.d.ts +1 -1
- package/{tls → dist/tls}/errors/FileReadError.d.ts +1 -1
- package/{env → dist/tls}/errors/FileReadError.js +1 -1
- package/{tls → dist/tls}/getTls.d.ts +1 -1
- package/{tls → dist/tls}/getTls.js +1 -1
- package/{tls → dist/tls}/readFile.js +1 -1
- package/package.json +632 -6
- package/parser/factories/enum/createEnumParser.d.ts +0 -6
- package/parser/parseBytes.d.ts +0 -2
- package/parser/parseMilliseconds.d.ts +0 -2
- /package/{cipher → dist/cipher}/Algorithm.d.ts +0 -0
- /package/{cipher → dist/cipher}/Algorithm.js +0 -0
- /package/{cli → dist/cli}/Args.d.ts +0 -0
- /package/{cli → dist/cli}/Args.js +0 -0
- /package/{cli → dist/cli}/Command.js +0 -0
- /package/{cli → dist/cli}/parseArgs.js +0 -0
- /package/{cli → dist/cli}/utils/exit.d.ts +0 -0
- /package/{cli → dist/cli}/utils/exit.js +0 -0
- /package/{cli → dist/cli}/utils/formatList.d.ts +0 -0
- /package/{cli → dist/cli}/utils/formatList.js +0 -0
- /package/{cli → dist/cli}/utils/formatTable.d.ts +0 -0
- /package/{cli → dist/cli}/utils/formatTable.js +0 -0
- /package/{cli → dist/cli}/utils/formatText.d.ts +0 -0
- /package/{cli → dist/cli}/utils/formatText.js +0 -0
- /package/{cli → dist/cli}/utils/print.d.ts +0 -0
- /package/{cli → dist/cli}/utils/print.js +0 -0
- /package/{cli → dist/cli}/utils/printLn.d.ts +0 -0
- /package/{cli → dist/cli}/utils/printLn.js +0 -0
- /package/{config → dist/config}/Config.d.ts +0 -0
- /package/{config → dist/config}/Config.js +0 -0
- /package/{config → dist/config}/Properties.js +0 -0
- /package/{config → dist/config}/getPropertyEnvVar.d.ts +0 -0
- /package/{config → dist/config}/getPropertyEnvVar.js +0 -0
- /package/{config → dist/config}/readFile.d.ts +0 -0
- /package/{config → dist/config}/validatePropertyName.d.ts +0 -0
- /package/{env → dist/env}/Env.d.ts +0 -0
- /package/{env → dist/env}/Env.js +0 -0
- /package/{error → dist/error}/BaseError.d.ts +0 -0
- /package/{error → dist/error}/BaseError.js +0 -0
- /package/{jwt → dist/jwt}/Algorithm.d.ts +0 -0
- /package/{jwt → dist/jwt}/Algorithm.js +0 -0
- /package/{jwt → dist/jwt}/Payload.d.ts +0 -0
- /package/{jwt → dist/jwt}/Payload.js +0 -0
- /package/{logger → dist/logger}/Level.d.ts +0 -0
- /package/{logger → dist/logger}/Level.js +0 -0
- /package/{logger → dist/logger}/Logger.d.ts +0 -0
- /package/{logger → dist/logger}/Logger.js +0 -0
- /package/{logger → dist/logger}/Severity.d.ts +0 -0
- /package/{logger → dist/logger}/Severity.js +0 -0
- /package/{logger → dist/logger}/adapters/file/initFile.d.ts +0 -0
- /package/{mailer → dist/mailer}/Address.d.ts +0 -0
- /package/{mailer → dist/mailer}/Address.js +0 -0
- /package/{mailer → dist/mailer}/Attachment.d.ts +0 -0
- /package/{mailer → dist/mailer}/Attachment.js +0 -0
- /package/{mailer → dist/mailer}/Event.js +0 -0
- /package/{mailer → dist/mailer}/List.d.ts +0 -0
- /package/{mailer → dist/mailer}/List.js +0 -0
- /package/{mailer → dist/mailer}/Location.d.ts +0 -0
- /package/{mailer → dist/mailer}/Location.js +0 -0
- /package/{mailer → dist/mailer}/Mail.js +0 -0
- /package/{mailer → dist/mailer}/Method.d.ts +0 -0
- /package/{mailer → dist/mailer}/Method.js +0 -0
- /package/{mailer → dist/mailer}/adapters/smtp/getAddress.js +0 -0
- /package/{mailer → dist/mailer}/adapters/smtp/getAttachments.js +0 -0
- /package/{mailer → dist/mailer}/getIcalendar.js +0 -0
- /package/{mailer → dist/mailer}/validateAddressEmail.d.ts +0 -0
- /package/{mailer → dist/mailer}/validateEventAttachmentUrl.d.ts +0 -0
- /package/{mailer → dist/mailer}/validateEventGeolocation.d.ts +0 -0
- /package/{mailer → dist/mailer}/validateEventUrl.d.ts +0 -0
- /package/{mailer → dist/mailer}/validateListUrl.d.ts +0 -0
- /package/{parser → dist/parser}/Parser.d.ts +0 -0
- /package/{parser → dist/parser}/Parser.js +0 -0
- /package/{parser → dist/parser}/factories/unit/Unit.d.ts +0 -0
- /package/{parser → dist/parser}/factories/unit/Unit.js +0 -0
- /package/{pwd → dist/pwd}/Pwd.d.ts +0 -0
- /package/{pwd → dist/pwd}/validateHashRounds.d.ts +0 -0
- /package/{server → dist/server}/ErrorHandler.d.ts +0 -0
- /package/{server → dist/server}/ErrorHandler.js +0 -0
- /package/{server → dist/server}/Format.d.ts +0 -0
- /package/{server → dist/server}/Format.js +0 -0
- /package/{server → dist/server}/Handler.d.ts +0 -0
- /package/{server → dist/server}/Handler.js +0 -0
- /package/{server → dist/server}/Method.d.ts +0 -0
- /package/{server → dist/server}/Method.js +0 -0
- /package/{server → dist/server}/OpenApiFormat.d.ts +0 -0
- /package/{server → dist/server}/OpenApiFormat.js +0 -0
- /package/{server → dist/server}/Route.js +0 -0
- /package/{server → dist/server}/Schema.d.ts +0 -0
- /package/{server → dist/server}/Schema.js +0 -0
- /package/{server → dist/server}/getAjv.js +0 -0
- /package/{tls → dist/tls}/Tls.d.ts +0 -0
- /package/{tls → dist/tls}/Tls.js +0 -0
- /package/{tls → dist/tls}/readFile.d.ts +0 -0
- /package/{utils → dist/utils}/getRandomHexString.d.ts +0 -0
- /package/{utils → dist/utils}/getRandomHexString.js +0 -0
- /package/{utils → dist/utils}/getTimestamp.d.ts +0 -0
- /package/{utils → dist/utils}/getTimestamp.js +0 -0
- /package/{utils → dist/utils}/isValidEmail.d.ts +0 -0
- /package/{utils → dist/utils}/isValidEmail.js +0 -0
- /package/{utils → dist/utils}/isValidGeolocation.d.ts +0 -0
- /package/{utils → dist/utils}/isValidGeolocation.js +0 -0
- /package/{utils → dist/utils}/isValidHexString.d.ts +0 -0
- /package/{utils → dist/utils}/isValidHexString.js +0 -0
- /package/{utils → dist/utils}/isValidIsoDate.d.ts +0 -0
- /package/{utils → dist/utils}/isValidIsoDate.js +0 -0
- /package/{utils → dist/utils}/isValidJwtToken.d.ts +0 -0
- /package/{utils → dist/utils}/isValidJwtToken.js +0 -0
- /package/{utils → dist/utils}/isValidUrl.d.ts +0 -0
- /package/{utils → dist/utils}/isValidUrl.js +0 -0
- /package/{utils → dist/utils}/isValidUuid.d.ts +0 -0
- /package/{utils → dist/utils}/isValidUuid.js +0 -0
- /package/{utils → dist/utils}/wait.d.ts +0 -0
- /package/{utils → dist/utils}/wait.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isValidGeolocation } from 'utils/isValidGeolocation';
|
|
2
|
-
import { EventGeolocationError } from './errors/EventGeolocationError';
|
|
1
|
+
import { isValidGeolocation } from '../utils/isValidGeolocation.js';
|
|
2
|
+
import { EventGeolocationError } from './errors/EventGeolocationError.js';
|
|
3
3
|
const validateEventGeolocation = (latitude, longitude) => {
|
|
4
4
|
if (!isValidGeolocation(latitude, longitude)) {
|
|
5
5
|
throw new EventGeolocationError(latitude, longitude);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isValidUrl } from 'utils/isValidUrl';
|
|
2
|
-
import { EventUrlError } from './errors/EventUrlError';
|
|
1
|
+
import { isValidUrl } from '../utils/isValidUrl.js';
|
|
2
|
+
import { EventUrlError } from './errors/EventUrlError.js';
|
|
3
3
|
const validateEventUrl = (url) => {
|
|
4
4
|
if (!isValidUrl(url)) {
|
|
5
5
|
throw new EventUrlError(url);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isValidUrl } from 'utils/isValidUrl';
|
|
2
|
-
import { ListUrlError } from './errors/ListUrlError';
|
|
1
|
+
import { isValidUrl } from '../utils/isValidUrl.js';
|
|
2
|
+
import { ListUrlError } from './errors/ListUrlError.js';
|
|
3
3
|
const validateListUrl = (property, url) => {
|
|
4
4
|
if (!isValidUrl(url)) {
|
|
5
5
|
throw new ListUrlError(property, url);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ParseError } from '../../errors/ParseError';
|
|
2
|
-
import { parseNumber } from '../../parseNumber';
|
|
3
|
-
import { parseString } from '../../parseString';
|
|
1
|
+
import { ParseError } from '../../errors/ParseError.js';
|
|
2
|
+
import { parseNumber } from '../../parseNumber.js';
|
|
3
|
+
import { parseString } from '../../parseString.js';
|
|
4
4
|
const createUnitParser = (params) => {
|
|
5
5
|
return (input) => {
|
|
6
6
|
let string;
|
package/{pwd → dist/pwd}/Pwd.js
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Handler } from './Handler';
|
|
2
|
-
import type { Method } from './Method';
|
|
3
|
-
import type { Schema } from './Schema';
|
|
1
|
+
import type { Handler } from './Handler.js';
|
|
2
|
+
import type { Method } from './Method.js';
|
|
3
|
+
import type { Schema } from './Schema.js';
|
|
4
4
|
interface Route {
|
|
5
5
|
path: string;
|
|
6
6
|
method: Method;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OpenApiFormat } from './OpenApiFormat';
|
|
2
|
-
import type { ErrorHandler } from './ErrorHandler';
|
|
3
|
-
import type { Format } from './Format';
|
|
4
|
-
import type { Handler } from './Handler';
|
|
5
|
-
import type { Route } from './Route';
|
|
1
|
+
import { OpenApiFormat } from './OpenApiFormat.js';
|
|
2
|
+
import type { ErrorHandler } from './ErrorHandler.js';
|
|
3
|
+
import type { Format } from './Format.js';
|
|
4
|
+
import type { Handler } from './Handler.js';
|
|
5
|
+
import type { Route } from './Route.js';
|
|
6
6
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
7
7
|
declare class Server {
|
|
8
8
|
private readonly server;
|
|
@@ -3,8 +3,8 @@ import cors from '@fastify/cors';
|
|
|
3
3
|
import responseValidation from '@fastify/response-validation';
|
|
4
4
|
import swagger from '@fastify/swagger';
|
|
5
5
|
import fastify from 'fastify';
|
|
6
|
-
import { OpenApiFormat } from './OpenApiFormat';
|
|
7
|
-
import { getAjv } from './getAjv';
|
|
6
|
+
import { OpenApiFormat } from './OpenApiFormat.js';
|
|
7
|
+
import { getAjv } from './getAjv.js';
|
|
8
8
|
class Server {
|
|
9
9
|
server;
|
|
10
10
|
host;
|