Comparing version 1.5.8-dev.201706281543 to 1.5.8-dev.201706281755
{ | ||
"name": "ali-dd", | ||
"version": "1.5.8-dev.201706281543", | ||
"description": "dingtalk jsapi", | ||
"main": "dingtalk.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"prepublishOnly": "yarn version --new-version '1.5.8-dev.'$(date +%Y%m%d%H%M)" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/taoqf/ali-dd.git" | ||
}, | ||
"readme": "readme.md", | ||
"keywords": [ | ||
"dd", | ||
"dingtalk", | ||
"ali", | ||
"typescript", | ||
"jsapi" | ||
], | ||
"author": "taoqf <tao_qiufeng@126.com>", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/taoqf/ali-dd/issues" | ||
}, | ||
"homepage": "https://github.com/taoqf/ali-dd#readme" | ||
"name": "ali-dd", | ||
"version": "1.5.8-dev.201706281755", | ||
"description": "dingtalk jsapi", | ||
"main": "dingtalk.js", | ||
"types": "index.d.ts", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"prepublishOnly": "yarn version --new-version '1.5.8-dev.'$(date +%Y%m%d%H%M)" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/taoqf/ali-dd.git" | ||
}, | ||
"readme": "readme.md", | ||
"keywords": [ | ||
"dd", | ||
"dingtalk", | ||
"ali", | ||
"typescript", | ||
"jsapi" | ||
], | ||
"author": "taoqf <tao_qiufeng@126.com>", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/taoqf/ali-dd/issues" | ||
}, | ||
"homepage": "https://github.com/taoqf/ali-dd#readme" | ||
} |
# Use DingTalk in your typescript project. | ||
# Steps | ||
1. Install dependence. | ||
# Installation | ||
```sh | ||
@@ -9,13 +8,15 @@ yarn add ali-dd | ||
``` | ||
2. Add types to your tsconfig.json | ||
```json | ||
{ | ||
"compilerOptions": { | ||
# ... | ||
"types": ["ali-dd"] | ||
# ... | ||
} | ||
} | ||
# Usage | ||
```ts | ||
import * as dd from 'ali-dd'; | ||
dd.config(mixin(config, { | ||
type: 0, | ||
agentId: 'xxx', | ||
corpId: 'xxx', | ||
timeStamp: 1234, | ||
nonceStr: 'xxx', | ||
signature: 'xxx', | ||
jsApiList: [] | ||
})); | ||
``` | ||
3. Then use `dd` in your project freely. |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
80341
22
1