@tsed/formio 6.102.5 → 6.102.8-rc.2

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/lib/cjs/index.js CHANGED
@@ -1,46 +1,49 @@
1
1
  "use strict";
2
+ /**
3
+ * @file Automatically generated by barrelsby.
4
+ */
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  const tslib_1 = require("tslib");
4
- // decorators
7
+ (0, tslib_1.__exportStar)(require("./FormioModule"), exports);
8
+ (0, tslib_1.__exportStar)(require("./builder/FormioMapper"), exports);
9
+ (0, tslib_1.__exportStar)(require("./components/AlterActions"), exports);
10
+ (0, tslib_1.__exportStar)(require("./components/AlterAudit"), exports);
11
+ (0, tslib_1.__exportStar)(require("./components/AlterHost"), exports);
12
+ (0, tslib_1.__exportStar)(require("./components/AlterLog"), exports);
13
+ (0, tslib_1.__exportStar)(require("./components/AlterSkip"), exports);
14
+ (0, tslib_1.__exportStar)(require("./components/AlterTemplateExportSteps"), exports);
15
+ (0, tslib_1.__exportStar)(require("./components/AlterTemplateImportSteps"), exports);
5
16
  (0, tslib_1.__exportStar)(require("./decorators/action"), exports);
6
17
  (0, tslib_1.__exportStar)(require("./decorators/actionCtx"), exports);
7
18
  (0, tslib_1.__exportStar)(require("./decorators/alter"), exports);
8
19
  (0, tslib_1.__exportStar)(require("./decorators/on"), exports);
9
20
  (0, tslib_1.__exportStar)(require("./decorators/useFormioAuth"), exports);
10
- // middlewares
11
- (0, tslib_1.__exportStar)(require("./middlewares/FormioAuthMiddleware"), exports);
12
- // domain
13
21
  (0, tslib_1.__exportStar)(require("./domain/AlterHook"), exports);
14
22
  (0, tslib_1.__exportStar)(require("./domain/Formio"), exports);
15
- (0, tslib_1.__exportStar)(require("./domain/FormioDecodedToken"), exports);
16
23
  (0, tslib_1.__exportStar)(require("./domain/FormioAction"), exports);
17
24
  (0, tslib_1.__exportStar)(require("./domain/FormioActionsIndex"), exports);
18
25
  (0, tslib_1.__exportStar)(require("./domain/FormioAuth"), exports);
19
26
  (0, tslib_1.__exportStar)(require("./domain/FormioBaseModel"), exports);
20
27
  (0, tslib_1.__exportStar)(require("./domain/FormioConfig"), exports);
21
28
  (0, tslib_1.__exportStar)(require("./domain/FormioCtxMapper"), exports);
29
+ (0, tslib_1.__exportStar)(require("./domain/FormioDecodedToken"), exports);
22
30
  (0, tslib_1.__exportStar)(require("./domain/FormioErrors"), exports);
23
31
  (0, tslib_1.__exportStar)(require("./domain/FormioHooks"), exports);
24
32
  (0, tslib_1.__exportStar)(require("./domain/FormioJs"), exports);
25
33
  (0, tslib_1.__exportStar)(require("./domain/FormioModels"), exports);
26
34
  (0, tslib_1.__exportStar)(require("./domain/FormioRouter"), exports);
27
35
  (0, tslib_1.__exportStar)(require("./domain/FormioSettings"), exports);
28
- (0, tslib_1.__exportStar)(require("./domain/FormioUpdate"), exports);
29
- (0, tslib_1.__exportStar)(require("./domain/FormioUtils"), exports);
30
36
  (0, tslib_1.__exportStar)(require("./domain/FormioTemplate"), exports);
31
37
  (0, tslib_1.__exportStar)(require("./domain/FormioTemplateUtil"), exports);
38
+ (0, tslib_1.__exportStar)(require("./domain/FormioUpdate"), exports);
39
+ (0, tslib_1.__exportStar)(require("./domain/FormioUtils"), exports);
32
40
  (0, tslib_1.__exportStar)(require("./domain/OnHook"), exports);
33
- // module
34
- (0, tslib_1.__exportStar)(require("./FormioModule"), exports);
35
- (0, tslib_1.__exportStar)(require("./builder/FormioMapper"), exports);
36
- (0, tslib_1.__exportStar)(require("./services/FormioService"), exports);
37
- (0, tslib_1.__exportStar)(require("./services/FormioDatabase"), exports);
38
- (0, tslib_1.__exportStar)(require("./services/FormioDatabase"), exports);
41
+ (0, tslib_1.__exportStar)(require("./domain/Resource"), exports);
42
+ (0, tslib_1.__exportStar)(require("./middlewares/FormioAuthMiddleware"), exports);
39
43
  (0, tslib_1.__exportStar)(require("./services/FormioAuthService"), exports);
44
+ (0, tslib_1.__exportStar)(require("./services/FormioDatabase"), exports);
40
45
  (0, tslib_1.__exportStar)(require("./services/FormioHooksService"), exports);
41
- (0, tslib_1.__exportStar)(require("./components/AlterActions"), exports);
42
- (0, tslib_1.__exportStar)(require("./components/AlterAudit"), exports);
43
- (0, tslib_1.__exportStar)(require("./components/AlterLog"), exports);
44
- (0, tslib_1.__exportStar)(require("./components/AlterHost"), exports);
45
- (0, tslib_1.__exportStar)(require("./components/AlterSkip"), exports);
46
+ (0, tslib_1.__exportStar)(require("./services/FormioInstaller"), exports);
47
+ (0, tslib_1.__exportStar)(require("./services/FormioService"), exports);
48
+ (0, tslib_1.__exportStar)(require("./utils/isMongoId"), exports);
46
49
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,aAAa;AACb,mEAAoC;AACpC,sEAAuC;AACvC,kEAAmC;AACnC,+DAAgC;AAChC,0EAA2C;AAE3C,cAAc;AACd,kFAAmD;AAEnD,SAAS;AACT,kEAAmC;AACnC,+DAAgC;AAChC,2EAA4C;AAC5C,qEAAsC;AACtC,2EAA4C;AAC5C,mEAAoC;AACpC,wEAAyC;AACzC,qEAAsC;AACtC,wEAAyC;AACzC,qEAAsC;AACtC,oEAAqC;AACrC,iEAAkC;AAClC,qEAAsC;AACtC,qEAAsC;AACtC,uEAAwC;AACxC,qEAAsC;AACtC,oEAAqC;AACrC,uEAAwC;AACxC,2EAA4C;AAC5C,+DAAgC;AAEhC,SAAS;AACT,8DAA+B;AAC/B,sEAAuC;AACvC,wEAAyC;AACzC,yEAA0C;AAC1C,yEAA0C;AAC1C,4EAA6C;AAC7C,6EAA8C;AAC9C,yEAA0C;AAC1C,uEAAwC;AACxC,qEAAsC;AACtC,sEAAuC;AACvC,sEAAuC","sourcesContent":["// decorators\nexport * from \"./decorators/action\";\nexport * from \"./decorators/actionCtx\";\nexport * from \"./decorators/alter\";\nexport * from \"./decorators/on\";\nexport * from \"./decorators/useFormioAuth\";\n\n// middlewares\nexport * from \"./middlewares/FormioAuthMiddleware\";\n\n// domain\nexport * from \"./domain/AlterHook\";\nexport * from \"./domain/Formio\";\nexport * from \"./domain/FormioDecodedToken\";\nexport * from \"./domain/FormioAction\";\nexport * from \"./domain/FormioActionsIndex\";\nexport * from \"./domain/FormioAuth\";\nexport * from \"./domain/FormioBaseModel\";\nexport * from \"./domain/FormioConfig\";\nexport * from \"./domain/FormioCtxMapper\";\nexport * from \"./domain/FormioErrors\";\nexport * from \"./domain/FormioHooks\";\nexport * from \"./domain/FormioJs\";\nexport * from \"./domain/FormioModels\";\nexport * from \"./domain/FormioRouter\";\nexport * from \"./domain/FormioSettings\";\nexport * from \"./domain/FormioUpdate\";\nexport * from \"./domain/FormioUtils\";\nexport * from \"./domain/FormioTemplate\";\nexport * from \"./domain/FormioTemplateUtil\";\nexport * from \"./domain/OnHook\";\n\n// module\nexport * from \"./FormioModule\";\nexport * from \"./builder/FormioMapper\";\nexport * from \"./services/FormioService\";\nexport * from \"./services/FormioDatabase\";\nexport * from \"./services/FormioDatabase\";\nexport * from \"./services/FormioAuthService\";\nexport * from \"./services/FormioHooksService\";\nexport * from \"./components/AlterActions\";\nexport * from \"./components/AlterAudit\";\nexport * from \"./components/AlterLog\";\nexport * from \"./components/AlterHost\";\nexport * from \"./components/AlterSkip\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8DAA+B;AAC/B,sEAAuC;AACvC,yEAA0C;AAC1C,uEAAwC;AACxC,sEAAuC;AACvC,qEAAsC;AACtC,sEAAuC;AACvC,qFAAsD;AACtD,qFAAsD;AACtD,mEAAoC;AACpC,sEAAuC;AACvC,kEAAmC;AACnC,+DAAgC;AAChC,0EAA2C;AAC3C,kEAAmC;AACnC,+DAAgC;AAChC,qEAAsC;AACtC,2EAA4C;AAC5C,mEAAoC;AACpC,wEAAyC;AACzC,qEAAsC;AACtC,wEAAyC;AACzC,2EAA4C;AAC5C,qEAAsC;AACtC,oEAAqC;AACrC,iEAAkC;AAClC,qEAAsC;AACtC,qEAAsC;AACtC,uEAAwC;AACxC,uEAAwC;AACxC,2EAA4C;AAC5C,qEAAsC;AACtC,oEAAqC;AACrC,+DAAgC;AAChC,iEAAkC;AAClC,kFAAmD;AACnD,4EAA6C;AAC7C,yEAA0C;AAC1C,6EAA8C;AAC9C,0EAA2C;AAC3C,wEAAyC;AACzC,iEAAkC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./FormioModule\";\nexport * from \"./builder/FormioMapper\";\nexport * from \"./components/AlterActions\";\nexport * from \"./components/AlterAudit\";\nexport * from \"./components/AlterHost\";\nexport * from \"./components/AlterLog\";\nexport * from \"./components/AlterSkip\";\nexport * from \"./components/AlterTemplateExportSteps\";\nexport * from \"./components/AlterTemplateImportSteps\";\nexport * from \"./decorators/action\";\nexport * from \"./decorators/actionCtx\";\nexport * from \"./decorators/alter\";\nexport * from \"./decorators/on\";\nexport * from \"./decorators/useFormioAuth\";\nexport * from \"./domain/AlterHook\";\nexport * from \"./domain/Formio\";\nexport * from \"./domain/FormioAction\";\nexport * from \"./domain/FormioActionsIndex\";\nexport * from \"./domain/FormioAuth\";\nexport * from \"./domain/FormioBaseModel\";\nexport * from \"./domain/FormioConfig\";\nexport * from \"./domain/FormioCtxMapper\";\nexport * from \"./domain/FormioDecodedToken\";\nexport * from \"./domain/FormioErrors\";\nexport * from \"./domain/FormioHooks\";\nexport * from \"./domain/FormioJs\";\nexport * from \"./domain/FormioModels\";\nexport * from \"./domain/FormioRouter\";\nexport * from \"./domain/FormioSettings\";\nexport * from \"./domain/FormioTemplate\";\nexport * from \"./domain/FormioTemplateUtil\";\nexport * from \"./domain/FormioUpdate\";\nexport * from \"./domain/FormioUtils\";\nexport * from \"./domain/OnHook\";\nexport * from \"./domain/Resource\";\nexport * from \"./middlewares/FormioAuthMiddleware\";\nexport * from \"./services/FormioAuthService\";\nexport * from \"./services/FormioDatabase\";\nexport * from \"./services/FormioHooksService\";\nexport * from \"./services/FormioInstaller\";\nexport * from \"./services/FormioService\";\nexport * from \"./utils/isMongoId\";\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -2,17 +2,17 @@ import { __decorate, __metadata } from "tslib";
2
2
  import { Constant, Inject, InjectorService, normalizePath, PlatformApplication } from "@tsed/common";
3
3
  import { deepClone } from "@tsed/core";
4
4
  import { Module } from "@tsed/di";
5
- import { AlterActions } from "./components/AlterActions";
6
- import { AlterAudit } from "./components/AlterAudit";
7
- import { AlterHost } from "./components/AlterHost";
8
- import { AlterLog } from "./components/AlterLog";
9
- import { AlterSkip } from "./components/AlterSkip";
10
- import { AlterTemplateExportSteps } from "./components/AlterTemplateExportSteps";
11
- import { AlterTemplateImportSteps } from "./components/AlterTemplateImportSteps";
12
- import { FormioAuthService } from "./services/FormioAuthService";
13
- import { FormioHooksService } from "./services/FormioHooksService";
14
- import { FormioInstaller } from "./services/FormioInstaller";
15
- import { FormioService } from "./services/FormioService";
5
+ import { AlterActions } from "./components/AlterActions.js";
6
+ import { AlterAudit } from "./components/AlterAudit.js";
7
+ import { AlterHost } from "./components/AlterHost.js";
8
+ import { AlterLog } from "./components/AlterLog.js";
9
+ import { AlterSkip } from "./components/AlterSkip.js";
10
+ import { AlterTemplateExportSteps } from "./components/AlterTemplateExportSteps.js";
11
+ import { AlterTemplateImportSteps } from "./components/AlterTemplateImportSteps.js";
12
+ import { FormioAuthService } from "./services/FormioAuthService.js";
13
+ import { FormioHooksService } from "./services/FormioHooksService.js";
14
+ import { FormioInstaller } from "./services/FormioInstaller.js";
15
+ import { FormioService } from "./services/FormioService.js";
16
16
  let FormioModule = class FormioModule {
17
17
  $onInit() {
18
18
  return this.init(deepClone(this.settings));
@@ -1,8 +1,8 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { EndpointMetadata, PlatformHandler } from "@tsed/common";
3
3
  import { Inject, InjectorService } from "@tsed/di";
4
- import { Alter } from "../decorators/alter";
5
- import { FormioService } from "../services/FormioService";
4
+ import { Alter } from "../decorators/alter.js";
5
+ import { FormioService } from "../services/FormioService.js";
6
6
  let AlterActions = class AlterActions {
7
7
  transform(actions) {
8
8
  const { Action } = this.formio;
@@ -1,5 +1,5 @@
1
1
  import { __decorate } from "tslib";
2
- import { Alter } from "../decorators/alter";
2
+ import { Alter } from "../decorators/alter.js";
3
3
  let AlterAudit = class AlterAudit {
4
4
  transform(info, event, ctx) {
5
5
  ctx.logger.info({ event, info });
@@ -1,5 +1,5 @@
1
1
  import { __decorate } from "tslib";
2
- import { Alter } from "../decorators/alter";
2
+ import { Alter } from "../decorators/alter.js";
3
3
  let AlterHost = class AlterHost {
4
4
  transform(baseUrl, ctx) {
5
5
  return `${ctx.request.protocol}://${ctx.request.host}${baseUrl}`;
@@ -1,5 +1,5 @@
1
1
  import { __decorate } from "tslib";
2
- import { Alter } from "../decorators/alter";
2
+ import { Alter } from "../decorators/alter.js";
3
3
  let AlterLog = class AlterLog {
4
4
  transform(event, ctx, ...info) {
5
5
  ctx.logger.debug({ event, info });
@@ -1,7 +1,7 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { Constant } from "@tsed/common";
3
3
  import { normalizePath } from "@tsed/common";
4
- import { Alter } from "../decorators/alter";
4
+ import { Alter } from "../decorators/alter.js";
5
5
  let AlterSkip = class AlterSkip {
6
6
  transform(value, ctx) {
7
7
  if (value) {
@@ -1,8 +1,8 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { getValue } from "@tsed/core";
3
3
  import { Inject } from "@tsed/di";
4
- import { Alter } from "../decorators/alter";
5
- import { FormioDatabase } from "../services/FormioDatabase";
4
+ import { Alter } from "../decorators/alter.js";
5
+ import { FormioDatabase } from "../services/FormioDatabase.js";
6
6
  import async from "async";
7
7
  let AlterTemplateExportSteps = class AlterTemplateExportSteps {
8
8
  transform(queue, template, map, options) {
@@ -1,7 +1,7 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { Inject } from "@tsed/di";
3
- import { Alter } from "../decorators/alter";
4
- import { FormioDatabase } from "../services/FormioDatabase";
3
+ import { Alter } from "../decorators/alter.js";
4
+ import { FormioDatabase } from "../services/FormioDatabase.js";
5
5
  import async from "async";
6
6
  let AlterTemplateImportSteps = class AlterTemplateImportSteps {
7
7
  transform(queue, install, template) {
@@ -1,5 +1,5 @@
1
1
  import { UseAuth } from "@tsed/common";
2
- import { FormioAuthMiddleware } from "../middlewares/FormioAuthMiddleware";
2
+ import { FormioAuthMiddleware } from "../middlewares/FormioAuthMiddleware.js";
3
3
  /**
4
4
  * Check if a user is connected by using the Formio Auth middleware
5
5
  * @decorator
package/lib/esm/index.js CHANGED
@@ -1,43 +1,46 @@
1
- // decorators
2
- export * from "./decorators/action";
3
- export * from "./decorators/actionCtx";
4
- export * from "./decorators/alter";
5
- export * from "./decorators/on";
6
- export * from "./decorators/useFormioAuth";
7
- // middlewares
8
- export * from "./middlewares/FormioAuthMiddleware";
9
- // domain
10
- export * from "./domain/AlterHook";
11
- export * from "./domain/Formio";
12
- export * from "./domain/FormioDecodedToken";
13
- export * from "./domain/FormioAction";
14
- export * from "./domain/FormioActionsIndex";
15
- export * from "./domain/FormioAuth";
16
- export * from "./domain/FormioBaseModel";
17
- export * from "./domain/FormioConfig";
18
- export * from "./domain/FormioCtxMapper";
19
- export * from "./domain/FormioErrors";
20
- export * from "./domain/FormioHooks";
21
- export * from "./domain/FormioJs";
22
- export * from "./domain/FormioModels";
23
- export * from "./domain/FormioRouter";
24
- export * from "./domain/FormioSettings";
25
- export * from "./domain/FormioUpdate";
26
- export * from "./domain/FormioUtils";
27
- export * from "./domain/FormioTemplate";
28
- export * from "./domain/FormioTemplateUtil";
29
- export * from "./domain/OnHook";
30
- // module
31
- export * from "./FormioModule";
32
- export * from "./builder/FormioMapper";
33
- export * from "./services/FormioService";
34
- export * from "./services/FormioDatabase";
35
- export * from "./services/FormioDatabase";
36
- export * from "./services/FormioAuthService";
37
- export * from "./services/FormioHooksService";
38
- export * from "./components/AlterActions";
39
- export * from "./components/AlterAudit";
40
- export * from "./components/AlterLog";
41
- export * from "./components/AlterHost";
42
- export * from "./components/AlterSkip";
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
4
+ export * from "./FormioModule.js";
5
+ export * from "./builder/FormioMapper.js";
6
+ export * from "./components/AlterActions.js";
7
+ export * from "./components/AlterAudit.js";
8
+ export * from "./components/AlterHost.js";
9
+ export * from "./components/AlterLog.js";
10
+ export * from "./components/AlterSkip.js";
11
+ export * from "./components/AlterTemplateExportSteps.js";
12
+ export * from "./components/AlterTemplateImportSteps.js";
13
+ export * from "./decorators/action.js";
14
+ export * from "./decorators/actionCtx.js";
15
+ export * from "./decorators/alter.js";
16
+ export * from "./decorators/on.js";
17
+ export * from "./decorators/useFormioAuth.js";
18
+ export * from "./domain/AlterHook.js";
19
+ export * from "./domain/Formio.js";
20
+ export * from "./domain/FormioAction.js";
21
+ export * from "./domain/FormioActionsIndex.js";
22
+ export * from "./domain/FormioAuth.js";
23
+ export * from "./domain/FormioBaseModel.js";
24
+ export * from "./domain/FormioConfig.js";
25
+ export * from "./domain/FormioCtxMapper.js";
26
+ export * from "./domain/FormioDecodedToken.js";
27
+ export * from "./domain/FormioErrors.js";
28
+ export * from "./domain/FormioHooks.js";
29
+ export * from "./domain/FormioJs.js";
30
+ export * from "./domain/FormioModels.js";
31
+ export * from "./domain/FormioRouter.js";
32
+ export * from "./domain/FormioSettings.js";
33
+ export * from "./domain/FormioTemplate.js";
34
+ export * from "./domain/FormioTemplateUtil.js";
35
+ export * from "./domain/FormioUpdate.js";
36
+ export * from "./domain/FormioUtils.js";
37
+ export * from "./domain/OnHook.js";
38
+ export * from "./domain/Resource.js";
39
+ export * from "./middlewares/FormioAuthMiddleware.js";
40
+ export * from "./services/FormioAuthService.js";
41
+ export * from "./services/FormioDatabase.js";
42
+ export * from "./services/FormioHooksService.js";
43
+ export * from "./services/FormioInstaller.js";
44
+ export * from "./services/FormioService.js";
45
+ export * from "./utils/isMongoId.js";
43
46
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,aAAa;AACb,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAE3C,cAAc;AACd,cAAc,oCAAoC,CAAC;AAEnD,SAAS;AACT,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAEhC,SAAS;AACT,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC","sourcesContent":["// decorators\nexport * from \"./decorators/action\";\nexport * from \"./decorators/actionCtx\";\nexport * from \"./decorators/alter\";\nexport * from \"./decorators/on\";\nexport * from \"./decorators/useFormioAuth\";\n\n// middlewares\nexport * from \"./middlewares/FormioAuthMiddleware\";\n\n// domain\nexport * from \"./domain/AlterHook\";\nexport * from \"./domain/Formio\";\nexport * from \"./domain/FormioDecodedToken\";\nexport * from \"./domain/FormioAction\";\nexport * from \"./domain/FormioActionsIndex\";\nexport * from \"./domain/FormioAuth\";\nexport * from \"./domain/FormioBaseModel\";\nexport * from \"./domain/FormioConfig\";\nexport * from \"./domain/FormioCtxMapper\";\nexport * from \"./domain/FormioErrors\";\nexport * from \"./domain/FormioHooks\";\nexport * from \"./domain/FormioJs\";\nexport * from \"./domain/FormioModels\";\nexport * from \"./domain/FormioRouter\";\nexport * from \"./domain/FormioSettings\";\nexport * from \"./domain/FormioUpdate\";\nexport * from \"./domain/FormioUtils\";\nexport * from \"./domain/FormioTemplate\";\nexport * from \"./domain/FormioTemplateUtil\";\nexport * from \"./domain/OnHook\";\n\n// module\nexport * from \"./FormioModule\";\nexport * from \"./builder/FormioMapper\";\nexport * from \"./services/FormioService\";\nexport * from \"./services/FormioDatabase\";\nexport * from \"./services/FormioDatabase\";\nexport * from \"./services/FormioAuthService\";\nexport * from \"./services/FormioHooksService\";\nexport * from \"./components/AlterActions\";\nexport * from \"./components/AlterAudit\";\nexport * from \"./components/AlterLog\";\nexport * from \"./components/AlterHost\";\nexport * from \"./components/AlterSkip\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./FormioModule\";\nexport * from \"./builder/FormioMapper\";\nexport * from \"./components/AlterActions\";\nexport * from \"./components/AlterAudit\";\nexport * from \"./components/AlterHost\";\nexport * from \"./components/AlterLog\";\nexport * from \"./components/AlterSkip\";\nexport * from \"./components/AlterTemplateExportSteps\";\nexport * from \"./components/AlterTemplateImportSteps\";\nexport * from \"./decorators/action\";\nexport * from \"./decorators/actionCtx\";\nexport * from \"./decorators/alter\";\nexport * from \"./decorators/on\";\nexport * from \"./decorators/useFormioAuth\";\nexport * from \"./domain/AlterHook\";\nexport * from \"./domain/Formio\";\nexport * from \"./domain/FormioAction\";\nexport * from \"./domain/FormioActionsIndex\";\nexport * from \"./domain/FormioAuth\";\nexport * from \"./domain/FormioBaseModel\";\nexport * from \"./domain/FormioConfig\";\nexport * from \"./domain/FormioCtxMapper\";\nexport * from \"./domain/FormioDecodedToken\";\nexport * from \"./domain/FormioErrors\";\nexport * from \"./domain/FormioHooks\";\nexport * from \"./domain/FormioJs\";\nexport * from \"./domain/FormioModels\";\nexport * from \"./domain/FormioRouter\";\nexport * from \"./domain/FormioSettings\";\nexport * from \"./domain/FormioTemplate\";\nexport * from \"./domain/FormioTemplateUtil\";\nexport * from \"./domain/FormioUpdate\";\nexport * from \"./domain/FormioUtils\";\nexport * from \"./domain/OnHook\";\nexport * from \"./domain/Resource\";\nexport * from \"./middlewares/FormioAuthMiddleware\";\nexport * from \"./services/FormioAuthService\";\nexport * from \"./services/FormioDatabase\";\nexport * from \"./services/FormioHooksService\";\nexport * from \"./services/FormioInstaller\";\nexport * from \"./services/FormioService\";\nexport * from \"./utils/isMongoId\";\n"]}
@@ -3,7 +3,7 @@ import { Context, Inject, Middleware } from "@tsed/common";
3
3
  import { getValue } from "@tsed/core";
4
4
  import { Unauthorized } from "@tsed/exceptions";
5
5
  import { promisify } from "util";
6
- import { FormioService } from "../services/FormioService";
6
+ import { FormioService } from "../services/FormioService.js";
7
7
  /**
8
8
  * @middleware
9
9
  * @formio
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -3,9 +3,9 @@ import { isFunction } from "@tsed/core";
3
3
  import { Inject, Injectable } from "@tsed/di";
4
4
  import { BadRequest, NotFound, Unauthorized } from "@tsed/exceptions";
5
5
  import { promisify } from "util";
6
- import { FormioDatabase } from "./FormioDatabase";
7
- import { FormioHooksService } from "./FormioHooksService";
8
- import { FormioService } from "./FormioService";
6
+ import { FormioDatabase } from "./FormioDatabase.js";
7
+ import { FormioHooksService } from "./FormioHooksService.js";
8
+ import { FormioService } from "./FormioService.js";
9
9
  let FormioAuthService = class FormioAuthService {
10
10
  get currentUser() {
11
11
  return promisify(this.formio.auth.currentUser);
@@ -1,9 +1,9 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { isArray, isObject, isString, toMap as tMap } from "@tsed/core";
3
3
  import { Inject, Injectable } from "@tsed/di";
4
- import { FormioMapper } from "../builder/FormioMapper";
5
- import { isMongoId } from "../utils/isMongoId";
6
- import { FormioService } from "./FormioService";
4
+ import { FormioMapper } from "../builder/FormioMapper.js";
5
+ import { isMongoId } from "../utils/isMongoId.js";
6
+ import { FormioService } from "./FormioService.js";
7
7
  function toMap(list) {
8
8
  return tMap(list, (o) => [o._id.toString(), `$machineName:${o.machineName}`]);
9
9
  }
@@ -1,7 +1,7 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { Inject, Injectable, InjectorService } from "@tsed/common";
3
3
  import { promisify } from "util";
4
- import { FormioService } from "./FormioService";
4
+ import { FormioService } from "./FormioService.js";
5
5
  let FormioHooksService = class FormioHooksService {
6
6
  get settings() {
7
7
  return this.formio.hook.settings;
@@ -1,8 +1,8 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { Inject, Injectable } from "@tsed/di";
3
3
  import { Logger } from "@tsed/logger";
4
- import { FormioDatabase } from "./FormioDatabase";
5
- import { FormioService } from "./FormioService";
4
+ import { FormioDatabase } from "./FormioDatabase.js";
5
+ import { FormioService } from "./FormioService.js";
6
6
  let FormioInstaller = class FormioInstaller extends FormioDatabase {
7
7
  async install(template, root) {
8
8
  this.logger.info("Install formio template...");
@@ -1,38 +1,45 @@
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
4
+ export * from "./FormioModule";
5
+ export * from "./builder/FormioMapper";
6
+ export * from "./components/AlterActions";
7
+ export * from "./components/AlterAudit";
8
+ export * from "./components/AlterHost";
9
+ export * from "./components/AlterLog";
10
+ export * from "./components/AlterSkip";
11
+ export * from "./components/AlterTemplateExportSteps";
12
+ export * from "./components/AlterTemplateImportSteps";
1
13
  export * from "./decorators/action";
2
14
  export * from "./decorators/actionCtx";
3
15
  export * from "./decorators/alter";
4
16
  export * from "./decorators/on";
5
17
  export * from "./decorators/useFormioAuth";
6
- export * from "./middlewares/FormioAuthMiddleware";
7
18
  export * from "./domain/AlterHook";
8
19
  export * from "./domain/Formio";
9
- export * from "./domain/FormioDecodedToken";
10
20
  export * from "./domain/FormioAction";
11
21
  export * from "./domain/FormioActionsIndex";
12
22
  export * from "./domain/FormioAuth";
13
23
  export * from "./domain/FormioBaseModel";
14
24
  export * from "./domain/FormioConfig";
15
25
  export * from "./domain/FormioCtxMapper";
26
+ export * from "./domain/FormioDecodedToken";
16
27
  export * from "./domain/FormioErrors";
17
28
  export * from "./domain/FormioHooks";
18
29
  export * from "./domain/FormioJs";
19
30
  export * from "./domain/FormioModels";
20
31
  export * from "./domain/FormioRouter";
21
32
  export * from "./domain/FormioSettings";
22
- export * from "./domain/FormioUpdate";
23
- export * from "./domain/FormioUtils";
24
33
  export * from "./domain/FormioTemplate";
25
34
  export * from "./domain/FormioTemplateUtil";
35
+ export * from "./domain/FormioUpdate";
36
+ export * from "./domain/FormioUtils";
26
37
  export * from "./domain/OnHook";
27
- export * from "./FormioModule";
28
- export * from "./builder/FormioMapper";
29
- export * from "./services/FormioService";
30
- export * from "./services/FormioDatabase";
31
- export * from "./services/FormioDatabase";
38
+ export * from "./domain/Resource";
39
+ export * from "./middlewares/FormioAuthMiddleware";
32
40
  export * from "./services/FormioAuthService";
41
+ export * from "./services/FormioDatabase";
33
42
  export * from "./services/FormioHooksService";
34
- export * from "./components/AlterActions";
35
- export * from "./components/AlterAudit";
36
- export * from "./components/AlterLog";
37
- export * from "./components/AlterHost";
38
- export * from "./components/AlterSkip";
43
+ export * from "./services/FormioInstaller";
44
+ export * from "./services/FormioService";
45
+ export * from "./utils/isMongoId";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/formio",
3
- "version": "6.102.5",
3
+ "version": "6.102.8-rc.2",
4
4
  "description": "Formio package for Ts.ED framework",
5
5
  "private": false,
6
6
  "keywords": [
@@ -13,6 +13,7 @@
13
13
  ],
14
14
  "source": "./src/index.ts",
15
15
  "main": "./lib/cjs/index.js",
16
+ "module": "./lib/esm/index.js",
16
17
  "typings": "./lib/types/index.d.ts",
17
18
  "exports": {
18
19
  "types": "./lib/types/index.d.ts",
@@ -21,21 +22,22 @@
21
22
  "default": "./lib/esm/index.js"
22
23
  },
23
24
  "scripts": {
24
- "build": "yarn run build:esm && yarn run build:cjs",
25
+ "build": "yarn barrels && yarn run build:esm && yarn run build:cjs",
25
26
  "build:cjs": "tsc --build tsconfig.compile.json",
26
27
  "build:esm": "tsc --build tsconfig.compile.esm.json",
28
+ "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
27
29
  "start": "ts-node -r tsconfig-paths/register test/app/index.ts",
28
30
  "test": "cross-env NODE_ENV=test nyc mocha"
29
31
  },
30
32
  "dependencies": {
31
- "@tsed/formio-types": "6.102.5",
33
+ "@tsed/formio-types": "6.102.8-rc.2",
32
34
  "tslib": "2.2.0"
33
35
  },
34
36
  "devDependencies": {
35
- "@tsed/common": "6.102.5",
36
- "@tsed/core": "6.102.5",
37
- "@tsed/di": "6.102.5",
38
- "@tsed/mongoose": "6.102.5",
37
+ "@tsed/common": "6.102.8-rc.2",
38
+ "@tsed/core": "6.102.8-rc.2",
39
+ "@tsed/di": "6.102.8-rc.2",
40
+ "@tsed/mongoose": "6.102.8-rc.2",
39
41
  "@types/async": "3.2.12",
40
42
  "express": "^4.17.1",
41
43
  "formio": "^2.0.0",
@@ -43,10 +45,10 @@
43
45
  "mongoose": "^5.12.2"
44
46
  },
45
47
  "peerDependencies": {
46
- "@tsed/common": "^6.102.5",
47
- "@tsed/core": "^6.102.5",
48
- "@tsed/di": "^6.102.5",
49
- "@tsed/mongoose": "^6.102.5",
48
+ "@tsed/common": "^6.102.8-rc.2",
49
+ "@tsed/core": "^6.102.8-rc.2",
50
+ "@tsed/di": "^6.102.8-rc.2",
51
+ "@tsed/mongoose": "^6.102.8-rc.2",
50
52
  "express": "^4.17.1",
51
53
  "formio": "^2.0.0",
52
54
  "mongodb": "*",
@@ -56,7 +58,10 @@
56
58
  "bugs": {
57
59
  "url": "https://github.com/tsedio/tsed/issues"
58
60
  },
59
- "homepage": "https://github.com/tsedio/tsed/tree/production/packages/third-parties/formio",
61
+ "homepage": "https://github.com/tsedio/tsed/tree/rc/packages/third-parties/formio",
60
62
  "author": "Romain Lenzotti",
61
- "license": "MIT"
63
+ "license": "MIT",
64
+ "publishConfig": {
65
+ "tag": "rc"
66
+ }
62
67
  }