Socket
Socket
Sign inDemoInstall

@hecom/draft

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hecom/draft

Draft of Created Object Data


Version published
Maintainers
1
Created

Readme

Source

Draft

npm version

这是新建业务数据时,保存和管理草稿的模块。单个草稿数据作为一条数据存入持久化存储中,这个存储库支持批量查询。

接口

  • name: string:模块名称。
  • initGlobal: () => Promise:全局初始化模块。
  • list: () => array:获取草稿列表,按时间从大到小排序。
  • get: (itemId) => object:获取指定itemId的草稿项。
  • add: (metaName, content, itemId, others) => string:新增或者编辑草稿,根据itemId判断,如果有则是编辑,否则是新增。返回结果的草稿项Id。
  • remove: (itemId) => void:从草稿箱中移除指定itemId的草稿项。

FAQs

Last updated on 14 Jan 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc