@lowdefy/build 4.5.1 → 4.6.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.
Files changed (165) hide show
  1. package/dist/build/addDefaultPages/404.js +1 -1
  2. package/dist/build/addDefaultPages/addDefaultPages.js +10 -4
  3. package/dist/build/addKeys.js +85 -29
  4. package/dist/build/buildApi/buildApi.js +27 -8
  5. package/dist/build/buildApi/buildEndpoint.js +7 -1
  6. package/dist/build/buildApi/buildRoutine/buildControl.js +1 -1
  7. package/dist/build/buildApi/buildRoutine/buildRoutine.js +1 -1
  8. package/dist/build/buildApi/buildRoutine/buildStep.js +1 -1
  9. package/dist/build/buildApi/buildRoutine/controlTypes.js +34 -11
  10. package/dist/build/buildApi/buildRoutine/countControl.js +1 -1
  11. package/dist/build/buildApi/buildRoutine/countStepTypes.js +2 -2
  12. package/dist/build/buildApi/buildRoutine/setStepId.js +1 -1
  13. package/dist/build/buildApi/buildRoutine/validateStep.js +30 -9
  14. package/dist/build/buildApi/validateEndpoint.js +36 -7
  15. package/dist/build/buildApi/validateStepReferences.js +65 -0
  16. package/dist/build/buildApp.js +1 -1
  17. package/dist/build/buildAuth/buildApiAuth.js +7 -3
  18. package/dist/build/buildAuth/buildAuth.js +7 -4
  19. package/dist/build/buildAuth/buildAuthPlugins.js +42 -13
  20. package/dist/build/buildAuth/buildPageAuth.js +14 -3
  21. package/dist/build/buildAuth/getApiRoles.js +1 -1
  22. package/dist/build/buildAuth/getPageRoles.js +1 -1
  23. package/dist/build/buildAuth/getProtectedApi.js +1 -1
  24. package/dist/build/buildAuth/getProtectedPages.js +1 -1
  25. package/dist/build/buildAuth/validateAuthConfig.js +39 -5
  26. package/dist/build/buildAuth/validateMutualExclusivity.js +13 -5
  27. package/dist/build/buildConnections.js +23 -24
  28. package/dist/build/buildImports/buildIconImports.js +1 -1
  29. package/dist/build/buildImports/buildImports.js +1 -1
  30. package/dist/build/buildImports/buildImportsDev.js +1 -1
  31. package/dist/build/buildImports/buildImportsProd.js +1 -1
  32. package/dist/build/buildImports/buildStyleImports.js +1 -1
  33. package/dist/build/buildImports/defaultIconsDev.js +1 -1
  34. package/dist/build/buildImports/defaultIconsProd.js +1 -1
  35. package/dist/build/buildJs/generateJsFile.js +1 -1
  36. package/dist/build/buildJs/jsMapParser.js +1 -1
  37. package/dist/build/buildJs/writeJs.js +1 -1
  38. package/dist/build/buildLogger.js +41 -0
  39. package/dist/build/buildMenu.js +36 -12
  40. package/dist/build/buildPages/buildBlock/buildBlock.js +1 -1
  41. package/dist/build/buildPages/buildBlock/buildEvents.js +79 -9
  42. package/dist/build/buildPages/buildBlock/buildRequests.js +38 -8
  43. package/dist/build/buildPages/buildBlock/buildSubBlocks.js +6 -2
  44. package/dist/build/buildPages/buildBlock/countBlockOperators.js +1 -1
  45. package/dist/build/buildPages/buildBlock/countBlockTypes.js +2 -2
  46. package/dist/build/buildPages/buildBlock/moveSkeletonBlocksToArea.js +6 -2
  47. package/dist/build/buildPages/buildBlock/moveSubBlocksToArea.js +6 -2
  48. package/dist/build/buildPages/buildBlock/setBlockId.js +1 -1
  49. package/dist/build/buildPages/buildBlock/validateBlock.js +25 -7
  50. package/dist/build/buildPages/buildPage.js +35 -6
  51. package/dist/build/buildPages/validateLinkReferences.js +33 -0
  52. package/dist/build/buildPages/validatePayloadReferences.js +59 -0
  53. package/dist/build/buildPages/validateRequestReferences.js +33 -0
  54. package/dist/build/buildPages/validateServerStateReferences.js +41 -0
  55. package/dist/build/buildPages/validateStateReferences.js +79 -0
  56. package/dist/build/buildRefs/buildRefs.js +20 -3
  57. package/dist/build/buildRefs/createRefReviver.js +28 -0
  58. package/dist/build/buildRefs/evaluateBuildOperators.js +26 -7
  59. package/dist/build/buildRefs/evaluateStaticOperators.js +56 -0
  60. package/dist/build/buildRefs/getConfigFile.js +25 -6
  61. package/dist/build/buildRefs/getKey.js +1 -1
  62. package/dist/build/buildRefs/getRefContent.js +1 -1
  63. package/dist/build/buildRefs/getRefPath.js +1 -1
  64. package/dist/build/buildRefs/getRefsFromFile.js +9 -4
  65. package/dist/build/buildRefs/getUserJavascriptFunction.js +18 -4
  66. package/dist/build/buildRefs/makeRefDefinition.js +10 -5
  67. package/dist/build/buildRefs/parseNunjucks.js +1 -1
  68. package/dist/build/buildRefs/parseRefContent.js +100 -6
  69. package/dist/build/buildRefs/populateRefs.js +75 -13
  70. package/dist/build/buildRefs/recursiveBuild.js +66 -18
  71. package/dist/build/buildRefs/runRefResolver.js +11 -3
  72. package/dist/build/buildRefs/runTransformer.js +7 -3
  73. package/dist/build/buildTypes.js +22 -7
  74. package/dist/build/cleanBuildDirectory.js +1 -1
  75. package/dist/build/collectDynamicIdentifiers.js +35 -0
  76. package/dist/build/collectTypeNames.js +36 -0
  77. package/dist/build/copyPublicFolder.js +1 -1
  78. package/dist/build/{buildJs → full}/buildJs.js +3 -3
  79. package/dist/build/full/buildPages.js +87 -0
  80. package/dist/build/{buildPages → full}/buildTestPage.js +15 -3
  81. package/dist/build/{updateServerPackageJson.js → full/updateServerPackageJson.js} +1 -1
  82. package/dist/build/{writePages.js → full/writePages.js} +1 -1
  83. package/dist/build/{writeRequests.js → full/writeRequests.js} +11 -3
  84. package/dist/build/{writeTypes.js → full/writeTypes.js} +1 -1
  85. package/dist/build/jit/addInstalledTypes.js +51 -0
  86. package/dist/build/jit/buildJsShallow.js +41 -0
  87. package/dist/build/jit/buildPageJit.js +252 -0
  88. package/dist/build/jit/buildShallowPages.js +90 -0
  89. package/dist/build/jit/createPageRegistry.js +80 -0
  90. package/dist/build/jit/detectMissingPluginPackages.js +62 -0
  91. package/dist/build/jit/getRefPositions.js +38 -0
  92. package/dist/build/jit/isPageContentPath.js +24 -0
  93. package/dist/build/jit/pageContentKeys.js +26 -0
  94. package/dist/build/jit/shallowBuild.js +245 -0
  95. package/dist/build/jit/stripPageContent.js +23 -0
  96. package/dist/build/jit/updateServerPackageJsonJit.js +33 -0
  97. package/dist/build/jit/validatePageTypes.js +73 -0
  98. package/dist/build/jit/writePageJit.js +44 -0
  99. package/dist/build/jit/writePageRegistry.js +23 -0
  100. package/dist/build/jit/writeSourcelessPages.js +23 -0
  101. package/dist/build/testSchema.js +45 -7
  102. package/dist/build/validateConfig.js +2 -2
  103. package/dist/build/validateOperatorsDynamic.js +28 -0
  104. package/dist/build/writeApi.js +1 -1
  105. package/dist/build/writeApp.js +1 -1
  106. package/dist/build/writeAuth.js +1 -1
  107. package/dist/build/writeConfig.js +1 -1
  108. package/dist/build/writeConnections.js +1 -1
  109. package/dist/build/writeGlobal.js +1 -1
  110. package/dist/build/writeLogger.js +19 -0
  111. package/dist/build/writeMaps.js +1 -1
  112. package/dist/build/writeMenus.js +1 -1
  113. package/dist/build/writePluginImports/generateImportFile.js +1 -1
  114. package/dist/build/writePluginImports/writeActionImports.js +1 -1
  115. package/dist/build/writePluginImports/writeActionSchemaMap.js +42 -0
  116. package/dist/build/writePluginImports/writeAuthImports.js +1 -1
  117. package/dist/build/writePluginImports/writeBlockImports.js +1 -1
  118. package/dist/build/writePluginImports/writeBlockSchemaMap.js +42 -0
  119. package/dist/build/writePluginImports/writeConnectionImports.js +1 -1
  120. package/dist/build/writePluginImports/writeIconImports.js +1 -1
  121. package/dist/build/writePluginImports/writeOperatorImports.js +1 -1
  122. package/dist/build/writePluginImports/writeOperatorSchemaMap.js +49 -0
  123. package/dist/build/writePluginImports/writePluginImports.js +16 -1
  124. package/dist/build/writePluginImports/writeStyleImports.js +1 -1
  125. package/dist/createContext.js +16 -4
  126. package/dist/defaultTypesMap.js +477 -455
  127. package/dist/index.js +188 -127
  128. package/dist/indexDev.js +18 -0
  129. package/dist/lowdefySchema.js +589 -0
  130. package/dist/scripts/generateDefaultTypes.js +2 -1
  131. package/dist/scripts/run.js +1 -1
  132. package/dist/{test → test-utils}/buildRefs/testBuildRefsAsyncFunction.js +1 -1
  133. package/dist/{test → test-utils}/buildRefs/testBuildRefsErrorResolver.js +1 -1
  134. package/dist/{test → test-utils}/buildRefs/testBuildRefsNullResolver.js +1 -1
  135. package/dist/{test → test-utils}/buildRefs/testBuildRefsParsingResolver.js +1 -1
  136. package/dist/{test → test-utils}/buildRefs/testBuildRefsResolver.js +1 -1
  137. package/dist/{test → test-utils}/buildRefs/testBuildRefsTransform.js +1 -1
  138. package/dist/{test → test-utils}/buildRefs/testBuildRefsTransformIdentity.js +1 -1
  139. package/dist/test-utils/buildRefs/testJitPageResolver.js +24 -0
  140. package/dist/test-utils/createTestLogger.js +36 -0
  141. package/dist/test-utils/parseTestYaml.js +126 -0
  142. package/dist/test-utils/runBuild.js +228 -0
  143. package/dist/test-utils/runBuildForSnapshots.js +704 -0
  144. package/dist/{test → test-utils}/testContext.js +12 -2
  145. package/dist/utils/collectExceptions.js +34 -0
  146. package/dist/utils/countOperators.js +31 -12
  147. package/dist/utils/createBuildHandleError.js +38 -0
  148. package/dist/utils/createCheckDuplicateId.js +15 -9
  149. package/dist/utils/createCounter.js +16 -3
  150. package/dist/utils/createHandleWarning.js +41 -0
  151. package/dist/utils/createPluginTypesMap.js +1 -1
  152. package/dist/utils/extractOperatorKey.js +36 -0
  153. package/dist/utils/findConfigKey.js +37 -0
  154. package/dist/utils/findSimilarString.js +53 -0
  155. package/dist/utils/logCollectedErrors.js +30 -0
  156. package/dist/utils/makeId.js +13 -8
  157. package/dist/utils/preserveMetaProperties.js +27 -0
  158. package/dist/utils/readConfigFile.js +1 -1
  159. package/dist/utils/setNonEnumerableProperty.js +23 -0
  160. package/dist/utils/traverseConfig.js +43 -0
  161. package/dist/utils/tryBuildStep.js +46 -0
  162. package/dist/utils/writeBuildArtifact.js +1 -1
  163. package/package.json +46 -41
  164. package/dist/build/buildPages/buildPages.js +0 -31
  165. package/dist/utils/formatErrorMessage.js +0 -56
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -0,0 +1,42 @@
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ async function writeActionSchemaMap({ components, context }) {
16
+ const schemas = {};
17
+ const typesMapSchemas = context.typesMap.schemas?.actions ?? {};
18
+ const actionsByPackage = {};
19
+ for (const action of components.imports.actions){
20
+ if (!actionsByPackage[action.package]) {
21
+ actionsByPackage[action.package] = [];
22
+ }
23
+ actionsByPackage[action.package].push(action);
24
+ }
25
+ for (const [packageName, actions] of Object.entries(actionsByPackage)){
26
+ let packageSchemas;
27
+ try {
28
+ packageSchemas = await import(`${packageName}/schemas`);
29
+ } catch {
30
+ // Package not resolvable from build context (custom plugins) — skip
31
+ }
32
+ for (const action of actions){
33
+ if (typesMapSchemas[action.typeName]) {
34
+ schemas[action.typeName] = typesMapSchemas[action.typeName];
35
+ } else if (packageSchemas?.[action.originalTypeName]) {
36
+ schemas[action.typeName] = packageSchemas[action.originalTypeName];
37
+ }
38
+ }
39
+ }
40
+ return context.writeBuildArtifact('plugins/actionSchemas.json', JSON.stringify(schemas));
41
+ }
42
+ export default writeActionSchemaMap;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -0,0 +1,42 @@
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ async function writeBlockSchemaMap({ components, context }) {
16
+ const schemas = {};
17
+ const typesMapSchemas = context.typesMap.schemas?.blocks ?? {};
18
+ const blocksByPackage = {};
19
+ for (const block of components.imports.blocks){
20
+ if (!blocksByPackage[block.package]) {
21
+ blocksByPackage[block.package] = [];
22
+ }
23
+ blocksByPackage[block.package].push(block);
24
+ }
25
+ for (const [packageName, blocks] of Object.entries(blocksByPackage)){
26
+ let packageSchemas;
27
+ try {
28
+ packageSchemas = await import(`${packageName}/schemas`);
29
+ } catch {
30
+ // Package not resolvable from build context (custom plugins) — skip
31
+ }
32
+ for (const block of blocks){
33
+ if (typesMapSchemas[block.typeName]) {
34
+ schemas[block.typeName] = typesMapSchemas[block.typeName];
35
+ } else if (packageSchemas?.[block.originalTypeName]) {
36
+ schemas[block.typeName] = packageSchemas[block.originalTypeName];
37
+ }
38
+ }
39
+ }
40
+ return context.writeBuildArtifact('plugins/blockSchemas.json', JSON.stringify(schemas));
41
+ }
42
+ export default writeBlockSchemaMap;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -0,0 +1,49 @@
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ async function writeOperatorSchemaMap({ components, context }) {
16
+ const schemas = {};
17
+ const typesMapSchemas = context.typesMap.schemas?.operators ?? {};
18
+ const allOperators = new Map();
19
+ for (const op of components.imports.operators.client){
20
+ allOperators.set(op.typeName, op);
21
+ }
22
+ for (const op of components.imports.operators.server){
23
+ allOperators.set(op.typeName, op);
24
+ }
25
+ const operatorsByPackage = {};
26
+ for (const op of allOperators.values()){
27
+ if (!operatorsByPackage[op.package]) {
28
+ operatorsByPackage[op.package] = [];
29
+ }
30
+ operatorsByPackage[op.package].push(op);
31
+ }
32
+ for (const [packageName, operators] of Object.entries(operatorsByPackage)){
33
+ let packageSchemas;
34
+ try {
35
+ packageSchemas = await import(`${packageName}/schemas`);
36
+ } catch {
37
+ // Package not resolvable from build context (custom plugins) — skip
38
+ }
39
+ for (const op of operators){
40
+ if (typesMapSchemas[op.typeName]) {
41
+ schemas[op.typeName] = typesMapSchemas[op.typeName];
42
+ } else if (packageSchemas?.[op.originalTypeName]) {
43
+ schemas[op.typeName] = packageSchemas[op.originalTypeName];
44
+ }
45
+ }
46
+ }
47
+ return context.writeBuildArtifact('plugins/operatorSchemas.json', JSON.stringify(schemas));
48
+ }
49
+ export default writeOperatorSchemaMap;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -13,17 +13,24 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ import writeActionImports from './writeActionImports.js';
16
+ import writeActionSchemaMap from './writeActionSchemaMap.js';
16
17
  import writeAuthImports from './writeAuthImports.js';
17
18
  import writeBlockImports from './writeBlockImports.js';
19
+ import writeBlockSchemaMap from './writeBlockSchemaMap.js';
18
20
  import writeConnectionImports from './writeConnectionImports.js';
19
21
  import writeIconImports from './writeIconImports.js';
20
22
  import writeOperatorImports from './writeOperatorImports.js';
23
+ import writeOperatorSchemaMap from './writeOperatorSchemaMap.js';
21
24
  import writeStyleImports from './writeStyleImports.js';
22
25
  async function writePluginImports({ components, context }) {
23
26
  await writeActionImports({
24
27
  components,
25
28
  context
26
29
  });
30
+ await writeActionSchemaMap({
31
+ components,
32
+ context
33
+ });
27
34
  await writeAuthImports({
28
35
  components,
29
36
  context
@@ -32,6 +39,10 @@ async function writePluginImports({ components, context }) {
32
39
  components,
33
40
  context
34
41
  });
42
+ await writeBlockSchemaMap({
43
+ components,
44
+ context
45
+ });
35
46
  await writeConnectionImports({
36
47
  components,
37
48
  context
@@ -44,6 +55,10 @@ async function writePluginImports({ components, context }) {
44
55
  components,
45
56
  context
46
57
  });
58
+ await writeOperatorSchemaMap({
59
+ components,
60
+ context
61
+ });
47
62
  await writeStyleImports({
48
63
  components,
49
64
  context
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2024 Lowdefy, Inc
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
- /* eslint-disable no-console */ /*
2
- Copyright 2020-2024 Lowdefy, Inc
1
+ /*
2
+ Copyright 2020-2026 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -13,13 +13,17 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ import { mergeObjects } from '@lowdefy/helpers';
16
+ import createBuildHandleError from './utils/createBuildHandleError.js';
16
17
  import createCounter from './utils/createCounter.js';
18
+ import createHandleWarning from './utils/createHandleWarning.js';
17
19
  import createReadConfigFile from './utils/readConfigFile.js';
18
20
  import createWriteBuildArtifact from './utils/writeBuildArtifact.js';
19
21
  import defaultTypesMap from './defaultTypesMap.js';
20
22
  function createContext({ customTypesMap, directories, logger, refResolver, stage = 'prod' }) {
21
23
  const context = {
24
+ connectionIds: new Set(),
22
25
  directories,
26
+ errors: [],
23
27
  jsMap: {},
24
28
  keyMap: {},
25
29
  logger,
@@ -28,6 +32,8 @@ function createContext({ customTypesMap, directories, logger, refResolver, stage
28
32
  }),
29
33
  refMap: {},
30
34
  refResolver,
35
+ unresolvedRefVars: {},
36
+ seenSourceLines: new Set(),
31
37
  stage,
32
38
  typeCounters: {
33
39
  actions: createCounter(),
@@ -42,8 +48,8 @@ function createContext({ customTypesMap, directories, logger, refResolver, stage
42
48
  requests: createCounter(),
43
49
  controls: createCounter(),
44
50
  operators: {
45
- client: createCounter(),
46
- server: createCounter()
51
+ client: createCounter('client'),
52
+ server: createCounter('server')
47
53
  }
48
54
  },
49
55
  typesMap: mergeObjects([
@@ -54,6 +60,12 @@ function createContext({ customTypesMap, directories, logger, refResolver, stage
54
60
  directories
55
61
  })
56
62
  };
63
+ context.handleError = createBuildHandleError({
64
+ context
65
+ });
66
+ context.handleWarning = createHandleWarning({
67
+ context
68
+ });
57
69
  return context;
58
70
  }
59
71
  export default createContext;