@machhub-dev/node-red-nodes 1.0.5
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/LICENSE +373 -0
- package/dist/lib/config/machhub-env-loader.js +93 -0
- package/dist/lib/enums/data.enums.js +12 -0
- package/dist/lib/errors/errors.js +15 -0
- package/dist/lib/models/collections.model.js +2 -0
- package/dist/lib/models/machine.models.js +2 -0
- package/dist/lib/models/product.models.js +2 -0
- package/dist/lib/models/recordId.models.js +11 -0
- package/dist/lib/services/http.api.services.js +152 -0
- package/dist/lib/services/http.service.js +188 -0
- package/dist/lib/services/mqtt.service.js +234 -0
- package/dist/nodes/bulk-tag-write.html +91 -0
- package/dist/nodes/bulk-tag-write.js +118 -0
- package/dist/nodes/collections.html +508 -0
- package/dist/nodes/collections.js +241 -0
- package/dist/nodes/dbquery.html +131 -0
- package/dist/nodes/dbquery.js +83 -0
- package/dist/nodes/machhub-config.html +39 -0
- package/dist/nodes/machhub-config.js +15 -0
- package/dist/nodes/tag-read.html +194 -0
- package/dist/nodes/tag-read.js +133 -0
- package/dist/nodes/tag-write.html +162 -0
- package/dist/nodes/tag-write.js +110 -0
- package/node_modules/@babel/runtime/LICENSE +22 -0
- package/node_modules/@babel/runtime/README.md +19 -0
- package/node_modules/@babel/runtime/helpers/AwaitValue.js +4 -0
- package/node_modules/@babel/runtime/helpers/OverloadYield.js +4 -0
- package/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +9 -0
- package/node_modules/@babel/runtime/helpers/applyDecs.js +236 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2203.js +184 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2203R.js +191 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2301.js +222 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2305.js +133 -0
- package/node_modules/@babel/runtime/helpers/applyDecs2311.js +124 -0
- package/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +6 -0
- package/node_modules/@babel/runtime/helpers/arrayWithHoles.js +4 -0
- package/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +5 -0
- package/node_modules/@babel/runtime/helpers/assertClassBrand.js +5 -0
- package/node_modules/@babel/runtime/helpers/assertThisInitialized.js +5 -0
- package/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +24 -0
- package/node_modules/@babel/runtime/helpers/asyncIterator.js +45 -0
- package/node_modules/@babel/runtime/helpers/asyncToGenerator.js +26 -0
- package/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +5 -0
- package/node_modules/@babel/runtime/helpers/callSuper.js +7 -0
- package/node_modules/@babel/runtime/helpers/checkInRHS.js +6 -0
- package/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +4 -0
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +10 -0
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +4 -0
- package/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classCallCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +5 -0
- package/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +4 -0
- package/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +5 -0
- package/node_modules/@babel/runtime/helpers/classNameTDZError.js +4 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateGetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/classPrivateSetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/construct.js +10 -0
- package/node_modules/@babel/runtime/helpers/createClass.js +13 -0
- package/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +50 -0
- package/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +19 -0
- package/node_modules/@babel/runtime/helpers/createSuper.js +16 -0
- package/node_modules/@babel/runtime/helpers/decorate.js +250 -0
- package/node_modules/@babel/runtime/helpers/defaults.js +9 -0
- package/node_modules/@babel/runtime/helpers/defineAccessor.js +8 -0
- package/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +12 -0
- package/node_modules/@babel/runtime/helpers/defineProperty.js +10 -0
- package/node_modules/@babel/runtime/helpers/dispose.js +28 -0
- package/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs.js +236 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +184 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +191 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +222 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +133 -0
- package/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +124 -0
- package/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +24 -0
- package/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +45 -0
- package/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +26 -0
- package/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/callSuper.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/construct.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/createClass.js +13 -0
- package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +50 -0
- package/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +19 -0
- package/node_modules/@babel/runtime/helpers/esm/createSuper.js +16 -0
- package/node_modules/@babel/runtime/helpers/esm/decorate.js +250 -0
- package/node_modules/@babel/runtime/helpers/esm/defaults.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/defineProperty.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/dispose.js +28 -0
- package/node_modules/@babel/runtime/helpers/esm/extends.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/get.js +11 -0
- package/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/identity.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +27 -0
- package/node_modules/@babel/runtime/helpers/esm/inherits.js +14 -0
- package/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +5 -0
- package/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/instanceof.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +27 -0
- package/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +28 -0
- package/node_modules/@babel/runtime/helpers/esm/jsx.js +22 -0
- package/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/objectSpread.js +14 -0
- package/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +23 -0
- package/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
- package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/package.json +3 -0
- package/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +304 -0
- package/node_modules/@babel/runtime/helpers/esm/set.js +22 -0
- package/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/superPropBase.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/superPropGet.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/tdz.js +4 -0
- package/node_modules/@babel/runtime/helpers/esm/temporalRef.js +6 -0
- package/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +2 -0
- package/node_modules/@babel/runtime/helpers/esm/toArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +7 -0
- package/node_modules/@babel/runtime/helpers/esm/toSetter.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/typeof.js +10 -0
- package/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +9 -0
- package/node_modules/@babel/runtime/helpers/esm/using.js +12 -0
- package/node_modules/@babel/runtime/helpers/esm/usingCtx.js +59 -0
- package/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +69 -0
- package/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +27 -0
- package/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +51 -0
- package/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +4 -0
- package/node_modules/@babel/runtime/helpers/extends.js +10 -0
- package/node_modules/@babel/runtime/helpers/get.js +11 -0
- package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/identity.js +4 -0
- package/node_modules/@babel/runtime/helpers/importDeferProxy.js +27 -0
- package/node_modules/@babel/runtime/helpers/inherits.js +14 -0
- package/node_modules/@babel/runtime/helpers/inheritsLoose.js +5 -0
- package/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +9 -0
- package/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +4 -0
- package/node_modules/@babel/runtime/helpers/instanceof.js +4 -0
- package/node_modules/@babel/runtime/helpers/interopRequireDefault.js +6 -0
- package/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +27 -0
- package/node_modules/@babel/runtime/helpers/isNativeFunction.js +8 -0
- package/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +9 -0
- package/node_modules/@babel/runtime/helpers/iterableToArray.js +4 -0
- package/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +28 -0
- package/node_modules/@babel/runtime/helpers/jsx.js +22 -0
- package/node_modules/@babel/runtime/helpers/maybeArrayLike.js +9 -0
- package/node_modules/@babel/runtime/helpers/newArrowCheck.js +4 -0
- package/node_modules/@babel/runtime/helpers/nonIterableRest.js +4 -0
- package/node_modules/@babel/runtime/helpers/nonIterableSpread.js +4 -0
- package/node_modules/@babel/runtime/helpers/nullishReceiverError.js +4 -0
- package/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +4 -0
- package/node_modules/@babel/runtime/helpers/objectSpread.js +14 -0
- package/node_modules/@babel/runtime/helpers/objectSpread2.js +23 -0
- package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +13 -0
- package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +10 -0
- package/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +8 -0
- package/node_modules/@babel/runtime/helpers/readOnlyError.js +4 -0
- package/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +304 -0
- package/node_modules/@babel/runtime/helpers/set.js +22 -0
- package/node_modules/@babel/runtime/helpers/setFunctionName.js +12 -0
- package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +6 -0
- package/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +7 -0
- package/node_modules/@babel/runtime/helpers/slicedToArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/superPropBase.js +6 -0
- package/node_modules/@babel/runtime/helpers/superPropGet.js +9 -0
- package/node_modules/@babel/runtime/helpers/superPropSet.js +6 -0
- package/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +8 -0
- package/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +4 -0
- package/node_modules/@babel/runtime/helpers/tdz.js +4 -0
- package/node_modules/@babel/runtime/helpers/temporalRef.js +6 -0
- package/node_modules/@babel/runtime/helpers/temporalUndefined.js +2 -0
- package/node_modules/@babel/runtime/helpers/toArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/toConsumableArray.js +8 -0
- package/node_modules/@babel/runtime/helpers/toPrimitive.js +12 -0
- package/node_modules/@babel/runtime/helpers/toPropertyKey.js +7 -0
- package/node_modules/@babel/runtime/helpers/toSetter.js +10 -0
- package/node_modules/@babel/runtime/helpers/typeof.js +10 -0
- package/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +9 -0
- package/node_modules/@babel/runtime/helpers/using.js +12 -0
- package/node_modules/@babel/runtime/helpers/usingCtx.js +59 -0
- package/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +69 -0
- package/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +27 -0
- package/node_modules/@babel/runtime/helpers/wrapRegExp.js +51 -0
- package/node_modules/@babel/runtime/helpers/writeOnlyError.js +4 -0
- package/node_modules/@babel/runtime/package.json +1056 -0
- package/node_modules/@babel/runtime/regenerator/index.js +15 -0
- package/node_modules/@types/ace/LICENSE +21 -0
- package/node_modules/@types/ace/README.md +15 -0
- package/node_modules/@types/ace/index.d.ts +3135 -0
- package/node_modules/@types/ace/package.json +30 -0
- package/node_modules/@types/body-parser/LICENSE +21 -0
- package/node_modules/@types/body-parser/README.md +15 -0
- package/node_modules/@types/body-parser/index.d.ts +95 -0
- package/node_modules/@types/body-parser/package.json +58 -0
- package/node_modules/@types/connect/LICENSE +21 -0
- package/node_modules/@types/connect/README.md +15 -0
- package/node_modules/@types/connect/index.d.ts +91 -0
- package/node_modules/@types/connect/package.json +32 -0
- package/node_modules/@types/cors/LICENSE +21 -0
- package/node_modules/@types/cors/README.md +75 -0
- package/node_modules/@types/cors/index.d.ts +56 -0
- package/node_modules/@types/cors/package.json +32 -0
- package/node_modules/@types/express/LICENSE +21 -0
- package/node_modules/@types/express/README.md +15 -0
- package/node_modules/@types/express/index.d.ts +128 -0
- package/node_modules/@types/express/package.json +45 -0
- package/node_modules/@types/express-serve-static-core/LICENSE +21 -0
- package/node_modules/@types/express-serve-static-core/README.md +15 -0
- package/node_modules/@types/express-serve-static-core/index.d.ts +1295 -0
- package/node_modules/@types/express-serve-static-core/package.json +50 -0
- package/node_modules/@types/http-errors/LICENSE +21 -0
- package/node_modules/@types/http-errors/README.md +15 -0
- package/node_modules/@types/http-errors/index.d.ts +77 -0
- package/node_modules/@types/http-errors/package.json +30 -0
- package/node_modules/@types/jquery/JQuery.d.ts +13372 -0
- package/node_modules/@types/jquery/JQueryStatic.d.ts +13944 -0
- package/node_modules/@types/jquery/LICENSE +21 -0
- package/node_modules/@types/jquery/README.md +15 -0
- package/node_modules/@types/jquery/dist/jquery.slim.d.ts +3 -0
- package/node_modules/@types/jquery/index.d.ts +7 -0
- package/node_modules/@types/jquery/legacy.d.ts +204 -0
- package/node_modules/@types/jquery/misc.d.ts +7364 -0
- package/node_modules/@types/jquery/package.json +132 -0
- package/node_modules/@types/mime/LICENSE +21 -0
- package/node_modules/@types/mime/Mime.d.ts +10 -0
- package/node_modules/@types/mime/README.md +15 -0
- package/node_modules/@types/mime/index.d.ts +31 -0
- package/node_modules/@types/mime/lite.d.ts +7 -0
- package/node_modules/@types/mime/package.json +30 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@types/node/assert.d.ts +1040 -0
- package/node_modules/@types/node/async_hooks.d.ts +541 -0
- package/node_modules/@types/node/buffer.d.ts +2293 -0
- package/node_modules/@types/node/child_process.d.ts +1544 -0
- package/node_modules/@types/node/cluster.d.ts +578 -0
- package/node_modules/@types/node/console.d.ts +452 -0
- package/node_modules/@types/node/constants.d.ts +19 -0
- package/node_modules/@types/node/crypto.d.ts +4451 -0
- package/node_modules/@types/node/dgram.d.ts +596 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +554 -0
- package/node_modules/@types/node/dns/promises.d.ts +476 -0
- package/node_modules/@types/node/dns.d.ts +865 -0
- package/node_modules/@types/node/dom-events.d.ts +124 -0
- package/node_modules/@types/node/domain.d.ts +170 -0
- package/node_modules/@types/node/events.d.ts +931 -0
- package/node_modules/@types/node/fs/promises.d.ts +1264 -0
- package/node_modules/@types/node/fs.d.ts +4390 -0
- package/node_modules/@types/node/globals.d.ts +510 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +1921 -0
- package/node_modules/@types/node/http2.d.ts +2418 -0
- package/node_modules/@types/node/https.d.ts +550 -0
- package/node_modules/@types/node/index.d.ts +90 -0
- package/node_modules/@types/node/inspector.d.ts +2746 -0
- package/node_modules/@types/node/module.d.ts +301 -0
- package/node_modules/@types/node/net.d.ts +999 -0
- package/node_modules/@types/node/os.d.ts +495 -0
- package/node_modules/@types/node/package.json +217 -0
- package/node_modules/@types/node/path.d.ts +200 -0
- package/node_modules/@types/node/perf_hooks.d.ts +941 -0
- package/node_modules/@types/node/process.d.ts +1913 -0
- package/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@types/node/querystring.d.ts +153 -0
- package/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/node_modules/@types/node/readline.d.ts +540 -0
- package/node_modules/@types/node/repl.d.ts +430 -0
- package/node_modules/@types/node/sea.d.ts +153 -0
- package/node_modules/@types/node/sqlite.d.ts +213 -0
- package/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/node_modules/@types/node/stream/web.d.ts +367 -0
- package/node_modules/@types/node/stream.d.ts +1707 -0
- package/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@types/node/test.d.ts +2006 -0
- package/node_modules/@types/node/timers/promises.d.ts +97 -0
- package/node_modules/@types/node/timers.d.ts +240 -0
- package/node_modules/@types/node/tls.d.ts +1220 -0
- package/node_modules/@types/node/trace_events.d.ts +197 -0
- package/node_modules/@types/node/tty.d.ts +208 -0
- package/node_modules/@types/node/url.d.ts +969 -0
- package/node_modules/@types/node/util.d.ts +2298 -0
- package/node_modules/@types/node/v8.d.ts +808 -0
- package/node_modules/@types/node/vm.d.ts +922 -0
- package/node_modules/@types/node/wasi.d.ts +181 -0
- package/node_modules/@types/node/worker_threads.d.ts +712 -0
- package/node_modules/@types/node/zlib.d.ts +539 -0
- package/node_modules/@types/node-red/LICENSE +21 -0
- package/node_modules/@types/node-red/README.md +15 -0
- package/node_modules/@types/node-red/index.d.ts +241 -0
- package/node_modules/@types/node-red/package.json +52 -0
- package/node_modules/@types/node-red__editor-api/LICENSE +21 -0
- package/node_modules/@types/node-red__editor-api/README.md +65 -0
- package/node_modules/@types/node-red__editor-api/index.d.ts +46 -0
- package/node_modules/@types/node-red__editor-api/package.json +33 -0
- package/node_modules/@types/node-red__editor-client/LICENSE +21 -0
- package/node_modules/@types/node-red__editor-client/README.md +15 -0
- package/node_modules/@types/node-red__editor-client/index.d.ts +1738 -0
- package/node_modules/@types/node-red__editor-client/package.json +36 -0
- package/node_modules/@types/node-red__registry/LICENSE +21 -0
- package/node_modules/@types/node-red__registry/README.md +15 -0
- package/node_modules/@types/node-red__registry/index.d.ts +452 -0
- package/node_modules/@types/node-red__registry/package.json +34 -0
- package/node_modules/@types/node-red__runtime/LICENSE +21 -0
- package/node_modules/@types/node-red__runtime/README.md +15 -0
- package/node_modules/@types/node-red__runtime/index.d.ts +1458 -0
- package/node_modules/@types/node-red__runtime/package.json +36 -0
- package/node_modules/@types/node-red__util/LICENSE +21 -0
- package/node_modules/@types/node-red__util/README.md +15 -0
- package/node_modules/@types/node-red__util/index.d.ts +557 -0
- package/node_modules/@types/node-red__util/package.json +34 -0
- package/node_modules/@types/passport/LICENSE +21 -0
- package/node_modules/@types/passport/README.md +15 -0
- package/node_modules/@types/passport/index.d.ts +921 -0
- package/node_modules/@types/passport/package.json +57 -0
- package/node_modules/@types/qs/LICENSE +21 -0
- package/node_modules/@types/qs/README.md +15 -0
- package/node_modules/@types/qs/index.d.ts +80 -0
- package/node_modules/@types/qs/package.json +65 -0
- package/node_modules/@types/range-parser/LICENSE +21 -0
- package/node_modules/@types/range-parser/README.md +53 -0
- package/node_modules/@types/range-parser/index.d.ts +34 -0
- package/node_modules/@types/range-parser/package.json +25 -0
- package/node_modules/@types/readable-stream/LICENSE +21 -0
- package/node_modules/@types/readable-stream/README.md +15 -0
- package/node_modules/@types/readable-stream/index.d.ts +677 -0
- package/node_modules/@types/readable-stream/package.json +38 -0
- package/node_modules/@types/send/LICENSE +21 -0
- package/node_modules/@types/send/README.md +15 -0
- package/node_modules/@types/send/index.d.ts +225 -0
- package/node_modules/@types/send/package.json +33 -0
- package/node_modules/@types/serve-static/LICENSE +21 -0
- package/node_modules/@types/serve-static/README.md +15 -0
- package/node_modules/@types/serve-static/index.d.ts +107 -0
- package/node_modules/@types/serve-static/package.json +39 -0
- package/node_modules/@types/sizzle/LICENSE +21 -0
- package/node_modules/@types/sizzle/README.md +15 -0
- package/node_modules/@types/sizzle/index.d.ts +91 -0
- package/node_modules/@types/sizzle/package.json +25 -0
- package/node_modules/@types/ws/LICENSE +21 -0
- package/node_modules/@types/ws/README.md +15 -0
- package/node_modules/@types/ws/index.d.mts +21 -0
- package/node_modules/@types/ws/index.d.ts +401 -0
- package/node_modules/@types/ws/package.json +71 -0
- package/node_modules/abort-controller/LICENSE +21 -0
- package/node_modules/abort-controller/README.md +98 -0
- package/node_modules/abort-controller/browser.js +13 -0
- package/node_modules/abort-controller/browser.mjs +11 -0
- package/node_modules/abort-controller/dist/abort-controller.d.ts +43 -0
- package/node_modules/abort-controller/dist/abort-controller.js +127 -0
- package/node_modules/abort-controller/dist/abort-controller.js.map +1 -0
- package/node_modules/abort-controller/dist/abort-controller.mjs +118 -0
- package/node_modules/abort-controller/dist/abort-controller.mjs.map +1 -0
- package/node_modules/abort-controller/dist/abort-controller.umd.js +5 -0
- package/node_modules/abort-controller/dist/abort-controller.umd.js.map +1 -0
- package/node_modules/abort-controller/package.json +97 -0
- package/node_modules/abort-controller/polyfill.js +21 -0
- package/node_modules/abort-controller/polyfill.mjs +19 -0
- package/node_modules/base64-js/LICENSE +21 -0
- package/node_modules/base64-js/README.md +34 -0
- package/node_modules/base64-js/base64js.min.js +1 -0
- package/node_modules/base64-js/index.d.ts +3 -0
- package/node_modules/base64-js/index.js +150 -0
- package/node_modules/base64-js/package.json +47 -0
- package/node_modules/bl/.github/dependabot.yml +16 -0
- package/node_modules/bl/.github/workflows/test-and-release.yml +61 -0
- package/node_modules/bl/BufferList.d.ts +418 -0
- package/node_modules/bl/BufferList.js +400 -0
- package/node_modules/bl/CHANGELOG.md +142 -0
- package/node_modules/bl/LICENSE.md +13 -0
- package/node_modules/bl/README.md +247 -0
- package/node_modules/bl/bl.js +84 -0
- package/node_modules/bl/index.d.ts +88 -0
- package/node_modules/bl/package.json +123 -0
- package/node_modules/bl/test/convert.js +21 -0
- package/node_modules/bl/test/indexOf.js +492 -0
- package/node_modules/bl/test/isBufferList.js +32 -0
- package/node_modules/bl/test/test.js +948 -0
- package/node_modules/buffer/AUTHORS.md +73 -0
- package/node_modules/buffer/LICENSE +21 -0
- package/node_modules/buffer/README.md +410 -0
- package/node_modules/buffer/index.d.ts +194 -0
- package/node_modules/buffer/index.js +2106 -0
- package/node_modules/buffer/package.json +93 -0
- package/node_modules/buffer-from/LICENSE +21 -0
- package/node_modules/buffer-from/index.js +72 -0
- package/node_modules/buffer-from/package.json +19 -0
- package/node_modules/buffer-from/readme.md +69 -0
- package/node_modules/commist/.github/workflows/ci.yml +27 -0
- package/node_modules/commist/LICENSE +21 -0
- package/node_modules/commist/README.md +113 -0
- package/node_modules/commist/example.js +26 -0
- package/node_modules/commist/index.js +155 -0
- package/node_modules/commist/leven.js +91 -0
- package/node_modules/commist/package.json +28 -0
- package/node_modules/commist/test.js +368 -0
- package/node_modules/concat-stream/LICENSE +24 -0
- package/node_modules/concat-stream/index.js +144 -0
- package/node_modules/concat-stream/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/concat-stream/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/concat-stream/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/concat-stream/node_modules/readable-stream/README.md +106 -0
- package/node_modules/concat-stream/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/concat-stream/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/concat-stream/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_transform.js +190 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js +641 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/concat-stream/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/concat-stream/node_modules/readable-stream/package.json +68 -0
- package/node_modules/concat-stream/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/concat-stream/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/concat-stream/package.json +55 -0
- package/node_modules/concat-stream/readme.md +102 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +60 -0
- package/node_modules/debug/src/browser.js +271 -0
- package/node_modules/debug/src/common.js +274 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/event-target-shim/LICENSE +22 -0
- package/node_modules/event-target-shim/README.md +293 -0
- package/node_modules/event-target-shim/dist/event-target-shim.js +871 -0
- package/node_modules/event-target-shim/dist/event-target-shim.js.map +1 -0
- package/node_modules/event-target-shim/dist/event-target-shim.mjs +862 -0
- package/node_modules/event-target-shim/dist/event-target-shim.mjs.map +1 -0
- package/node_modules/event-target-shim/dist/event-target-shim.umd.js +6 -0
- package/node_modules/event-target-shim/dist/event-target-shim.umd.js.map +1 -0
- package/node_modules/event-target-shim/index.d.ts +399 -0
- package/node_modules/event-target-shim/package.json +82 -0
- package/node_modules/events/.airtap.yml +15 -0
- package/node_modules/events/.github/FUNDING.yml +12 -0
- package/node_modules/events/.travis.yml +18 -0
- package/node_modules/events/History.md +118 -0
- package/node_modules/events/LICENSE +22 -0
- package/node_modules/events/Readme.md +50 -0
- package/node_modules/events/events.js +497 -0
- package/node_modules/events/package.json +37 -0
- package/node_modules/events/security.md +10 -0
- package/node_modules/events/tests/add-listeners.js +111 -0
- package/node_modules/events/tests/check-listener-leaks.js +101 -0
- package/node_modules/events/tests/common.js +104 -0
- package/node_modules/events/tests/errors.js +13 -0
- package/node_modules/events/tests/events-list.js +28 -0
- package/node_modules/events/tests/events-once.js +234 -0
- package/node_modules/events/tests/index.js +64 -0
- package/node_modules/events/tests/legacy-compat.js +16 -0
- package/node_modules/events/tests/listener-count.js +37 -0
- package/node_modules/events/tests/listeners-side-effects.js +56 -0
- package/node_modules/events/tests/listeners.js +168 -0
- package/node_modules/events/tests/max-listeners.js +47 -0
- package/node_modules/events/tests/method-names.js +35 -0
- package/node_modules/events/tests/modify-in-emit.js +90 -0
- package/node_modules/events/tests/num-args.js +60 -0
- package/node_modules/events/tests/once.js +83 -0
- package/node_modules/events/tests/prepend.js +31 -0
- package/node_modules/events/tests/remove-all-listeners.js +133 -0
- package/node_modules/events/tests/remove-listeners.js +212 -0
- package/node_modules/events/tests/set-max-listeners-side-effects.js +31 -0
- package/node_modules/events/tests/special-event-names.js +45 -0
- package/node_modules/events/tests/subclass.js +66 -0
- package/node_modules/events/tests/symbols.js +25 -0
- package/node_modules/fast-unique-numbers/LICENSE +21 -0
- package/node_modules/fast-unique-numbers/README.md +51 -0
- package/node_modules/fast-unique-numbers/build/es2019/factories/add-unique-number.d.ts +3 -0
- package/node_modules/fast-unique-numbers/build/es2019/factories/add-unique-number.d.ts.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/factories/add-unique-number.js +8 -0
- package/node_modules/fast-unique-numbers/build/es2019/factories/add-unique-number.js.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/factories/cache.d.ts +3 -0
- package/node_modules/fast-unique-numbers/build/es2019/factories/cache.d.ts.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/factories/cache.js +7 -0
- package/node_modules/fast-unique-numbers/build/es2019/factories/cache.js.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/factories/generate-unique-number.d.ts +3 -0
- package/node_modules/fast-unique-numbers/build/es2019/factories/generate-unique-number.d.ts.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/factories/generate-unique-number.js +46 -0
- package/node_modules/fast-unique-numbers/build/es2019/factories/generate-unique-number.js.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/module.d.ts +5 -0
- package/node_modules/fast-unique-numbers/build/es2019/module.d.ts.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/module.js +14 -0
- package/node_modules/fast-unique-numbers/build/es2019/module.js.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/add-unique-number-factory.d.ts +4 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/add-unique-number-factory.d.ts.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/add-unique-number-factory.js +2 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/add-unique-number-factory.js.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/add-unique-number-function.d.ts +2 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/add-unique-number-function.d.ts.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/add-unique-number-function.js +2 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/add-unique-number-function.js.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/cache-factory.d.ts +3 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/cache-factory.d.ts.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/cache-factory.js +2 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/cache-factory.js.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/cache-function.d.ts +2 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/cache-function.d.ts.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/cache-function.js +2 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/cache-function.js.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/generate-unique-number-factory.d.ts +4 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/generate-unique-number-factory.d.ts.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/generate-unique-number-factory.js +2 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/generate-unique-number-factory.js.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/generate-unique-number-function.d.ts +2 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/generate-unique-number-function.d.ts.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/generate-unique-number-function.js +2 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/generate-unique-number-function.js.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/index.d.ts +7 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/index.d.ts.map +1 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/index.js +7 -0
- package/node_modules/fast-unique-numbers/build/es2019/types/index.js.map +1 -0
- package/node_modules/fast-unique-numbers/build/es5/bundle.js +76 -0
- package/node_modules/fast-unique-numbers/build/node/factories/add-unique-number.js +14 -0
- package/node_modules/fast-unique-numbers/build/node/factories/cache.js +13 -0
- package/node_modules/fast-unique-numbers/build/node/factories/generate-unique-number.js +52 -0
- package/node_modules/fast-unique-numbers/build/node/module.js +34 -0
- package/node_modules/fast-unique-numbers/build/node/types/add-unique-number-factory.js +5 -0
- package/node_modules/fast-unique-numbers/build/node/types/add-unique-number-function.js +5 -0
- package/node_modules/fast-unique-numbers/build/node/types/cache-factory.js +5 -0
- package/node_modules/fast-unique-numbers/build/node/types/cache-function.js +5 -0
- package/node_modules/fast-unique-numbers/build/node/types/generate-unique-number-factory.js +5 -0
- package/node_modules/fast-unique-numbers/build/node/types/generate-unique-number-function.js +5 -0
- package/node_modules/fast-unique-numbers/build/node/types/index.js +71 -0
- package/node_modules/fast-unique-numbers/package.json +94 -0
- package/node_modules/fast-unique-numbers/src/factories/add-unique-number.ts +11 -0
- package/node_modules/fast-unique-numbers/src/factories/cache.ts +9 -0
- package/node_modules/fast-unique-numbers/src/factories/generate-unique-number.ts +55 -0
- package/node_modules/fast-unique-numbers/src/module.ts +17 -0
- package/node_modules/fast-unique-numbers/src/tsconfig.json +6 -0
- package/node_modules/fast-unique-numbers/src/types/add-unique-number-factory.ts +4 -0
- package/node_modules/fast-unique-numbers/src/types/add-unique-number-function.ts +1 -0
- package/node_modules/fast-unique-numbers/src/types/cache-factory.ts +3 -0
- package/node_modules/fast-unique-numbers/src/types/cache-function.ts +1 -0
- package/node_modules/fast-unique-numbers/src/types/generate-unique-number-factory.ts +7 -0
- package/node_modules/fast-unique-numbers/src/types/generate-unique-number-function.ts +1 -0
- package/node_modules/fast-unique-numbers/src/types/index.ts +6 -0
- package/node_modules/help-me/.github/workflows/ci.yml +28 -0
- package/node_modules/help-me/LICENSE +22 -0
- package/node_modules/help-me/README.md +66 -0
- package/node_modules/help-me/doc/hello.txt +1 -0
- package/node_modules/help-me/doc/help.txt +5 -0
- package/node_modules/help-me/example.js +18 -0
- package/node_modules/help-me/fixture/basic/hello.txt +1 -0
- package/node_modules/help-me/fixture/basic/help.txt +1 -0
- package/node_modules/help-me/fixture/dir/a/b.txt +0 -0
- package/node_modules/help-me/fixture/no-ext/hello +1 -0
- package/node_modules/help-me/fixture/sameprefix/hello world.txt +1 -0
- package/node_modules/help-me/fixture/sameprefix/hello.txt +1 -0
- package/node_modules/help-me/fixture/shortnames/abcde fghi lmno.txt +1 -0
- package/node_modules/help-me/fixture/shortnames/abcde hello.txt +1 -0
- package/node_modules/help-me/fixture/shortnames/hello world.txt +1 -0
- package/node_modules/help-me/help-me.js +134 -0
- package/node_modules/help-me/package.json +36 -0
- package/node_modules/help-me/test.js +316 -0
- package/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/ieee754/README.md +51 -0
- package/node_modules/ieee754/index.d.ts +10 -0
- package/node_modules/ieee754/index.js +85 -0
- package/node_modules/ieee754/package.json +52 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/js-sdsl/CHANGELOG.md +211 -0
- package/node_modules/js-sdsl/LICENSE +21 -0
- package/node_modules/js-sdsl/README.md +296 -0
- package/node_modules/js-sdsl/README.zh-CN.md +298 -0
- package/node_modules/js-sdsl/dist/cjs/container/ContainerBase/index.d.ts +206 -0
- package/node_modules/js-sdsl/dist/cjs/container/ContainerBase/index.js +40 -0
- package/node_modules/js-sdsl/dist/cjs/container/ContainerBase/index.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/HashContainer/Base/index.d.ts +29 -0
- package/node_modules/js-sdsl/dist/cjs/container/HashContainer/Base/index.js +188 -0
- package/node_modules/js-sdsl/dist/cjs/container/HashContainer/Base/index.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/HashContainer/HashMap.d.ts +49 -0
- package/node_modules/js-sdsl/dist/cjs/container/HashContainer/HashMap.js +125 -0
- package/node_modules/js-sdsl/dist/cjs/container/HashContainer/HashMap.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/HashContainer/HashSet.d.ts +39 -0
- package/node_modules/js-sdsl/dist/cjs/container/HashContainer/HashSet.js +94 -0
- package/node_modules/js-sdsl/dist/cjs/container/HashContainer/HashSet.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/OtherContainer/PriorityQueue.d.ts +79 -0
- package/node_modules/js-sdsl/dist/cjs/container/OtherContainer/PriorityQueue.js +118 -0
- package/node_modules/js-sdsl/dist/cjs/container/OtherContainer/PriorityQueue.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/OtherContainer/Queue.d.ts +22 -0
- package/node_modules/js-sdsl/dist/cjs/container/OtherContainer/Queue.js +52 -0
- package/node_modules/js-sdsl/dist/cjs/container/OtherContainer/Queue.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/OtherContainer/Stack.d.ts +22 -0
- package/node_modules/js-sdsl/dist/cjs/container/OtherContainer/Stack.js +42 -0
- package/node_modules/js-sdsl/dist/cjs/container/OtherContainer/Stack.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Base/RandomIterator.d.ts +9 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Base/RandomIterator.js +58 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Base/RandomIterator.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Base/index.d.ts +67 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Base/index.js +16 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Base/index.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Deque.d.ts +58 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Deque.js +338 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Deque.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/LinkList.d.ts +58 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/LinkList.js +330 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/LinkList.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Vector.d.ts +40 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Vector.js +158 -0
- package/node_modules/js-sdsl/dist/cjs/container/SequentialContainer/Vector.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/Base/TreeIterator.d.ts +18 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/Base/TreeIterator.js +80 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/Base/TreeIterator.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/Base/TreeNode.d.ts +47 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/Base/TreeNode.js +115 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/Base/TreeNode.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/Base/index.d.ts +58 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/Base/index.js +514 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/Base/index.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/OrderedMap.d.ts +62 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/OrderedMap.js +127 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/OrderedMap.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/OrderedSet.d.ts +54 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/OrderedSet.js +107 -0
- package/node_modules/js-sdsl/dist/cjs/container/TreeContainer/OrderedSet.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/index.d.ts +21 -0
- package/node_modules/js-sdsl/dist/cjs/index.js +102 -0
- package/node_modules/js-sdsl/dist/cjs/index.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/utils/checkObject.d.ts +1 -0
- package/node_modules/js-sdsl/dist/cjs/utils/checkObject.js +13 -0
- package/node_modules/js-sdsl/dist/cjs/utils/checkObject.js.map +1 -0
- package/node_modules/js-sdsl/dist/cjs/utils/throwError.d.ts +1 -0
- package/node_modules/js-sdsl/dist/cjs/utils/throwError.js +12 -0
- package/node_modules/js-sdsl/dist/cjs/utils/throwError.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/ContainerBase/index.d.ts +206 -0
- package/node_modules/js-sdsl/dist/esm/container/ContainerBase/index.js +68 -0
- package/node_modules/js-sdsl/dist/esm/container/ContainerBase/index.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/HashContainer/Base/index.d.ts +29 -0
- package/node_modules/js-sdsl/dist/esm/container/HashContainer/Base/index.js +201 -0
- package/node_modules/js-sdsl/dist/esm/container/HashContainer/Base/index.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/HashContainer/HashMap.d.ts +49 -0
- package/node_modules/js-sdsl/dist/esm/container/HashContainer/HashMap.js +248 -0
- package/node_modules/js-sdsl/dist/esm/container/HashContainer/HashMap.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/HashContainer/HashSet.d.ts +39 -0
- package/node_modules/js-sdsl/dist/esm/container/HashContainer/HashSet.js +223 -0
- package/node_modules/js-sdsl/dist/esm/container/HashContainer/HashSet.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/OtherContainer/PriorityQueue.d.ts +79 -0
- package/node_modules/js-sdsl/dist/esm/container/OtherContainer/PriorityQueue.js +171 -0
- package/node_modules/js-sdsl/dist/esm/container/OtherContainer/PriorityQueue.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/OtherContainer/Queue.d.ts +22 -0
- package/node_modules/js-sdsl/dist/esm/container/OtherContainer/Queue.js +69 -0
- package/node_modules/js-sdsl/dist/esm/container/OtherContainer/Queue.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/OtherContainer/Stack.d.ts +22 -0
- package/node_modules/js-sdsl/dist/esm/container/OtherContainer/Stack.js +59 -0
- package/node_modules/js-sdsl/dist/esm/container/OtherContainer/Stack.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/RandomIterator.d.ts +9 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/RandomIterator.js +78 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/RandomIterator.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/index.d.ts +67 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/index.js +33 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/Base/index.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/Deque.d.ts +58 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/Deque.js +498 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/Deque.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/LinkList.d.ts +58 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/LinkList.js +456 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/LinkList.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/Vector.d.ts +40 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/Vector.js +323 -0
- package/node_modules/js-sdsl/dist/esm/container/SequentialContainer/Vector.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/TreeIterator.d.ts +18 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/TreeIterator.js +98 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/TreeIterator.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/TreeNode.d.ts +47 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/TreeNode.js +132 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/TreeNode.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/index.d.ts +58 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/index.js +600 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/Base/index.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/OrderedMap.d.ts +62 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/OrderedMap.js +265 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/OrderedMap.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/OrderedSet.d.ts +54 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/OrderedSet.js +245 -0
- package/node_modules/js-sdsl/dist/esm/container/TreeContainer/OrderedSet.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/index.d.ts +21 -0
- package/node_modules/js-sdsl/dist/esm/index.js +20 -0
- package/node_modules/js-sdsl/dist/esm/index.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/utils/checkObject.d.ts +1 -0
- package/node_modules/js-sdsl/dist/esm/utils/checkObject.js +5 -0
- package/node_modules/js-sdsl/dist/esm/utils/checkObject.js.map +1 -0
- package/node_modules/js-sdsl/dist/esm/utils/throwError.d.ts +1 -0
- package/node_modules/js-sdsl/dist/esm/utils/throwError.js +4 -0
- package/node_modules/js-sdsl/dist/esm/utils/throwError.js.map +1 -0
- package/node_modules/js-sdsl/dist/umd/js-sdsl.js +3154 -0
- package/node_modules/js-sdsl/dist/umd/js-sdsl.min.js +8 -0
- package/node_modules/js-sdsl/dist/umd/js-sdsl.min.js.map +1 -0
- package/node_modules/js-sdsl/package.json +166 -0
- package/node_modules/jsonata/LICENSE +19 -0
- package/node_modules/jsonata/README.md +70 -0
- package/node_modules/jsonata/jsonata-es5.js +9867 -0
- package/node_modules/jsonata/jsonata-es5.min.js +1 -0
- package/node_modules/jsonata/jsonata.d.ts +53 -0
- package/node_modules/jsonata/jsonata.js +7541 -0
- package/node_modules/jsonata/jsonata.min.js +1 -0
- package/node_modules/jsonata/package.json +62 -0
- package/node_modules/lru-cache/LICENSE +15 -0
- package/node_modules/lru-cache/README.md +331 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts +1277 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
- package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts +1277 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/index.js +1542 -0
- package/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/lru-cache/package.json +116 -0
- package/node_modules/minimist/.eslintrc +29 -0
- package/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/node_modules/minimist/.nycrc +14 -0
- package/node_modules/minimist/CHANGELOG.md +298 -0
- package/node_modules/minimist/LICENSE +18 -0
- package/node_modules/minimist/README.md +121 -0
- package/node_modules/minimist/example/parse.js +4 -0
- package/node_modules/minimist/index.js +263 -0
- package/node_modules/minimist/package.json +75 -0
- package/node_modules/minimist/test/all_bool.js +34 -0
- package/node_modules/minimist/test/bool.js +177 -0
- package/node_modules/minimist/test/dash.js +43 -0
- package/node_modules/minimist/test/default_bool.js +37 -0
- package/node_modules/minimist/test/dotted.js +24 -0
- package/node_modules/minimist/test/kv_short.js +32 -0
- package/node_modules/minimist/test/long.js +33 -0
- package/node_modules/minimist/test/num.js +38 -0
- package/node_modules/minimist/test/parse.js +209 -0
- package/node_modules/minimist/test/parse_modified.js +11 -0
- package/node_modules/minimist/test/proto.js +64 -0
- package/node_modules/minimist/test/short.js +69 -0
- package/node_modules/minimist/test/stop_early.js +17 -0
- package/node_modules/minimist/test/unknown.js +104 -0
- package/node_modules/minimist/test/whitespace.js +10 -0
- package/node_modules/mqtt/CONTRIBUTING.md +27 -0
- package/node_modules/mqtt/LICENSE.md +15 -0
- package/node_modules/mqtt/README.md +960 -0
- package/node_modules/mqtt/build/bin/mqtt.d.ts +2 -0
- package/node_modules/mqtt/build/bin/mqtt.js +30 -0
- package/node_modules/mqtt/build/bin/mqtt.js.map +1 -0
- package/node_modules/mqtt/build/bin/pub.d.ts +2 -0
- package/node_modules/mqtt/build/bin/pub.js +147 -0
- package/node_modules/mqtt/build/bin/pub.js.map +1 -0
- package/node_modules/mqtt/build/bin/sub.d.ts +2 -0
- package/node_modules/mqtt/build/bin/sub.js +121 -0
- package/node_modules/mqtt/build/bin/sub.js.map +1 -0
- package/node_modules/mqtt/build/index.d.ts +3 -0
- package/node_modules/mqtt/build/index.js +32 -0
- package/node_modules/mqtt/build/index.js.map +1 -0
- package/node_modules/mqtt/build/lib/BufferedDuplex.d.ts +20 -0
- package/node_modules/mqtt/build/lib/BufferedDuplex.js +78 -0
- package/node_modules/mqtt/build/lib/BufferedDuplex.js.map +1 -0
- package/node_modules/mqtt/build/lib/KeepaliveManager.d.ts +21 -0
- package/node_modules/mqtt/build/lib/KeepaliveManager.js +73 -0
- package/node_modules/mqtt/build/lib/KeepaliveManager.js.map +1 -0
- package/node_modules/mqtt/build/lib/TypedEmitter.d.ts +19 -0
- package/node_modules/mqtt/build/lib/TypedEmitter.js +13 -0
- package/node_modules/mqtt/build/lib/TypedEmitter.js.map +1 -0
- package/node_modules/mqtt/build/lib/client.d.ts +235 -0
- package/node_modules/mqtt/build/lib/client.js +1211 -0
- package/node_modules/mqtt/build/lib/client.js.map +1 -0
- package/node_modules/mqtt/build/lib/connect/ali.d.ts +3 -0
- package/node_modules/mqtt/build/lib/connect/ali.js +108 -0
- package/node_modules/mqtt/build/lib/connect/ali.js.map +1 -0
- package/node_modules/mqtt/build/lib/connect/index.d.ts +10 -0
- package/node_modules/mqtt/build/lib/connect/index.js +192 -0
- package/node_modules/mqtt/build/lib/connect/index.js.map +1 -0
- package/node_modules/mqtt/build/lib/connect/tcp.d.ts +3 -0
- package/node_modules/mqtt/build/lib/connect/tcp.js +18 -0
- package/node_modules/mqtt/build/lib/connect/tcp.js.map +1 -0
- package/node_modules/mqtt/build/lib/connect/tls.d.ts +3 -0
- package/node_modules/mqtt/build/lib/connect/tls.js +38 -0
- package/node_modules/mqtt/build/lib/connect/tls.js.map +1 -0
- package/node_modules/mqtt/build/lib/connect/ws.d.ts +4 -0
- package/node_modules/mqtt/build/lib/connect/ws.js +217 -0
- package/node_modules/mqtt/build/lib/connect/ws.js.map +1 -0
- package/node_modules/mqtt/build/lib/connect/wx.d.ts +6 -0
- package/node_modules/mqtt/build/lib/connect/wx.js +115 -0
- package/node_modules/mqtt/build/lib/connect/wx.js.map +1 -0
- package/node_modules/mqtt/build/lib/default-message-id-provider.d.ts +16 -0
- package/node_modules/mqtt/build/lib/default-message-id-provider.js +24 -0
- package/node_modules/mqtt/build/lib/default-message-id-provider.js.map +1 -0
- package/node_modules/mqtt/build/lib/get-timer.d.ts +8 -0
- package/node_modules/mqtt/build/lib/get-timer.js +53 -0
- package/node_modules/mqtt/build/lib/get-timer.js.map +1 -0
- package/node_modules/mqtt/build/lib/handlers/ack.d.ts +48 -0
- package/node_modules/mqtt/build/lib/handlers/ack.js +131 -0
- package/node_modules/mqtt/build/lib/handlers/ack.js.map +1 -0
- package/node_modules/mqtt/build/lib/handlers/auth.d.ts +3 -0
- package/node_modules/mqtt/build/lib/handlers/auth.js +30 -0
- package/node_modules/mqtt/build/lib/handlers/auth.js.map +1 -0
- package/node_modules/mqtt/build/lib/handlers/connack.d.ts +3 -0
- package/node_modules/mqtt/build/lib/handlers/connack.js +47 -0
- package/node_modules/mqtt/build/lib/handlers/connack.js.map +1 -0
- package/node_modules/mqtt/build/lib/handlers/index.d.ts +3 -0
- package/node_modules/mqtt/build/lib/handlers/index.js +68 -0
- package/node_modules/mqtt/build/lib/handlers/index.js.map +1 -0
- package/node_modules/mqtt/build/lib/handlers/publish.d.ts +3 -0
- package/node_modules/mqtt/build/lib/handlers/publish.js +106 -0
- package/node_modules/mqtt/build/lib/handlers/publish.js.map +1 -0
- package/node_modules/mqtt/build/lib/handlers/pubrel.d.ts +3 -0
- package/node_modules/mqtt/build/lib/handlers/pubrel.js +25 -0
- package/node_modules/mqtt/build/lib/handlers/pubrel.js.map +1 -0
- package/node_modules/mqtt/build/lib/is-browser.d.ts +4 -0
- package/node_modules/mqtt/build/lib/is-browser.js +27 -0
- package/node_modules/mqtt/build/lib/is-browser.js.map +1 -0
- package/node_modules/mqtt/build/lib/shared.d.ts +23 -0
- package/node_modules/mqtt/build/lib/shared.js +41 -0
- package/node_modules/mqtt/build/lib/shared.js.map +1 -0
- package/node_modules/mqtt/build/lib/store.d.ts +24 -0
- package/node_modules/mqtt/build/lib/store.js +80 -0
- package/node_modules/mqtt/build/lib/store.js.map +1 -0
- package/node_modules/mqtt/build/lib/topic-alias-recv.d.ts +9 -0
- package/node_modules/mqtt/build/lib/topic-alias-recv.js +24 -0
- package/node_modules/mqtt/build/lib/topic-alias-recv.js.map +1 -0
- package/node_modules/mqtt/build/lib/topic-alias-send.d.ts +13 -0
- package/node_modules/mqtt/build/lib/topic-alias-send.js +53 -0
- package/node_modules/mqtt/build/lib/topic-alias-send.js.map +1 -0
- package/node_modules/mqtt/build/lib/unique-message-id-provider.d.ts +11 -0
- package/node_modules/mqtt/build/lib/unique-message-id-provider.js +26 -0
- package/node_modules/mqtt/build/lib/unique-message-id-provider.js.map +1 -0
- package/node_modules/mqtt/build/lib/validations.d.ts +2 -0
- package/node_modules/mqtt/build/lib/validations.js +32 -0
- package/node_modules/mqtt/build/lib/validations.js.map +1 -0
- package/node_modules/mqtt/build/mqtt.d.ts +12 -0
- package/node_modules/mqtt/build/mqtt.js +51 -0
- package/node_modules/mqtt/build/mqtt.js.map +1 -0
- package/node_modules/mqtt/build/tsconfig.build.tsbuildinfo +1 -0
- package/node_modules/mqtt/dist/mqtt.esm.js +10 -0
- package/node_modules/mqtt/dist/mqtt.js +21678 -0
- package/node_modules/mqtt/dist/mqtt.min.js +10 -0
- package/node_modules/mqtt/help/help.txt +8 -0
- package/node_modules/mqtt/help/publish.txt +26 -0
- package/node_modules/mqtt/help/subscribe.txt +26 -0
- package/node_modules/mqtt/package.json +171 -0
- package/node_modules/mqtt/src/bin/mqtt.ts +39 -0
- package/node_modules/mqtt/src/bin/pub.ts +174 -0
- package/node_modules/mqtt/src/bin/sub.ts +146 -0
- package/node_modules/mqtt/src/index.ts +4 -0
- package/node_modules/mqtt/src/lib/BufferedDuplex.ts +115 -0
- package/node_modules/mqtt/src/lib/KeepaliveManager.ts +112 -0
- package/node_modules/mqtt/src/lib/TypedEmitter.ts +71 -0
- package/node_modules/mqtt/src/lib/client.ts +2371 -0
- package/node_modules/mqtt/src/lib/connect/ali.ts +127 -0
- package/node_modules/mqtt/src/lib/connect/index.ts +288 -0
- package/node_modules/mqtt/src/lib/connect/tcp.ts +22 -0
- package/node_modules/mqtt/src/lib/connect/tls.ts +54 -0
- package/node_modules/mqtt/src/lib/connect/ws.ts +303 -0
- package/node_modules/mqtt/src/lib/connect/wx.ts +142 -0
- package/node_modules/mqtt/src/lib/default-message-id-provider.ts +99 -0
- package/node_modules/mqtt/src/lib/get-timer.ts +40 -0
- package/node_modules/mqtt/src/lib/handlers/ack.ts +159 -0
- package/node_modules/mqtt/src/lib/handlers/auth.ts +44 -0
- package/node_modules/mqtt/src/lib/handlers/connack.ts +55 -0
- package/node_modules/mqtt/src/lib/handlers/index.ts +74 -0
- package/node_modules/mqtt/src/lib/handlers/publish.ts +183 -0
- package/node_modules/mqtt/src/lib/handlers/pubrel.ts +27 -0
- package/node_modules/mqtt/src/lib/is-browser.ts +46 -0
- package/node_modules/mqtt/src/lib/shared.ts +87 -0
- package/node_modules/mqtt/src/lib/store.ts +166 -0
- package/node_modules/mqtt/src/lib/topic-alias-recv.ts +48 -0
- package/node_modules/mqtt/src/lib/topic-alias-send.ts +96 -0
- package/node_modules/mqtt/src/lib/unique-message-id-provider.ts +64 -0
- package/node_modules/mqtt/src/lib/validations.ts +46 -0
- package/node_modules/mqtt/src/mqtt.ts +28 -0
- package/node_modules/mqtt-packet/.github/workflows/ci.yml +27 -0
- package/node_modules/mqtt-packet/CONTRIBUTING.md +27 -0
- package/node_modules/mqtt-packet/LICENSE.md +13 -0
- package/node_modules/mqtt-packet/README.md +491 -0
- package/node_modules/mqtt-packet/benchmarks/generate.js +26 -0
- package/node_modules/mqtt-packet/benchmarks/generateNet.js +50 -0
- package/node_modules/mqtt-packet/benchmarks/parse.js +19 -0
- package/node_modules/mqtt-packet/benchmarks/writeToStream.js +48 -0
- package/node_modules/mqtt-packet/constants.js +291 -0
- package/node_modules/mqtt-packet/generate.js +57 -0
- package/node_modules/mqtt-packet/mqtt.js +3 -0
- package/node_modules/mqtt-packet/numbers.js +59 -0
- package/node_modules/mqtt-packet/package.json +48 -0
- package/node_modules/mqtt-packet/packet.js +13 -0
- package/node_modules/mqtt-packet/parser.js +809 -0
- package/node_modules/mqtt-packet/test.js +3177 -0
- package/node_modules/mqtt-packet/testRandom.js +86 -0
- package/node_modules/mqtt-packet/types/index.d.ts +257 -0
- package/node_modules/mqtt-packet/writeToStream.js +1127 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +37 -0
- package/node_modules/ms/readme.md +60 -0
- package/node_modules/number-allocator/.github/workflows/nodejs.yml +33 -0
- package/node_modules/number-allocator/CHANGELOG.md +47 -0
- package/node_modules/number-allocator/LICENSE +21 -0
- package/node_modules/number-allocator/README.md +203 -0
- package/node_modules/number-allocator/index.js +7 -0
- package/node_modules/number-allocator/karma.conf.js +63 -0
- package/node_modules/number-allocator/lib/number-allocator.js +249 -0
- package/node_modules/number-allocator/package.json +69 -0
- package/node_modules/number-allocator/test/test.js +337 -0
- package/node_modules/number-allocator/test/typescript/test.ts +24 -0
- package/node_modules/number-allocator/test/typescript/tsconfig.json +14 -0
- package/node_modules/number-allocator/types/index.d.ts +1 -0
- package/node_modules/number-allocator/types/lib/number-allocator.d.ts +65 -0
- package/node_modules/process/.eslintrc +21 -0
- package/node_modules/process/LICENSE +22 -0
- package/node_modules/process/README.md +26 -0
- package/node_modules/process/browser.js +184 -0
- package/node_modules/process/index.js +2 -0
- package/node_modules/process/package.json +27 -0
- package/node_modules/process/test.js +199 -0
- package/node_modules/process-nextick-args/index.js +45 -0
- package/node_modules/process-nextick-args/license.md +19 -0
- package/node_modules/process-nextick-args/package.json +25 -0
- package/node_modules/process-nextick-args/readme.md +18 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +116 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +4 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +4 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +4 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +4 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +4 -0
- package/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js +52 -0
- package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +157 -0
- package/node_modules/readable-stream/lib/internal/streams/compose.js +194 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +290 -0
- package/node_modules/readable-stream/lib/internal/streams/duplex.js +143 -0
- package/node_modules/readable-stream/lib/internal/streams/duplexify.js +378 -0
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +284 -0
- package/node_modules/readable-stream/lib/internal/streams/from.js +98 -0
- package/node_modules/readable-stream/lib/internal/streams/lazy_transform.js +51 -0
- package/node_modules/readable-stream/lib/internal/streams/legacy.js +89 -0
- package/node_modules/readable-stream/lib/internal/streams/operators.js +457 -0
- package/node_modules/readable-stream/lib/internal/streams/passthrough.js +39 -0
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +471 -0
- package/node_modules/readable-stream/lib/internal/streams/readable.js +1288 -0
- package/node_modules/readable-stream/lib/internal/streams/state.js +39 -0
- package/node_modules/readable-stream/lib/internal/streams/transform.js +180 -0
- package/node_modules/readable-stream/lib/internal/streams/utils.js +329 -0
- package/node_modules/readable-stream/lib/internal/streams/writable.js +817 -0
- package/node_modules/readable-stream/lib/internal/validators.js +530 -0
- package/node_modules/readable-stream/lib/ours/browser.js +35 -0
- package/node_modules/readable-stream/lib/ours/errors.js +341 -0
- package/node_modules/readable-stream/lib/ours/index.js +65 -0
- package/node_modules/readable-stream/lib/ours/primordials.js +107 -0
- package/node_modules/readable-stream/lib/ours/util.js +200 -0
- package/node_modules/readable-stream/lib/stream/promises.js +43 -0
- package/node_modules/readable-stream/lib/stream.js +141 -0
- package/node_modules/readable-stream/package.json +86 -0
- package/node_modules/regenerator-runtime/LICENSE +21 -0
- package/node_modules/regenerator-runtime/README.md +31 -0
- package/node_modules/regenerator-runtime/package.json +19 -0
- package/node_modules/regenerator-runtime/path.js +11 -0
- package/node_modules/regenerator-runtime/runtime.js +761 -0
- package/node_modules/reinterval/.npmignore +27 -0
- package/node_modules/reinterval/.travis.yml +20 -0
- package/node_modules/reinterval/LICENSE +22 -0
- package/node_modules/reinterval/README.md +60 -0
- package/node_modules/reinterval/index.js +57 -0
- package/node_modules/reinterval/package.json +32 -0
- package/node_modules/reinterval/tests/test.js +52 -0
- package/node_modules/rfdc/.github/workflows/ci.yml +21 -0
- package/node_modules/rfdc/LICENSE +15 -0
- package/node_modules/rfdc/default.js +3 -0
- package/node_modules/rfdc/index.d.ts +13 -0
- package/node_modules/rfdc/index.js +198 -0
- package/node_modules/rfdc/index.test-d.ts +13 -0
- package/node_modules/rfdc/package.json +73 -0
- package/node_modules/rfdc/readme.md +181 -0
- package/node_modules/rfdc/test/index.js +306 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/split2/LICENSE +13 -0
- package/node_modules/split2/README.md +85 -0
- package/node_modules/split2/bench.js +27 -0
- package/node_modules/split2/index.js +141 -0
- package/node_modules/split2/package.json +39 -0
- package/node_modules/split2/test.js +409 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/string_decoder/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/string_decoder/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/string_decoder/node_modules/safe-buffer/package.json +51 -0
- package/node_modules/string_decoder/package.json +34 -0
- package/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/tslib/README.md +164 -0
- package/node_modules/tslib/SECURITY.md +41 -0
- package/node_modules/tslib/modules/index.d.ts +37 -0
- package/node_modules/tslib/modules/index.js +68 -0
- package/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/tslib/package.json +47 -0
- package/node_modules/tslib/tslib.d.ts +453 -0
- package/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/tslib/tslib.es6.js +379 -0
- package/node_modules/tslib/tslib.es6.mjs +378 -0
- package/node_modules/tslib/tslib.html +1 -0
- package/node_modules/tslib/tslib.js +429 -0
- package/node_modules/typedarray/.travis.yml +4 -0
- package/node_modules/typedarray/LICENSE +35 -0
- package/node_modules/typedarray/example/tarray.js +4 -0
- package/node_modules/typedarray/index.js +630 -0
- package/node_modules/typedarray/package.json +55 -0
- package/node_modules/typedarray/readme.markdown +61 -0
- package/node_modules/typedarray/test/server/undef_globals.js +19 -0
- package/node_modules/typedarray/test/tarray.js +10 -0
- package/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +108 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/node_modules/undici-types/dispatcher.d.ts +255 -0
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/undici-types/errors.d.ts +149 -0
- package/node_modules/undici-types/eventsource.d.ts +63 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +15 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +71 -0
- package/node_modules/undici-types/interceptors.d.ts +15 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/node_modules/undici-types/readable.d.ts +60 -0
- package/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/undici-types/webidl.d.ts +222 -0
- package/node_modules/undici-types/websocket.d.ts +152 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/worker-timers/LICENSE +21 -0
- package/node_modules/worker-timers/README.md +79 -0
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.d.ts +2 -0
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.d.ts.map +1 -0
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.js +15 -0
- package/node_modules/worker-timers/build/es2019/factories/load-or-return-broker.js.map +1 -0
- package/node_modules/worker-timers/build/es2019/module.d.ts +6 -0
- package/node_modules/worker-timers/build/es2019/module.d.ts.map +1 -0
- package/node_modules/worker-timers/build/es2019/module.js +9 -0
- package/node_modules/worker-timers/build/es2019/module.js.map +1 -0
- package/node_modules/worker-timers/build/es2019/worker/worker.d.ts +2 -0
- package/node_modules/worker-timers/build/es2019/worker/worker.d.ts.map +1 -0
- package/node_modules/worker-timers/build/es2019/worker/worker.js +3 -0
- package/node_modules/worker-timers/build/es2019/worker/worker.js.map +1 -0
- package/node_modules/worker-timers/build/es5/bundle.js +50 -0
- package/node_modules/worker-timers/package.json +106 -0
- package/node_modules/worker-timers/src/factories/load-or-return-broker.ts +19 -0
- package/node_modules/worker-timers/src/module.ts +13 -0
- package/node_modules/worker-timers/src/tsconfig.json +6 -0
- package/node_modules/worker-timers/src/worker/worker.ts +2 -0
- package/node_modules/worker-timers-broker/LICENSE +21 -0
- package/node_modules/worker-timers-broker/README.md +5 -0
- package/node_modules/worker-timers-broker/build/es2019/guards/call-notification.d.ts +3 -0
- package/node_modules/worker-timers-broker/build/es2019/guards/call-notification.d.ts.map +1 -0
- package/node_modules/worker-timers-broker/build/es2019/guards/call-notification.js +4 -0
- package/node_modules/worker-timers-broker/build/es2019/guards/call-notification.js.map +1 -0
- package/node_modules/worker-timers-broker/build/es2019/guards/clear-response.d.ts +3 -0
- package/node_modules/worker-timers-broker/build/es2019/guards/clear-response.d.ts.map +1 -0
- package/node_modules/worker-timers-broker/build/es2019/guards/clear-response.js +4 -0
- package/node_modules/worker-timers-broker/build/es2019/guards/clear-response.js.map +1 -0
- package/node_modules/worker-timers-broker/build/es2019/module.d.ts +7 -0
- package/node_modules/worker-timers-broker/build/es2019/module.d.ts.map +1 -0
- package/node_modules/worker-timers-broker/build/es2019/module.js +142 -0
- package/node_modules/worker-timers-broker/build/es2019/module.js.map +1 -0
- package/node_modules/worker-timers-broker/build/es5/bundle.js +162 -0
- package/node_modules/worker-timers-broker/package.json +84 -0
- package/node_modules/worker-timers-broker/src/guards/call-notification.ts +5 -0
- package/node_modules/worker-timers-broker/src/guards/clear-response.ts +5 -0
- package/node_modules/worker-timers-broker/src/module.ts +173 -0
- package/node_modules/worker-timers-broker/src/tsconfig.json +6 -0
- package/node_modules/worker-timers-worker/LICENSE +21 -0
- package/node_modules/worker-timers-worker/README.md +5 -0
- package/node_modules/worker-timers-worker/build/es2019/helpers/timer.d.ts +5 -0
- package/node_modules/worker-timers-worker/build/es2019/helpers/timer.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/helpers/timer.js +50 -0
- package/node_modules/worker-timers-worker/build/es2019/helpers/timer.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/broker-event.d.ts +5 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/broker-event.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/broker-event.js +2 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/broker-event.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/call-notification.d.ts +10 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/call-notification.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/call-notification.js +2 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/call-notification.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/clear-request.d.ts +10 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/clear-request.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/clear-request.js +2 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/clear-request.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/clear-response.d.ts +5 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/clear-response.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/clear-response.js +2 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/clear-response.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/error-notification.d.ts +8 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/error-notification.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/error-notification.js +2 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/error-notification.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/error-response.d.ts +8 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/error-response.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/error-response.js +2 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/error-response.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/index.d.ts +9 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/index.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/index.js +9 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/index.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/set-notification.d.ts +12 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/set-notification.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/set-notification.js +2 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/set-notification.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/worker-event.d.ts +5 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/worker-event.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/worker-event.js +2 -0
- package/node_modules/worker-timers-worker/build/es2019/interfaces/worker-event.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/module.d.ts +3 -0
- package/node_modules/worker-timers-worker/build/es2019/module.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/module.js +50 -0
- package/node_modules/worker-timers-worker/build/es2019/module.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/types/broker-message.d.ts +3 -0
- package/node_modules/worker-timers-worker/build/es2019/types/broker-message.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/types/broker-message.js +2 -0
- package/node_modules/worker-timers-worker/build/es2019/types/broker-message.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/types/index.d.ts +4 -0
- package/node_modules/worker-timers-worker/build/es2019/types/index.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/types/index.js +4 -0
- package/node_modules/worker-timers-worker/build/es2019/types/index.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/types/timer-type.d.ts +2 -0
- package/node_modules/worker-timers-worker/build/es2019/types/timer-type.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/types/timer-type.js +2 -0
- package/node_modules/worker-timers-worker/build/es2019/types/timer-type.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/types/worker-message.d.ts +3 -0
- package/node_modules/worker-timers-worker/build/es2019/types/worker-message.d.ts.map +1 -0
- package/node_modules/worker-timers-worker/build/es2019/types/worker-message.js +2 -0
- package/node_modules/worker-timers-worker/build/es2019/types/worker-message.js.map +1 -0
- package/node_modules/worker-timers-worker/build/es5/bundle.js +117 -0
- package/node_modules/worker-timers-worker/package.json +91 -0
- package/node_modules/worker-timers-worker/src/helpers/timer.ts +68 -0
- package/node_modules/worker-timers-worker/src/interfaces/broker-event.ts +5 -0
- package/node_modules/worker-timers-worker/src/interfaces/call-notification.ts +13 -0
- package/node_modules/worker-timers-worker/src/interfaces/clear-request.ts +13 -0
- package/node_modules/worker-timers-worker/src/interfaces/clear-response.ts +5 -0
- package/node_modules/worker-timers-worker/src/interfaces/error-notification.ts +9 -0
- package/node_modules/worker-timers-worker/src/interfaces/error-response.ts +9 -0
- package/node_modules/worker-timers-worker/src/interfaces/index.ts +8 -0
- package/node_modules/worker-timers-worker/src/interfaces/set-notification.ts +17 -0
- package/node_modules/worker-timers-worker/src/interfaces/worker-event.ts +5 -0
- package/node_modules/worker-timers-worker/src/module.ts +54 -0
- package/node_modules/worker-timers-worker/src/tsconfig.json +6 -0
- package/node_modules/worker-timers-worker/src/types/broker-message.ts +3 -0
- package/node_modules/worker-timers-worker/src/types/index.ts +3 -0
- package/node_modules/worker-timers-worker/src/types/timer-type.ts +1 -0
- package/node_modules/worker-timers-worker/src/types/worker-message.ts +3 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +13 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +18 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +514 -0
- package/node_modules/ws/lib/receiver.js +706 -0
- package/node_modules/ws/lib/sender.js +602 -0
- package/node_modules/ws/lib/stream.js +159 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/ws/lib/websocket-server.js +540 -0
- package/node_modules/ws/lib/websocket.js +1388 -0
- package/node_modules/ws/package.json +69 -0
- package/node_modules/ws/wrapper.mjs +8 -0
- package/package.json +51 -0
|
@@ -0,0 +1,1458 @@
|
|
|
1
|
+
import { CorsOptions } from "cors";
|
|
2
|
+
import { EventEmitter } from "events";
|
|
3
|
+
import { Express, NextFunction, Request, Response } from "express";
|
|
4
|
+
import { Server as HttpsServer, ServerOptions } from "https";
|
|
5
|
+
import { Strategy } from "passport";
|
|
6
|
+
|
|
7
|
+
import { EditorAPIModule } from "@node-red/editor-api";
|
|
8
|
+
import { Hooks, I18n, Log, Util } from "@node-red/util";
|
|
9
|
+
|
|
10
|
+
declare const runtime: runtime.RuntimeModule;
|
|
11
|
+
|
|
12
|
+
export = runtime;
|
|
13
|
+
|
|
14
|
+
declare namespace runtime {
|
|
15
|
+
type Permission =
|
|
16
|
+
| "*"
|
|
17
|
+
| "read"
|
|
18
|
+
| "flows.read"
|
|
19
|
+
| "flows.write"
|
|
20
|
+
| "nodes.read"
|
|
21
|
+
| "nodes.write"
|
|
22
|
+
| "context.read"
|
|
23
|
+
| "context.write";
|
|
24
|
+
|
|
25
|
+
interface UsernamePermissions {
|
|
26
|
+
username: string;
|
|
27
|
+
permissions: Permission | Permission[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface AnonymousPermissions {
|
|
31
|
+
anonymous: true;
|
|
32
|
+
permissions: Permission | Permission[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
type User = UsernamePermissions | AnonymousPermissions;
|
|
36
|
+
|
|
37
|
+
interface LocalSettings {
|
|
38
|
+
/**
|
|
39
|
+
* the tcp port that the Node-RED web server is listening on
|
|
40
|
+
*/
|
|
41
|
+
uiPort: number;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Interfaces Node-RED UI accepts connections on
|
|
45
|
+
*/
|
|
46
|
+
uiHost: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Retry time in milliseconds for MQTT connections
|
|
50
|
+
*/
|
|
51
|
+
mqttReconnectTime?: number | undefined;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Retry time in milliseconds for Serial port connections
|
|
55
|
+
*/
|
|
56
|
+
serialReconnectTime?: number | undefined;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Retry time in milliseconds for TCP socket connections
|
|
60
|
+
*/
|
|
61
|
+
socketReconnectTime?: number | undefined;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Timeout in milliseconds for TCP server socket connections
|
|
65
|
+
*/
|
|
66
|
+
socketTimeout?: number | undefined;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Maximum number of messages to wait in queue while attempting to connect to TCP socket
|
|
70
|
+
*/
|
|
71
|
+
tcpMsgQueueSize?: number | undefined;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Timeout in milliseconds for inbound WebSocket connections that do not
|
|
75
|
+
* match any configured node. Defaults to 5000
|
|
76
|
+
*/
|
|
77
|
+
inboundWebSocketTimeout?: number | undefined;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Timeout in milliseconds for HTTP request connections
|
|
81
|
+
*/
|
|
82
|
+
httpRequestTimeout?: number | undefined;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The maximum length, in characters, of any message sent to the debug sidebar tab
|
|
86
|
+
*/
|
|
87
|
+
debugMaxLength?: number | undefined;
|
|
88
|
+
|
|
89
|
+
/** Maximum buffer size for the exec node. Defaults to 10Mb */
|
|
90
|
+
execMaxBufferSize?: number | undefined;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The maximum number of messages nodes will buffer internally as part of their
|
|
94
|
+
* operation. This applies across a range of nodes that operate on message sequences.
|
|
95
|
+
*/
|
|
96
|
+
nodeMessageBufferMaxLength?: number | undefined;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* To disable the option for using local files for storing keys and certificates in the TLS configuration
|
|
100
|
+
* node, set this to true
|
|
101
|
+
*/
|
|
102
|
+
tlsConfigDisableLocalFiles?: boolean | undefined;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Colourise the console output of the debug node
|
|
106
|
+
*/
|
|
107
|
+
debugUseColors?: boolean | undefined;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The file containing the flows. If not set, it defaults to flows_<hostname>.json
|
|
111
|
+
*/
|
|
112
|
+
flowFile?: string | undefined;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* To enabled pretty-printing of the flow within the flow file, set the property to true
|
|
116
|
+
*/
|
|
117
|
+
flowFilePretty?: boolean | undefined;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* By default, credentials are encrypted in storage using a generated key. To
|
|
121
|
+
* specify your own secret, set the following property.
|
|
122
|
+
* If you want to disable encryption of credentials, set this property to false.
|
|
123
|
+
* Note: once you set this property, do not change it - doing so will prevent
|
|
124
|
+
* node-red from being able to decrypt your existing credentials and they will be
|
|
125
|
+
* lost.
|
|
126
|
+
*/
|
|
127
|
+
credentialSecret?: string | false | undefined;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* By default, all user data is stored in a directory called `.node-red` under
|
|
131
|
+
* the user's home directory. To use a different location, the following
|
|
132
|
+
* property can be used
|
|
133
|
+
*/
|
|
134
|
+
userDir?: string | undefined;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Node-RED scans the `nodes` directory in the userDir to find local node files.
|
|
138
|
+
* The following property can be used to specify an additional directory to scan.
|
|
139
|
+
*/
|
|
140
|
+
nodesDir?: string | undefined;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* The following property can be used to add a custom middleware function
|
|
144
|
+
* in front of all admin http routes. For example, to set custom http
|
|
145
|
+
* headers. It can be a single function or an array of middleware functions.
|
|
146
|
+
*/
|
|
147
|
+
httpAdminMiddleware?: ((req: Request, res: Response, next: NextFunction) => void) | undefined;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* By default, the Node-RED UI is available at http://localhost:1880/
|
|
151
|
+
* The following property can be used to specify a different root path.
|
|
152
|
+
* If set to false, this is disabled.
|
|
153
|
+
*/
|
|
154
|
+
httpAdminRoot?: string | false | undefined;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Some nodes, such as HTTP In, can be used to listen for incoming http requests.
|
|
158
|
+
* By default, these are served relative to '/'. The following property
|
|
159
|
+
* can be used to specify a different root path. If set to false, this is
|
|
160
|
+
* disabled.
|
|
161
|
+
*/
|
|
162
|
+
httpNodeRoot?: string | false | undefined;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The following property can be used in place of 'httpAdminRoot' and 'httpNodeRoot',
|
|
166
|
+
* to apply the same root to both parts.
|
|
167
|
+
*/
|
|
168
|
+
httpRoot?: string | false | undefined;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* When httpAdminRoot is used to move the UI to a different root path, the
|
|
172
|
+
* following property can be used to identify a directory of static content
|
|
173
|
+
* that should be served at http://localhost:1880/.
|
|
174
|
+
*
|
|
175
|
+
* When httpStaticRoot is set differently to httpAdminRoot, there is no need
|
|
176
|
+
* to move httpAdminRoot.
|
|
177
|
+
*/
|
|
178
|
+
httpStatic?:
|
|
179
|
+
| Array<{
|
|
180
|
+
path: string;
|
|
181
|
+
root?: string | undefined;
|
|
182
|
+
}>
|
|
183
|
+
| string
|
|
184
|
+
| undefined;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* All static routes will be appended to httpStaticRoot
|
|
188
|
+
* e.g. if httpStatic = "/home/nol/docs" and httpStaticRoot = "/static/"
|
|
189
|
+
* then "/home/nol/docs" will be served at "/static/"
|
|
190
|
+
* e.g. if httpStatic = [{path: '/home/nol/pics/', root: "/img/"}]
|
|
191
|
+
* and httpStaticRoot = "/static/"
|
|
192
|
+
* then "/home/nol/pics/" will be served at "/static/img/"
|
|
193
|
+
*/
|
|
194
|
+
httpStaticRoot?: string | undefined;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* The maximum size of HTTP request that will be accepted by the runtime api.
|
|
198
|
+
*/
|
|
199
|
+
apiMaxLength?: string | undefined;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* If you installed the optional node-red-dashboard, the property contains its
|
|
203
|
+
* path relative to httpRoot
|
|
204
|
+
*/
|
|
205
|
+
ui?: { path: string } | undefined;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* For password protected Node-RED editor and admin API, the property
|
|
209
|
+
* contains the auth data.
|
|
210
|
+
*
|
|
211
|
+
* See http://nodered.org/docs/security.html for details.
|
|
212
|
+
*/
|
|
213
|
+
adminAuth?:
|
|
214
|
+
| {
|
|
215
|
+
type: "credentials";
|
|
216
|
+
users: Array<{
|
|
217
|
+
username: string;
|
|
218
|
+
password: string;
|
|
219
|
+
permissions: Permission | Permission[];
|
|
220
|
+
}>;
|
|
221
|
+
default?: {
|
|
222
|
+
permissions: Permission | Permission[];
|
|
223
|
+
} | undefined;
|
|
224
|
+
}
|
|
225
|
+
| {
|
|
226
|
+
type: "credentials";
|
|
227
|
+
users: (username: string) => Promise<UsernamePermissions | null>;
|
|
228
|
+
authenticate: (username: string, password: string) => Promise<UsernamePermissions | null>;
|
|
229
|
+
default: () => Promise<AnonymousPermissions | null>;
|
|
230
|
+
}
|
|
231
|
+
| {
|
|
232
|
+
type: "strategy";
|
|
233
|
+
strategy: {
|
|
234
|
+
name: string;
|
|
235
|
+
label: string;
|
|
236
|
+
icon: string;
|
|
237
|
+
strategy: Strategy;
|
|
238
|
+
options: object;
|
|
239
|
+
};
|
|
240
|
+
users: UsernamePermissions[] | ((username: string) => Promise<UsernamePermissions | null>);
|
|
241
|
+
}
|
|
242
|
+
| undefined;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* For password protected node-defined HTTP endpoints (httpNodeRoot),
|
|
246
|
+
* contains the auth data.
|
|
247
|
+
*
|
|
248
|
+
* The pass field is a bcrypt hash of the password.
|
|
249
|
+
* See http://nodered.org/docs/security.html#generating-the-password-hash
|
|
250
|
+
*/
|
|
251
|
+
httpNodeAuth?: { user: string; pass: string } | undefined;
|
|
252
|
+
/**
|
|
253
|
+
* For password protected static content (httpStatic), contains the auth data.
|
|
254
|
+
*
|
|
255
|
+
* The pass field is a bcrypt hash of the password.
|
|
256
|
+
* See http://nodered.org/docs/security.html#generating-the-password-hash
|
|
257
|
+
*/
|
|
258
|
+
httpStaticAuth?: { user: string; pass: string } | undefined;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* HTTPS options
|
|
262
|
+
*/
|
|
263
|
+
https?: ServerOptions | undefined;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Editor disabled.
|
|
267
|
+
*/
|
|
268
|
+
disableEditor?: boolean | undefined;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* The following property can be used to configure cross-origin resource sharing
|
|
272
|
+
* in the HTTP nodes.
|
|
273
|
+
*/
|
|
274
|
+
httpNodeCors?: CorsOptions | undefined;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* The following property can be used to add a custom middleware function
|
|
278
|
+
* in front of all http in nodes. This allows custom authentication to be
|
|
279
|
+
* applied to all http in nodes, or any other sort of common request processing.
|
|
280
|
+
*/
|
|
281
|
+
httpNodeMiddleware?: ((req: Request, res: Response, next: NextFunction) => void) | undefined;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* The following property can be used to pass custom options to the Express.js
|
|
285
|
+
* server used by Node-RED. For a full list of available options, refer
|
|
286
|
+
* to http://expressjs.com/en/api.html#app.settings.table
|
|
287
|
+
*/
|
|
288
|
+
httpServerOptions?: object | undefined;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* The following property can be used to verify websocket connection attempts.
|
|
292
|
+
* This allows, for example, the HTTP request headers to be checked to ensure
|
|
293
|
+
* they include valid authentication information.
|
|
294
|
+
*/
|
|
295
|
+
webSocketNodeVerifyClient?:
|
|
296
|
+
| ((info: { origin: string; req: Request; secure: boolean }) => boolean)
|
|
297
|
+
| ((
|
|
298
|
+
info: {
|
|
299
|
+
origin: string;
|
|
300
|
+
req: Request;
|
|
301
|
+
secure: boolean;
|
|
302
|
+
},
|
|
303
|
+
callback: (result: boolean, code?: string | undefined, reason?: string | undefined) => void,
|
|
304
|
+
) => void)
|
|
305
|
+
| undefined;
|
|
306
|
+
|
|
307
|
+
/** Allow the Function node to load additional npm modules directly */
|
|
308
|
+
functionExternalModules?: boolean | undefined;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* The following property can be used to seed Global Context with predefined
|
|
312
|
+
* values. This allows extra node modules to be made available with the
|
|
313
|
+
* Function node.
|
|
314
|
+
* For example,
|
|
315
|
+
* functionGlobalContext: { os:require('os') }
|
|
316
|
+
* can be accessed in a function block as:
|
|
317
|
+
* global.get("os")
|
|
318
|
+
*/
|
|
319
|
+
functionGlobalContext?: object | undefined;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* `global.keys()` returns a list of all properties set in global context.
|
|
323
|
+
* This allows them to be displayed in the Context Sidebar within the editor.
|
|
324
|
+
* In some circumstances it is not desirable to expose them to the editor. The
|
|
325
|
+
* following property can be used to hide any property set in `functionGlobalContext`
|
|
326
|
+
* from being list by `global.keys()`.
|
|
327
|
+
* By default, the property is set to false to avoid accidental exposure of
|
|
328
|
+
* their values. Setting this to true will cause the keys to be listed.
|
|
329
|
+
*/
|
|
330
|
+
exportGlobalContextKeys?: boolean | undefined;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Configure how the runtime will handle external npm modules.
|
|
334
|
+
* This covers:
|
|
335
|
+
* - whether the editor will allow new node modules to be installed
|
|
336
|
+
* - whether nodes, such as the Function node are allowed to have their
|
|
337
|
+
* own dynamically configured dependencies.
|
|
338
|
+
* The allow/denyList options can be used to limit what modules the runtime
|
|
339
|
+
* will install/load. It can use '*' as a wildcard that matches anything.
|
|
340
|
+
*/
|
|
341
|
+
externalModules?: {
|
|
342
|
+
autoInstall?:
|
|
343
|
+
| boolean
|
|
344
|
+
| undefined; /** Whether the runtime will attempt to automatically install missing modules */
|
|
345
|
+
autoInstallRetry?: number | undefined; /** Interval, in seconds, between reinstall attempts */
|
|
346
|
+
palette?: {
|
|
347
|
+
/** Configuration for the Palette Manager */
|
|
348
|
+
allowInstall?: boolean | undefined; /** Enable the Palette Manager in the editor */
|
|
349
|
+
allowUpdate?: boolean | undefined; /** Allow modules to be updated in the Palette Manager */
|
|
350
|
+
allowUpload?: boolean | undefined; /** Allow module tgz files to be uploaded and installed */
|
|
351
|
+
allowList?: string[] | undefined;
|
|
352
|
+
denyList?: string[] | undefined;
|
|
353
|
+
allowUpdateList?: string[] | undefined;
|
|
354
|
+
denyUpdateList?: string[] | undefined;
|
|
355
|
+
} | undefined;
|
|
356
|
+
modules?: {
|
|
357
|
+
/** Configuration for node-specified modules */
|
|
358
|
+
allowInstall?: boolean | undefined;
|
|
359
|
+
allowList?: string[] | undefined;
|
|
360
|
+
denyList?: string[] | undefined;
|
|
361
|
+
} | undefined;
|
|
362
|
+
} | undefined;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Context Storage
|
|
366
|
+
* The following property can be used to enable context storage. The configuration
|
|
367
|
+
* provided here will enable file-based context that flushes to disk every 30 seconds.
|
|
368
|
+
* Refer to the documentation for further options: https://nodered.org/docs/api/context/
|
|
369
|
+
*/
|
|
370
|
+
contextStorage?: {
|
|
371
|
+
[key: string]:
|
|
372
|
+
| string
|
|
373
|
+
| {
|
|
374
|
+
module: string;
|
|
375
|
+
};
|
|
376
|
+
} | undefined;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* The following property can be used to order the categories in the editor
|
|
380
|
+
* palette. If a node's category is not in the list, the category will get
|
|
381
|
+
* added to the end of the palette.
|
|
382
|
+
* If not set, the following default order is used:
|
|
383
|
+
* paletteCategories: ['subflows','flow','input','output','function','parser','social','mobile','storage','analysis','advanced'],
|
|
384
|
+
*/
|
|
385
|
+
paletteCategories?: string[] | undefined;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Configure the logging output
|
|
389
|
+
*/
|
|
390
|
+
logging?: {
|
|
391
|
+
/**
|
|
392
|
+
* Only console logging is currently supported
|
|
393
|
+
*/
|
|
394
|
+
console?: {
|
|
395
|
+
/**
|
|
396
|
+
* Level of logging to be recorded. Options are:
|
|
397
|
+
* fatal - only those errors which make the application unusable should be recorded
|
|
398
|
+
* error - record errors which are deemed fatal for a particular request + fatal errors
|
|
399
|
+
* warn - record problems which are non fatal + errors + fatal errors
|
|
400
|
+
* info - record information about the general running of the application + warn + error + fatal errors
|
|
401
|
+
* debug - record information which is more verbose than info + info + warn + error + fatal errors
|
|
402
|
+
* trace - record very detailed logging + debug + info + warn + error + fatal errors
|
|
403
|
+
* off - turn off all logging (doesn't affect metrics or audit)
|
|
404
|
+
*/
|
|
405
|
+
level: "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "off";
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Whether or not to include metric events in the log output
|
|
409
|
+
*/
|
|
410
|
+
metrics: boolean;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Whether or not to include audit events in the log output
|
|
414
|
+
*/
|
|
415
|
+
audit: boolean;
|
|
416
|
+
} | undefined;
|
|
417
|
+
} | undefined;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Customising the editor
|
|
421
|
+
*/
|
|
422
|
+
editorTheme?: {
|
|
423
|
+
page?: {
|
|
424
|
+
/**
|
|
425
|
+
* Page title
|
|
426
|
+
*/
|
|
427
|
+
title?: string | undefined;
|
|
428
|
+
/**
|
|
429
|
+
* Absolute path to theme icon
|
|
430
|
+
*/
|
|
431
|
+
favicon?: string | undefined;
|
|
432
|
+
/**
|
|
433
|
+
* Absolute path to custom css file
|
|
434
|
+
*/
|
|
435
|
+
css?: string | undefined;
|
|
436
|
+
/**
|
|
437
|
+
* Absolute paths to custom script files
|
|
438
|
+
*/
|
|
439
|
+
scripts?: string | undefined[];
|
|
440
|
+
} | undefined;
|
|
441
|
+
header?: {
|
|
442
|
+
/**
|
|
443
|
+
* Header title
|
|
444
|
+
*/
|
|
445
|
+
title?: string | undefined;
|
|
446
|
+
/**
|
|
447
|
+
* Absolute path to header image, or `null` to remove image
|
|
448
|
+
*/
|
|
449
|
+
image?: string | undefined | null;
|
|
450
|
+
/**
|
|
451
|
+
* Url to make the header text/image a link to this url
|
|
452
|
+
*/
|
|
453
|
+
url?: string | undefined;
|
|
454
|
+
} | undefined;
|
|
455
|
+
deployButton?: {
|
|
456
|
+
type: "simple";
|
|
457
|
+
/**
|
|
458
|
+
* Deploy button label
|
|
459
|
+
*/
|
|
460
|
+
label: string;
|
|
461
|
+
/**
|
|
462
|
+
* Absolute path to deploy button image or `null` to remove image
|
|
463
|
+
*/
|
|
464
|
+
icon: string;
|
|
465
|
+
} | undefined;
|
|
466
|
+
/**
|
|
467
|
+
* Hide unwanted menu items by id
|
|
468
|
+
*/
|
|
469
|
+
menu?: {
|
|
470
|
+
"menu-item-import-library"?: boolean | undefined;
|
|
471
|
+
"menu-item-export-library"?: boolean | undefined;
|
|
472
|
+
"menu-item-keyboard-shortcuts"?: boolean | undefined;
|
|
473
|
+
"menu-item-help"?: {
|
|
474
|
+
/** Help Link Text */
|
|
475
|
+
label: string;
|
|
476
|
+
/** Help Link URL */
|
|
477
|
+
url: string;
|
|
478
|
+
} | undefined;
|
|
479
|
+
} | undefined;
|
|
480
|
+
/**
|
|
481
|
+
* Hide the user-menu even if adminAuth is enabled
|
|
482
|
+
*/
|
|
483
|
+
userMenu?: boolean | undefined;
|
|
484
|
+
login?: {
|
|
485
|
+
image?: string | undefined;
|
|
486
|
+
} | undefined;
|
|
487
|
+
palette?: {
|
|
488
|
+
/**
|
|
489
|
+
* Enable/disable the Palette Manager
|
|
490
|
+
*/
|
|
491
|
+
editable?: boolean | undefined;
|
|
492
|
+
/**
|
|
493
|
+
* Alternative palette manager catalogues
|
|
494
|
+
*/
|
|
495
|
+
catalogues?: string | undefined[];
|
|
496
|
+
/**
|
|
497
|
+
* Override node colours - rules test against category/type by RegExp.
|
|
498
|
+
*/
|
|
499
|
+
theme?:
|
|
500
|
+
| Array<{
|
|
501
|
+
category: string;
|
|
502
|
+
type: string;
|
|
503
|
+
color: string;
|
|
504
|
+
}>
|
|
505
|
+
| undefined;
|
|
506
|
+
} | undefined;
|
|
507
|
+
projects?: {
|
|
508
|
+
/**
|
|
509
|
+
* To enable the Projects feature, set this value to true
|
|
510
|
+
*/
|
|
511
|
+
enabled: boolean;
|
|
512
|
+
} | undefined;
|
|
513
|
+
} | undefined;
|
|
514
|
+
|
|
515
|
+
verbose?: boolean | undefined;
|
|
516
|
+
safeMode?: boolean | undefined;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
interface PersistentSettings {
|
|
520
|
+
init(settings: LocalSettings): void;
|
|
521
|
+
load(storage: StorageModule): void;
|
|
522
|
+
get(prop: string): any;
|
|
523
|
+
set(prop: string, value: any): Promise<void>;
|
|
524
|
+
delete(prop: string): Promise<void>;
|
|
525
|
+
available(): boolean;
|
|
526
|
+
reset(): void;
|
|
527
|
+
registerNodeSettings(type: string, opts: object): void;
|
|
528
|
+
exportNodeSettings(safeSettings: object): object;
|
|
529
|
+
enableNodeSettings(types: string[]): void;
|
|
530
|
+
disableNodeSettings(types: string[]): void;
|
|
531
|
+
getUserSettings(username: string): object;
|
|
532
|
+
setUserSettings(username: string, settings: object): Promise<void>;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
interface CommsConnection {
|
|
536
|
+
session: string;
|
|
537
|
+
user: object;
|
|
538
|
+
send: () => void;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
interface CommsModule {
|
|
542
|
+
/**
|
|
543
|
+
* Registers a new comms connection
|
|
544
|
+
* @param opts
|
|
545
|
+
* @param opts.client - the client connection
|
|
546
|
+
*/
|
|
547
|
+
addConnection: (opts: { client: CommsConnection }) => Promise<void>;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Unregisters a comms connection
|
|
551
|
+
* @param opts
|
|
552
|
+
* @param opts.client - the client connection
|
|
553
|
+
*/
|
|
554
|
+
removeConnection: (opts: { client: CommsConnection }) => Promise<void>;
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Subscribes a comms connection to a given topic. Currently, all clients get
|
|
558
|
+
* automatically subscribed to everything and cannot unsubscribe. Sending a subscribe
|
|
559
|
+
* request will trigger retained messages to be sent.
|
|
560
|
+
* @param opts
|
|
561
|
+
* @param opts.client - the client connection
|
|
562
|
+
* @param opts.topic - the topic to subscribe to
|
|
563
|
+
*/
|
|
564
|
+
subscribe: (opts: { client: CommsConnection; topic: string }) => Promise<void>;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Unsubscribes a comms connection from a given topic
|
|
568
|
+
* @param opts
|
|
569
|
+
* @param opts.client - the client connection
|
|
570
|
+
* @param opts.topic - the topic to unsubscribe from
|
|
571
|
+
*/
|
|
572
|
+
unsubscribe: (opts: { client: CommsConnection; topic: string }) => Promise<void>;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
interface ContextModule {
|
|
576
|
+
/**
|
|
577
|
+
* Gets the info of an individual node set
|
|
578
|
+
* @param opts
|
|
579
|
+
* @param opts.scope - the scope of the context
|
|
580
|
+
* @param opts.id - the id of the context
|
|
581
|
+
* @param opts.store - the context store
|
|
582
|
+
* @param opts.key - the context key
|
|
583
|
+
* @param opts.req - the request to log (optional)
|
|
584
|
+
*/
|
|
585
|
+
getValue: (opts: {
|
|
586
|
+
scope: string;
|
|
587
|
+
id: string;
|
|
588
|
+
store: string;
|
|
589
|
+
key: string;
|
|
590
|
+
req?: object | undefined;
|
|
591
|
+
}) => Promise<object>;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Gets the info of an individual node set
|
|
595
|
+
* @param opts
|
|
596
|
+
* @param opts.scope - the scope of the context
|
|
597
|
+
* @param opts.id - the id of the context
|
|
598
|
+
* @param opts.store - the context store
|
|
599
|
+
* @param opts.key - the context key
|
|
600
|
+
* @param opts.req - the request to log (optional)
|
|
601
|
+
*/
|
|
602
|
+
delete: (opts: {
|
|
603
|
+
scope: string;
|
|
604
|
+
id: string;
|
|
605
|
+
store: string;
|
|
606
|
+
key: string;
|
|
607
|
+
req?: object | undefined;
|
|
608
|
+
}) => Promise<void>;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
interface Flows {
|
|
612
|
+
/** the flow revision identifier */
|
|
613
|
+
rev: string;
|
|
614
|
+
/** the flow configuration, an array of node configuration objects */
|
|
615
|
+
flows: object[];
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
interface Flow {
|
|
619
|
+
/** the flow identifier */
|
|
620
|
+
id: string;
|
|
621
|
+
/** a label for the flow */
|
|
622
|
+
label: string;
|
|
623
|
+
/** an array of node configuration objects */
|
|
624
|
+
nodes: object[];
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
interface FlowsModule {
|
|
628
|
+
/**
|
|
629
|
+
* Gets the current flow configuration
|
|
630
|
+
* @param opts
|
|
631
|
+
* @param opts.req - the request to log (optional)
|
|
632
|
+
*/
|
|
633
|
+
getFlows: (opts: { req?: object | undefined }) => Promise<Flows>;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Sets the current flow configuration
|
|
637
|
+
* @param opts
|
|
638
|
+
* @param opts.flows - the flow configuration: `{flows: [..], credentials: {}}`
|
|
639
|
+
* @param opts.deploymentType - the type of deployment - "full", "nodes", "flows", "reload"
|
|
640
|
+
* @param opts.req - the request to log (optional)
|
|
641
|
+
*/
|
|
642
|
+
setFlows: (opts: {
|
|
643
|
+
flows: { flows: object[]; credentials: object; req?: object | undefined };
|
|
644
|
+
}) => Promise<{ rev: string }>;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Adds a flow configuration
|
|
648
|
+
* @param opts
|
|
649
|
+
* @param opts.flow - the flow to add
|
|
650
|
+
* @param opts.req - the request to log (optional)
|
|
651
|
+
* @returns the id of the added flow
|
|
652
|
+
*/
|
|
653
|
+
addFlow: (opts: { flow: object; req?: object | undefined }) => Promise<string>;
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Gets an individual flow configuration
|
|
657
|
+
* @param opts
|
|
658
|
+
* @param opts.id - the id of the flow to retrieve
|
|
659
|
+
* @param opts.req - the request to log (optional)
|
|
660
|
+
*/
|
|
661
|
+
getFlow: (opts: { id: string; req?: object | undefined }) => Promise<Flow>;
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Updates an existing flow configuration
|
|
665
|
+
* @param opts
|
|
666
|
+
* @param opts.id - the id of the flow to update
|
|
667
|
+
* @param opts.flow - the flow configuration
|
|
668
|
+
* @param opts.req - the request to log (optional)
|
|
669
|
+
* @returns the id of the updated flow
|
|
670
|
+
*/
|
|
671
|
+
updateFlow: (opts: { id: string; flow: object; req?: object | undefined }) => Promise<string>;
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Deletes a flow
|
|
675
|
+
* @param opts
|
|
676
|
+
* @param opts.id - the id of the flow to delete
|
|
677
|
+
* @param opts.req - the request to log (optional)
|
|
678
|
+
*/
|
|
679
|
+
deleteFlow: (opts: { id: string; req?: object | undefined }) => Promise<void>;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Gets the safe credentials for a node
|
|
683
|
+
* @param opts
|
|
684
|
+
* @param opts.type - the node type to return the credential information for
|
|
685
|
+
* @param opts.id - the node id
|
|
686
|
+
* @param opts.req - the request to log (optional)
|
|
687
|
+
* @returns the safe credentials
|
|
688
|
+
*/
|
|
689
|
+
getNodeCredentials: (opts: { type: string; id: string; req?: object | undefined }) => Promise<object>;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
interface LibraryModule {
|
|
693
|
+
/**
|
|
694
|
+
* Gets an entry from the library.
|
|
695
|
+
* @param opts
|
|
696
|
+
* @param opts.library - the library
|
|
697
|
+
* @param opts.type - the type of entry
|
|
698
|
+
* @param opts.path - the path of the entry
|
|
699
|
+
* @param opts.req - the request to log (optional)
|
|
700
|
+
*/
|
|
701
|
+
getEntry: (opts: {
|
|
702
|
+
library: string;
|
|
703
|
+
type: string;
|
|
704
|
+
path: string;
|
|
705
|
+
req?: object | undefined;
|
|
706
|
+
}) => Promise<string | object>;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Saves an entry to the library
|
|
710
|
+
* @param opts
|
|
711
|
+
* @param opts.library - the library
|
|
712
|
+
* @param opts.type - the type of entry
|
|
713
|
+
* @param opts.path - the path of the entry
|
|
714
|
+
* @param opts.meta - any meta data associated with the entry
|
|
715
|
+
* @param opts.body - the body of the entry
|
|
716
|
+
* @param opts.req - the request to log (optional)
|
|
717
|
+
*/
|
|
718
|
+
saveEntry: (opts: {
|
|
719
|
+
library: string;
|
|
720
|
+
type: string;
|
|
721
|
+
path: string;
|
|
722
|
+
meta: object;
|
|
723
|
+
body: string;
|
|
724
|
+
req?: object | undefined;
|
|
725
|
+
}) => Promise<void>;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
interface NodesModule {
|
|
729
|
+
/**
|
|
730
|
+
* Gets the info of an individual node set
|
|
731
|
+
* @param opts
|
|
732
|
+
* @param opts.id - the id of the node set to return
|
|
733
|
+
* @param opts.req - the request to log (optional)
|
|
734
|
+
* @returns the node information
|
|
735
|
+
*/
|
|
736
|
+
getNodeInfo: (opts: { id: string; req?: object | undefined }) => Promise<object>;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Gets the list of node modules installed in the runtime
|
|
740
|
+
* @param opts
|
|
741
|
+
* @param opts.req - the request to log (optional)
|
|
742
|
+
* @returns the list of node modules
|
|
743
|
+
*/
|
|
744
|
+
getNodeList: (opts: { req?: object | undefined }) => Promise<object[]>;
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Gets an individual node's html content
|
|
748
|
+
* @param opts
|
|
749
|
+
* @param opts.id - the id of the node set to return
|
|
750
|
+
* @param opts.lang - the locale language to return
|
|
751
|
+
* @param opts.req - the request to log (optional)
|
|
752
|
+
* @returns - the node html content
|
|
753
|
+
*/
|
|
754
|
+
getNodeConfig: (opts: { id: string; lang: string; req?: object | undefined }) => Promise<string>;
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Gets all node html content
|
|
758
|
+
* @param opts
|
|
759
|
+
* @param opts.lang - the locale language to return
|
|
760
|
+
* @param opts.req - the request to log (optional)
|
|
761
|
+
* @returns the node html content
|
|
762
|
+
*/
|
|
763
|
+
getNodeConfigs: (opts: { lang: string; req?: object | undefined }) => Promise<string>;
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Gets the info of a node module
|
|
767
|
+
* @param opts
|
|
768
|
+
* @param opts.module - the id of the module to return
|
|
769
|
+
* @param opts.req - the request to log (optional)
|
|
770
|
+
* @returns the node module info
|
|
771
|
+
*/
|
|
772
|
+
getModuleInfo: (opts: { module: string; req?: object | undefined }) => Promise<object>;
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Install a new module into the runtime
|
|
776
|
+
* @param opts
|
|
777
|
+
* @param opts.module - the id of the module to install
|
|
778
|
+
* @param opts.version - (optional) the version of the module to install
|
|
779
|
+
* @param opts.url - (optional) url to install
|
|
780
|
+
* @param opts.req - the request to log (optional)
|
|
781
|
+
* @returns the node module info
|
|
782
|
+
*/
|
|
783
|
+
addModule: (opts: {
|
|
784
|
+
module: string;
|
|
785
|
+
version?: string | undefined;
|
|
786
|
+
url?: string | undefined;
|
|
787
|
+
req?: object | undefined;
|
|
788
|
+
}) => Promise<object>;
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* Removes a module from the runtime
|
|
792
|
+
* @param opts
|
|
793
|
+
* @param opts.module - the id of the module to remove
|
|
794
|
+
* @param opts.req - the request to log (optional)
|
|
795
|
+
* @returns resolves when complete
|
|
796
|
+
*/
|
|
797
|
+
removeModule: (opts: { module: string; req?: object | undefined }) => Promise<void>;
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Enables or disables a module in the runtime
|
|
801
|
+
* @param opts
|
|
802
|
+
* @param opts.module - the id of the module to enable or disable
|
|
803
|
+
* @param opts.enabled - whether the module should be enabled or disabled
|
|
804
|
+
* @param opts.req - the request to log (optional)
|
|
805
|
+
* @returns the module info object
|
|
806
|
+
*/
|
|
807
|
+
setModuleState: (opts: { module: string; enabled: boolean; req?: object | undefined }) => Promise<object>;
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* Enables or disables a n individual node-set in the runtime
|
|
811
|
+
* @param opts
|
|
812
|
+
* @param opts.id - the id of the node-set to enable or disable
|
|
813
|
+
* @param opts.enabled - whether the module should be enabled or disabled
|
|
814
|
+
* @param opts.req - the request to log (optional)
|
|
815
|
+
* @returns the module info object
|
|
816
|
+
*/
|
|
817
|
+
setNodeSetState: (opts: { id: string; enabled: boolean; req?: object | undefined }) => Promise<object>;
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Gets all registered module message catalogs
|
|
821
|
+
* @param opts
|
|
822
|
+
* @param opts.lang - the i18n language to return. If not set, uses runtime default (en-US)
|
|
823
|
+
* @param opts.req - the request to log (optional)
|
|
824
|
+
* @returns the message catalogs
|
|
825
|
+
*/
|
|
826
|
+
getModuleCatalogs: (opts: { lang: string; req?: object | undefined }) => Promise<object>;
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Gets a modules message catalog
|
|
830
|
+
* @param opts
|
|
831
|
+
* @param opts.module - the module
|
|
832
|
+
* @param opts.lang - the i18n language to return. If not set, uses runtime default (en-US)
|
|
833
|
+
* @param opts.req - the request to log (optional)
|
|
834
|
+
* @returns the message catalog
|
|
835
|
+
*/
|
|
836
|
+
getModuleCatalog: (opts: { module: string; lang: string; req?: object | undefined }) => Promise<object>;
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* Gets the list of all icons available in the modules installed within the runtime
|
|
840
|
+
* @param opts
|
|
841
|
+
* @param opts.req - the request to log (optional)
|
|
842
|
+
* @returns the list of all icons
|
|
843
|
+
*/
|
|
844
|
+
getIconList: (opts: { req?: object | undefined }) => Promise<object>;
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* Gets a node icon
|
|
848
|
+
* @param opts
|
|
849
|
+
* @param opts.module - the id of the module requesting the icon
|
|
850
|
+
* @param opts.icon - the name of the icon
|
|
851
|
+
* @param opts.req - the request to log (optional)
|
|
852
|
+
* @returns the icon file as a Buffer or null if no icon available
|
|
853
|
+
*/
|
|
854
|
+
getIcon: (opts: { module: string; icon: string; req?: object | undefined }) => Promise<Buffer>;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
interface ProjectUser {
|
|
858
|
+
username: string;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
interface ProjectsModule {
|
|
862
|
+
available: () => Promise<boolean>;
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* List projects known to the runtime
|
|
866
|
+
* @param opts
|
|
867
|
+
* @param opts.user - the user calling the api
|
|
868
|
+
* @param opts.req - the request to log (optional)
|
|
869
|
+
* @returns resolves when complete
|
|
870
|
+
*/
|
|
871
|
+
listProjects: (opts: { user?: ProjectUser | undefined; req?: object | undefined }) => Promise<void>;
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Create a new project
|
|
875
|
+
* @param opts
|
|
876
|
+
* @param opts.user - the user calling the api
|
|
877
|
+
* @param opts.project - the project information
|
|
878
|
+
* @param opts.req - the request to log (optional)
|
|
879
|
+
* @returns resolves when complete
|
|
880
|
+
*/
|
|
881
|
+
createProject: (opts: {
|
|
882
|
+
user?: ProjectUser | undefined;
|
|
883
|
+
project: object;
|
|
884
|
+
req?: object | undefined;
|
|
885
|
+
}) => Promise<object>;
|
|
886
|
+
/**
|
|
887
|
+
* Initialises an empty project
|
|
888
|
+
* @param opts
|
|
889
|
+
* @param opts.user - the user calling the api
|
|
890
|
+
* @param opts.id - the id of the project to initialise
|
|
891
|
+
* @param opts.project - the project information
|
|
892
|
+
* @param opts.req - the request to log (optional)
|
|
893
|
+
* @returns resolves when complete
|
|
894
|
+
*/
|
|
895
|
+
initialiseProject: (opts: {
|
|
896
|
+
user?: ProjectUser | undefined;
|
|
897
|
+
id: string;
|
|
898
|
+
project: object;
|
|
899
|
+
req?: object | undefined;
|
|
900
|
+
}) => Promise<object>;
|
|
901
|
+
/**
|
|
902
|
+
* Gets the active project
|
|
903
|
+
* @param opts
|
|
904
|
+
* @param opts.user - the user calling the api
|
|
905
|
+
* @param opts.req - the request to log (optional)
|
|
906
|
+
* @returns the active project
|
|
907
|
+
*/
|
|
908
|
+
getActiveProject: (opts: { user?: ProjectUser | undefined; req?: object | undefined }) => Promise<object>;
|
|
909
|
+
/**
|
|
910
|
+
* @param opts
|
|
911
|
+
* @param opts.user - the user calling the api
|
|
912
|
+
* @param opts.id - the id of the project to activate
|
|
913
|
+
* @param opts.req - the request to log (optional)
|
|
914
|
+
* @returns resolves when complete
|
|
915
|
+
*/
|
|
916
|
+
setActiveProject: (opts: {
|
|
917
|
+
user?: ProjectUser | undefined;
|
|
918
|
+
id: string;
|
|
919
|
+
req?: object | undefined;
|
|
920
|
+
}) => Promise<object>;
|
|
921
|
+
/**
|
|
922
|
+
* Gets a projects metadata
|
|
923
|
+
* @param opts
|
|
924
|
+
* @param opts.user - the user calling the api
|
|
925
|
+
* @param opts.id - the id of the project to get
|
|
926
|
+
* @param opts.req - the request to log (optional)
|
|
927
|
+
* @returns the project metadata
|
|
928
|
+
*/
|
|
929
|
+
getProject: (opts: { user?: ProjectUser | undefined; id: string; req?: object | undefined }) => Promise<object>;
|
|
930
|
+
/**
|
|
931
|
+
* Updates the metadata of an existing project
|
|
932
|
+
* @param opts
|
|
933
|
+
* @param opts.user - the user calling the api
|
|
934
|
+
* @param opts.id - the id of the project to update
|
|
935
|
+
* @param opts.project - the project information
|
|
936
|
+
* @param opts.req - the request to log (optional)
|
|
937
|
+
* @returns resolves when complete
|
|
938
|
+
*/
|
|
939
|
+
updateProject: (opts: {
|
|
940
|
+
user?: ProjectUser | undefined;
|
|
941
|
+
id: string;
|
|
942
|
+
project: object;
|
|
943
|
+
req?: object | undefined;
|
|
944
|
+
}) => Promise<object>;
|
|
945
|
+
/**
|
|
946
|
+
* Deletes a project
|
|
947
|
+
* @param opts
|
|
948
|
+
* @param opts.user - the user calling the api
|
|
949
|
+
* @param opts.id - the id of the project to update
|
|
950
|
+
* @param opts.req - the request to log (optional)
|
|
951
|
+
* @returns resolves when complete
|
|
952
|
+
*/
|
|
953
|
+
deleteProject: (opts: {
|
|
954
|
+
user?: ProjectUser | undefined;
|
|
955
|
+
id: string;
|
|
956
|
+
req?: object | undefined;
|
|
957
|
+
}) => Promise<object>;
|
|
958
|
+
/**
|
|
959
|
+
* Gets current git status of a project
|
|
960
|
+
* @param opts
|
|
961
|
+
* @param opts.user - the user calling the api
|
|
962
|
+
* @param opts.id - the id of the project
|
|
963
|
+
* @param opts.remote - whether to include status of remote repos
|
|
964
|
+
* @param opts.req - the request to log (optional)
|
|
965
|
+
* @returns the project status
|
|
966
|
+
*/
|
|
967
|
+
getStatus: (opts: {
|
|
968
|
+
user?: ProjectUser | undefined;
|
|
969
|
+
id: string;
|
|
970
|
+
remote: boolean;
|
|
971
|
+
req?: object | undefined;
|
|
972
|
+
}) => Promise<object>;
|
|
973
|
+
/**
|
|
974
|
+
* Get a list of local branches
|
|
975
|
+
* @param opts
|
|
976
|
+
* @param opts.user - the user calling the api
|
|
977
|
+
* @param opts.id - the id of the project
|
|
978
|
+
* @param opts.remote - whether to return remote branches (true) or local (false)
|
|
979
|
+
* @param opts.req - the request to log (optional)
|
|
980
|
+
* @returns a list of the local branches
|
|
981
|
+
*/
|
|
982
|
+
getBranches: (opts: {
|
|
983
|
+
user?: ProjectUser | undefined;
|
|
984
|
+
id: string;
|
|
985
|
+
remote: boolean;
|
|
986
|
+
req?: object | undefined;
|
|
987
|
+
}) => Promise<object>;
|
|
988
|
+
/**
|
|
989
|
+
* Gets the status of a branch
|
|
990
|
+
* @param opts
|
|
991
|
+
* @param opts.user - the user calling the api
|
|
992
|
+
* @param opts.id - the id of the project
|
|
993
|
+
* @param opts.branch - the name of the branch
|
|
994
|
+
* @param opts.req - the request to log (optional)
|
|
995
|
+
* @returns the status of the branch
|
|
996
|
+
*/
|
|
997
|
+
getBranchStatus: (opts: {
|
|
998
|
+
user?: ProjectUser | undefined;
|
|
999
|
+
id: string;
|
|
1000
|
+
branch: string;
|
|
1001
|
+
req?: object | undefined;
|
|
1002
|
+
}) => Promise<object>;
|
|
1003
|
+
/**
|
|
1004
|
+
* Sets the current local branch
|
|
1005
|
+
* @param opts
|
|
1006
|
+
* @param opts.user - the user calling the api
|
|
1007
|
+
* @param opts.id - the id of the project
|
|
1008
|
+
* @param opts.branch - the name of the branch
|
|
1009
|
+
* @param opts.create - whether to create the branch if it doesn't exist
|
|
1010
|
+
* @param opts.req - the request to log (optional)
|
|
1011
|
+
* @returns resolves when complete
|
|
1012
|
+
*/
|
|
1013
|
+
setBranch: (opts: {
|
|
1014
|
+
user?: ProjectUser | undefined;
|
|
1015
|
+
id: string;
|
|
1016
|
+
branch: string;
|
|
1017
|
+
create: boolean;
|
|
1018
|
+
req?: object | undefined;
|
|
1019
|
+
}) => Promise<object>;
|
|
1020
|
+
/**
|
|
1021
|
+
* Deletes a branch
|
|
1022
|
+
* @param opts
|
|
1023
|
+
* @param opts.user - the user calling the api
|
|
1024
|
+
* @param opts.id - the id of the project
|
|
1025
|
+
* @param opts.branch - the name of the branch
|
|
1026
|
+
* @param opts.force - whether to force delete
|
|
1027
|
+
* @param opts.req - the request to log (optional)
|
|
1028
|
+
* @returns resolves when complete
|
|
1029
|
+
*/
|
|
1030
|
+
deleteBranch: (opts: {
|
|
1031
|
+
user?: ProjectUser | undefined;
|
|
1032
|
+
id: string;
|
|
1033
|
+
branch: string;
|
|
1034
|
+
force: boolean;
|
|
1035
|
+
req?: object | undefined;
|
|
1036
|
+
}) => Promise<object>;
|
|
1037
|
+
/**
|
|
1038
|
+
* Commits the current staged files
|
|
1039
|
+
* @param opts
|
|
1040
|
+
* @param opts.user - the user calling the api
|
|
1041
|
+
* @param opts.id - the id of the project
|
|
1042
|
+
* @param opts.message - the message to associate with the commit
|
|
1043
|
+
* @param opts.req - the request to log (optional)
|
|
1044
|
+
* @returns resolves when complete
|
|
1045
|
+
*/
|
|
1046
|
+
commit: (opts: {
|
|
1047
|
+
user?: ProjectUser | undefined;
|
|
1048
|
+
id: string;
|
|
1049
|
+
message: string;
|
|
1050
|
+
req?: object | undefined;
|
|
1051
|
+
}) => Promise<object>;
|
|
1052
|
+
/**
|
|
1053
|
+
* Gets the details of a single commit
|
|
1054
|
+
* @param opts
|
|
1055
|
+
* @param opts.user - the user calling the api
|
|
1056
|
+
* @param opts.id - the id of the project
|
|
1057
|
+
* @param opts.sha - the sha of the commit to return
|
|
1058
|
+
* @param opts.req - the request to log (optional)
|
|
1059
|
+
* @returns the commit details
|
|
1060
|
+
*/
|
|
1061
|
+
getCommit: (opts: {
|
|
1062
|
+
user?: ProjectUser | undefined;
|
|
1063
|
+
id: string;
|
|
1064
|
+
sha: string;
|
|
1065
|
+
req?: object | undefined;
|
|
1066
|
+
}) => Promise<object>;
|
|
1067
|
+
/**
|
|
1068
|
+
* Gets the commit history of the project
|
|
1069
|
+
* @param opts
|
|
1070
|
+
* @param opts.user - the user calling the api
|
|
1071
|
+
* @param opts.id - the id of the project
|
|
1072
|
+
* @param opts.limit - limit how many to return
|
|
1073
|
+
* @param opts.before - id of the commit to work back from
|
|
1074
|
+
* @param opts.req - the request to log (optional)
|
|
1075
|
+
* @returns an array of commits
|
|
1076
|
+
*/
|
|
1077
|
+
getCommits: (opts: {
|
|
1078
|
+
user?: ProjectUser | undefined;
|
|
1079
|
+
id: string;
|
|
1080
|
+
limit: string;
|
|
1081
|
+
before: string;
|
|
1082
|
+
req?: object | undefined;
|
|
1083
|
+
}) => Promise<object[]>;
|
|
1084
|
+
/**
|
|
1085
|
+
* Abort an in-progress merge
|
|
1086
|
+
* @param opts
|
|
1087
|
+
* @param opts.user - the user calling the api
|
|
1088
|
+
* @param opts.id - the id of the project
|
|
1089
|
+
* @param opts.req - the request to log (optional)
|
|
1090
|
+
* @returns resolves when complete
|
|
1091
|
+
*/
|
|
1092
|
+
abortMerge: (opts: { user?: ProjectUser | undefined; id: string; req?: object | undefined }) => Promise<object>;
|
|
1093
|
+
/**
|
|
1094
|
+
* Resolves a merge conflict
|
|
1095
|
+
* @param opts
|
|
1096
|
+
* @param opts.user - the user calling the api
|
|
1097
|
+
* @param opts.id - the id of the project
|
|
1098
|
+
* @param opts.path - the path of the file being merged
|
|
1099
|
+
* @param opts.resolutions - how to resolve the merge conflict
|
|
1100
|
+
* @param opts.req - the request to log (optional)
|
|
1101
|
+
* @returns resolves when complete
|
|
1102
|
+
*/
|
|
1103
|
+
resolveMerge: (opts: {
|
|
1104
|
+
user?: ProjectUser | undefined;
|
|
1105
|
+
id: string;
|
|
1106
|
+
path: string;
|
|
1107
|
+
resolutions: string;
|
|
1108
|
+
req?: object | undefined;
|
|
1109
|
+
}) => Promise<object>;
|
|
1110
|
+
/**
|
|
1111
|
+
* Gets a listing of the files in the project
|
|
1112
|
+
* @param opts
|
|
1113
|
+
* @param opts.user - the user calling the api
|
|
1114
|
+
* @param opts.id - the id of the project
|
|
1115
|
+
* @param opts.req - the request to log (optional)
|
|
1116
|
+
* @returns the file listing
|
|
1117
|
+
*/
|
|
1118
|
+
getFiles: (opts: { user?: ProjectUser | undefined; id: string; req?: object | undefined }) => Promise<object>;
|
|
1119
|
+
/**
|
|
1120
|
+
* Gets the contents of a file
|
|
1121
|
+
* @param opts
|
|
1122
|
+
* @param opts.user - the user calling the api
|
|
1123
|
+
* @param opts.id - the id of the project
|
|
1124
|
+
* @param opts.path - the path of the file
|
|
1125
|
+
* @param opts.tree - the version control tree to use
|
|
1126
|
+
* @param opts.req - the request to log (optional)
|
|
1127
|
+
* @returns the content of the file
|
|
1128
|
+
*/
|
|
1129
|
+
getFile: (opts: {
|
|
1130
|
+
user?: ProjectUser | undefined;
|
|
1131
|
+
id: string;
|
|
1132
|
+
path: string;
|
|
1133
|
+
tree: string;
|
|
1134
|
+
req?: object | undefined;
|
|
1135
|
+
}) => Promise<string>;
|
|
1136
|
+
/**
|
|
1137
|
+
* @param opts
|
|
1138
|
+
* @param opts.user - the user calling the api
|
|
1139
|
+
* @param opts.id - the id of the project
|
|
1140
|
+
* @param opts.path - the path of the file, or an array of paths
|
|
1141
|
+
* @param opts.req - the request to log (optional)
|
|
1142
|
+
* @returns resolves when complete
|
|
1143
|
+
*/
|
|
1144
|
+
stageFile: (opts: {
|
|
1145
|
+
user?: ProjectUser | undefined;
|
|
1146
|
+
id: string;
|
|
1147
|
+
path: string | string[];
|
|
1148
|
+
req?: object | undefined;
|
|
1149
|
+
}) => Promise<object>;
|
|
1150
|
+
/**
|
|
1151
|
+
* @param opts
|
|
1152
|
+
* @param opts.user - the user calling the api
|
|
1153
|
+
* @param opts.id - the id of the project
|
|
1154
|
+
* @param opts.path - the path of the file. If not set, all staged files are unstaged
|
|
1155
|
+
* @param opts.req - the request to log (optional)
|
|
1156
|
+
* @returns resolves when complete
|
|
1157
|
+
*/
|
|
1158
|
+
unstageFile: (opts: {
|
|
1159
|
+
user?: ProjectUser | undefined;
|
|
1160
|
+
id: string;
|
|
1161
|
+
path: string;
|
|
1162
|
+
req?: object | undefined;
|
|
1163
|
+
}) => Promise<object>;
|
|
1164
|
+
/**
|
|
1165
|
+
* Reverts changes to a file back to its commited version
|
|
1166
|
+
* @param opts
|
|
1167
|
+
* @param opts.user - the user calling the api
|
|
1168
|
+
* @param opts.id - the id of the project
|
|
1169
|
+
* @param opts.path - the path of the file
|
|
1170
|
+
* @param opts.req - the request to log (optional)
|
|
1171
|
+
* @returns resolves when complete
|
|
1172
|
+
*/
|
|
1173
|
+
revertFile: (opts: {
|
|
1174
|
+
user?: ProjectUser | undefined;
|
|
1175
|
+
id: string;
|
|
1176
|
+
path: string;
|
|
1177
|
+
req?: object | undefined;
|
|
1178
|
+
}) => Promise<object>;
|
|
1179
|
+
/**
|
|
1180
|
+
* Get the diff of a file
|
|
1181
|
+
* @param opts
|
|
1182
|
+
* @param opts.user - the user calling the api
|
|
1183
|
+
* @param opts.id - the id of the project
|
|
1184
|
+
* @param opts.path - the path of the file
|
|
1185
|
+
* @param opts.type - the type of diff
|
|
1186
|
+
* @param opts.req - the request to log (optional)
|
|
1187
|
+
* @returns the requested diff
|
|
1188
|
+
*/
|
|
1189
|
+
getFileDiff: (opts: {
|
|
1190
|
+
user?: ProjectUser | undefined;
|
|
1191
|
+
id: string;
|
|
1192
|
+
path: string;
|
|
1193
|
+
type: string;
|
|
1194
|
+
req?: object | undefined;
|
|
1195
|
+
}) => Promise<object>;
|
|
1196
|
+
/**
|
|
1197
|
+
* Gets a list of the project remotes
|
|
1198
|
+
* @param opts
|
|
1199
|
+
* @param opts.user - the user calling the api
|
|
1200
|
+
* @param opts.id - the id of the project
|
|
1201
|
+
* @param opts.req - the request to log (optional)
|
|
1202
|
+
* @returns a list of project remotes
|
|
1203
|
+
*/
|
|
1204
|
+
getRemotes: (opts: { user?: ProjectUser | undefined; id: string; req?: object | undefined }) => Promise<object>;
|
|
1205
|
+
/**
|
|
1206
|
+
* @param opts
|
|
1207
|
+
* @param opts.user - the user calling the api
|
|
1208
|
+
* @param opts.id - the id of the project
|
|
1209
|
+
* @param opts.remote - the remote metadata
|
|
1210
|
+
* @param opts.remote.name - the name of the remote
|
|
1211
|
+
* @param opts.remote.url - the url of the remote
|
|
1212
|
+
* @param opts.req - the request to log (optional)
|
|
1213
|
+
* @returns resolves when complete
|
|
1214
|
+
*/
|
|
1215
|
+
addRemote: (opts: {
|
|
1216
|
+
user?: ProjectUser | undefined;
|
|
1217
|
+
id: string;
|
|
1218
|
+
remote: { name: string; url: string };
|
|
1219
|
+
req?: object | undefined;
|
|
1220
|
+
}) => Promise<object>;
|
|
1221
|
+
/**
|
|
1222
|
+
* Remove a project remote
|
|
1223
|
+
* @param opts
|
|
1224
|
+
* @param opts.user - the user calling the api
|
|
1225
|
+
* @param opts.id - the id of the project
|
|
1226
|
+
* @param opts.remote - the name of the remote
|
|
1227
|
+
* @param opts.req - the request to log (optional)
|
|
1228
|
+
* @returns resolves when complete
|
|
1229
|
+
*/
|
|
1230
|
+
removeRemote: (opts: {
|
|
1231
|
+
user?: ProjectUser | undefined;
|
|
1232
|
+
id: string;
|
|
1233
|
+
remote: string;
|
|
1234
|
+
req?: object | undefined;
|
|
1235
|
+
}) => Promise<object>;
|
|
1236
|
+
/**
|
|
1237
|
+
* @param opts
|
|
1238
|
+
* @param opts.user - the user calling the api
|
|
1239
|
+
* @param opts.id - the id of the project
|
|
1240
|
+
* @param opts.remote - the remote metadata
|
|
1241
|
+
* @param opts.remote.name - the name of the remote
|
|
1242
|
+
* @param opts.req - the request to log (optional)
|
|
1243
|
+
* @returns resolves when complete
|
|
1244
|
+
*/
|
|
1245
|
+
updateRemote: (opts: {
|
|
1246
|
+
user?: ProjectUser | undefined;
|
|
1247
|
+
id: string;
|
|
1248
|
+
remote: { name: string };
|
|
1249
|
+
req?: object | undefined;
|
|
1250
|
+
}) => Promise<object>;
|
|
1251
|
+
/**
|
|
1252
|
+
* Pull changes from the remote
|
|
1253
|
+
* @param opts
|
|
1254
|
+
* @param opts.user - the user calling the api
|
|
1255
|
+
* @param opts.remote - the remote to pull
|
|
1256
|
+
* @param opts.track - whether to track this remote
|
|
1257
|
+
* @param opts.allowUnrelatedHistories -
|
|
1258
|
+
* @param opts.req - the request to log (optional)
|
|
1259
|
+
* @returns resolves when complete
|
|
1260
|
+
*/
|
|
1261
|
+
pull: (opts: {
|
|
1262
|
+
user?: ProjectUser | undefined;
|
|
1263
|
+
remote: string;
|
|
1264
|
+
track?: boolean | undefined;
|
|
1265
|
+
allowUnrelatedHistories?: boolean | undefined;
|
|
1266
|
+
req?: object | undefined;
|
|
1267
|
+
}) => Promise<object>;
|
|
1268
|
+
/**
|
|
1269
|
+
* Push changes to a remote
|
|
1270
|
+
* @param opts
|
|
1271
|
+
* @param opts.user - the user calling the api
|
|
1272
|
+
* @param opts.id - the id of the project
|
|
1273
|
+
* @param opts.remote - the name of the remote
|
|
1274
|
+
* @param opts.track - whether to set the remote as the upstream
|
|
1275
|
+
* @param opts.req - the request to log (optional)
|
|
1276
|
+
* @returns resolves when complete
|
|
1277
|
+
*/
|
|
1278
|
+
push: (opts: {
|
|
1279
|
+
user?: ProjectUser | undefined;
|
|
1280
|
+
id: string;
|
|
1281
|
+
remote: string;
|
|
1282
|
+
track?: boolean | undefined;
|
|
1283
|
+
req?: object | undefined;
|
|
1284
|
+
}) => Promise<object>;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
interface SettingsModule {
|
|
1288
|
+
/**
|
|
1289
|
+
* Gets the runtime settings object
|
|
1290
|
+
* @param opts
|
|
1291
|
+
* @param opts.user - the user calling the api
|
|
1292
|
+
* @param opts.req - the request to log (optional)
|
|
1293
|
+
* @returns the runtime settings
|
|
1294
|
+
*/
|
|
1295
|
+
getRuntimeSettings: (opts: { user?: User | undefined; req?: object | undefined }) => Promise<object>;
|
|
1296
|
+
/**
|
|
1297
|
+
* Gets an individual user's settings object
|
|
1298
|
+
* @param opts
|
|
1299
|
+
* @param opts.user - the user calling the api
|
|
1300
|
+
* @param opts.req - the request to log (optional)
|
|
1301
|
+
* @returns the user settings
|
|
1302
|
+
*/
|
|
1303
|
+
getUserSettings: (opts: { user?: User | undefined; req?: object | undefined }) => Promise<object>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Updates an individual user's settings object.
|
|
1306
|
+
* @param opts
|
|
1307
|
+
* @param opts.user - the user calling the api
|
|
1308
|
+
* @param opts.settings - the updates to the user settings
|
|
1309
|
+
* @param opts.req - the request to log (optional)
|
|
1310
|
+
* @returns the user settings
|
|
1311
|
+
*/
|
|
1312
|
+
updateUserSettings: (opts: {
|
|
1313
|
+
user?: User | undefined;
|
|
1314
|
+
settings: object;
|
|
1315
|
+
req?: object | undefined;
|
|
1316
|
+
}) => Promise<object>;
|
|
1317
|
+
/**
|
|
1318
|
+
* Gets a list of a user's ssh keys
|
|
1319
|
+
* @param opts
|
|
1320
|
+
* @param opts.user - the user calling the api
|
|
1321
|
+
* @param opts.req - the request to log (optional)
|
|
1322
|
+
* @returns the user's ssh keys
|
|
1323
|
+
*/
|
|
1324
|
+
getUserKeys: (opts: { user?: User | undefined; req?: object | undefined }) => Promise<object>;
|
|
1325
|
+
/**
|
|
1326
|
+
* Gets a user's ssh public key
|
|
1327
|
+
* @param opts
|
|
1328
|
+
* @param opts.user - the user calling the api
|
|
1329
|
+
* @param opts.id - the id of the key to return
|
|
1330
|
+
* @param opts.req - the request to log (optional)
|
|
1331
|
+
* @returns the user's ssh public key
|
|
1332
|
+
*/
|
|
1333
|
+
getUserKey: (opts: { user?: User | undefined; id: string; req?: object | undefined }) => Promise<string>;
|
|
1334
|
+
/**
|
|
1335
|
+
* Generates a new ssh key pair
|
|
1336
|
+
* @param opts
|
|
1337
|
+
* @param opts.user - the user calling the api
|
|
1338
|
+
* @param opts.name - the id of the key to return
|
|
1339
|
+
* @param opts.password - (optional) the password for the key pair
|
|
1340
|
+
* @param opts.comment - (option) a comment to associate with the key pair
|
|
1341
|
+
* @param opts.size - (optional) the size of the key. Default: 2048
|
|
1342
|
+
* @param opts.req - the request to log (optional)
|
|
1343
|
+
* @returns the id of the generated key
|
|
1344
|
+
*/
|
|
1345
|
+
generateUserKey: (opts: {
|
|
1346
|
+
user?: User | undefined;
|
|
1347
|
+
name: string;
|
|
1348
|
+
password?: string | undefined;
|
|
1349
|
+
comment?: string | undefined;
|
|
1350
|
+
size?: number | undefined;
|
|
1351
|
+
req?: object | undefined;
|
|
1352
|
+
}) => Promise<string>;
|
|
1353
|
+
/**
|
|
1354
|
+
* Deletes a user's ssh key pair
|
|
1355
|
+
* @param opts
|
|
1356
|
+
* @param opts.user - the user calling the api
|
|
1357
|
+
* @param opts.id - the id of the key to delete
|
|
1358
|
+
* @param opts.req - the request to log (optional)
|
|
1359
|
+
* @returns resolves when deleted
|
|
1360
|
+
*/
|
|
1361
|
+
removeUserKey: (opts: { user?: User | undefined; id: string; req?: object | undefined }) => Promise<void>;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
interface StorageModule {
|
|
1365
|
+
init(runtime: InternalRuntimeAPI): void;
|
|
1366
|
+
getFlows(): Promise<{
|
|
1367
|
+
flows: object[];
|
|
1368
|
+
credentials: object;
|
|
1369
|
+
rev: string;
|
|
1370
|
+
}>;
|
|
1371
|
+
saveFlows(config: {
|
|
1372
|
+
flows: object[];
|
|
1373
|
+
credentials: object;
|
|
1374
|
+
credentialsDirty?: boolean | undefined;
|
|
1375
|
+
}): Promise<void>;
|
|
1376
|
+
saveCredentials(credentials: object): Promise<void>;
|
|
1377
|
+
getSettings(): Promise<object | null>;
|
|
1378
|
+
saveSettings(settings: object): Promise<void>;
|
|
1379
|
+
getSessions(): Promise<object | null>;
|
|
1380
|
+
saveSessions(sessions: object): Promise<void>;
|
|
1381
|
+
getLibraryEntry(type: string, path: string): Promise<string | string[]>;
|
|
1382
|
+
saveLibraryEntry(type: string, path: string, meta: Record<string, string>, body: string): Promise<void>;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
interface InternalNodesModule {} // eslint-disable-line @typescript-eslint/no-empty-interface
|
|
1386
|
+
interface InternalPluginsModule {} // eslint-disable-line @typescript-eslint/no-empty-interface
|
|
1387
|
+
interface InternalLibraryModule {} // eslint-disable-line @typescript-eslint/no-empty-interface
|
|
1388
|
+
interface InternalExecModule {} // eslint-disable-line @typescript-eslint/no-empty-interface
|
|
1389
|
+
|
|
1390
|
+
interface InternalRuntimeAPI {
|
|
1391
|
+
version(): string;
|
|
1392
|
+
readonly log: Log;
|
|
1393
|
+
readonly i18n: I18n;
|
|
1394
|
+
settings: PersistentSettings;
|
|
1395
|
+
storage: StorageModule;
|
|
1396
|
+
events: EventEmitter;
|
|
1397
|
+
nodes: InternalNodesModule;
|
|
1398
|
+
plugins: InternalPluginsModule;
|
|
1399
|
+
library: InternalLibraryModule;
|
|
1400
|
+
exec: InternalExecModule;
|
|
1401
|
+
util: Util;
|
|
1402
|
+
readonly adminApi: object;
|
|
1403
|
+
readonly adminApp: Express;
|
|
1404
|
+
readonly nodeApp: Express;
|
|
1405
|
+
readonly server: HttpsServer;
|
|
1406
|
+
isStarted(): boolean;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
interface RuntimeModule {
|
|
1410
|
+
/**
|
|
1411
|
+
* Initialise the runtime module.
|
|
1412
|
+
* @param settings - the runtime settings object
|
|
1413
|
+
* @param server - the http server instance for the server to use
|
|
1414
|
+
* @param adminApi - an instance of @node-red/editor-api
|
|
1415
|
+
*/
|
|
1416
|
+
init: (userSettings: LocalSettings, httpServer: HttpsServer, _adminApi: EditorAPIModule) => void;
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
* Start the runtime. Resolves when the runtime is started. This does not
|
|
1420
|
+
* mean the flows will be running as they are started asynchronously.
|
|
1421
|
+
*/
|
|
1422
|
+
start: () => Promise<void>;
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Stops the runtime. Resolves when the runtime is stopped.
|
|
1426
|
+
*/
|
|
1427
|
+
stop: () => Promise<void>;
|
|
1428
|
+
|
|
1429
|
+
comms: CommsModule;
|
|
1430
|
+
flows: FlowsModule;
|
|
1431
|
+
library: LibraryModule;
|
|
1432
|
+
nodes: NodesModule;
|
|
1433
|
+
settings: SettingsModule;
|
|
1434
|
+
projects: ProjectsModule;
|
|
1435
|
+
context: ContextModule;
|
|
1436
|
+
hooks: Hooks;
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
* Returns whether the runtime is started
|
|
1440
|
+
*/
|
|
1441
|
+
isStarted: () => Promise<boolean>;
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* Returns version number of the runtime
|
|
1445
|
+
*/
|
|
1446
|
+
version: () => Promise<string>;
|
|
1447
|
+
|
|
1448
|
+
storage: StorageModule;
|
|
1449
|
+
events: EventEmitter;
|
|
1450
|
+
util: Util;
|
|
1451
|
+
|
|
1452
|
+
readonly httpNode: Express;
|
|
1453
|
+
readonly httpAdmin: Express;
|
|
1454
|
+
readonly server: HttpsServer;
|
|
1455
|
+
|
|
1456
|
+
_: InternalRuntimeAPI;
|
|
1457
|
+
}
|
|
1458
|
+
}
|