New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

gdt-jsapi

Package Overview
Dependencies
Maintainers
3
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gdt-jsapi

政务钉钉H5/小程序多端统一JSAPI

latest
npmnpm
Version
1.9.55-beta.14
Version published
Weekly downloads
178
-17.59%
Maintainers
3
Weekly downloads
 
Created
Source

政务钉钉多端统一 JSAPI

此 JSAPI 支持运行于 android, ios, pc(win) 客户端的 H5 应用和政务钉钉小程序环境,且保持开发体验一致。

  • 支持返回原生 Promise
  • 支持模块化引入 api,模块化引入平台
  • 支持 typescript 的接口定义,接口定义还在持续添加中,如有纰漏欢迎反馈

安装

npm install gdt-jsapi

推荐使用 npm 包形式按需引入

使用介绍

H5 和小程序都可以通过以下方式进行引入

1. 按需引入

整体调用

import dd from 'gdt-jsapi';

dd.alert({ message: 'hello world' })
  .then(res => {
    console.log(res);
  })
  .catch(err => {
    console.error(err);
  });

按需调用

import alert from 'gdt-jsapi/alert'; // 按需引入方法

alert({ message: 'hello world' })
  .then(res => {
    console.log(res);
  })
  .catch(err => {
    console.error(err);
  });

FAQs

Package last updated on 01 Dec 2025

Did you know?

Socket

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