UNPKG

@nocobase/flow-engine

Version:

A standalone flow engine for NocoBase, managing workflows, models, and actions.

17 lines (16 loc) 747 B
/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ /** * 统一的安全全局对象代理:window/document * - 默认仅允许常用的定时器、console、Math、Date、addEventListener(绑定原 window) * - document 仅允许 createElement/querySelector/querySelectorAll * - 不允许随意访问未声明的属性,最小权限原则 */ export declare function createSafeWindow(extra?: Record<string, any>): {}; export declare function createSafeDocument(extra?: Record<string, any>): {};