@tachybase/module-workflow 0.23.8
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/.turbo/turbo-build.log +12 -0
- package/README.md +9 -0
- package/README.zh-CN.md +9 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/Branch.d.ts +9 -0
- package/dist/client/CanvasContent.d.ts +4 -0
- package/dist/client/CanvasContentWrapper.d.ts +4 -0
- package/dist/client/ExecutionCanvas.d.ts +2 -0
- package/dist/client/ExecutionContextProvider.d.ts +7 -0
- package/dist/client/ExecutionLink.d.ts +2 -0
- package/dist/client/ExecutionPage.d.ts +2 -0
- package/dist/client/ExecutionResourceProvider.d.ts +6 -0
- package/dist/client/FlowContext.d.ts +3 -0
- package/dist/client/Plugin.d.ts +39 -0
- package/dist/client/WorkflowCanvas.d.ts +2 -0
- package/dist/client/WorkflowLink.d.ts +2 -0
- package/dist/client/WorkflowPage.d.ts +2 -0
- package/dist/client/WorkflowPane.d.ts +2 -0
- package/dist/client/components/AddNotifiedPerson.d.ts +3 -0
- package/dist/client/components/AutoResizeInput.d.ts +4 -0
- package/dist/client/components/CheckboxGroupWithTooltip.d.ts +7 -0
- package/dist/client/components/CollectionBlockInitializer.d.ts +2 -0
- package/dist/client/components/CollectionFieldset.d.ts +3 -0
- package/dist/client/components/ColumnShowCollection.d.ts +2 -0
- package/dist/client/components/ColumnShowTitle.d.ts +2 -0
- package/dist/client/components/ConfigButtonMessage.d.ts +2 -0
- package/dist/client/components/DetailsBlockProvider.d.ts +6 -0
- package/dist/client/components/DrawerDescription.d.ts +5 -0
- package/dist/client/components/DrawerForm.d.ts +5 -0
- package/dist/client/components/ExecutionStatus.d.ts +5 -0
- package/dist/client/components/ExecutionTime.d.ts +3 -0
- package/dist/client/components/FieldsSelect.d.ts +2 -0
- package/dist/client/components/FilterDynamicComponent.d.ts +6 -0
- package/dist/client/components/GoBackButton.d.ts +2 -0
- package/dist/client/components/OpenDrawer.d.ts +7 -0
- package/dist/client/components/RadioWithTooltip.d.ts +7 -0
- package/dist/client/components/SelectNotifiedPerson.d.ts +2 -0
- package/dist/client/components/ShowNodeTypesInWorkflow.d.ts +2 -0
- package/dist/client/components/SimpleDesigner.d.ts +2 -0
- package/dist/client/components/StatusButton.d.ts +2 -0
- package/dist/client/components/ValueBlock.d.ts +5 -0
- package/dist/client/components/WorkflowLink.d.ts +2 -0
- package/dist/client/components/index.d.ts +15 -0
- package/dist/client/components/renderEngineReference.d.ts +2 -0
- package/dist/client/constants.d.ts +37 -0
- package/dist/client/features/aggregate/AggregateInstruction.d.ts +217 -0
- package/dist/client/features/aggregate/index.d.ts +4 -0
- package/dist/client/features/common/constants.d.ts +3 -0
- package/dist/client/features/delay/DelayInstruction.d.ts +48 -0
- package/dist/client/features/delay/index.d.ts +4 -0
- package/dist/client/features/dynamic-calculation/DynamicCalculation.d.ts +76 -0
- package/dist/client/features/dynamic-calculation/DynamicExpression.d.ts +6 -0
- package/dist/client/features/dynamic-calculation/expression.d.ts +35 -0
- package/dist/client/features/dynamic-calculation/index.d.ts +4 -0
- package/dist/client/features/interceptor/WorkflowTriggerInterceptor.d.ts +100 -0
- package/dist/client/features/interceptor/index.d.ts +4 -0
- package/dist/client/features/js-parse/JSParse.instruction.d.ts +123 -0
- package/dist/client/features/js-parse/index.d.ts +5 -0
- package/dist/client/features/json-parse/JSONParse.instruction.d.ts +119 -0
- package/dist/client/features/json-parse/index.d.ts +5 -0
- package/dist/client/features/loop/LoopInstruction.d.ts +33 -0
- package/dist/client/features/loop/index.d.ts +4 -0
- package/dist/client/features/manual/WorkflowTodo.d.ts +5 -0
- package/dist/client/features/manual/WorkflowTodoBlockInitializer.d.ts +2 -0
- package/dist/client/features/manual/index.d.ts +5 -0
- package/dist/client/features/manual/instruction/AssigneesSelect.d.ts +6 -0
- package/dist/client/features/manual/instruction/FormBlockInitializer.d.ts +2 -0
- package/dist/client/features/manual/instruction/FormBlockProvider.d.ts +2 -0
- package/dist/client/features/manual/instruction/ModeConfig.d.ts +5 -0
- package/dist/client/features/manual/instruction/SchemaConfig.d.ts +50 -0
- package/dist/client/features/manual/instruction/createManualFormBlockUISchema.d.ts +57 -0
- package/dist/client/features/manual/instruction/forms/create.d.ts +3 -0
- package/dist/client/features/manual/instruction/forms/custom.d.ts +5 -0
- package/dist/client/features/manual/instruction/forms/update.d.ts +3 -0
- package/dist/client/features/manual/instruction/index.d.ts +91 -0
- package/dist/client/features/manual/instruction/utils.d.ts +1 -0
- package/dist/client/features/notice/common/flowNodes.collection.d.ts +38 -0
- package/dist/client/features/notice/common/notice.collection.d.ts +127 -0
- package/dist/client/features/notice/common/workflow.collection.d.ts +30 -0
- package/dist/client/features/notice/configuration/Notice.instruction.d.ts +76 -0
- package/dist/client/features/notice/configuration/config-items/AddNotifiedPerson.view.d.ts +2 -0
- package/dist/client/features/notice/configuration/config-items/ConfigButtonNotice.view.d.ts +2 -0
- package/dist/client/features/notice/configuration/config-items/SelectNotifiedPerson.view.d.ts +2 -0
- package/dist/client/features/notice/configuration/kit.d.ts +5 -0
- package/dist/client/features/notice/configuration/show-interface/NoticeDetail.block.d.ts +2 -0
- package/dist/client/features/notice/configuration/show-interface/NoticeDetail.initializer.d.ts +2 -0
- package/dist/client/features/notice/configuration/show-interface/NoticeDetail.schema.d.ts +6 -0
- package/dist/client/features/notice/configuration/show-interface/NoticeDetailContainer.schema.d.ts +2 -0
- package/dist/client/features/notice/configuration/show-interface/style.d.ts +3 -0
- package/dist/client/features/notice/configuration/style.d.ts +5 -0
- package/dist/client/features/notice/index.d.ts +5 -0
- package/dist/client/features/notice/locale.d.ts +7 -0
- package/dist/client/features/notice/usage/NoticeBlock.initializer.d.ts +6 -0
- package/dist/client/features/notice/usage/NoticeBlock.provider.d.ts +5 -0
- package/dist/client/features/notice/usage/NoticeCenter.schema.d.ts +2 -0
- package/dist/client/features/notice/usage/column/column.action.d.ts +2 -0
- package/dist/client/features/notice/usage/column/column.node.d.ts +1 -0
- package/dist/client/features/notice/usage/column/column.status.d.ts +8 -0
- package/dist/client/features/notice/usage/column/column.user.d.ts +1 -0
- package/dist/client/features/notice/usage/column/column.workflow.d.ts +2 -0
- package/dist/client/features/notice/usage/kit.d.ts +5 -0
- package/dist/client/features/notice/usage/show-detail/NoticeDetail.provider.d.ts +5 -0
- package/dist/client/features/notice/usage/show-detail/NoticeDetail.schema.d.ts +2 -0
- package/dist/client/features/notice/usage/show-detail/contexts/MyComponent.context.d.ts +9 -0
- package/dist/client/features/notice/usage/show-detail/contexts/WorkflowNotice.context.d.ts +4 -0
- package/dist/client/features/notice/usage/show-detail/hooks/usePropsNoticeDetail.d.ts +3 -0
- package/dist/client/features/omni-trigger/OmniActionTrigger.d.ts +84 -0
- package/dist/client/features/omni-trigger/index.d.ts +5 -0
- package/dist/client/features/omni-trigger/usage/APIRegular.schema.d.ts +2 -0
- package/dist/client/features/omni-trigger/usage/APIRegular.setting.d.ts +2 -0
- package/dist/client/features/omni-trigger/usage/hooks.d.ts +3 -0
- package/dist/client/features/omni-trigger/usage/kit.d.ts +4 -0
- package/dist/client/features/omni-trigger/useFormWorkflowCustomActionProps.d.ts +3 -0
- package/dist/client/features/omni-trigger/useRecordWorkflowCustomTriggerActionProps.d.ts +3 -0
- package/dist/client/features/parallel/ParallelInstruction.d.ts +34 -0
- package/dist/client/features/parallel/index.d.ts +4 -0
- package/dist/client/features/request/RequestInstruction.d.ts +220 -0
- package/dist/client/features/request/index.d.ts +4 -0
- package/dist/client/features/response/index.d.ts +4 -0
- package/dist/client/features/script/Script.instruction.d.ts +198 -0
- package/dist/client/features/script/index.d.ts +5 -0
- package/dist/client/features/sql/SQLInstruction.d.ts +54 -0
- package/dist/client/features/sql/index.d.ts +4 -0
- package/dist/client/features/trigger-instruction/TriggerInstruction.d.ts +93 -0
- package/dist/client/features/trigger-instruction/index.d.ts +0 -0
- package/dist/client/features/trigger-instruction/plugin.d.ts +4 -0
- package/dist/client/features/variables/VariableTargetSelect.d.ts +5 -0
- package/dist/client/features/variables/VariablesInstruction.d.ts +54 -0
- package/dist/client/features/variables/index.d.ts +4 -0
- package/dist/client/features/variables/useStyles.d.ts +3 -0
- package/dist/client/hooks/index.d.ts +3 -0
- package/dist/client/hooks/useGetAriaLabelOfAddButton.d.ts +6 -0
- package/dist/client/hooks/useTriggerWorkflowActionProps.d.ts +6 -0
- package/dist/client/hooks/useWorkflowExecuted.d.ts +2 -0
- package/dist/client/index.d.ts +19 -0
- package/dist/client/index.js +876 -0
- package/dist/client/locale/index.d.ts +4 -0
- package/dist/client/nodes/calculation.d.ts +88 -0
- package/dist/client/nodes/condition.d.ts +108 -0
- package/dist/client/nodes/create.d.ts +68 -0
- package/dist/client/nodes/default-node/Node.context.d.ts +3 -0
- package/dist/client/nodes/default-node/Node.d.ts +4 -0
- package/dist/client/nodes/default-node/Node.style.d.ts +4 -0
- package/dist/client/nodes/default-node/buttons/ArrowDownButton.d.ts +2 -0
- package/dist/client/nodes/default-node/buttons/ArrowUpButton.d.ts +2 -0
- package/dist/client/nodes/default-node/buttons/DragButton.d.ts +2 -0
- package/dist/client/nodes/default-node/buttons/JobButton.d.ts +2 -0
- package/dist/client/nodes/default-node/buttons/JobButton.style.d.ts +5 -0
- package/dist/client/nodes/default-node/buttons/RemoveButton.d.ts +2 -0
- package/dist/client/nodes/default-node/components/AddButton.d.ts +11 -0
- package/dist/client/nodes/default-node/components/AddButton.props.d.ts +11 -0
- package/dist/client/nodes/default-node/components/AddButton.style.d.ts +6 -0
- package/dist/client/nodes/default-node/components/NodeConfig.d.ts +2 -0
- package/dist/client/nodes/default-node/components/NodeConfig.provider.d.ts +2 -0
- package/dist/client/nodes/default-node/components/NodeConfig.schema.d.ts +15 -0
- package/dist/client/nodes/default-node/components/NodeConfig.view.d.ts +2 -0
- package/dist/client/nodes/default-node/components/NodeConfigTitle.d.ts +2 -0
- package/dist/client/nodes/default-node/components/NodeDefaultView.d.ts +2 -0
- package/dist/client/nodes/default-node/components/NodeDefaultView.style.d.ts +5 -0
- package/dist/client/nodes/default-node/components/NodePoint.d.ts +2 -0
- package/dist/client/nodes/default-node/components/NodePoint.style.d.ts +4 -0
- package/dist/client/nodes/default-node/hooks/useAvailableUpstreams.d.ts +1 -0
- package/dist/client/nodes/default-node/hooks/useFormProviderProps.d.ts +3 -0
- package/dist/client/nodes/default-node/hooks/useUpdateAction.d.ts +3 -0
- package/dist/client/nodes/default-node/hooks/useUpstreamScopes.d.ts +1 -0
- package/dist/client/nodes/default-node/index.d.ts +4 -0
- package/dist/client/nodes/default-node/interface.d.ts +49 -0
- package/dist/client/nodes/destroy.d.ts +46 -0
- package/dist/client/nodes/end.d.ts +25 -0
- package/dist/client/nodes/query.d.ts +221 -0
- package/dist/client/nodes/update.d.ts +82 -0
- package/dist/client/schemas/collection.d.ts +162 -0
- package/dist/client/schemas/executions.d.ts +380 -0
- package/dist/client/schemas/workflows.d.ts +47 -0
- package/dist/client/settings/customizeSubmitToWorkflowActionSettings.d.ts +2 -0
- package/dist/client/style.d.ts +19 -0
- package/dist/client/triggers/collection.d.ts +133 -0
- package/dist/client/triggers/index.d.ts +25 -0
- package/dist/client/triggers/schedule/EndsByField.d.ts +5 -0
- package/dist/client/triggers/schedule/OnField.d.ts +5 -0
- package/dist/client/triggers/schedule/RepeatField.d.ts +5 -0
- package/dist/client/triggers/schedule/ScheduleConfig.d.ts +2 -0
- package/dist/client/triggers/schedule/constants.d.ts +4 -0
- package/dist/client/triggers/schedule/index.d.ts +22 -0
- package/dist/client/triggers/schedule/locale/Cron.zh-CN.d.ts +34 -0
- package/dist/client/utils.d.ts +5 -0
- package/dist/client/variable.d.ts +97 -0
- package/dist/common/constants.d.ts +5 -0
- package/dist/common/constants.js +39 -0
- package/dist/externalVersion.js +25 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +39 -0
- package/dist/locale/en-US.json +319 -0
- package/dist/locale/es-ES.json +129 -0
- package/dist/locale/fr-FR.json +129 -0
- package/dist/locale/ja-JP.json +87 -0
- package/dist/locale/ko_KR.json +246 -0
- package/dist/locale/pt-BR.json +129 -0
- package/dist/locale/ru-RU.json +87 -0
- package/dist/locale/tr-TR.json +87 -0
- package/dist/locale/zh-CN.json +399 -0
- package/dist/node_modules/@babel/core/LICENSE +22 -0
- package/dist/node_modules/@babel/core/cjs-proxy.cjs +68 -0
- package/dist/node_modules/@babel/core/lib/config/cache-contexts.js +3 -0
- package/dist/node_modules/@babel/core/lib/config/caching.js +261 -0
- package/dist/node_modules/@babel/core/lib/config/config-chain.js +469 -0
- package/dist/node_modules/@babel/core/lib/config/config-descriptors.js +190 -0
- package/dist/node_modules/@babel/core/lib/config/files/configuration.js +287 -0
- package/dist/node_modules/@babel/core/lib/config/files/import.cjs +6 -0
- package/dist/node_modules/@babel/core/lib/config/files/index-browser.js +58 -0
- package/dist/node_modules/@babel/core/lib/config/files/index.js +78 -0
- package/dist/node_modules/@babel/core/lib/config/files/module-types.js +195 -0
- package/dist/node_modules/@babel/core/lib/config/files/package.js +61 -0
- package/dist/node_modules/@babel/core/lib/config/files/plugins.js +229 -0
- package/dist/node_modules/@babel/core/lib/config/files/types.js +3 -0
- package/dist/node_modules/@babel/core/lib/config/files/utils.js +36 -0
- package/dist/node_modules/@babel/core/lib/config/full.js +312 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/config-api.js +84 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/deep-array.js +23 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/environment.js +12 -0
- package/dist/node_modules/@babel/core/lib/config/index.js +93 -0
- package/dist/node_modules/@babel/core/lib/config/item.js +67 -0
- package/dist/node_modules/@babel/core/lib/config/partial.js +158 -0
- package/dist/node_modules/@babel/core/lib/config/pattern-to-regex.js +38 -0
- package/dist/node_modules/@babel/core/lib/config/plugin.js +33 -0
- package/dist/node_modules/@babel/core/lib/config/printer.js +113 -0
- package/dist/node_modules/@babel/core/lib/config/resolve-targets-browser.js +41 -0
- package/dist/node_modules/@babel/core/lib/config/resolve-targets.js +61 -0
- package/dist/node_modules/@babel/core/lib/config/util.js +31 -0
- package/dist/node_modules/@babel/core/lib/config/validation/option-assertions.js +277 -0
- package/dist/node_modules/@babel/core/lib/config/validation/options.js +189 -0
- package/dist/node_modules/@babel/core/lib/config/validation/plugins.js +67 -0
- package/dist/node_modules/@babel/core/lib/config/validation/removed.js +68 -0
- package/dist/node_modules/@babel/core/lib/errors/config-error.js +18 -0
- package/dist/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js +98 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/async.js +90 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/fs.js +31 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/functional.js +58 -0
- package/dist/node_modules/@babel/core/lib/index.js +227 -0
- package/dist/node_modules/@babel/core/lib/parse.js +47 -0
- package/dist/node_modules/@babel/core/lib/parser/index.js +79 -0
- package/dist/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js +339 -0
- package/dist/node_modules/@babel/core/lib/tools/build-external-helpers.js +144 -0
- package/dist/node_modules/@babel/core/lib/transform-ast.js +50 -0
- package/dist/node_modules/@babel/core/lib/transform-file-browser.js +23 -0
- package/dist/node_modules/@babel/core/lib/transform-file.js +40 -0
- package/dist/node_modules/@babel/core/lib/transform.js +49 -0
- package/dist/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js +84 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs +4 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/file.js +214 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/generate.js +84 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/merge-map.js +37 -0
- package/dist/node_modules/@babel/core/lib/transformation/index.js +92 -0
- package/dist/node_modules/@babel/core/lib/transformation/normalize-file.js +129 -0
- package/dist/node_modules/@babel/core/lib/transformation/normalize-opts.js +59 -0
- package/dist/node_modules/@babel/core/lib/transformation/plugin-pass.js +50 -0
- package/dist/node_modules/@babel/core/lib/transformation/util/clone-deep.js +36 -0
- package/dist/node_modules/@babel/core/lib/vendor/import-meta-resolve.js +1043 -0
- package/dist/node_modules/@babel/core/node_modules/.bin/json5 +17 -0
- package/dist/node_modules/@babel/core/node_modules/.bin/parser +17 -0
- package/dist/node_modules/@babel/core/node_modules/.bin/semver +17 -0
- package/dist/node_modules/@babel/core/package.json +1 -0
- package/dist/node_modules/@babel/core/src/config/files/index-browser.ts +113 -0
- package/dist/node_modules/@babel/core/src/config/files/index.ts +29 -0
- package/dist/node_modules/@babel/core/src/config/resolve-targets-browser.ts +40 -0
- package/dist/node_modules/@babel/core/src/config/resolve-targets.ts +56 -0
- package/dist/node_modules/@babel/core/src/transform-file-browser.ts +31 -0
- package/dist/node_modules/@babel/core/src/transform-file.ts +55 -0
- package/dist/node_modules/cron-parser/LICENSE +21 -0
- package/dist/node_modules/cron-parser/lib/date.js +252 -0
- package/dist/node_modules/cron-parser/lib/expression.js +1002 -0
- package/dist/node_modules/cron-parser/lib/field_compactor.js +70 -0
- package/dist/node_modules/cron-parser/lib/field_stringify.js +58 -0
- package/dist/node_modules/cron-parser/lib/parser.js +1 -0
- package/dist/node_modules/cron-parser/package.json +1 -0
- package/dist/node_modules/cron-parser/types/common.d.ts +131 -0
- package/dist/node_modules/cron-parser/types/index.d.ts +45 -0
- package/dist/node_modules/cron-parser/types/ts3/index.d.ts +28 -0
- package/dist/node_modules/form-data/License +19 -0
- package/dist/node_modules/form-data/index.d.ts +62 -0
- package/dist/node_modules/form-data/lib/browser.js +2 -0
- package/dist/node_modules/form-data/lib/form_data.js +14 -0
- package/dist/node_modules/form-data/lib/populate.js +10 -0
- package/dist/node_modules/form-data/package.json +1 -0
- package/dist/node_modules/jsonata/LICENSE +19 -0
- package/dist/node_modules/jsonata/jsonata-es5.js +9875 -0
- package/dist/node_modules/jsonata/jsonata-es5.min.js +1 -0
- package/dist/node_modules/jsonata/jsonata.d.ts +72 -0
- package/dist/node_modules/jsonata/jsonata.js +1 -0
- package/dist/node_modules/jsonata/jsonata.min.js +1 -0
- package/dist/node_modules/jsonata/package.json +1 -0
- package/dist/node_modules/lru-cache/index-cjs.d.ts +7 -0
- package/dist/node_modules/lru-cache/index-cjs.js +1 -0
- package/dist/node_modules/lru-cache/index.d.ts +807 -0
- package/dist/node_modules/lru-cache/index.js +1334 -0
- package/dist/node_modules/lru-cache/index.min.js +2 -0
- package/dist/node_modules/lru-cache/package.json +1 -0
- package/dist/node_modules/mime-types/LICENSE +23 -0
- package/dist/node_modules/mime-types/index.js +14 -0
- package/dist/node_modules/mime-types/package.json +1 -0
- package/dist/node_modules/qrcode/bin/qrcode +159 -0
- package/dist/node_modules/qrcode/helper/to-sjis-browser.js +2 -0
- package/dist/node_modules/qrcode/helper/to-sjis.js +105 -0
- package/dist/node_modules/qrcode/lib/browser.js +76 -0
- package/dist/node_modules/qrcode/lib/can-promise.js +7 -0
- package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +83 -0
- package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +59 -0
- package/dist/node_modules/qrcode/lib/core/bit-buffer.js +37 -0
- package/dist/node_modules/qrcode/lib/core/bit-matrix.js +65 -0
- package/dist/node_modules/qrcode/lib/core/byte-data.js +30 -0
- package/dist/node_modules/qrcode/lib/core/error-correction-code.js +135 -0
- package/dist/node_modules/qrcode/lib/core/error-correction-level.js +50 -0
- package/dist/node_modules/qrcode/lib/core/finder-pattern.js +22 -0
- package/dist/node_modules/qrcode/lib/core/format-info.js +29 -0
- package/dist/node_modules/qrcode/lib/core/galois-field.js +69 -0
- package/dist/node_modules/qrcode/lib/core/kanji-data.js +54 -0
- package/dist/node_modules/qrcode/lib/core/mask-pattern.js +234 -0
- package/dist/node_modules/qrcode/lib/core/mode.js +167 -0
- package/dist/node_modules/qrcode/lib/core/numeric-data.js +43 -0
- package/dist/node_modules/qrcode/lib/core/polynomial.js +62 -0
- package/dist/node_modules/qrcode/lib/core/qrcode.js +495 -0
- package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +56 -0
- package/dist/node_modules/qrcode/lib/core/regex.js +31 -0
- package/dist/node_modules/qrcode/lib/core/segments.js +330 -0
- package/dist/node_modules/qrcode/lib/core/utils.js +63 -0
- package/dist/node_modules/qrcode/lib/core/version-check.js +9 -0
- package/dist/node_modules/qrcode/lib/core/version.js +163 -0
- package/dist/node_modules/qrcode/lib/index.js +1 -0
- package/dist/node_modules/qrcode/lib/renderer/canvas.js +63 -0
- package/dist/node_modules/qrcode/lib/renderer/png.js +78 -0
- package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +81 -0
- package/dist/node_modules/qrcode/lib/renderer/svg.js +19 -0
- package/dist/node_modules/qrcode/lib/renderer/terminal/terminal-small.js +85 -0
- package/dist/node_modules/qrcode/lib/renderer/terminal/terminal.js +49 -0
- package/dist/node_modules/qrcode/lib/renderer/terminal.js +9 -0
- package/dist/node_modules/qrcode/lib/renderer/utf8.js +71 -0
- package/dist/node_modules/qrcode/lib/renderer/utils.js +99 -0
- package/dist/node_modules/qrcode/lib/server.js +138 -0
- package/dist/node_modules/qrcode/license +10 -0
- package/dist/node_modules/qrcode/package.json +1 -0
- package/dist/server/Plugin.d.ts +50 -0
- package/dist/server/Plugin.js +498 -0
- package/dist/server/Processor.d.ts +59 -0
- package/dist/server/Processor.js +306 -0
- package/dist/server/actions/executions.d.ts +3 -0
- package/dist/server/actions/executions.js +87 -0
- package/dist/server/actions/index.d.ts +3 -0
- package/dist/server/actions/index.js +59 -0
- package/dist/server/actions/nodes.d.ts +6 -0
- package/dist/server/actions/nodes.js +322 -0
- package/dist/server/actions/workflows.d.ts +10 -0
- package/dist/server/actions/workflows.js +347 -0
- package/dist/server/collections/1-users_jobs.d.ts +2 -0
- package/dist/server/collections/1-users_jobs.js +73 -0
- package/dist/server/collections/2-jobs.d.ts +2 -0
- package/dist/server/collections/2-jobs.js +40 -0
- package/dist/server/collections/3-users.d.ts +2 -0
- package/dist/server/collections/3-users.js +38 -0
- package/dist/server/collections/executions.d.ts +3 -0
- package/dist/server/collections/executions.js +64 -0
- package/dist/server/collections/flow_nodes.d.ts +3 -0
- package/dist/server/collections/flow_nodes.js +78 -0
- package/dist/server/collections/jobs.d.ts +3 -0
- package/dist/server/collections/jobs.js +61 -0
- package/dist/server/collections/workflows.d.ts +2 -0
- package/dist/server/collections/workflows.js +130 -0
- package/dist/server/constants.d.ts +22 -0
- package/dist/server/constants.js +52 -0
- package/dist/server/features/_deprecated-js-parse/JSParse.instruction.d.ts +10 -0
- package/dist/server/features/_deprecated-js-parse/JSParse.instruction.js +100 -0
- package/dist/server/features/_deprecated-js-parse/index.d.ts +1 -0
- package/dist/server/features/_deprecated-js-parse/index.js +33 -0
- package/dist/server/features/_deprecated-js-parse/plugin.d.ts +5 -0
- package/dist/server/features/_deprecated-js-parse/plugin.js +48 -0
- package/dist/server/features/_deprecated-json-parse/JSONParse.instruction.d.ts +11 -0
- package/dist/server/features/_deprecated-json-parse/JSONParse.instruction.js +81 -0
- package/dist/server/features/_deprecated-json-parse/index.d.ts +1 -0
- package/dist/server/features/_deprecated-json-parse/index.js +33 -0
- package/dist/server/features/_deprecated-json-parse/plugin.d.ts +5 -0
- package/dist/server/features/_deprecated-json-parse/plugin.js +48 -0
- package/dist/server/features/aggregate/AggregateInstruction.d.ts +7 -0
- package/dist/server/features/aggregate/AggregateInstruction.js +56 -0
- package/dist/server/features/aggregate/Plugin.d.ts +4 -0
- package/dist/server/features/aggregate/Plugin.js +45 -0
- package/dist/server/features/common/constants.d.ts +4 -0
- package/dist/server/features/common/constants.js +36 -0
- package/dist/server/features/delay/DelayInstruction.d.ts +12 -0
- package/dist/server/features/delay/DelayInstruction.js +106 -0
- package/dist/server/features/delay/Plugin.d.ts +4 -0
- package/dist/server/features/delay/Plugin.js +45 -0
- package/dist/server/features/dynamic-calculation/DynamicCalculation.d.ts +10 -0
- package/dist/server/features/dynamic-calculation/DynamicCalculation.js +62 -0
- package/dist/server/features/dynamic-calculation/Plugin.d.ts +4 -0
- package/dist/server/features/dynamic-calculation/Plugin.js +49 -0
- package/dist/server/features/dynamic-calculation/expression-field.d.ts +7 -0
- package/dist/server/features/dynamic-calculation/expression-field.js +32 -0
- package/dist/server/features/interception/RequestInterceptionTrigger.d.ts +11 -0
- package/dist/server/features/interception/RequestInterceptionTrigger.js +146 -0
- package/dist/server/features/interception/index.d.ts +4 -0
- package/dist/server/features/interception/index.js +35 -0
- package/dist/server/features/loop/LoopInstruction.d.ts +13 -0
- package/dist/server/features/loop/LoopInstruction.js +100 -0
- package/dist/server/features/loop/Plugin.d.ts +4 -0
- package/dist/server/features/loop/Plugin.js +45 -0
- package/dist/server/features/manual/ManualInstruction.d.ts +28 -0
- package/dist/server/features/manual/ManualInstruction.js +152 -0
- package/dist/server/features/manual/Plugin.d.ts +4 -0
- package/dist/server/features/manual/Plugin.js +70 -0
- package/dist/server/features/manual/actions.d.ts +2 -0
- package/dist/server/features/manual/actions.js +104 -0
- package/dist/server/features/manual/forms/create.d.ts +6 -0
- package/dist/server/features/manual/forms/create.js +41 -0
- package/dist/server/features/manual/forms/index.d.ts +6 -0
- package/dist/server/features/manual/forms/index.js +38 -0
- package/dist/server/features/manual/forms/update.d.ts +7 -0
- package/dist/server/features/manual/forms/update.js +41 -0
- package/dist/server/features/notice/NoticeInstruction.d.ts +9 -0
- package/dist/server/features/notice/NoticeInstruction.js +172 -0
- package/dist/server/features/notice/actions.d.ts +3 -0
- package/dist/server/features/notice/actions.js +124 -0
- package/dist/server/features/notice/collections/workflowNotice.d.ts +3 -0
- package/dist/server/features/notice/collections/workflowNotice.js +90 -0
- package/dist/server/features/notice/constants.d.ts +16 -0
- package/dist/server/features/notice/constants.js +44 -0
- package/dist/server/features/notice/index.d.ts +1 -0
- package/dist/server/features/notice/index.js +33 -0
- package/dist/server/features/notice/plugin.d.ts +12 -0
- package/dist/server/features/notice/plugin.js +83 -0
- package/dist/server/features/notice/tools.d.ts +17 -0
- package/dist/server/features/notice/tools.js +163 -0
- package/dist/server/features/omni-trigger/CustomActionTrigger.d.ts +11 -0
- package/dist/server/features/omni-trigger/CustomActionTrigger.js +270 -0
- package/dist/server/features/omni-trigger/Plugin.d.ts +4 -0
- package/dist/server/features/omni-trigger/Plugin.js +45 -0
- package/dist/server/features/omni-trigger/index.d.ts +1 -0
- package/dist/server/features/omni-trigger/index.js +21 -0
- package/dist/server/features/parallel/ParallelInstruction.d.ts +11 -0
- package/dist/server/features/parallel/ParallelInstruction.js +137 -0
- package/dist/server/features/parallel/Plugin.d.ts +4 -0
- package/dist/server/features/parallel/Plugin.js +45 -0
- package/dist/server/features/request/Plugin.d.ts +4 -0
- package/dist/server/features/request/Plugin.js +45 -0
- package/dist/server/features/request/RequestInstruction.d.ts +14 -0
- package/dist/server/features/request/RequestInstruction.js +183 -0
- package/dist/server/features/response/Plugin.d.ts +4 -0
- package/dist/server/features/response/Plugin.js +45 -0
- package/dist/server/features/response/ResponseMessageInstruction.d.ts +7 -0
- package/dist/server/features/response/ResponseMessageInstruction.js +57 -0
- package/dist/server/features/response/index.d.ts +1 -0
- package/dist/server/features/response/index.js +21 -0
- package/dist/server/features/script/index.d.ts +1 -0
- package/dist/server/features/script/index.js +33 -0
- package/dist/server/features/script/plugin.d.ts +5 -0
- package/dist/server/features/script/plugin.js +48 -0
- package/dist/server/features/script/script.instruction.d.ts +10 -0
- package/dist/server/features/script/script.instruction.js +212 -0
- package/dist/server/features/sql/Plugin.d.ts +4 -0
- package/dist/server/features/sql/Plugin.js +45 -0
- package/dist/server/features/sql/SQLInstruction.d.ts +10 -0
- package/dist/server/features/sql/SQLInstruction.js +48 -0
- package/dist/server/features/trigger-instruction/TriggerInstruction.d.ts +15 -0
- package/dist/server/features/trigger-instruction/TriggerInstruction.js +71 -0
- package/dist/server/features/trigger-instruction/flownode-check.d.ts +2 -0
- package/dist/server/features/trigger-instruction/flownode-check.js +114 -0
- package/dist/server/features/trigger-instruction/index.d.ts +0 -0
- package/dist/server/features/trigger-instruction/index.js +0 -0
- package/dist/server/features/trigger-instruction/plugin.d.ts +4 -0
- package/dist/server/features/trigger-instruction/plugin.js +37 -0
- package/dist/server/features/variables/Plugin.d.ts +4 -0
- package/dist/server/features/variables/Plugin.js +45 -0
- package/dist/server/features/variables/VariableInstruction.d.ts +7 -0
- package/dist/server/features/variables/VariableInstruction.js +61 -0
- package/dist/server/features/variables/index.d.ts +1 -0
- package/dist/server/features/variables/index.js +27 -0
- package/dist/server/features/webhook/Plugin.d.ts +4 -0
- package/dist/server/features/webhook/Plugin.js +109 -0
- package/dist/server/features/webhook/index.d.ts +1 -0
- package/dist/server/features/webhook/index.js +27 -0
- package/dist/server/features/webhook/webhooks.d.ts +9 -0
- package/dist/server/features/webhook/webhooks.js +286 -0
- package/dist/server/functions/index.d.ts +9 -0
- package/dist/server/functions/index.js +31 -0
- package/dist/server/index.d.ts +8 -0
- package/dist/server/index.js +54 -0
- package/dist/server/instructions/CalculationInstruction.d.ts +17 -0
- package/dist/server/instructions/CalculationInstruction.js +59 -0
- package/dist/server/instructions/ConditionInstruction.d.ts +29 -0
- package/dist/server/instructions/ConditionInstruction.js +160 -0
- package/dist/server/instructions/CreateInstruction.d.ts +10 -0
- package/dist/server/instructions/CreateInstruction.js +175 -0
- package/dist/server/instructions/DestroyInstruction.d.ts +10 -0
- package/dist/server/instructions/DestroyInstruction.js +50 -0
- package/dist/server/instructions/EndInstruction.d.ts +6 -0
- package/dist/server/instructions/EndInstruction.js +47 -0
- package/dist/server/instructions/QueryInstruction.d.ts +13 -0
- package/dist/server/instructions/QueryInstruction.js +78 -0
- package/dist/server/instructions/UpdateInstruction.d.ts +10 -0
- package/dist/server/instructions/UpdateInstruction.js +159 -0
- package/dist/server/instructions/index.d.ts +23 -0
- package/dist/server/instructions/index.js +33 -0
- package/dist/server/migrations/20241118104303-add-initAt.d.ts +6 -0
- package/dist/server/migrations/20241118104303-add-initAt.js +47 -0
- package/dist/server/migrations/20241206122842-add-createdBy.d.ts +6 -0
- package/dist/server/migrations/20241206122842-add-createdBy.js +46 -0
- package/dist/server/migrations/20241220001154-bigInt.d.ts +6 -0
- package/dist/server/migrations/20241220001154-bigInt.js +39 -0
- package/dist/server/triggers/CollectionTrigger.d.ts +14 -0
- package/dist/server/triggers/CollectionTrigger.js +188 -0
- package/dist/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.d.ts +31 -0
- package/dist/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.js +342 -0
- package/dist/server/triggers/ScheduleTrigger/StaticScheduleTrigger.d.ts +15 -0
- package/dist/server/triggers/ScheduleTrigger/StaticScheduleTrigger.js +143 -0
- package/dist/server/triggers/ScheduleTrigger/index.d.ts +13 -0
- package/dist/server/triggers/ScheduleTrigger/index.js +74 -0
- package/dist/server/triggers/ScheduleTrigger/utils.d.ts +5 -0
- package/dist/server/triggers/ScheduleTrigger/utils.js +35 -0
- package/dist/server/triggers/index.d.ts +13 -0
- package/dist/server/triggers/index.js +37 -0
- package/dist/server/types/Execution.d.ts +17 -0
- package/dist/server/types/Execution.js +25 -0
- package/dist/server/types/FlowNode.d.ts +16 -0
- package/dist/server/types/FlowNode.js +25 -0
- package/dist/server/types/Job.d.ts +14 -0
- package/dist/server/types/Job.js +25 -0
- package/dist/server/types/Workflow.d.ts +27 -0
- package/dist/server/types/Workflow.js +25 -0
- package/dist/server/types/index.d.ts +4 -0
- package/dist/server/types/index.js +15 -0
- package/dist/server/utils.d.ts +1 -0
- package/dist/server/utils.js +42 -0
- package/dist/swagger/index.d.ts +754 -0
- package/dist/swagger/index.js +798 -0
- package/package.json +63 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.access = access;
|
|
7
|
+
exports.assertArray = assertArray;
|
|
8
|
+
exports.assertAssumptions = assertAssumptions;
|
|
9
|
+
exports.assertBabelrcSearch = assertBabelrcSearch;
|
|
10
|
+
exports.assertBoolean = assertBoolean;
|
|
11
|
+
exports.assertCallerMetadata = assertCallerMetadata;
|
|
12
|
+
exports.assertCompact = assertCompact;
|
|
13
|
+
exports.assertConfigApplicableTest = assertConfigApplicableTest;
|
|
14
|
+
exports.assertConfigFileSearch = assertConfigFileSearch;
|
|
15
|
+
exports.assertFunction = assertFunction;
|
|
16
|
+
exports.assertIgnoreList = assertIgnoreList;
|
|
17
|
+
exports.assertInputSourceMap = assertInputSourceMap;
|
|
18
|
+
exports.assertObject = assertObject;
|
|
19
|
+
exports.assertPluginList = assertPluginList;
|
|
20
|
+
exports.assertRootMode = assertRootMode;
|
|
21
|
+
exports.assertSourceMaps = assertSourceMaps;
|
|
22
|
+
exports.assertSourceType = assertSourceType;
|
|
23
|
+
exports.assertString = assertString;
|
|
24
|
+
exports.assertTargets = assertTargets;
|
|
25
|
+
exports.msg = msg;
|
|
26
|
+
function _helperCompilationTargets() {
|
|
27
|
+
const data = require("@babel/helper-compilation-targets");
|
|
28
|
+
_helperCompilationTargets = function () {
|
|
29
|
+
return data;
|
|
30
|
+
};
|
|
31
|
+
return data;
|
|
32
|
+
}
|
|
33
|
+
var _options = require("./options.js");
|
|
34
|
+
function msg(loc) {
|
|
35
|
+
switch (loc.type) {
|
|
36
|
+
case "root":
|
|
37
|
+
return ``;
|
|
38
|
+
case "env":
|
|
39
|
+
return `${msg(loc.parent)}.env["${loc.name}"]`;
|
|
40
|
+
case "overrides":
|
|
41
|
+
return `${msg(loc.parent)}.overrides[${loc.index}]`;
|
|
42
|
+
case "option":
|
|
43
|
+
return `${msg(loc.parent)}.${loc.name}`;
|
|
44
|
+
case "access":
|
|
45
|
+
return `${msg(loc.parent)}[${JSON.stringify(loc.name)}]`;
|
|
46
|
+
default:
|
|
47
|
+
throw new Error(`Assertion failure: Unknown type ${loc.type}`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function access(loc, name) {
|
|
51
|
+
return {
|
|
52
|
+
type: "access",
|
|
53
|
+
name,
|
|
54
|
+
parent: loc
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function assertRootMode(loc, value) {
|
|
58
|
+
if (value !== undefined && value !== "root" && value !== "upward" && value !== "upward-optional") {
|
|
59
|
+
throw new Error(`${msg(loc)} must be a "root", "upward", "upward-optional" or undefined`);
|
|
60
|
+
}
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
function assertSourceMaps(loc, value) {
|
|
64
|
+
if (value !== undefined && typeof value !== "boolean" && value !== "inline" && value !== "both") {
|
|
65
|
+
throw new Error(`${msg(loc)} must be a boolean, "inline", "both", or undefined`);
|
|
66
|
+
}
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
function assertCompact(loc, value) {
|
|
70
|
+
if (value !== undefined && typeof value !== "boolean" && value !== "auto") {
|
|
71
|
+
throw new Error(`${msg(loc)} must be a boolean, "auto", or undefined`);
|
|
72
|
+
}
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
function assertSourceType(loc, value) {
|
|
76
|
+
if (value !== undefined && value !== "module" && value !== "script" && value !== "unambiguous") {
|
|
77
|
+
throw new Error(`${msg(loc)} must be "module", "script", "unambiguous", or undefined`);
|
|
78
|
+
}
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
function assertCallerMetadata(loc, value) {
|
|
82
|
+
const obj = assertObject(loc, value);
|
|
83
|
+
if (obj) {
|
|
84
|
+
if (typeof obj.name !== "string") {
|
|
85
|
+
throw new Error(`${msg(loc)} set but does not contain "name" property string`);
|
|
86
|
+
}
|
|
87
|
+
for (const prop of Object.keys(obj)) {
|
|
88
|
+
const propLoc = access(loc, prop);
|
|
89
|
+
const value = obj[prop];
|
|
90
|
+
if (value != null && typeof value !== "boolean" && typeof value !== "string" && typeof value !== "number") {
|
|
91
|
+
throw new Error(`${msg(propLoc)} must be null, undefined, a boolean, a string, or a number.`);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
function assertInputSourceMap(loc, value) {
|
|
98
|
+
if (value !== undefined && typeof value !== "boolean" && (typeof value !== "object" || !value)) {
|
|
99
|
+
throw new Error(`${msg(loc)} must be a boolean, object, or undefined`);
|
|
100
|
+
}
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
function assertString(loc, value) {
|
|
104
|
+
if (value !== undefined && typeof value !== "string") {
|
|
105
|
+
throw new Error(`${msg(loc)} must be a string, or undefined`);
|
|
106
|
+
}
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
109
|
+
function assertFunction(loc, value) {
|
|
110
|
+
if (value !== undefined && typeof value !== "function") {
|
|
111
|
+
throw new Error(`${msg(loc)} must be a function, or undefined`);
|
|
112
|
+
}
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
function assertBoolean(loc, value) {
|
|
116
|
+
if (value !== undefined && typeof value !== "boolean") {
|
|
117
|
+
throw new Error(`${msg(loc)} must be a boolean, or undefined`);
|
|
118
|
+
}
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
function assertObject(loc, value) {
|
|
122
|
+
if (value !== undefined && (typeof value !== "object" || Array.isArray(value) || !value)) {
|
|
123
|
+
throw new Error(`${msg(loc)} must be an object, or undefined`);
|
|
124
|
+
}
|
|
125
|
+
return value;
|
|
126
|
+
}
|
|
127
|
+
function assertArray(loc, value) {
|
|
128
|
+
if (value != null && !Array.isArray(value)) {
|
|
129
|
+
throw new Error(`${msg(loc)} must be an array, or undefined`);
|
|
130
|
+
}
|
|
131
|
+
return value;
|
|
132
|
+
}
|
|
133
|
+
function assertIgnoreList(loc, value) {
|
|
134
|
+
const arr = assertArray(loc, value);
|
|
135
|
+
arr == null || arr.forEach((item, i) => assertIgnoreItem(access(loc, i), item));
|
|
136
|
+
return arr;
|
|
137
|
+
}
|
|
138
|
+
function assertIgnoreItem(loc, value) {
|
|
139
|
+
if (typeof value !== "string" && typeof value !== "function" && !(value instanceof RegExp)) {
|
|
140
|
+
throw new Error(`${msg(loc)} must be an array of string/Function/RegExp values, or undefined`);
|
|
141
|
+
}
|
|
142
|
+
return value;
|
|
143
|
+
}
|
|
144
|
+
function assertConfigApplicableTest(loc, value) {
|
|
145
|
+
if (value === undefined) {
|
|
146
|
+
return value;
|
|
147
|
+
}
|
|
148
|
+
if (Array.isArray(value)) {
|
|
149
|
+
value.forEach((item, i) => {
|
|
150
|
+
if (!checkValidTest(item)) {
|
|
151
|
+
throw new Error(`${msg(access(loc, i))} must be a string/Function/RegExp.`);
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
} else if (!checkValidTest(value)) {
|
|
155
|
+
throw new Error(`${msg(loc)} must be a string/Function/RegExp, or an array of those`);
|
|
156
|
+
}
|
|
157
|
+
return value;
|
|
158
|
+
}
|
|
159
|
+
function checkValidTest(value) {
|
|
160
|
+
return typeof value === "string" || typeof value === "function" || value instanceof RegExp;
|
|
161
|
+
}
|
|
162
|
+
function assertConfigFileSearch(loc, value) {
|
|
163
|
+
if (value !== undefined && typeof value !== "boolean" && typeof value !== "string") {
|
|
164
|
+
throw new Error(`${msg(loc)} must be a undefined, a boolean, a string, ` + `got ${JSON.stringify(value)}`);
|
|
165
|
+
}
|
|
166
|
+
return value;
|
|
167
|
+
}
|
|
168
|
+
function assertBabelrcSearch(loc, value) {
|
|
169
|
+
if (value === undefined || typeof value === "boolean") {
|
|
170
|
+
return value;
|
|
171
|
+
}
|
|
172
|
+
if (Array.isArray(value)) {
|
|
173
|
+
value.forEach((item, i) => {
|
|
174
|
+
if (!checkValidTest(item)) {
|
|
175
|
+
throw new Error(`${msg(access(loc, i))} must be a string/Function/RegExp.`);
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
} else if (!checkValidTest(value)) {
|
|
179
|
+
throw new Error(`${msg(loc)} must be a undefined, a boolean, a string/Function/RegExp ` + `or an array of those, got ${JSON.stringify(value)}`);
|
|
180
|
+
}
|
|
181
|
+
return value;
|
|
182
|
+
}
|
|
183
|
+
function assertPluginList(loc, value) {
|
|
184
|
+
const arr = assertArray(loc, value);
|
|
185
|
+
if (arr) {
|
|
186
|
+
arr.forEach((item, i) => assertPluginItem(access(loc, i), item));
|
|
187
|
+
}
|
|
188
|
+
return arr;
|
|
189
|
+
}
|
|
190
|
+
function assertPluginItem(loc, value) {
|
|
191
|
+
if (Array.isArray(value)) {
|
|
192
|
+
if (value.length === 0) {
|
|
193
|
+
throw new Error(`${msg(loc)} must include an object`);
|
|
194
|
+
}
|
|
195
|
+
if (value.length > 3) {
|
|
196
|
+
throw new Error(`${msg(loc)} may only be a two-tuple or three-tuple`);
|
|
197
|
+
}
|
|
198
|
+
assertPluginTarget(access(loc, 0), value[0]);
|
|
199
|
+
if (value.length > 1) {
|
|
200
|
+
const opts = value[1];
|
|
201
|
+
if (opts !== undefined && opts !== false && (typeof opts !== "object" || Array.isArray(opts) || opts === null)) {
|
|
202
|
+
throw new Error(`${msg(access(loc, 1))} must be an object, false, or undefined`);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
if (value.length === 3) {
|
|
206
|
+
const name = value[2];
|
|
207
|
+
if (name !== undefined && typeof name !== "string") {
|
|
208
|
+
throw new Error(`${msg(access(loc, 2))} must be a string, or undefined`);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
} else {
|
|
212
|
+
assertPluginTarget(loc, value);
|
|
213
|
+
}
|
|
214
|
+
return value;
|
|
215
|
+
}
|
|
216
|
+
function assertPluginTarget(loc, value) {
|
|
217
|
+
if ((typeof value !== "object" || !value) && typeof value !== "string" && typeof value !== "function") {
|
|
218
|
+
throw new Error(`${msg(loc)} must be a string, object, function`);
|
|
219
|
+
}
|
|
220
|
+
return value;
|
|
221
|
+
}
|
|
222
|
+
function assertTargets(loc, value) {
|
|
223
|
+
if ((0, _helperCompilationTargets().isBrowsersQueryValid)(value)) return value;
|
|
224
|
+
if (typeof value !== "object" || !value || Array.isArray(value)) {
|
|
225
|
+
throw new Error(`${msg(loc)} must be a string, an array of strings or an object`);
|
|
226
|
+
}
|
|
227
|
+
const browsersLoc = access(loc, "browsers");
|
|
228
|
+
const esmodulesLoc = access(loc, "esmodules");
|
|
229
|
+
assertBrowsersList(browsersLoc, value.browsers);
|
|
230
|
+
assertBoolean(esmodulesLoc, value.esmodules);
|
|
231
|
+
for (const key of Object.keys(value)) {
|
|
232
|
+
const val = value[key];
|
|
233
|
+
const subLoc = access(loc, key);
|
|
234
|
+
if (key === "esmodules") assertBoolean(subLoc, val);else if (key === "browsers") assertBrowsersList(subLoc, val);else if (!hasOwnProperty.call(_helperCompilationTargets().TargetNames, key)) {
|
|
235
|
+
const validTargets = Object.keys(_helperCompilationTargets().TargetNames).join(", ");
|
|
236
|
+
throw new Error(`${msg(subLoc)} is not a valid target. Supported targets are ${validTargets}`);
|
|
237
|
+
} else assertBrowserVersion(subLoc, val);
|
|
238
|
+
}
|
|
239
|
+
return value;
|
|
240
|
+
}
|
|
241
|
+
function assertBrowsersList(loc, value) {
|
|
242
|
+
if (value !== undefined && !(0, _helperCompilationTargets().isBrowsersQueryValid)(value)) {
|
|
243
|
+
throw new Error(`${msg(loc)} must be undefined, a string or an array of strings`);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
function assertBrowserVersion(loc, value) {
|
|
247
|
+
if (typeof value === "number" && Math.round(value) === value) return;
|
|
248
|
+
if (typeof value === "string") return;
|
|
249
|
+
throw new Error(`${msg(loc)} must be a string or an integer number`);
|
|
250
|
+
}
|
|
251
|
+
function assertAssumptions(loc, value) {
|
|
252
|
+
if (value === undefined) return;
|
|
253
|
+
if (typeof value !== "object" || value === null) {
|
|
254
|
+
throw new Error(`${msg(loc)} must be an object or undefined.`);
|
|
255
|
+
}
|
|
256
|
+
let root = loc;
|
|
257
|
+
do {
|
|
258
|
+
root = root.parent;
|
|
259
|
+
} while (root.type !== "root");
|
|
260
|
+
const inPreset = root.source === "preset";
|
|
261
|
+
for (const name of Object.keys(value)) {
|
|
262
|
+
const subLoc = access(loc, name);
|
|
263
|
+
if (!_options.assumptionsNames.has(name)) {
|
|
264
|
+
throw new Error(`${msg(subLoc)} is not a supported assumption.`);
|
|
265
|
+
}
|
|
266
|
+
if (typeof value[name] !== "boolean") {
|
|
267
|
+
throw new Error(`${msg(subLoc)} must be a boolean.`);
|
|
268
|
+
}
|
|
269
|
+
if (inPreset && value[name] === false) {
|
|
270
|
+
throw new Error(`${msg(subLoc)} cannot be set to 'false' inside presets.`);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
return value;
|
|
274
|
+
}
|
|
275
|
+
0 && 0;
|
|
276
|
+
|
|
277
|
+
//# sourceMappingURL=option-assertions.js.map
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.assumptionsNames = void 0;
|
|
7
|
+
exports.checkNoUnwrappedItemOptionPairs = checkNoUnwrappedItemOptionPairs;
|
|
8
|
+
exports.validate = validate;
|
|
9
|
+
var _removed = require("./removed.js");
|
|
10
|
+
var _optionAssertions = require("./option-assertions.js");
|
|
11
|
+
var _configError = require("../../errors/config-error.js");
|
|
12
|
+
const ROOT_VALIDATORS = {
|
|
13
|
+
cwd: _optionAssertions.assertString,
|
|
14
|
+
root: _optionAssertions.assertString,
|
|
15
|
+
rootMode: _optionAssertions.assertRootMode,
|
|
16
|
+
configFile: _optionAssertions.assertConfigFileSearch,
|
|
17
|
+
caller: _optionAssertions.assertCallerMetadata,
|
|
18
|
+
filename: _optionAssertions.assertString,
|
|
19
|
+
filenameRelative: _optionAssertions.assertString,
|
|
20
|
+
code: _optionAssertions.assertBoolean,
|
|
21
|
+
ast: _optionAssertions.assertBoolean,
|
|
22
|
+
cloneInputAst: _optionAssertions.assertBoolean,
|
|
23
|
+
envName: _optionAssertions.assertString
|
|
24
|
+
};
|
|
25
|
+
const BABELRC_VALIDATORS = {
|
|
26
|
+
babelrc: _optionAssertions.assertBoolean,
|
|
27
|
+
babelrcRoots: _optionAssertions.assertBabelrcSearch
|
|
28
|
+
};
|
|
29
|
+
const NONPRESET_VALIDATORS = {
|
|
30
|
+
extends: _optionAssertions.assertString,
|
|
31
|
+
ignore: _optionAssertions.assertIgnoreList,
|
|
32
|
+
only: _optionAssertions.assertIgnoreList,
|
|
33
|
+
targets: _optionAssertions.assertTargets,
|
|
34
|
+
browserslistConfigFile: _optionAssertions.assertConfigFileSearch,
|
|
35
|
+
browserslistEnv: _optionAssertions.assertString
|
|
36
|
+
};
|
|
37
|
+
const COMMON_VALIDATORS = {
|
|
38
|
+
inputSourceMap: _optionAssertions.assertInputSourceMap,
|
|
39
|
+
presets: _optionAssertions.assertPluginList,
|
|
40
|
+
plugins: _optionAssertions.assertPluginList,
|
|
41
|
+
passPerPreset: _optionAssertions.assertBoolean,
|
|
42
|
+
assumptions: _optionAssertions.assertAssumptions,
|
|
43
|
+
env: assertEnvSet,
|
|
44
|
+
overrides: assertOverridesList,
|
|
45
|
+
test: _optionAssertions.assertConfigApplicableTest,
|
|
46
|
+
include: _optionAssertions.assertConfigApplicableTest,
|
|
47
|
+
exclude: _optionAssertions.assertConfigApplicableTest,
|
|
48
|
+
retainLines: _optionAssertions.assertBoolean,
|
|
49
|
+
comments: _optionAssertions.assertBoolean,
|
|
50
|
+
shouldPrintComment: _optionAssertions.assertFunction,
|
|
51
|
+
compact: _optionAssertions.assertCompact,
|
|
52
|
+
minified: _optionAssertions.assertBoolean,
|
|
53
|
+
auxiliaryCommentBefore: _optionAssertions.assertString,
|
|
54
|
+
auxiliaryCommentAfter: _optionAssertions.assertString,
|
|
55
|
+
sourceType: _optionAssertions.assertSourceType,
|
|
56
|
+
wrapPluginVisitorMethod: _optionAssertions.assertFunction,
|
|
57
|
+
highlightCode: _optionAssertions.assertBoolean,
|
|
58
|
+
sourceMaps: _optionAssertions.assertSourceMaps,
|
|
59
|
+
sourceMap: _optionAssertions.assertSourceMaps,
|
|
60
|
+
sourceFileName: _optionAssertions.assertString,
|
|
61
|
+
sourceRoot: _optionAssertions.assertString,
|
|
62
|
+
parserOpts: _optionAssertions.assertObject,
|
|
63
|
+
generatorOpts: _optionAssertions.assertObject
|
|
64
|
+
};
|
|
65
|
+
{
|
|
66
|
+
Object.assign(COMMON_VALIDATORS, {
|
|
67
|
+
getModuleId: _optionAssertions.assertFunction,
|
|
68
|
+
moduleRoot: _optionAssertions.assertString,
|
|
69
|
+
moduleIds: _optionAssertions.assertBoolean,
|
|
70
|
+
moduleId: _optionAssertions.assertString
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
const knownAssumptions = ["arrayLikeIsIterable", "constantReexports", "constantSuper", "enumerableModuleMeta", "ignoreFunctionLength", "ignoreToPrimitiveHint", "iterableIsArray", "mutableTemplateObject", "noClassCalls", "noDocumentAll", "noIncompleteNsImportDetection", "noNewArrows", "noUninitializedPrivateFieldAccess", "objectRestNoSymbols", "privateFieldsAsSymbols", "privateFieldsAsProperties", "pureGetters", "setClassMethods", "setComputedProperties", "setPublicClassFields", "setSpreadProperties", "skipForOfIteratorClosing", "superIsCallableConstructor"];
|
|
74
|
+
const assumptionsNames = exports.assumptionsNames = new Set(knownAssumptions);
|
|
75
|
+
function getSource(loc) {
|
|
76
|
+
return loc.type === "root" ? loc.source : getSource(loc.parent);
|
|
77
|
+
}
|
|
78
|
+
function validate(type, opts, filename) {
|
|
79
|
+
try {
|
|
80
|
+
return validateNested({
|
|
81
|
+
type: "root",
|
|
82
|
+
source: type
|
|
83
|
+
}, opts);
|
|
84
|
+
} catch (error) {
|
|
85
|
+
const configError = new _configError.default(error.message, filename);
|
|
86
|
+
if (error.code) configError.code = error.code;
|
|
87
|
+
throw configError;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function validateNested(loc, opts) {
|
|
91
|
+
const type = getSource(loc);
|
|
92
|
+
assertNoDuplicateSourcemap(opts);
|
|
93
|
+
Object.keys(opts).forEach(key => {
|
|
94
|
+
const optLoc = {
|
|
95
|
+
type: "option",
|
|
96
|
+
name: key,
|
|
97
|
+
parent: loc
|
|
98
|
+
};
|
|
99
|
+
if (type === "preset" && NONPRESET_VALIDATORS[key]) {
|
|
100
|
+
throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is not allowed in preset options`);
|
|
101
|
+
}
|
|
102
|
+
if (type !== "arguments" && ROOT_VALIDATORS[key]) {
|
|
103
|
+
throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is only allowed in root programmatic options`);
|
|
104
|
+
}
|
|
105
|
+
if (type !== "arguments" && type !== "configfile" && BABELRC_VALIDATORS[key]) {
|
|
106
|
+
if (type === "babelrcfile" || type === "extendsfile") {
|
|
107
|
+
throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is not allowed in .babelrc or "extends"ed files, only in root programmatic options, ` + `or babel.config.js/config file options`);
|
|
108
|
+
}
|
|
109
|
+
throw new Error(`${(0, _optionAssertions.msg)(optLoc)} is only allowed in root programmatic options, or babel.config.js/config file options`);
|
|
110
|
+
}
|
|
111
|
+
const validator = COMMON_VALIDATORS[key] || NONPRESET_VALIDATORS[key] || BABELRC_VALIDATORS[key] || ROOT_VALIDATORS[key] || throwUnknownError;
|
|
112
|
+
validator(optLoc, opts[key]);
|
|
113
|
+
});
|
|
114
|
+
return opts;
|
|
115
|
+
}
|
|
116
|
+
function throwUnknownError(loc) {
|
|
117
|
+
const key = loc.name;
|
|
118
|
+
if (_removed.default[key]) {
|
|
119
|
+
const {
|
|
120
|
+
message,
|
|
121
|
+
version = 5
|
|
122
|
+
} = _removed.default[key];
|
|
123
|
+
throw new Error(`Using removed Babel ${version} option: ${(0, _optionAssertions.msg)(loc)} - ${message}`);
|
|
124
|
+
} else {
|
|
125
|
+
const unknownOptErr = new Error(`Unknown option: ${(0, _optionAssertions.msg)(loc)}. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.`);
|
|
126
|
+
unknownOptErr.code = "BABEL_UNKNOWN_OPTION";
|
|
127
|
+
throw unknownOptErr;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
function assertNoDuplicateSourcemap(opts) {
|
|
131
|
+
if (hasOwnProperty.call(opts, "sourceMap") && hasOwnProperty.call(opts, "sourceMaps")) {
|
|
132
|
+
throw new Error(".sourceMap is an alias for .sourceMaps, cannot use both");
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function assertEnvSet(loc, value) {
|
|
136
|
+
if (loc.parent.type === "env") {
|
|
137
|
+
throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside of another .env block`);
|
|
138
|
+
}
|
|
139
|
+
const parent = loc.parent;
|
|
140
|
+
const obj = (0, _optionAssertions.assertObject)(loc, value);
|
|
141
|
+
if (obj) {
|
|
142
|
+
for (const envName of Object.keys(obj)) {
|
|
143
|
+
const env = (0, _optionAssertions.assertObject)((0, _optionAssertions.access)(loc, envName), obj[envName]);
|
|
144
|
+
if (!env) continue;
|
|
145
|
+
const envLoc = {
|
|
146
|
+
type: "env",
|
|
147
|
+
name: envName,
|
|
148
|
+
parent
|
|
149
|
+
};
|
|
150
|
+
validateNested(envLoc, env);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return obj;
|
|
154
|
+
}
|
|
155
|
+
function assertOverridesList(loc, value) {
|
|
156
|
+
if (loc.parent.type === "env") {
|
|
157
|
+
throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside an .env block`);
|
|
158
|
+
}
|
|
159
|
+
if (loc.parent.type === "overrides") {
|
|
160
|
+
throw new Error(`${(0, _optionAssertions.msg)(loc)} is not allowed inside an .overrides block`);
|
|
161
|
+
}
|
|
162
|
+
const parent = loc.parent;
|
|
163
|
+
const arr = (0, _optionAssertions.assertArray)(loc, value);
|
|
164
|
+
if (arr) {
|
|
165
|
+
for (const [index, item] of arr.entries()) {
|
|
166
|
+
const objLoc = (0, _optionAssertions.access)(loc, index);
|
|
167
|
+
const env = (0, _optionAssertions.assertObject)(objLoc, item);
|
|
168
|
+
if (!env) throw new Error(`${(0, _optionAssertions.msg)(objLoc)} must be an object`);
|
|
169
|
+
const overridesLoc = {
|
|
170
|
+
type: "overrides",
|
|
171
|
+
index,
|
|
172
|
+
parent
|
|
173
|
+
};
|
|
174
|
+
validateNested(overridesLoc, env);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return arr;
|
|
178
|
+
}
|
|
179
|
+
function checkNoUnwrappedItemOptionPairs(items, index, type, e) {
|
|
180
|
+
if (index === 0) return;
|
|
181
|
+
const lastItem = items[index - 1];
|
|
182
|
+
const thisItem = items[index];
|
|
183
|
+
if (lastItem.file && lastItem.options === undefined && typeof thisItem.value === "object") {
|
|
184
|
+
e.message += `\n- Maybe you meant to use\n` + `"${type}s": [\n ["${lastItem.file.request}", ${JSON.stringify(thisItem.value, undefined, 2)}]\n]\n` + `To be a valid ${type}, its name and options should be wrapped in a pair of brackets`;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
0 && 0;
|
|
188
|
+
|
|
189
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.validatePluginObject = validatePluginObject;
|
|
7
|
+
var _optionAssertions = require("./option-assertions.js");
|
|
8
|
+
const VALIDATORS = {
|
|
9
|
+
name: _optionAssertions.assertString,
|
|
10
|
+
manipulateOptions: _optionAssertions.assertFunction,
|
|
11
|
+
pre: _optionAssertions.assertFunction,
|
|
12
|
+
post: _optionAssertions.assertFunction,
|
|
13
|
+
inherits: _optionAssertions.assertFunction,
|
|
14
|
+
visitor: assertVisitorMap,
|
|
15
|
+
parserOverride: _optionAssertions.assertFunction,
|
|
16
|
+
generatorOverride: _optionAssertions.assertFunction
|
|
17
|
+
};
|
|
18
|
+
function assertVisitorMap(loc, value) {
|
|
19
|
+
const obj = (0, _optionAssertions.assertObject)(loc, value);
|
|
20
|
+
if (obj) {
|
|
21
|
+
Object.keys(obj).forEach(prop => {
|
|
22
|
+
if (prop !== "_exploded" && prop !== "_verified") {
|
|
23
|
+
assertVisitorHandler(prop, obj[prop]);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
if (obj.enter || obj.exit) {
|
|
27
|
+
throw new Error(`${(0, _optionAssertions.msg)(loc)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return obj;
|
|
31
|
+
}
|
|
32
|
+
function assertVisitorHandler(key, value) {
|
|
33
|
+
if (value && typeof value === "object") {
|
|
34
|
+
Object.keys(value).forEach(handler => {
|
|
35
|
+
if (handler !== "enter" && handler !== "exit") {
|
|
36
|
+
throw new Error(`.visitor["${key}"] may only have .enter and/or .exit handlers.`);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
} else if (typeof value !== "function") {
|
|
40
|
+
throw new Error(`.visitor["${key}"] must be a function`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function validatePluginObject(obj) {
|
|
44
|
+
const rootPath = {
|
|
45
|
+
type: "root",
|
|
46
|
+
source: "plugin"
|
|
47
|
+
};
|
|
48
|
+
Object.keys(obj).forEach(key => {
|
|
49
|
+
const validator = VALIDATORS[key];
|
|
50
|
+
if (validator) {
|
|
51
|
+
const optLoc = {
|
|
52
|
+
type: "option",
|
|
53
|
+
name: key,
|
|
54
|
+
parent: rootPath
|
|
55
|
+
};
|
|
56
|
+
validator(optLoc, obj[key]);
|
|
57
|
+
} else {
|
|
58
|
+
const invalidPluginPropertyError = new Error(`.${key} is not a valid Plugin property`);
|
|
59
|
+
invalidPluginPropertyError.code = "BABEL_UNKNOWN_PLUGIN_PROPERTY";
|
|
60
|
+
throw invalidPluginPropertyError;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
return obj;
|
|
64
|
+
}
|
|
65
|
+
0 && 0;
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=plugins.js.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = exports.default = {
|
|
8
|
+
auxiliaryComment: {
|
|
9
|
+
message: "Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"
|
|
10
|
+
},
|
|
11
|
+
blacklist: {
|
|
12
|
+
message: "Put the specific transforms you want in the `plugins` option"
|
|
13
|
+
},
|
|
14
|
+
breakConfig: {
|
|
15
|
+
message: "This is not a necessary option in Babel 6"
|
|
16
|
+
},
|
|
17
|
+
experimental: {
|
|
18
|
+
message: "Put the specific transforms you want in the `plugins` option"
|
|
19
|
+
},
|
|
20
|
+
externalHelpers: {
|
|
21
|
+
message: "Use the `external-helpers` plugin instead. " + "Check out http://babeljs.io/docs/plugins/external-helpers/"
|
|
22
|
+
},
|
|
23
|
+
extra: {
|
|
24
|
+
message: ""
|
|
25
|
+
},
|
|
26
|
+
jsxPragma: {
|
|
27
|
+
message: "use the `pragma` option in the `react-jsx` plugin. " + "Check out http://babeljs.io/docs/plugins/transform-react-jsx/"
|
|
28
|
+
},
|
|
29
|
+
loose: {
|
|
30
|
+
message: "Specify the `loose` option for the relevant plugin you are using " + "or use a preset that sets the option."
|
|
31
|
+
},
|
|
32
|
+
metadataUsedHelpers: {
|
|
33
|
+
message: "Not required anymore as this is enabled by default"
|
|
34
|
+
},
|
|
35
|
+
modules: {
|
|
36
|
+
message: "Use the corresponding module transform plugin in the `plugins` option. " + "Check out http://babeljs.io/docs/plugins/#modules"
|
|
37
|
+
},
|
|
38
|
+
nonStandard: {
|
|
39
|
+
message: "Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. " + "Also check out the react preset http://babeljs.io/docs/plugins/preset-react/"
|
|
40
|
+
},
|
|
41
|
+
optional: {
|
|
42
|
+
message: "Put the specific transforms you want in the `plugins` option"
|
|
43
|
+
},
|
|
44
|
+
sourceMapName: {
|
|
45
|
+
message: "The `sourceMapName` option has been removed because it makes more sense for the " + "tooling that calls Babel to assign `map.file` themselves."
|
|
46
|
+
},
|
|
47
|
+
stage: {
|
|
48
|
+
message: "Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"
|
|
49
|
+
},
|
|
50
|
+
whitelist: {
|
|
51
|
+
message: "Put the specific transforms you want in the `plugins` option"
|
|
52
|
+
},
|
|
53
|
+
resolveModuleSource: {
|
|
54
|
+
version: 6,
|
|
55
|
+
message: "Use `babel-plugin-module-resolver@3`'s 'resolvePath' options"
|
|
56
|
+
},
|
|
57
|
+
metadata: {
|
|
58
|
+
version: 6,
|
|
59
|
+
message: "Generated plugin metadata is always included in the output result"
|
|
60
|
+
},
|
|
61
|
+
sourceMapTarget: {
|
|
62
|
+
version: 6,
|
|
63
|
+
message: "The `sourceMapTarget` option has been removed because it makes more sense for the tooling " + "that calls Babel to assign `map.file` themselves."
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
0 && 0;
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=removed.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _rewriteStackTrace = require("./rewrite-stack-trace.js");
|
|
8
|
+
class ConfigError extends Error {
|
|
9
|
+
constructor(message, filename) {
|
|
10
|
+
super(message);
|
|
11
|
+
(0, _rewriteStackTrace.expectedError)(this);
|
|
12
|
+
if (filename) (0, _rewriteStackTrace.injectVirtualStackFrame)(this, filename);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.default = ConfigError;
|
|
16
|
+
0 && 0;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=config-error.js.map
|