@halofe/cloud-product-detail-msite-sdk
Advanced tools
Comparing version 0.0.3 to 0.1.14
{ | ||
"name": "@halofe/cloud-product-detail-msite-sdk", | ||
"version": "0.0.3", | ||
"sideEffects": false, | ||
"description": "@halofe/cloud-product-detail-msite-sdk", | ||
"version": "0.1.14", | ||
"description": "描述信息", | ||
"main": "dist/index.js", | ||
"files": [ | ||
"dist" | ||
"dist", | ||
"viewmodel.json" | ||
], | ||
"keywords": [ | ||
"halo-cloud-sdk", | ||
"react", | ||
"@halofe/cloud-product-detail-msite-sdk" | ||
"halo-sdk", | ||
"react" | ||
], | ||
"shopConfig": { | ||
"type": "module", | ||
"framework": "react", | ||
"needExternal": false, | ||
"theme": "@alife/dpl-aStore" | ||
"author": { | ||
"name": "", | ||
"email": "" | ||
}, | ||
"license": "ISC", | ||
"repository": {}, | ||
"publishConfig": {}, | ||
"scripts": { | ||
"check-types": "tsc", | ||
"start": "fie start", | ||
"build": "fie build", | ||
"prepublishOnly": "fie build && node ./bin/check.js prepublish", | ||
"postpublish": "node ./bin/check.js postpublish", | ||
"precommit": "lint-staged", | ||
"commitmsg": "commitlint -E GIT_PARAMS", | ||
"lint": "eslint --ext .jsx,.js --fix ./src", | ||
"prettier": "prettier --write ./src/**/*.{ts,tsx,js,jsx,json,scss,less,md}" | ||
"prettier": "prettier --write ./src/**/*.{js,jsx,json,scss,less,md}" | ||
}, | ||
"fie-channel": "npm", | ||
"browserslist": [ | ||
@@ -48,4 +42,35 @@ "defaults", | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"dependencies": { | ||
"axios": "^0.18.1", | ||
"lodash": "^4.17.15", | ||
"react": "^16.8.6", | ||
"react-dom": "^16.8.6", | ||
"siema": "^1.5.1" | ||
}, | ||
"client": "npm", | ||
"devDependencies": { | ||
"@ali/dinamicx-xml-loader": "^0.0.1", | ||
"@ali/eslint-config-halo": "^1.3.1", | ||
"@ali/eslint-config-intl18-react": "^0.3.1", | ||
"@ali/husky": "^1.0.0", | ||
"@commitlint/cli": "^7.5.2", | ||
"@commitlint/config-conventional": "^7.5.0", | ||
"@types/node": "^12.12.20", | ||
"@types/react": "^16.9.16", | ||
"@types/react-dom": "^16.9.4", | ||
"eslint": "^5.14.1", | ||
"fie": "^3.1.6", | ||
"lint-staged": "^8.1.4", | ||
"prettier": "^1.16.4", | ||
"prop-types": "15.7.2", | ||
"raw-loader": "^4.0.0", | ||
"react": "^16.8.2", | ||
"react-dom": "^16.8.2", | ||
"react-redux": "^4.4.5", | ||
"redux": "^3.7.2", | ||
"redux-thunk": "^2.3.0", | ||
"sync-request": "^6.1.0", | ||
"ts-loader": "^6.2.1", | ||
"typescript": "^3.7.3" | ||
}, | ||
"peerDependencies": { | ||
@@ -58,18 +83,3 @@ "react": "^16.8.2", | ||
"prop-types": "15.7.2" | ||
}, | ||
"astore": { | ||
"name": "中文名称", | ||
"sdkType": "", | ||
"bizDomainId": "", | ||
"bizDomainName": "", | ||
"pageTypeId": "", | ||
"pageTypeName": "", | ||
"customType": "", | ||
"terminal": "", | ||
"protocol": "", | ||
"pic": "", | ||
"documentUrl": "", | ||
"ownerList": [] | ||
}, | ||
"author": {} | ||
} | ||
} |
@@ -1,60 +0,40 @@ | ||
# 云上商品详情 SDK | ||
# @halofe/cloud-product-detail-msite-sdk | ||
# cloud-trade-cart-msite-sdk | ||
## Description | ||
> SDK 使用文档 @todo | ||
> 云化商品详情 SDK | ||
## SDK 使用文档 | ||
## Install | ||
SDK 简介。~~介绍 SDK 特点/新增方法等~~ | ||
> 描述 SDK 的安装方法,示例: | ||
## 开发环境依赖 | ||
- `nodejs`: >= 8.9.0 | ||
- `fie`: >= 3.1.2 | ||
- `fie-toolkit-halo-sdk`: >= 0.9.3 | ||
```sh | ||
npm i -g fie | ||
fie install fie-toolkit-halo-sdk | ||
``` | ||
tnpm i @halofe/cloud-product-detail-msite-sdk --save | ||
``` | ||
## SDK 开发 | ||
## Usage | ||
### 开发调试 | ||
> 描述 SDK 的使用方法,示例: | ||
```sh | ||
fie start | ||
``` | ||
### 打包 | ||
```sh | ||
fie build | ||
import exampleSdk from @ali/halo-cloud-product-detail-msite-sdk; | ||
const options = {}; | ||
const examplePage = new exampleSdk(options); | ||
examplePage.run() | ||
``` | ||
### 构建分析 | ||
## API | ||
```sh | ||
fie analyse | ||
``` | ||
> 描述你的 SDK 所需要的参数规范,示例: | ||
### 代码提交 | ||
options 为一个 object 类型,其格式如下 | ||
```sh | ||
git commit -m "fix: a bug" && git push | ||
``` | ||
| key | value 类型 | 是否必传 | 可选值范围 | 默认值 | 参数描述 | | ||
| ---- | ---------- | -------- | ---------- | ------ | -------------------- | | ||
| data | object | 是 | 无 | 无 | sdk 所接受的奥创数据 | | ||
### npm 发布 | ||
## Contributing | ||
```sh | ||
tnpm publish | ||
``` | ||
> 描述当前 SDK 的主要维护者,方便使用者反馈问题 | ||
## CDN 发布 | ||
SDK 在开发阶段可以直接发布 CDN 以方便快速和后端联调,发布的 CDN 以 demo/demo.js 为入口,线上的配置可以在这个入口配置。 | ||
```sh | ||
fie publish -d | ||
``` | ||
@() |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
798392
6
3252
1
2
1
1
11
23
41
+ Addedaxios@^0.18.1
+ Addedlodash@^4.17.15
+ Addedreact@^16.8.6
+ Addedreact-dom@^16.8.6
+ Addedsiema@^1.5.1
+ Addedaxios@0.18.1(transitive)
+ Addedfollow-redirects@1.5.10(transitive)
+ Addedis-buffer@2.0.5(transitive)
+ Addedsiema@1.5.1(transitive)