chore:1.0.13

This commit is contained in:
曾文豪
2023-11-01 10:55:35 +08:00
parent 039c82eae1
commit 77b361382e
3 changed files with 17 additions and 2 deletions

13
.gitlab-ci.yml Normal file
View 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

View File

@@ -1,6 +1,6 @@
{
"name": "@tiesheng/npm-tool",
"version": "1.0.12",
"version": "1.0.13",
"description": "npm tool package",
"main": "index.js",
"scripts": {

View File

@@ -99,8 +99,10 @@ async function req(url, options) {
let data = res.data;
if (res.encrypt) {
data = crypto.decrypt(data);
if (!Common.isEmpty(data)) {
data = Common.parseJSON(data, data);
}
}
resolve({data, recordsTotal: res.recordsTotal})
} else {
GlobalConfig.getConfig().onHttpError(res);