chore:1.0.13
This commit is contained in:
13
.gitlab-ci.yml
Normal file
13
.gitlab-ci.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
|
||||||
|
build-jar:
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- zengos
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == "master"
|
||||||
|
script:
|
||||||
|
- echo "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}">.npmrc
|
||||||
|
- npm publish
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tiesheng/npm-tool",
|
"name": "@tiesheng/npm-tool",
|
||||||
"version": "1.0.12",
|
"version": "1.0.13",
|
||||||
"description": "npm tool package",
|
"description": "npm tool package",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -99,8 +99,10 @@ async function req(url, options) {
|
|||||||
let data = res.data;
|
let data = res.data;
|
||||||
if (res.encrypt) {
|
if (res.encrypt) {
|
||||||
data = crypto.decrypt(data);
|
data = crypto.decrypt(data);
|
||||||
|
if (!Common.isEmpty(data)) {
|
||||||
data = Common.parseJSON(data, data);
|
data = Common.parseJSON(data, data);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
resolve({data, recordsTotal: res.recordsTotal})
|
resolve({data, recordsTotal: res.recordsTotal})
|
||||||
} else {
|
} else {
|
||||||
GlobalConfig.getConfig().onHttpError(res);
|
GlobalConfig.getConfig().onHttpError(res);
|
||||||
|
|||||||
Reference in New Issue
Block a user