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",
|
||||
"version": "1.0.12",
|
||||
"version": "1.0.13",
|
||||
"description": "npm tool package",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -99,7 +99,9 @@ async function req(url, options) {
|
||||
let data = res.data;
|
||||
if (res.encrypt) {
|
||||
data = crypto.decrypt(data);
|
||||
data = Common.parseJSON(data, data);
|
||||
if (!Common.isEmpty(data)) {
|
||||
data = Common.parseJSON(data, data);
|
||||
}
|
||||
}
|
||||
resolve({data, recordsTotal: res.recordsTotal})
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user