@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,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.transformFile = transformFile;
|
|
7
|
+
exports.transformFileAsync = transformFileAsync;
|
|
8
|
+
exports.transformFileSync = transformFileSync;
|
|
9
|
+
function _gensync() {
|
|
10
|
+
const data = require("gensync");
|
|
11
|
+
_gensync = function () {
|
|
12
|
+
return data;
|
|
13
|
+
};
|
|
14
|
+
return data;
|
|
15
|
+
}
|
|
16
|
+
var _index = require("./config/index.js");
|
|
17
|
+
var _index2 = require("./transformation/index.js");
|
|
18
|
+
var fs = require("./gensync-utils/fs.js");
|
|
19
|
+
({});
|
|
20
|
+
const transformFileRunner = _gensync()(function* (filename, opts) {
|
|
21
|
+
const options = Object.assign({}, opts, {
|
|
22
|
+
filename
|
|
23
|
+
});
|
|
24
|
+
const config = yield* (0, _index.default)(options);
|
|
25
|
+
if (config === null) return null;
|
|
26
|
+
const code = yield* fs.readFile(filename, "utf8");
|
|
27
|
+
return yield* (0, _index2.run)(config, code);
|
|
28
|
+
});
|
|
29
|
+
function transformFile(...args) {
|
|
30
|
+
transformFileRunner.errback(...args);
|
|
31
|
+
}
|
|
32
|
+
function transformFileSync(...args) {
|
|
33
|
+
return transformFileRunner.sync(...args);
|
|
34
|
+
}
|
|
35
|
+
function transformFileAsync(...args) {
|
|
36
|
+
return transformFileRunner.async(...args);
|
|
37
|
+
}
|
|
38
|
+
0 && 0;
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=transform-file.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.transform = void 0;
|
|
7
|
+
exports.transformAsync = transformAsync;
|
|
8
|
+
exports.transformSync = transformSync;
|
|
9
|
+
function _gensync() {
|
|
10
|
+
const data = require("gensync");
|
|
11
|
+
_gensync = function () {
|
|
12
|
+
return data;
|
|
13
|
+
};
|
|
14
|
+
return data;
|
|
15
|
+
}
|
|
16
|
+
var _index = require("./config/index.js");
|
|
17
|
+
var _index2 = require("./transformation/index.js");
|
|
18
|
+
var _rewriteStackTrace = require("./errors/rewrite-stack-trace.js");
|
|
19
|
+
const transformRunner = _gensync()(function* transform(code, opts) {
|
|
20
|
+
const config = yield* (0, _index.default)(opts);
|
|
21
|
+
if (config === null) return null;
|
|
22
|
+
return yield* (0, _index2.run)(config, code);
|
|
23
|
+
});
|
|
24
|
+
const transform = exports.transform = function transform(code, optsOrCallback, maybeCallback) {
|
|
25
|
+
let opts;
|
|
26
|
+
let callback;
|
|
27
|
+
if (typeof optsOrCallback === "function") {
|
|
28
|
+
callback = optsOrCallback;
|
|
29
|
+
opts = undefined;
|
|
30
|
+
} else {
|
|
31
|
+
opts = optsOrCallback;
|
|
32
|
+
callback = maybeCallback;
|
|
33
|
+
}
|
|
34
|
+
if (callback === undefined) {
|
|
35
|
+
{
|
|
36
|
+
return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(code, opts);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
(0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.errback)(code, opts, callback);
|
|
40
|
+
};
|
|
41
|
+
function transformSync(...args) {
|
|
42
|
+
return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.sync)(...args);
|
|
43
|
+
}
|
|
44
|
+
function transformAsync(...args) {
|
|
45
|
+
return (0, _rewriteStackTrace.beginHiddenCallStack)(transformRunner.async)(...args);
|
|
46
|
+
}
|
|
47
|
+
0 && 0;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=transform.js.map
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = loadBlockHoistPlugin;
|
|
7
|
+
function _traverse() {
|
|
8
|
+
const data = require("@babel/traverse");
|
|
9
|
+
_traverse = function () {
|
|
10
|
+
return data;
|
|
11
|
+
};
|
|
12
|
+
return data;
|
|
13
|
+
}
|
|
14
|
+
var _plugin = require("../config/plugin.js");
|
|
15
|
+
let LOADED_PLUGIN;
|
|
16
|
+
const blockHoistPlugin = {
|
|
17
|
+
name: "internal.blockHoist",
|
|
18
|
+
visitor: {
|
|
19
|
+
Block: {
|
|
20
|
+
exit({
|
|
21
|
+
node
|
|
22
|
+
}) {
|
|
23
|
+
node.body = performHoisting(node.body);
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
SwitchCase: {
|
|
27
|
+
exit({
|
|
28
|
+
node
|
|
29
|
+
}) {
|
|
30
|
+
node.consequent = performHoisting(node.consequent);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
function performHoisting(body) {
|
|
36
|
+
let max = Math.pow(2, 30) - 1;
|
|
37
|
+
let hasChange = false;
|
|
38
|
+
for (let i = 0; i < body.length; i++) {
|
|
39
|
+
const n = body[i];
|
|
40
|
+
const p = priority(n);
|
|
41
|
+
if (p > max) {
|
|
42
|
+
hasChange = true;
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
max = p;
|
|
46
|
+
}
|
|
47
|
+
if (!hasChange) return body;
|
|
48
|
+
return stableSort(body.slice());
|
|
49
|
+
}
|
|
50
|
+
function loadBlockHoistPlugin() {
|
|
51
|
+
if (!LOADED_PLUGIN) {
|
|
52
|
+
LOADED_PLUGIN = new _plugin.default(Object.assign({}, blockHoistPlugin, {
|
|
53
|
+
visitor: _traverse().default.explode(blockHoistPlugin.visitor)
|
|
54
|
+
}), {});
|
|
55
|
+
}
|
|
56
|
+
return LOADED_PLUGIN;
|
|
57
|
+
}
|
|
58
|
+
function priority(bodyNode) {
|
|
59
|
+
const priority = bodyNode == null ? void 0 : bodyNode._blockHoist;
|
|
60
|
+
if (priority == null) return 1;
|
|
61
|
+
if (priority === true) return 2;
|
|
62
|
+
return priority;
|
|
63
|
+
}
|
|
64
|
+
function stableSort(body) {
|
|
65
|
+
const buckets = Object.create(null);
|
|
66
|
+
for (let i = 0; i < body.length; i++) {
|
|
67
|
+
const n = body[i];
|
|
68
|
+
const p = priority(n);
|
|
69
|
+
const bucket = buckets[p] || (buckets[p] = []);
|
|
70
|
+
bucket.push(n);
|
|
71
|
+
}
|
|
72
|
+
const keys = Object.keys(buckets).map(k => +k).sort((a, b) => b - a);
|
|
73
|
+
let index = 0;
|
|
74
|
+
for (const key of keys) {
|
|
75
|
+
const bucket = buckets[key];
|
|
76
|
+
for (const n of bucket) {
|
|
77
|
+
body[index++] = n;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return body;
|
|
81
|
+
}
|
|
82
|
+
0 && 0;
|
|
83
|
+
|
|
84
|
+
//# sourceMappingURL=block-hoist-plugin.js.map
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
function helpers() {
|
|
8
|
+
const data = require("@babel/helpers");
|
|
9
|
+
helpers = function () {
|
|
10
|
+
return data;
|
|
11
|
+
};
|
|
12
|
+
return data;
|
|
13
|
+
}
|
|
14
|
+
function _traverse() {
|
|
15
|
+
const data = require("@babel/traverse");
|
|
16
|
+
_traverse = function () {
|
|
17
|
+
return data;
|
|
18
|
+
};
|
|
19
|
+
return data;
|
|
20
|
+
}
|
|
21
|
+
function _codeFrame() {
|
|
22
|
+
const data = require("@babel/code-frame");
|
|
23
|
+
_codeFrame = function () {
|
|
24
|
+
return data;
|
|
25
|
+
};
|
|
26
|
+
return data;
|
|
27
|
+
}
|
|
28
|
+
function _t() {
|
|
29
|
+
const data = require("@babel/types");
|
|
30
|
+
_t = function () {
|
|
31
|
+
return data;
|
|
32
|
+
};
|
|
33
|
+
return data;
|
|
34
|
+
}
|
|
35
|
+
function _semver() {
|
|
36
|
+
const data = require("semver");
|
|
37
|
+
_semver = function () {
|
|
38
|
+
return data;
|
|
39
|
+
};
|
|
40
|
+
return data;
|
|
41
|
+
}
|
|
42
|
+
var babel7 = _interopRequireWildcard(require("./babel-7-helpers.cjs"), true);
|
|
43
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
44
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
45
|
+
const {
|
|
46
|
+
cloneNode,
|
|
47
|
+
interpreterDirective
|
|
48
|
+
} = _t();
|
|
49
|
+
const errorVisitor = {
|
|
50
|
+
enter(path, state) {
|
|
51
|
+
const loc = path.node.loc;
|
|
52
|
+
if (loc) {
|
|
53
|
+
state.loc = loc;
|
|
54
|
+
path.stop();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
class File {
|
|
59
|
+
constructor(options, {
|
|
60
|
+
code,
|
|
61
|
+
ast,
|
|
62
|
+
inputMap
|
|
63
|
+
}) {
|
|
64
|
+
this._map = new Map();
|
|
65
|
+
this.opts = void 0;
|
|
66
|
+
this.declarations = {};
|
|
67
|
+
this.path = void 0;
|
|
68
|
+
this.ast = void 0;
|
|
69
|
+
this.scope = void 0;
|
|
70
|
+
this.metadata = {};
|
|
71
|
+
this.code = "";
|
|
72
|
+
this.inputMap = void 0;
|
|
73
|
+
this.hub = {
|
|
74
|
+
file: this,
|
|
75
|
+
getCode: () => this.code,
|
|
76
|
+
getScope: () => this.scope,
|
|
77
|
+
addHelper: this.addHelper.bind(this),
|
|
78
|
+
buildError: this.buildCodeFrameError.bind(this)
|
|
79
|
+
};
|
|
80
|
+
this.opts = options;
|
|
81
|
+
this.code = code;
|
|
82
|
+
this.ast = ast;
|
|
83
|
+
this.inputMap = inputMap;
|
|
84
|
+
this.path = _traverse().NodePath.get({
|
|
85
|
+
hub: this.hub,
|
|
86
|
+
parentPath: null,
|
|
87
|
+
parent: this.ast,
|
|
88
|
+
container: this.ast,
|
|
89
|
+
key: "program"
|
|
90
|
+
}).setContext();
|
|
91
|
+
this.scope = this.path.scope;
|
|
92
|
+
}
|
|
93
|
+
get shebang() {
|
|
94
|
+
const {
|
|
95
|
+
interpreter
|
|
96
|
+
} = this.path.node;
|
|
97
|
+
return interpreter ? interpreter.value : "";
|
|
98
|
+
}
|
|
99
|
+
set shebang(value) {
|
|
100
|
+
if (value) {
|
|
101
|
+
this.path.get("interpreter").replaceWith(interpreterDirective(value));
|
|
102
|
+
} else {
|
|
103
|
+
this.path.get("interpreter").remove();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
set(key, val) {
|
|
107
|
+
{
|
|
108
|
+
if (key === "helpersNamespace") {
|
|
109
|
+
throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility." + "If you are using @babel/plugin-external-helpers you will need to use a newer " + "version than the one you currently have installed. " + "If you have your own implementation, you'll want to explore using 'helperGenerator' " + "alongside 'file.availableHelper()'.");
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
this._map.set(key, val);
|
|
113
|
+
}
|
|
114
|
+
get(key) {
|
|
115
|
+
return this._map.get(key);
|
|
116
|
+
}
|
|
117
|
+
has(key) {
|
|
118
|
+
return this._map.has(key);
|
|
119
|
+
}
|
|
120
|
+
availableHelper(name, versionRange) {
|
|
121
|
+
let minVersion;
|
|
122
|
+
try {
|
|
123
|
+
minVersion = helpers().minVersion(name);
|
|
124
|
+
} catch (err) {
|
|
125
|
+
if (err.code !== "BABEL_HELPER_UNKNOWN") throw err;
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
if (typeof versionRange !== "string") return true;
|
|
129
|
+
if (_semver().valid(versionRange)) versionRange = `^${versionRange}`;
|
|
130
|
+
{
|
|
131
|
+
return !_semver().intersects(`<${minVersion}`, versionRange) && !_semver().intersects(`>=8.0.0`, versionRange);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
addHelper(name) {
|
|
135
|
+
const declar = this.declarations[name];
|
|
136
|
+
if (declar) return cloneNode(declar);
|
|
137
|
+
const generator = this.get("helperGenerator");
|
|
138
|
+
if (generator) {
|
|
139
|
+
const res = generator(name);
|
|
140
|
+
if (res) return res;
|
|
141
|
+
}
|
|
142
|
+
helpers().minVersion(name);
|
|
143
|
+
const uid = this.declarations[name] = this.scope.generateUidIdentifier(name);
|
|
144
|
+
const dependencies = {};
|
|
145
|
+
for (const dep of helpers().getDependencies(name)) {
|
|
146
|
+
dependencies[dep] = this.addHelper(dep);
|
|
147
|
+
}
|
|
148
|
+
const {
|
|
149
|
+
nodes,
|
|
150
|
+
globals
|
|
151
|
+
} = helpers().get(name, dep => dependencies[dep], uid.name, Object.keys(this.scope.getAllBindings()));
|
|
152
|
+
globals.forEach(name => {
|
|
153
|
+
if (this.path.scope.hasBinding(name, true)) {
|
|
154
|
+
this.path.scope.rename(name);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
nodes.forEach(node => {
|
|
158
|
+
node._compact = true;
|
|
159
|
+
});
|
|
160
|
+
const added = this.path.unshiftContainer("body", nodes);
|
|
161
|
+
for (const path of added) {
|
|
162
|
+
if (path.isVariableDeclaration()) this.scope.registerDeclaration(path);
|
|
163
|
+
}
|
|
164
|
+
return uid;
|
|
165
|
+
}
|
|
166
|
+
buildCodeFrameError(node, msg, _Error = SyntaxError) {
|
|
167
|
+
let loc = node == null ? void 0 : node.loc;
|
|
168
|
+
if (!loc && node) {
|
|
169
|
+
const state = {
|
|
170
|
+
loc: null
|
|
171
|
+
};
|
|
172
|
+
(0, _traverse().default)(node, errorVisitor, this.scope, state);
|
|
173
|
+
loc = state.loc;
|
|
174
|
+
let txt = "This is an error on an internal node. Probably an internal error.";
|
|
175
|
+
if (loc) txt += " Location has been estimated.";
|
|
176
|
+
msg += ` (${txt})`;
|
|
177
|
+
}
|
|
178
|
+
if (loc) {
|
|
179
|
+
const {
|
|
180
|
+
highlightCode = true
|
|
181
|
+
} = this.opts;
|
|
182
|
+
msg += "\n" + (0, _codeFrame().codeFrameColumns)(this.code, {
|
|
183
|
+
start: {
|
|
184
|
+
line: loc.start.line,
|
|
185
|
+
column: loc.start.column + 1
|
|
186
|
+
},
|
|
187
|
+
end: loc.end && loc.start.line === loc.end.line ? {
|
|
188
|
+
line: loc.end.line,
|
|
189
|
+
column: loc.end.column + 1
|
|
190
|
+
} : undefined
|
|
191
|
+
}, {
|
|
192
|
+
highlightCode
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
return new _Error(msg);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
exports.default = File;
|
|
199
|
+
{
|
|
200
|
+
File.prototype.addImport = function addImport() {
|
|
201
|
+
throw new Error("This API has been removed. If you're looking for this " + "functionality in Babel 7, you should import the " + "'@babel/helper-module-imports' module and use the functions exposed " + " from that module, such as 'addNamed' or 'addDefault'.");
|
|
202
|
+
};
|
|
203
|
+
File.prototype.addTemplateObject = function addTemplateObject() {
|
|
204
|
+
throw new Error("This function has been moved into the template literal transform itself.");
|
|
205
|
+
};
|
|
206
|
+
{
|
|
207
|
+
File.prototype.getModuleName = function getModuleName() {
|
|
208
|
+
return babel7.getModuleName()(this.opts, this.opts);
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
0 && 0;
|
|
213
|
+
|
|
214
|
+
//# sourceMappingURL=file.js.map
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = generateCode;
|
|
7
|
+
function _convertSourceMap() {
|
|
8
|
+
const data = require("convert-source-map");
|
|
9
|
+
_convertSourceMap = function () {
|
|
10
|
+
return data;
|
|
11
|
+
};
|
|
12
|
+
return data;
|
|
13
|
+
}
|
|
14
|
+
function _generator() {
|
|
15
|
+
const data = require("@babel/generator");
|
|
16
|
+
_generator = function () {
|
|
17
|
+
return data;
|
|
18
|
+
};
|
|
19
|
+
return data;
|
|
20
|
+
}
|
|
21
|
+
var _mergeMap = require("./merge-map.js");
|
|
22
|
+
function generateCode(pluginPasses, file) {
|
|
23
|
+
const {
|
|
24
|
+
opts,
|
|
25
|
+
ast,
|
|
26
|
+
code,
|
|
27
|
+
inputMap
|
|
28
|
+
} = file;
|
|
29
|
+
const {
|
|
30
|
+
generatorOpts
|
|
31
|
+
} = opts;
|
|
32
|
+
generatorOpts.inputSourceMap = inputMap == null ? void 0 : inputMap.toObject();
|
|
33
|
+
const results = [];
|
|
34
|
+
for (const plugins of pluginPasses) {
|
|
35
|
+
for (const plugin of plugins) {
|
|
36
|
+
const {
|
|
37
|
+
generatorOverride
|
|
38
|
+
} = plugin;
|
|
39
|
+
if (generatorOverride) {
|
|
40
|
+
const result = generatorOverride(ast, generatorOpts, code, _generator().default);
|
|
41
|
+
if (result !== undefined) results.push(result);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
let result;
|
|
46
|
+
if (results.length === 0) {
|
|
47
|
+
result = (0, _generator().default)(ast, generatorOpts, code);
|
|
48
|
+
} else if (results.length === 1) {
|
|
49
|
+
result = results[0];
|
|
50
|
+
if (typeof result.then === "function") {
|
|
51
|
+
throw new Error(`You appear to be using an async codegen plugin, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, ` + `you may need to upgrade your @babel/core version.`);
|
|
52
|
+
}
|
|
53
|
+
} else {
|
|
54
|
+
throw new Error("More than one plugin attempted to override codegen.");
|
|
55
|
+
}
|
|
56
|
+
let {
|
|
57
|
+
code: outputCode,
|
|
58
|
+
decodedMap: outputMap = result.map
|
|
59
|
+
} = result;
|
|
60
|
+
if (result.__mergedMap) {
|
|
61
|
+
outputMap = Object.assign({}, result.map);
|
|
62
|
+
} else {
|
|
63
|
+
if (outputMap) {
|
|
64
|
+
if (inputMap) {
|
|
65
|
+
outputMap = (0, _mergeMap.default)(inputMap.toObject(), outputMap, generatorOpts.sourceFileName);
|
|
66
|
+
} else {
|
|
67
|
+
outputMap = result.map;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (opts.sourceMaps === "inline" || opts.sourceMaps === "both") {
|
|
72
|
+
outputCode += "\n" + _convertSourceMap().fromObject(outputMap).toComment();
|
|
73
|
+
}
|
|
74
|
+
if (opts.sourceMaps === "inline") {
|
|
75
|
+
outputMap = null;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
outputCode,
|
|
79
|
+
outputMap
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
0 && 0;
|
|
83
|
+
|
|
84
|
+
//# sourceMappingURL=generate.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = mergeSourceMap;
|
|
7
|
+
function _remapping() {
|
|
8
|
+
const data = require("@ampproject/remapping");
|
|
9
|
+
_remapping = function () {
|
|
10
|
+
return data;
|
|
11
|
+
};
|
|
12
|
+
return data;
|
|
13
|
+
}
|
|
14
|
+
function mergeSourceMap(inputMap, map, sourceFileName) {
|
|
15
|
+
const source = sourceFileName.replace(/\\/g, "/");
|
|
16
|
+
let found = false;
|
|
17
|
+
const result = _remapping()(rootless(map), (s, ctx) => {
|
|
18
|
+
if (s === source && !found) {
|
|
19
|
+
found = true;
|
|
20
|
+
ctx.source = "";
|
|
21
|
+
return rootless(inputMap);
|
|
22
|
+
}
|
|
23
|
+
return null;
|
|
24
|
+
});
|
|
25
|
+
if (typeof inputMap.sourceRoot === "string") {
|
|
26
|
+
result.sourceRoot = inputMap.sourceRoot;
|
|
27
|
+
}
|
|
28
|
+
return Object.assign({}, result);
|
|
29
|
+
}
|
|
30
|
+
function rootless(map) {
|
|
31
|
+
return Object.assign({}, map, {
|
|
32
|
+
sourceRoot: null
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
0 && 0;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=merge-map.js.map
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.run = run;
|
|
7
|
+
function _traverse() {
|
|
8
|
+
const data = require("@babel/traverse");
|
|
9
|
+
_traverse = function () {
|
|
10
|
+
return data;
|
|
11
|
+
};
|
|
12
|
+
return data;
|
|
13
|
+
}
|
|
14
|
+
var _pluginPass = require("./plugin-pass.js");
|
|
15
|
+
var _blockHoistPlugin = require("./block-hoist-plugin.js");
|
|
16
|
+
var _normalizeOpts = require("./normalize-opts.js");
|
|
17
|
+
var _normalizeFile = require("./normalize-file.js");
|
|
18
|
+
var _generate = require("./file/generate.js");
|
|
19
|
+
var _deepArray = require("../config/helpers/deep-array.js");
|
|
20
|
+
var _async = require("../gensync-utils/async.js");
|
|
21
|
+
function* run(config, code, ast) {
|
|
22
|
+
const file = yield* (0, _normalizeFile.default)(config.passes, (0, _normalizeOpts.default)(config), code, ast);
|
|
23
|
+
const opts = file.opts;
|
|
24
|
+
try {
|
|
25
|
+
yield* transformFile(file, config.passes);
|
|
26
|
+
} catch (e) {
|
|
27
|
+
var _opts$filename;
|
|
28
|
+
e.message = `${(_opts$filename = opts.filename) != null ? _opts$filename : "unknown file"}: ${e.message}`;
|
|
29
|
+
if (!e.code) {
|
|
30
|
+
e.code = "BABEL_TRANSFORM_ERROR";
|
|
31
|
+
}
|
|
32
|
+
throw e;
|
|
33
|
+
}
|
|
34
|
+
let outputCode, outputMap;
|
|
35
|
+
try {
|
|
36
|
+
if (opts.code !== false) {
|
|
37
|
+
({
|
|
38
|
+
outputCode,
|
|
39
|
+
outputMap
|
|
40
|
+
} = (0, _generate.default)(config.passes, file));
|
|
41
|
+
}
|
|
42
|
+
} catch (e) {
|
|
43
|
+
var _opts$filename2;
|
|
44
|
+
e.message = `${(_opts$filename2 = opts.filename) != null ? _opts$filename2 : "unknown file"}: ${e.message}`;
|
|
45
|
+
if (!e.code) {
|
|
46
|
+
e.code = "BABEL_GENERATE_ERROR";
|
|
47
|
+
}
|
|
48
|
+
throw e;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
metadata: file.metadata,
|
|
52
|
+
options: opts,
|
|
53
|
+
ast: opts.ast === true ? file.ast : null,
|
|
54
|
+
code: outputCode === undefined ? null : outputCode,
|
|
55
|
+
map: outputMap === undefined ? null : outputMap,
|
|
56
|
+
sourceType: file.ast.program.sourceType,
|
|
57
|
+
externalDependencies: (0, _deepArray.flattenToSet)(config.externalDependencies)
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function* transformFile(file, pluginPasses) {
|
|
61
|
+
const async = yield* (0, _async.isAsync)();
|
|
62
|
+
for (const pluginPairs of pluginPasses) {
|
|
63
|
+
const passPairs = [];
|
|
64
|
+
const passes = [];
|
|
65
|
+
const visitors = [];
|
|
66
|
+
for (const plugin of pluginPairs.concat([(0, _blockHoistPlugin.default)()])) {
|
|
67
|
+
const pass = new _pluginPass.default(file, plugin.key, plugin.options, async);
|
|
68
|
+
passPairs.push([plugin, pass]);
|
|
69
|
+
passes.push(pass);
|
|
70
|
+
visitors.push(plugin.visitor);
|
|
71
|
+
}
|
|
72
|
+
for (const [plugin, pass] of passPairs) {
|
|
73
|
+
if (plugin.pre) {
|
|
74
|
+
const fn = (0, _async.maybeAsync)(plugin.pre, `You appear to be using an async plugin/preset, but Babel has been called synchronously`);
|
|
75
|
+
yield* fn.call(pass, file);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const visitor = _traverse().default.visitors.merge(visitors, passes, file.opts.wrapPluginVisitorMethod);
|
|
79
|
+
{
|
|
80
|
+
(0, _traverse().default)(file.ast, visitor, file.scope);
|
|
81
|
+
}
|
|
82
|
+
for (const [plugin, pass] of passPairs) {
|
|
83
|
+
if (plugin.post) {
|
|
84
|
+
const fn = (0, _async.maybeAsync)(plugin.post, `You appear to be using an async plugin/preset, but Babel has been called synchronously`);
|
|
85
|
+
yield* fn.call(pass, file);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
0 && 0;
|
|
91
|
+
|
|
92
|
+
//# sourceMappingURL=index.js.map
|