@breautek/storm 9.3.1 → 9.5.0
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/CHANGELOG.md +15 -0
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Application.html +17 -17
- package/docs/classes/Command.html +90 -90
- package/docs/classes/ConfigLoader.html +3 -3
- package/docs/classes/Database.html +2 -2
- package/docs/classes/DatabaseCastObject.html +2 -2
- package/docs/classes/DatabaseConnection.html +21 -21
- package/docs/classes/DatabaseQueryError.html +6 -6
- package/docs/classes/DeadLockError.html +6 -6
- package/docs/classes/DiskSpaceError.html +5 -5
- package/docs/classes/DropTemporaryTableQuery.html +7 -7
- package/docs/classes/DuplicateEntryError.html +5 -5
- package/docs/classes/EntityNotFoundError.html +5 -5
- package/docs/classes/ExpiredTokenError.html +5 -5
- package/docs/classes/ForbiddenError.html +5 -5
- package/docs/classes/GetMySQLVersion.html +7 -7
- package/docs/classes/Handler.html +4 -2
- package/docs/classes/IllegalStateError.html +5 -5
- package/docs/classes/InternalError.html +5 -5
- package/docs/classes/InvalidCredentialsError.html +5 -5
- package/docs/classes/InvalidValueError.html +5 -5
- package/docs/classes/LineString.html +2 -2
- package/docs/classes/LockWaitTimeoutError.html +6 -6
- package/docs/classes/ManagedDatabaseConnection.html +5 -5
- package/docs/classes/MetricStore.html +2 -2
- package/docs/classes/Middleware.html +2 -2
- package/docs/classes/MissingConfigError.html +5 -5
- package/docs/classes/MissingParameterError.html +5 -5
- package/docs/classes/MySQLConnection.html +25 -25
- package/docs/classes/MySQLDatabase.html +2 -2
- package/docs/classes/NotImplementedError.html +5 -5
- package/docs/classes/Point.html +2 -2
- package/docs/classes/Polygon.html +2 -2
- package/docs/classes/Query.html +7 -7
- package/docs/classes/RawError.html +5 -5
- package/docs/classes/RawQuery.html +7 -7
- package/docs/classes/Request.html +10 -3
- package/docs/classes/Response.html +2 -2
- package/docs/classes/ResponseData.html +3 -3
- package/docs/classes/ServiceProvider.html +2 -2
- package/docs/classes/ServiceResponse.html +2 -2
- package/docs/classes/SetSessionVariableQuery.html +7 -7
- package/docs/classes/StormError.html +5 -5
- package/docs/classes/TemporaryTableQuery.html +7 -7
- package/docs/classes/TimeoutError.html +5 -5
- package/docs/classes/Token.html +2 -2
- package/docs/classes/TokenManager.html +5 -2
- package/docs/classes/Transaction.html +2 -2
- package/docs/classes/UnauthorizedAccessError.html +5 -5
- package/docs/enums/ErrorCode.html +2 -2
- package/docs/enums/ExitCode.html +2 -2
- package/docs/enums/HTTPMethod.html +2 -2
- package/docs/enums/IsolationLevel.html +2 -2
- package/docs/enums/JWTError.html +2 -2
- package/docs/enums/StatusCode.html +2 -2
- package/docs/enums/TransactionAccessLevel.html +2 -2
- package/docs/functions/getInstance.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/interfaces/IAdditionalErrorDetails.html +1 -1
- package/docs/interfaces/ICloudwatchConfig.html +2 -2
- package/docs/interfaces/ICloudwatchCredentials.html +2 -2
- package/docs/interfaces/ICloudwatchStreamConfig.html +2 -2
- package/docs/interfaces/IConfig.html +3 -3
- package/docs/interfaces/IDatabaseConfig.html +2 -2
- package/docs/interfaces/IDatabaseConnection.html +5 -5
- package/docs/interfaces/IDatabasePosition.html +2 -2
- package/docs/interfaces/IErrorResponse.html +2 -2
- package/docs/interfaces/IFormData.html +2 -2
- package/docs/interfaces/IGetMySQLVersionResult.html +2 -2
- package/docs/interfaces/IGetMySQLVersionRow.html +2 -2
- package/docs/interfaces/IInsertQueryResult.html +2 -2
- package/docs/interfaces/IJWTVerifyOptions.html +2 -2
- package/docs/interfaces/IOKPacket.html +2 -2
- package/docs/interfaces/IParameterMap.html +1 -1
- package/docs/interfaces/IQueryable.html +2 -2
- package/docs/interfaces/IRequestResponse.html +2 -2
- package/docs/interfaces/ISetSessionVariableQueryInput.html +2 -2
- package/docs/interfaces/IStormCLIArgs.html +2 -2
- package/docs/interfaces/ITemporaryTableQueryInput.html +2 -2
- package/docs/interfaces/IUpdateQueryResult.html +2 -2
- package/docs/interfaces/formidable.EmitData.html +2 -2
- package/docs/interfaces/formidable.EventData.html +2 -2
- package/docs/interfaces/formidable.File.html +9 -9
- package/docs/interfaces/formidable.FileJSON.html +7 -7
- package/docs/interfaces/formidable.Options.html +16 -16
- package/docs/interfaces/formidable.Part.html +2 -2
- package/docs/types/IDeleteQueryResult.html +1 -1
- package/docs/types/IStoredProcedureResult.html +1 -1
- package/docs/types/TCoordinate.html +1 -1
- package/docs/types/TExpiresIn.html +1 -1
- package/docs/types/TSerializableResponse.html +1 -1
- package/docs/types/TSupportedResponsePrimitives.html +1 -1
- package/docs/types/TSupportedResponseTypes.html +1 -1
- package/docs/types/formidable.BufferEncoding.html +1 -1
- package/docs/types/formidable.DefaultOptions.html +1 -1
- package/docs/types/formidable.EnabledPlugins.html +1 -1
- package/docs/types/formidable.EventNames.html +1 -1
- package/docs/types/formidable.Fields.html +1 -1
- package/docs/types/formidable.Files.html +1 -1
- package/docs/types/formidable.MappedParsers.html +1 -1
- package/docs/types/formidable.Plugin.html +1 -1
- package/docs/types/formidable.PluginFunction.html +1 -1
- package/docs/types/formidable.Plugins.html +1 -1
- package/docs/variables/formidable.html +1 -1
- package/lib/Handler.d.ts +2 -0
- package/lib/Handler.js +18 -4
- package/lib/Handler.js.map +1 -1
- package/lib/Request.d.ts +17 -3
- package/lib/Request.js +27 -0
- package/lib/Request.js.map +1 -1
- package/lib/TokenManager.d.ts +13 -0
- package/lib/TokenManager.js +15 -0
- package/lib/TokenManager.js.map +1 -1
- package/package.json +9 -9
- package/src/Handler.ts +24 -4
- package/src/Request.ts +38 -3
- package/src/TokenManager.ts +16 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>formidable | @breautek/storm</title><meta name="description" content="Documentation for @breautek/storm"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@breautek/storm</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">formidable</a></li></ul><h1>Variable formidable</h1></div><div class="tsd-signature"><span class="tsd-kind-variable">formidable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-namespace">default</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">default</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">defaultOptions</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.DefaultOptions.html" class="tsd-signature-type tsd-kind-type-alias">DefaultOptions</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">enabledPlugins</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">errors</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">FormidableError</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">FormidableError</span> <span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"aborted"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingPlugin"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"pluginFunction"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"uninitializedParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"filenameNotString"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsSizeExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"smallerThanMinFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"biggerThanMaxFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noEmptyFiles"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingContentType"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"malformedMultipart"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingMultipartBoundary"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"unknownTransferEncoding"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">File</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">formidable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../interfaces/formidable.Options.html" class="tsd-signature-type tsd-kind-interface">Options</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">Formidable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">IncomingForm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">parsers</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__module</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">PersistentFile</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">plugins</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">VolatileFile</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">VolatileFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../interfaces/formidable.Options.html" class="tsd-signature-type tsd-kind-interface">Options</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.MappedParsers.html" class="tsd-signature-type tsd-kind-type-alias">MappedParsers</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">defaultOptions</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.DefaultOptions.html" class="tsd-signature-type tsd-kind-type-alias">DefaultOptions</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">DummyParser</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">DummyParser</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">enabledPlugins</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">errors</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">FormidableError</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">FormidableError</span> <span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"aborted"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingPlugin"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"pluginFunction"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"uninitializedParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"filenameNotString"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsSizeExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"smallerThanMinFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"biggerThanMaxFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noEmptyFiles"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingContentType"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"malformedMultipart"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingMultipartBoundary"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"unknownTransferEncoding"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">File</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">formidable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../interfaces/formidable.Options.html" class="tsd-signature-type tsd-kind-interface">Options</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">Formidable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">IncomingForm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">JSONParser</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">JSONParser</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">MultipartParser</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">MultipartParser</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">OctetStreamParser</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">OctetStreamParser</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">parsers</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__module</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">PersistentFile</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">plugins</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">QuerystringParser</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">QuerystringParser</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">StreamingQuerystring</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">StreamingQuerystring</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">VolatileFile</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">VolatileFile</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><div class="tsd-type-declaration"><h4>Type Declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="default-1"><span class="tsd-kind-property">default</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">defaultOptions</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.DefaultOptions.html" class="tsd-signature-type tsd-kind-type-alias">DefaultOptions</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">enabledPlugins</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">errors</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">FormidableError</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">FormidableError</span> <span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"aborted"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingPlugin"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"pluginFunction"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"uninitializedParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"filenameNotString"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsSizeExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"smallerThanMinFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"biggerThanMaxFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noEmptyFiles"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingContentType"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"malformedMultipart"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingMultipartBoundary"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"unknownTransferEncoding"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">File</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">formidable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../interfaces/formidable.Options.html" class="tsd-signature-type tsd-kind-interface">Options</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">Formidable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">IncomingForm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">parsers</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__module</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">PersistentFile</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">plugins</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">VolatileFile</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">VolatileFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../interfaces/formidable.Options.html" class="tsd-signature-type tsd-kind-interface">Options</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.MappedParsers.html" class="tsd-signature-type tsd-kind-type-alias">MappedParsers</a></h5></li><li class="tsd-parameter"><h5 id="defaultoptions-1"><span class="tsd-kind-property">defaultOptions</span><span class="tsd-signature-symbol">: </span><a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.DefaultOptions.html" class="tsd-signature-type tsd-kind-type-alias">DefaultOptions</a></h5></li><li class="tsd-parameter"><h5 id="dummyparser"><span class="tsd-kind-property">DummyParser</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">DummyParser</span></h5></li><li class="tsd-parameter"><h5 id="enabledplugins"><span class="tsd-kind-property">enabledPlugins</span><span class="tsd-signature-symbol">: </span><a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a></h5></li><li class="tsd-parameter"><h5 id="errors"><span class="tsd-kind-property">errors</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">FormidableError</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">FormidableError</span> <span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"aborted"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingPlugin"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"pluginFunction"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"uninitializedParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"filenameNotString"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsSizeExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"smallerThanMinFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"biggerThanMaxFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noEmptyFiles"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingContentType"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"malformedMultipart"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingMultipartBoundary"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"unknownTransferEncoding"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">></span></h5></li><li class="tsd-parameter"><h5 id="file"><span class="tsd-kind-property">File</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span></h5></li><li class="tsd-parameter"><h5 id="formidable"><span class="tsd-kind-property">formidable</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../interfaces/formidable.Options.html" class="tsd-signature-type tsd-kind-interface">Options</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">IncomingForm</span></h5></li><li class="tsd-parameter"><h5 id="formidable-1"><span class="tsd-kind-property">Formidable</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span></h5></li><li class="tsd-parameter"><h5 id="incomingform"><span class="tsd-kind-property">IncomingForm</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span></h5></li><li class="tsd-parameter"><h5 id="jsonparser"><span class="tsd-kind-property">JSONParser</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">JSONParser</span></h5></li><li class="tsd-parameter"><h5 id="multipartparser"><span class="tsd-kind-property">MultipartParser</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">MultipartParser</span></h5></li><li class="tsd-parameter"><h5 id="octetstreamparser"><span class="tsd-kind-property">OctetStreamParser</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">OctetStreamParser</span></h5></li><li class="tsd-parameter"><h5 id="parsers"><span class="tsd-kind-property">parsers</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">__module</span></h5></li><li class="tsd-parameter"><h5 id="persistentfile"><span class="tsd-kind-property">PersistentFile</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span></h5></li><li class="tsd-parameter"><h5 id="plugins"><span class="tsd-kind-property">plugins</span><span class="tsd-signature-symbol">: </span><a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a></h5></li><li class="tsd-parameter"><h5 id="querystringparser"><span class="tsd-kind-property">QuerystringParser</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">QuerystringParser</span></h5></li><li class="tsd-parameter"><h5 id="streamingquerystring"><span class="tsd-kind-property">StreamingQuerystring</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">StreamingQuerystring</span></h5></li><li class="tsd-parameter"><h5 id="volatilefile"><span class="tsd-kind-property">VolatileFile</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">VolatileFile</span></h5></li></ul></div><aside class="tsd-sources"><ul><li>Defined in node_modules/.pnpm/@types+formidable@3.4.6/node_modules/@types/formidable/index.d.ts:10</li><li>Defined in node_modules/.pnpm/@types+formidable@3.4.6/node_modules/@types/formidable/index.d.ts:314</li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html">@breautek/storm</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>formidable | @breautek/storm</title><meta name="description" content="Documentation for @breautek/storm"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@breautek/storm</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">formidable</a></li></ul><h1>Variable formidable</h1></div><div class="tsd-signature"><span class="tsd-kind-variable">formidable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-namespace">default</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">default</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">defaultOptions</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.DefaultOptions.html" class="tsd-signature-type tsd-kind-type-alias">DefaultOptions</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">enabledPlugins</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">errors</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">FormidableError</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">FormidableError</span> <span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"aborted"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingPlugin"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"pluginFunction"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"uninitializedParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"filenameNotString"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsSizeExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"smallerThanMinFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"biggerThanMaxFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noEmptyFiles"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingContentType"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"malformedMultipart"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingMultipartBoundary"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"unknownTransferEncoding"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">File</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">formidable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../interfaces/formidable.Options.html" class="tsd-signature-type tsd-kind-interface">Options</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">Formidable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">IncomingForm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">json</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">multipart</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">octetstream</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">parsers</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__module</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">PersistentFile</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">plugins</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">querystring</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">VolatileFile</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">VolatileFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../interfaces/formidable.Options.html" class="tsd-signature-type tsd-kind-interface">Options</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.MappedParsers.html" class="tsd-signature-type tsd-kind-type-alias">MappedParsers</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">defaultOptions</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.DefaultOptions.html" class="tsd-signature-type tsd-kind-type-alias">DefaultOptions</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">DummyParser</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">DummyParser</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">enabledPlugins</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">errors</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">FormidableError</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">FormidableError</span> <span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"aborted"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingPlugin"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"pluginFunction"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"uninitializedParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"filenameNotString"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsSizeExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"smallerThanMinFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"biggerThanMaxFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noEmptyFiles"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingContentType"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"malformedMultipart"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingMultipartBoundary"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"unknownTransferEncoding"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">File</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">formidable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../interfaces/formidable.Options.html" class="tsd-signature-type tsd-kind-interface">Options</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">Formidable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">IncomingForm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">json</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">JSONParser</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">JSONParser</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">multipart</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">MultipartParser</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">MultipartParser</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">octetstream</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">OctetStreamParser</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">OctetStreamParser</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">parsers</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__module</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">PersistentFile</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">plugins</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">querystring</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">QuerystringParser</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">QuerystringParser</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">StreamingQuerystring</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">StreamingQuerystring</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">VolatileFile</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">VolatileFile</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div><div class="tsd-type-declaration"><h4>Type Declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5 id="default-1"><span class="tsd-kind-property">default</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">defaultOptions</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.DefaultOptions.html" class="tsd-signature-type tsd-kind-type-alias">DefaultOptions</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">enabledPlugins</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">errors</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">FormidableError</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">FormidableError</span> <span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"aborted"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingPlugin"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"pluginFunction"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"uninitializedParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"filenameNotString"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsSizeExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"smallerThanMinFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"biggerThanMaxFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noEmptyFiles"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingContentType"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"malformedMultipart"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingMultipartBoundary"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"unknownTransferEncoding"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">File</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">formidable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../interfaces/formidable.Options.html" class="tsd-signature-type tsd-kind-interface">Options</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">Formidable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">IncomingForm</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">json</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">multipart</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">octetstream</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">parsers</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__module</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">PersistentFile</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">plugins</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">querystring</span><span class="tsd-signature-symbol">:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">VolatileFile</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">VolatileFile</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../interfaces/formidable.Options.html" class="tsd-signature-type tsd-kind-interface">Options</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">IncomingForm</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.MappedParsers.html" class="tsd-signature-type tsd-kind-type-alias">MappedParsers</a></h5></li><li class="tsd-parameter"><h5 id="defaultoptions-1"><span class="tsd-kind-property">defaultOptions</span><span class="tsd-signature-symbol">: </span><a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.DefaultOptions.html" class="tsd-signature-type tsd-kind-type-alias">DefaultOptions</a></h5></li><li class="tsd-parameter"><h5 id="dummyparser"><span class="tsd-kind-property">DummyParser</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">DummyParser</span></h5></li><li class="tsd-parameter"><h5 id="enabledplugins"><span class="tsd-kind-property">enabledPlugins</span><span class="tsd-signature-symbol">: </span><a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a></h5></li><li class="tsd-parameter"><h5 id="errors"><span class="tsd-kind-property">errors</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">FormidableError</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">FormidableError</span> <span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"aborted"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingPlugin"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"pluginFunction"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"uninitializedParser"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"filenameNotString"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsSizeExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"maxFieldsExceeded"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"smallerThanMinFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"biggerThanMaxFileSize"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"noEmptyFiles"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingContentType"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"malformedMultipart"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"missingMultipartBoundary"</span><br/> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"unknownTransferEncoding"</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">></span></h5></li><li class="tsd-parameter"><h5 id="file"><span class="tsd-kind-property">File</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span></h5></li><li class="tsd-parameter"><h5 id="formidable"><span class="tsd-kind-property">formidable</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../interfaces/formidable.Options.html" class="tsd-signature-type tsd-kind-interface">Options</a><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">IncomingForm</span></h5></li><li class="tsd-parameter"><h5 id="formidable-1"><span class="tsd-kind-property">Formidable</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span></h5></li><li class="tsd-parameter"><h5 id="incomingform"><span class="tsd-kind-property">IncomingForm</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">IncomingForm</span></h5></li><li class="tsd-parameter"><h5 id="json"><span class="tsd-kind-property">json</span><span class="tsd-signature-symbol">: </span><a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a></h5></li><li class="tsd-parameter"><h5 id="jsonparser"><span class="tsd-kind-property">JSONParser</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">JSONParser</span></h5></li><li class="tsd-parameter"><h5 id="multipart"><span class="tsd-kind-property">multipart</span><span class="tsd-signature-symbol">: </span><a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a></h5></li><li class="tsd-parameter"><h5 id="multipartparser"><span class="tsd-kind-property">MultipartParser</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">MultipartParser</span></h5></li><li class="tsd-parameter"><h5 id="octetstream"><span class="tsd-kind-property">octetstream</span><span class="tsd-signature-symbol">: </span><a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a></h5></li><li class="tsd-parameter"><h5 id="octetstreamparser"><span class="tsd-kind-property">OctetStreamParser</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">OctetStreamParser</span></h5></li><li class="tsd-parameter"><h5 id="parsers"><span class="tsd-kind-property">parsers</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">__module</span></h5></li><li class="tsd-parameter"><h5 id="persistentfile"><span class="tsd-kind-property">PersistentFile</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">PersistentFile</span></h5></li><li class="tsd-parameter"><h5 id="plugins"><span class="tsd-kind-property">plugins</span><span class="tsd-signature-symbol">: </span><a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.EnabledPlugins.html" class="tsd-signature-type tsd-kind-type-alias">EnabledPlugins</a></h5></li><li class="tsd-parameter"><h5 id="querystring"><span class="tsd-kind-property">querystring</span><span class="tsd-signature-symbol">: </span><a href="../modules/formidable.html" class="tsd-signature-type tsd-kind-namespace">formidable</a><span class="tsd-signature-symbol">.</span><a href="../types/formidable.PluginFunction.html" class="tsd-signature-type tsd-kind-type-alias">PluginFunction</a></h5></li><li class="tsd-parameter"><h5 id="querystringparser"><span class="tsd-kind-property">QuerystringParser</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">QuerystringParser</span></h5></li><li class="tsd-parameter"><h5 id="streamingquerystring"><span class="tsd-kind-property">StreamingQuerystring</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">StreamingQuerystring</span></h5></li><li class="tsd-parameter"><h5 id="volatilefile"><span class="tsd-kind-property">VolatileFile</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-keyword">typeof</span> <span class="tsd-signature-type">VolatileFile</span></h5></li></ul></div><aside class="tsd-sources"><ul><li>Defined in node_modules/.pnpm/@types+formidable@3.4.7/node_modules/@types/formidable/index.d.ts:10</li><li>Defined in node_modules/.pnpm/@types+formidable@3.4.7/node_modules/@types/formidable/index.d.ts:314</li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html">@breautek/storm</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
package/lib/Handler.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ export declare class Handler<TApplication extends Application = Application, TGe
|
|
|
33
33
|
protected _onMiddlewareReject(request: Request, response: Response<any>, error: StormError): void;
|
|
34
34
|
private $handleResponse;
|
|
35
35
|
private $handleResponseError;
|
|
36
|
+
protected _logRequestStart(request: Request<unknown>): void;
|
|
37
|
+
protected _logRequestEnd(request: Request<unknown>, response: Response<any>, elapsed: number): void;
|
|
36
38
|
get(request: Request<TGetRequest>, response: Response<TGetResponse>): Promise<void>;
|
|
37
39
|
put(request: Request<TPutRequest>, response: Response<TPutResponse>): Promise<void>;
|
|
38
40
|
post(request: Request<TPostRequest>, response: Response<TPostResponse>): Promise<void>;
|
package/lib/Handler.js
CHANGED
|
@@ -98,8 +98,15 @@ class Handler {
|
|
|
98
98
|
$handleResponseError(response, error) {
|
|
99
99
|
response.error(error);
|
|
100
100
|
}
|
|
101
|
-
|
|
101
|
+
_logRequestStart(request) {
|
|
102
102
|
this.getApplication().getLogger().info(TAG, `${request.getForwardedIP()} (${request.getIP()}) - ${request.getMethod()} ${request.getURL()} - UA(${request.getHeader('user-agent')})`);
|
|
103
|
+
}
|
|
104
|
+
_logRequestEnd(request, response, elapsed) {
|
|
105
|
+
this.$app.getLogger().info(TAG, `API ${request.getURL()} (${response.getStatus()}) responded in ${elapsed}ms`);
|
|
106
|
+
}
|
|
107
|
+
async get(request, response) {
|
|
108
|
+
let startTime = new Date();
|
|
109
|
+
this._logRequestStart(request);
|
|
103
110
|
try {
|
|
104
111
|
let result = await this.$executeMiddlewares(request, response);
|
|
105
112
|
let req = await this._get(result.request);
|
|
@@ -108,9 +115,11 @@ class Handler {
|
|
|
108
115
|
catch (ex) {
|
|
109
116
|
this.$handleResponseError(response, ex);
|
|
110
117
|
}
|
|
118
|
+
this._logRequestEnd(request, response, new Date().getTime() - startTime.getTime());
|
|
111
119
|
}
|
|
112
120
|
async put(request, response) {
|
|
113
|
-
|
|
121
|
+
let startTime = new Date();
|
|
122
|
+
this._logRequestStart(request);
|
|
114
123
|
try {
|
|
115
124
|
let result = await this.$executeMiddlewares(request, response);
|
|
116
125
|
let req = await this._put(result.request);
|
|
@@ -119,9 +128,11 @@ class Handler {
|
|
|
119
128
|
catch (ex) {
|
|
120
129
|
this.$handleResponseError(response, ex);
|
|
121
130
|
}
|
|
131
|
+
this._logRequestEnd(request, response, new Date().getTime() - startTime.getTime());
|
|
122
132
|
}
|
|
123
133
|
async post(request, response) {
|
|
124
|
-
|
|
134
|
+
let startTime = new Date();
|
|
135
|
+
this._logRequestStart(request);
|
|
125
136
|
try {
|
|
126
137
|
let result = await this.$executeMiddlewares(request, response);
|
|
127
138
|
let req = await this._post(result.request);
|
|
@@ -130,9 +141,11 @@ class Handler {
|
|
|
130
141
|
catch (ex) {
|
|
131
142
|
this.$handleResponseError(response, ex);
|
|
132
143
|
}
|
|
144
|
+
this._logRequestEnd(request, response, new Date().getTime() - startTime.getTime());
|
|
133
145
|
}
|
|
134
146
|
async delete(request, response) {
|
|
135
|
-
|
|
147
|
+
let startTime = new Date();
|
|
148
|
+
this._logRequestStart(request);
|
|
136
149
|
try {
|
|
137
150
|
let result = await this.$executeMiddlewares(request, response);
|
|
138
151
|
let req = await this._delete(result.request);
|
|
@@ -141,6 +154,7 @@ class Handler {
|
|
|
141
154
|
catch (ex) {
|
|
142
155
|
this.$handleResponseError(response, ex);
|
|
143
156
|
}
|
|
157
|
+
this._logRequestEnd(request, response, new Date().getTime() - startTime.getTime());
|
|
144
158
|
}
|
|
145
159
|
async _get(request) {
|
|
146
160
|
throw new NotImplementedError_1.NotImplementedError(HTTPMethod_1.HTTPMethod.GET);
|
package/lib/Handler.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Handler.js","sourceRoot":"","sources":["../src/Handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;;AAMF,6CAAwC;AAExC,mDAAgD;AAIhD,+DAA4D;AAC5D,6CAA0C;AAE1C,MAAM,GAAG,GAAW,SAAS,CAAC;AAE9B,MAAa,OAAO;IAmBhB,YAAY,GAAiB;QACzB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAChD,CAAC;IAEM,cAAc;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED;;OAEG;IACO,gBAAgB;QACtB,OAAO,EAAE,CAAC;IACd,CAAC;IAEM,cAAc,CAAC,OAAyB;QAC3C,IAAI,MAAM,GAAY,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;QAC5C,IAAI,UAAU,GAAW,MAAM,CAAC,qBAAqB,CAAC;QACtD,OAAO,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC;IAED;;;;;OAKG;IACK,KAAK,C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,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IAES,KAAK,CAAC,KAAK,CAAC,OAA8B;QAChD,MAAM,IAAI,yCAAmB,CAAC,uBAAU,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IAES,KAAK,CAAC,IAAI,CAAC,OAA6B;QAC9C,MAAM,IAAI,yCAAmB,CAAC,uBAAU,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IAES,KAAK,CAAC,OAAO,CAAC,OAAgC;QACpD,MAAM,IAAI,yCAAmB,CAAC,uBAAU,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;CACJ;AApMD,0BAoMC"}
|
package/lib/Request.d.ts
CHANGED
|
@@ -4,8 +4,11 @@ import { Writable } from 'stream';
|
|
|
4
4
|
import { IFormData } from './IFormData';
|
|
5
5
|
import { IAuthTokenData } from './IAuthTokenData';
|
|
6
6
|
import { IDatabasePosition } from './IDatabasePosition';
|
|
7
|
+
export interface IQueryParams {
|
|
8
|
+
[key: string]: undefined | string | IQueryParams | (string | IQueryParams)[];
|
|
9
|
+
}
|
|
7
10
|
export interface IParameterMap {
|
|
8
|
-
[key: string]: string;
|
|
11
|
+
[key: string]: string | string[];
|
|
9
12
|
}
|
|
10
13
|
export declare class Request<TBody = any, TAuthToken extends IAuthTokenData = IAuthTokenData> {
|
|
11
14
|
private $request;
|
|
@@ -14,9 +17,20 @@ export declare class Request<TBody = any, TAuthToken extends IAuthTokenData = IA
|
|
|
14
17
|
getForm(): Promise<IFormData>;
|
|
15
18
|
getHeaders(): IncomingHttpHeaders;
|
|
16
19
|
getHeader(name: string): string;
|
|
17
|
-
getQueryVariables():
|
|
20
|
+
getQueryVariables(): IQueryParams;
|
|
18
21
|
getParams(): IParameterMap;
|
|
19
|
-
getParam(name: string): string;
|
|
22
|
+
getParam(name: string): string | string[];
|
|
23
|
+
/**
|
|
24
|
+
* Gets a URL parameter as string. If the value is multiple
|
|
25
|
+
* then only the first value is returned.
|
|
26
|
+
* This is a convenience method over `getParam` which returns a union.
|
|
27
|
+
*/
|
|
28
|
+
getURLSingleParam(name: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Gets a URL parameter as string[].
|
|
31
|
+
* This is a convenience method over `getParam` which returns a union.
|
|
32
|
+
*/
|
|
33
|
+
getURLMultiParam(name: string): string[];
|
|
20
34
|
getIP(): string;
|
|
21
35
|
getForwardedIP(): string;
|
|
22
36
|
getHostname(): string;
|
package/lib/Request.js
CHANGED
|
@@ -69,6 +69,33 @@ class Request {
|
|
|
69
69
|
getParam(name) {
|
|
70
70
|
return this.$request.params[name];
|
|
71
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Gets a URL parameter as string. If the value is multiple
|
|
74
|
+
* then only the first value is returned.
|
|
75
|
+
* This is a convenience method over `getParam` which returns a union.
|
|
76
|
+
*/
|
|
77
|
+
getURLSingleParam(name) {
|
|
78
|
+
let v = this.getParam(name);
|
|
79
|
+
if (typeof v === 'string') {
|
|
80
|
+
return v;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
return v[0];
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Gets a URL parameter as string[].
|
|
88
|
+
* This is a convenience method over `getParam` which returns a union.
|
|
89
|
+
*/
|
|
90
|
+
getURLMultiParam(name) {
|
|
91
|
+
let v = this.getParam(name);
|
|
92
|
+
if (typeof v === 'string') {
|
|
93
|
+
return [v];
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
return v;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
72
99
|
getIP() {
|
|
73
100
|
return this.$request.ip;
|
|
74
101
|
}
|
package/lib/Request.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../src/Request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;;;AASF,oEAAoC;AAGpC,yCAAyC;AACzC,mCAAgC;AAChC,yCAAsC;AACtC,iDAA8C;A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
|
package/lib/TokenManager.d.ts
CHANGED
|
@@ -10,5 +10,18 @@ export declare class TokenManager<TAuthToken extends IAuthTokenData = IAuthToken
|
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
}, expiresIn: TExpiresIn): Promise<Token>;
|
|
12
12
|
verify(token: Token, options?: IJWTVerifyOptions): Promise<TAuthToken>;
|
|
13
|
+
/**
|
|
14
|
+
* Decodes the token. Use this method only on verified tokens as this does not verify against tampering
|
|
15
|
+
*
|
|
16
|
+
* @param token
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
decodeSync(token: Token): TAuthToken;
|
|
20
|
+
/**
|
|
21
|
+
* Decodes the token. Use this method only on verified tokens as this does not verify against tampering
|
|
22
|
+
*
|
|
23
|
+
* @param token
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
13
26
|
decode(token: Token): Promise<TAuthToken>;
|
|
14
27
|
}
|
package/lib/TokenManager.js
CHANGED
|
@@ -63,6 +63,21 @@ class TokenManager {
|
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Decodes the token. Use this method only on verified tokens as this does not verify against tampering
|
|
68
|
+
*
|
|
69
|
+
* @param token
|
|
70
|
+
* @returns
|
|
71
|
+
*/
|
|
72
|
+
decodeSync(token) {
|
|
73
|
+
return jwt.decode(token.getSignature());
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Decodes the token. Use this method only on verified tokens as this does not verify against tampering
|
|
77
|
+
*
|
|
78
|
+
* @param token
|
|
79
|
+
* @returns
|
|
80
|
+
*/
|
|
66
81
|
decode(token) {
|
|
67
82
|
return new Promise((resolve, reject) => {
|
|
68
83
|
try {
|
package/lib/TokenManager.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenManager.js","sourceRoot":"","sources":["../src/TokenManager.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;;;AAEF,0DAAoC;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ACf,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AA/ED,oCA+EC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breautek/storm",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.0",
|
|
4
4
|
"description": "Object-Oriented REST API framework",
|
|
5
5
|
"main": "lib/api.js",
|
|
6
6
|
"types": "lib/api.d.ts",
|
|
@@ -48,19 +48,19 @@
|
|
|
48
48
|
"@breautek/merge-change": "1.0.0",
|
|
49
49
|
"@types/body-parser": "1.19.6",
|
|
50
50
|
"@types/express": "5.0.6",
|
|
51
|
-
"@types/formidable": "3.4.
|
|
51
|
+
"@types/formidable": "3.4.7",
|
|
52
52
|
"@types/jsonwebtoken": "9.0.10",
|
|
53
53
|
"@types/mysql": "2.15.27",
|
|
54
54
|
"@types/node": "24.10.1",
|
|
55
|
-
"ajv": "8.
|
|
55
|
+
"ajv": "8.18.0",
|
|
56
56
|
"body-parser": "2.2.2",
|
|
57
|
-
"commander": "14.0.
|
|
57
|
+
"commander": "14.0.3",
|
|
58
58
|
"express": "5.2.1",
|
|
59
59
|
"form-data": "4.0.5",
|
|
60
60
|
"formidable": "3.5.4",
|
|
61
61
|
"jsonwebtoken": "9.0.3",
|
|
62
|
-
"mysql2": "3.
|
|
63
|
-
"sql-formatter": "15.7.
|
|
62
|
+
"mysql2": "3.18.2",
|
|
63
|
+
"sql-formatter": "15.7.2",
|
|
64
64
|
"tslib": "2.8.1",
|
|
65
65
|
"uuid": "11.1.0"
|
|
66
66
|
},
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@arashi/interfaces": "1.2.1",
|
|
73
|
-
"@arashi/logger": "4.1.
|
|
73
|
+
"@arashi/logger": "4.1.4",
|
|
74
74
|
"@jest/types": "30.2.0",
|
|
75
75
|
"@totalpave/eslint-plugin": "7.0.17",
|
|
76
76
|
"@types/jest": "30.0.0",
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"jest-jasmine2": "30.2.0",
|
|
81
81
|
"ts-jest": "29.4.6",
|
|
82
82
|
"ts-node": "10.9.2",
|
|
83
|
-
"typedoc": "0.28.
|
|
84
|
-
"typedoc-plugin-markdown": "4.
|
|
83
|
+
"typedoc": "0.28.17",
|
|
84
|
+
"typedoc-plugin-markdown": "4.10.0",
|
|
85
85
|
"typescript": "5.9.3"
|
|
86
86
|
}
|
|
87
87
|
}
|