@lowdefy/build 4.5.2 → 4.7.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/dist/build/addDefaultPages/404.js +1 -1
- package/dist/build/addDefaultPages/addDefaultPages.js +10 -4
- package/dist/build/addKeys.js +85 -29
- package/dist/build/buildApi/buildApi.js +27 -8
- package/dist/build/buildApi/buildEndpoint.js +7 -1
- package/dist/build/buildApi/buildRoutine/buildControl.js +1 -1
- package/dist/build/buildApi/buildRoutine/buildRoutine.js +1 -1
- package/dist/build/buildApi/buildRoutine/buildStep.js +1 -1
- package/dist/build/buildApi/buildRoutine/controlTypes.js +34 -11
- package/dist/build/buildApi/buildRoutine/countControl.js +1 -1
- package/dist/build/buildApi/buildRoutine/countStepTypes.js +2 -2
- package/dist/build/buildApi/buildRoutine/setStepId.js +1 -1
- package/dist/build/buildApi/buildRoutine/validateStep.js +30 -9
- package/dist/build/buildApi/validateEndpoint.js +36 -7
- package/dist/build/buildApi/validateStepReferences.js +65 -0
- package/dist/build/buildApp.js +1 -1
- package/dist/build/buildAuth/buildApiAuth.js +7 -3
- package/dist/build/buildAuth/buildAuth.js +7 -4
- package/dist/build/buildAuth/buildAuthPlugins.js +42 -13
- package/dist/build/buildAuth/buildPageAuth.js +14 -3
- package/dist/build/buildAuth/getApiRoles.js +1 -1
- package/dist/build/buildAuth/getPageRoles.js +1 -1
- package/dist/build/buildAuth/getProtectedApi.js +1 -1
- package/dist/build/buildAuth/getProtectedPages.js +1 -1
- package/dist/build/buildAuth/validateAuthConfig.js +39 -5
- package/dist/build/buildAuth/validateMutualExclusivity.js +13 -5
- package/dist/build/buildConnections.js +23 -24
- package/dist/build/buildImports/buildIconImports.js +1 -1
- package/dist/build/buildImports/buildImports.js +1 -1
- package/dist/build/buildImports/buildImportsDev.js +1 -1
- package/dist/build/buildImports/buildImportsProd.js +1 -1
- package/dist/build/buildImports/buildStyleImports.js +1 -1
- package/dist/build/buildImports/defaultIconsDev.js +1 -1
- package/dist/build/buildImports/defaultIconsProd.js +1 -1
- package/dist/build/buildJs/generateJsFile.js +1 -1
- package/dist/build/buildJs/jsMapParser.js +1 -1
- package/dist/build/buildJs/writeJs.js +1 -1
- package/dist/build/buildLogger.js +41 -0
- package/dist/build/buildMenu.js +36 -12
- package/dist/build/buildPages/buildBlock/buildBlock.js +1 -1
- package/dist/build/buildPages/buildBlock/buildEvents.js +79 -9
- package/dist/build/buildPages/buildBlock/buildRequests.js +38 -8
- package/dist/build/buildPages/buildBlock/buildSubBlocks.js +6 -2
- package/dist/build/buildPages/buildBlock/countBlockOperators.js +1 -1
- package/dist/build/buildPages/buildBlock/countBlockTypes.js +2 -2
- package/dist/build/buildPages/buildBlock/moveSkeletonBlocksToArea.js +6 -2
- package/dist/build/buildPages/buildBlock/moveSubBlocksToArea.js +6 -2
- package/dist/build/buildPages/buildBlock/setBlockId.js +1 -1
- package/dist/build/buildPages/buildBlock/validateBlock.js +25 -7
- package/dist/build/buildPages/buildPage.js +35 -6
- package/dist/build/buildPages/validateLinkReferences.js +33 -0
- package/dist/build/buildPages/validatePayloadReferences.js +59 -0
- package/dist/build/buildPages/validateRequestReferences.js +33 -0
- package/dist/build/buildPages/validateServerStateReferences.js +41 -0
- package/dist/build/buildPages/validateStateReferences.js +79 -0
- package/dist/build/buildRefs/buildRefs.js +40 -7
- package/dist/build/buildRefs/evaluateStaticOperators.js +52 -0
- package/dist/build/buildRefs/getConfigFile.js +25 -6
- package/dist/build/buildRefs/getKey.js +1 -1
- package/dist/build/buildRefs/getRefContent.js +1 -1
- package/dist/build/buildRefs/getRefPath.js +1 -1
- package/dist/build/buildRefs/getUserJavascriptFunction.js +18 -4
- package/dist/build/buildRefs/makeRefDefinition.js +10 -5
- package/dist/build/buildRefs/parseNunjucks.js +1 -1
- package/dist/build/buildRefs/parseRefContent.js +108 -7
- package/dist/build/buildRefs/runRefResolver.js +11 -3
- package/dist/build/buildRefs/runTransformer.js +7 -3
- package/dist/build/buildRefs/walker.js +340 -0
- package/dist/build/buildTypes.js +22 -7
- package/dist/build/cleanBuildDirectory.js +1 -1
- package/dist/build/collectDynamicIdentifiers.js +35 -0
- package/dist/build/collectTypeNames.js +36 -0
- package/dist/build/copyPublicFolder.js +1 -1
- package/dist/build/{buildJs → full}/buildJs.js +3 -3
- package/dist/build/full/buildPages.js +87 -0
- package/dist/build/{buildPages → full}/buildTestPage.js +15 -3
- package/dist/build/{updateServerPackageJson.js → full/updateServerPackageJson.js} +1 -1
- package/dist/build/{writePages.js → full/writePages.js} +1 -1
- package/dist/build/{writeRequests.js → full/writeRequests.js} +11 -3
- package/dist/build/{writeTypes.js → full/writeTypes.js} +1 -1
- package/dist/build/jit/addInstalledTypes.js +51 -0
- package/dist/build/jit/buildJsShallow.js +41 -0
- package/dist/build/jit/buildPageJit.js +271 -0
- package/dist/build/jit/buildShallowPages.js +90 -0
- package/dist/build/jit/createPageRegistry.js +85 -0
- package/dist/build/jit/detectMissingPluginPackages.js +62 -0
- package/dist/build/jit/isPageContentPath.js +24 -0
- package/dist/build/jit/pageContentKeys.js +26 -0
- package/dist/build/jit/shallowBuild.js +242 -0
- package/dist/build/jit/updateServerPackageJsonJit.js +33 -0
- package/dist/build/jit/validatePageTypes.js +73 -0
- package/dist/build/jit/writePageJit.js +44 -0
- package/dist/build/jit/writePageRegistry.js +23 -0
- package/dist/build/jit/writeSourcelessPages.js +23 -0
- package/dist/build/testSchema.js +45 -7
- package/dist/build/validateConfig.js +2 -2
- package/dist/build/validateOperatorsDynamic.js +28 -0
- package/dist/build/writeApi.js +1 -1
- package/dist/build/writeApp.js +1 -1
- package/dist/build/writeAuth.js +1 -1
- package/dist/build/writeConfig.js +1 -1
- package/dist/build/writeConnections.js +1 -1
- package/dist/build/writeGlobal.js +1 -1
- package/dist/build/writeLogger.js +19 -0
- package/dist/build/writeMaps.js +1 -1
- package/dist/build/writeMenus.js +1 -1
- package/dist/build/writePluginImports/generateImportFile.js +1 -1
- package/dist/build/writePluginImports/writeActionImports.js +1 -1
- package/dist/build/writePluginImports/writeActionSchemaMap.js +42 -0
- package/dist/build/writePluginImports/writeAuthImports.js +1 -1
- package/dist/build/writePluginImports/writeBlockImports.js +1 -1
- package/dist/build/writePluginImports/writeBlockSchemaMap.js +42 -0
- package/dist/build/writePluginImports/writeConnectionImports.js +1 -1
- package/dist/build/writePluginImports/writeIconImports.js +1 -1
- package/dist/build/writePluginImports/writeOperatorImports.js +1 -1
- package/dist/build/writePluginImports/writeOperatorSchemaMap.js +49 -0
- package/dist/build/writePluginImports/writePluginImports.js +16 -1
- package/dist/build/writePluginImports/writeStyleImports.js +1 -1
- package/dist/createContext.js +16 -4
- package/dist/defaultTypesMap.js +479 -457
- package/dist/index.js +190 -127
- package/dist/indexDev.js +19 -0
- package/dist/lowdefySchema.js +588 -0
- package/dist/scripts/generateDefaultTypes.js +2 -1
- package/dist/scripts/run.js +1 -1
- package/dist/{test → test-utils}/buildRefs/testBuildRefsAsyncFunction.js +1 -1
- package/dist/{test → test-utils}/buildRefs/testBuildRefsErrorResolver.js +1 -1
- package/dist/{test → test-utils}/buildRefs/testBuildRefsNullResolver.js +1 -1
- package/dist/{test → test-utils}/buildRefs/testBuildRefsParsingResolver.js +1 -1
- package/dist/{test → test-utils}/buildRefs/testBuildRefsResolver.js +1 -1
- package/dist/{test → test-utils}/buildRefs/testBuildRefsTransform.js +1 -1
- package/dist/{test → test-utils}/buildRefs/testBuildRefsTransformIdentity.js +1 -1
- package/dist/test-utils/buildRefs/testJitPageResolver.js +24 -0
- package/dist/test-utils/createTestLogger.js +36 -0
- package/dist/test-utils/parseTestYaml.js +126 -0
- package/dist/test-utils/runBuild.js +228 -0
- package/dist/test-utils/runBuildForSnapshots.js +704 -0
- package/dist/{test → test-utils}/testContext.js +12 -2
- package/dist/utils/collectExceptions.js +34 -0
- package/dist/utils/countOperators.js +31 -12
- package/dist/utils/createBuildHandleError.js +38 -0
- package/dist/utils/createCheckDuplicateId.js +15 -9
- package/dist/utils/createCounter.js +16 -3
- package/dist/utils/createHandleWarning.js +41 -0
- package/dist/utils/createPluginTypesMap.js +1 -1
- package/dist/utils/extractOperatorKey.js +36 -0
- package/dist/utils/findConfigKey.js +37 -0
- package/dist/utils/findSimilarString.js +53 -0
- package/dist/utils/logCollectedErrors.js +30 -0
- package/dist/utils/makeId.js +16 -8
- package/dist/utils/preserveMetaProperties.js +27 -0
- package/dist/utils/readConfigFile.js +1 -1
- package/dist/utils/setNonEnumerableProperty.js +23 -0
- package/dist/utils/traverseConfig.js +43 -0
- package/dist/utils/tryBuildStep.js +46 -0
- package/dist/utils/writeBuildArtifact.js +1 -1
- package/package.json +46 -41
- package/dist/build/buildPages/buildPages.js +0 -31
- package/dist/build/buildRefs/evaluateBuildOperators.js +0 -34
- package/dist/build/buildRefs/getRefsFromFile.js +0 -37
- package/dist/build/buildRefs/populateRefs.js +0 -43
- package/dist/build/buildRefs/recursiveBuild.js +0 -85
- package/dist/utils/formatErrorMessage.js +0 -56
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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-
|
|
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
|
package/dist/createContext.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright 2020-
|
|
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;
|