hylid-bridge 0.0.1 → 1.0.0
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/README.md +35 -0
- package/package.json +7 -2
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# hylid-bridge
|
|
2
|
+
|
|
3
|
+
> Unite Api For AliPay Plus MiniProgram Project.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i hylid-bridge --save
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### Use in Modern Web Project
|
|
14
|
+
|
|
15
|
+
You need import method form hylid-bridge library and call it instead of according to `my` global namespace.
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { alert } from 'hylid-bridge';
|
|
19
|
+
|
|
20
|
+
Page({
|
|
21
|
+
alert() {
|
|
22
|
+
alert({
|
|
23
|
+
content: 'hylid-bridge alert',
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## API
|
|
30
|
+
|
|
31
|
+
Please refer [our website](https://miniprogram.alipay.com/docs/miniprogram/mpdev/api_api-reference) for more detail.
|
|
32
|
+
|
|
33
|
+
## License
|
|
34
|
+
|
|
35
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hylid-bridge",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
|
+
"description": "Unite Api For AliPay Plus MiniProgram Project.",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"build": "gulp build",
|
|
7
8
|
"dev": "gulp dev",
|
|
@@ -10,7 +11,11 @@
|
|
|
10
11
|
"files": [
|
|
11
12
|
"lib"
|
|
12
13
|
],
|
|
13
|
-
"
|
|
14
|
+
"homepage": "https://miniprogram.alipay.com/",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"miniprogram",
|
|
17
|
+
"alipay plus"
|
|
18
|
+
],
|
|
14
19
|
"license": "MIT",
|
|
15
20
|
"devDependencies": {
|
|
16
21
|
"@babel/preset-typescript": "^7.16.0",
|