Skip to content

Commit 5c107b5

Browse files
committed
修改 版本更新至 4.15.4
1 parent 762cfef commit 5c107b5

18 files changed

+657
-1152
lines changed

.github/workflows/npm-publish.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Node.js Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
# build:
12+
# runs-on: ubuntu-latest
13+
# steps:
14+
# - uses: actions/checkout@v2
15+
# - uses: actions/setup-node@v1
16+
# with:
17+
# node-version: 12
18+
# - run: npm ci
19+
# - run: npm test
20+
21+
publish-npm:
22+
# needs: build
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions/setup-node@v1
27+
with:
28+
node-version: 12
29+
registry-url: https://registry.npmjs.org/
30+
# - run: npm ci
31+
- run: npm publish --access public
32+
env:
33+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
34+
35+
publish-gpr:
36+
# needs: build
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: actions/setup-node@v1
41+
with:
42+
node-version: 12
43+
registry-url: https://npm.pkg.github.com/
44+
# - run: npm ci
45+
- run: npm publish
46+
env:
47+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/Baidu-AIP/nodejs-sdk.svg?branch=master)](https://travis-ci.org/Baidu-AIP/nodejs-sdk)
1+
[![Build Status](https://travis-ci.org/meteorasd555/learn.svg?branch=master)](https://travis-ci.org/meteorasd555/learn)
22
[![npm](https://img.shields.io/npm/v/baidu-aip-sdk.svg)](https://www.npmjs.com/package/baidu-aip-sdk)
33

44
# 安装百度AI开放平台 Node.js SDK

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "baidu-aip-sdk",
3-
"version": "2.4.6",
2+
"name": "@yocdev/baidu-aip-sdk",
3+
"version": "4.15.4",
44
"description": "百度AI开放平台Nodejs SDK, 文档以及详情请访问官网: https://ai.baidu.com",
55
"main": "src/index.js",
66
"scripts": {
@@ -13,11 +13,10 @@
1313
"url": "https://github.com/Baidu-AIP/nodejs-sdk.git"
1414
},
1515
"dependencies": {
16-
"debug": "^2.6.0",
17-
"iconv-lite": "^0.4.15",
18-
"keep-alive-agent": "0.0.1",
19-
"request": "^2.79.0",
20-
"underscore": "^1.8.3"
16+
"debug": "^2.6.9",
17+
"iconv-lite": "^0.4.24",
18+
"request": "^2.88.2",
19+
"underscore": "^1.12.0"
2120
},
2221
"optionalDependencies": {
2322
"should": "^13.2.0",

src/AipBodyAnalysis.js

Lines changed: 0 additions & 202 deletions
This file was deleted.

0 commit comments

Comments
 (0)