@kc-one/smart-fill-sdk 0.0.1-beta.1 → 0.0.1-beta.2
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 +4 -4
- package/dist/index.esm.js +408 -254
- package/dist/index.umd.cjs +6 -6
- package/dist/src/adapters/element.d.ts +3 -0
- package/dist/src/adapters/element.d.ts.map +1 -0
- package/dist/src/core/smart-fill-instance.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/scanner/dom-scanner.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,8 +14,8 @@ npm run dev
|
|
|
14
14
|
## 接入示例
|
|
15
15
|
|
|
16
16
|
```ts
|
|
17
|
-
import { SmartFill } from '@kc-
|
|
18
|
-
import '@kc-
|
|
17
|
+
import { SmartFill } from '@kc-one/smart-fill-sdk'
|
|
18
|
+
import '@kc-one/smart-fill-sdk/style.css'
|
|
19
19
|
|
|
20
20
|
await SmartFill.setup({ apiKey: 'seKey_xxxxxxxxxxxxx' })
|
|
21
21
|
// 网关地址在 src/config/defaults.ts 的 DEFAULT_BASE_URL 中配置
|
|
@@ -181,10 +181,10 @@ smart-fill-sdk/
|
|
|
181
181
|
|
|
182
182
|
## 发布到 npm 公共仓库
|
|
183
183
|
|
|
184
|
-
包归属 [@kc-
|
|
184
|
+
包归属 [@kc-one](https://www.npmjs.com/settings/kc-one/packages) 组织,包名为 `@kc-one/smart-fill-sdk`。
|
|
185
185
|
|
|
186
186
|
```bash
|
|
187
|
-
npm login # 使用已加入 kc-
|
|
187
|
+
npm login # 使用已加入 kc-one 组织且开启 2FA 的账号
|
|
188
188
|
npm run build
|
|
189
189
|
npm publish --access public # publishConfig 已配置 public + registry.npmjs.org
|
|
190
190
|
```
|