@newbeebox/newbeebox-client-web-sdk 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +25 -0
  2. package/package.json +12 -3
package/README.md CHANGED
@@ -0,0 +1,25 @@
1
+ ## 新手盒子客户端SDK
2
+ 用于Web类第三方应用调用新手盒子客户端相关功能的开发组件。
3
+
4
+ ### 安装
5
+ ```bash
6
+ npm install @newbeebox/newbeebox-client-web-sdk
7
+ ```
8
+
9
+ ### 快速上手
10
+ 代码示例:
11
+
12
+ ```javascript
13
+ // 引用
14
+ import {NewBeeClient} from "newbeebox_client_web_sdk"
15
+
16
+ // 1.初始化客户端
17
+ let client = new NewBeeClient();
18
+ // 注册应用
19
+ await client.Init("newbee_appid");
20
+
21
+ // 2.功能调用
22
+ // 示例: 打开应用订阅界面
23
+ await client.ShowSubscriptionPage()
24
+
25
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newbeebox/newbeebox-client-web-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "NewBeeBox Client SDK for Web",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -9,8 +9,17 @@
9
9
  "*.js",
10
10
  "types/*.d.ts"
11
11
  ],
12
- "scripts": {},
13
- "keywords": ["newbeebox","wow","sdk","client"],
12
+ "scripts": {
13
+ "release:patch": "npm version patch && npm publish",
14
+ "release:minor": "npm version minor && npm publish",
15
+ "release:major": "npm version major && npm publish"
16
+ },
17
+ "keywords": [
18
+ "newbeebox",
19
+ "wow",
20
+ "sdk",
21
+ "client"
22
+ ],
14
23
  "author": "NewBeeBoxTeam",
15
24
  "license": "ISC",
16
25
  "publishConfig": {