Skip to content

Commit 13b52cb

Browse files
committed
uuid版本从3.3.3更新至8.3.2
1 parent 71b9c84 commit 13b52cb

File tree

11 files changed

+31
-26
lines changed

11 files changed

+31
-26
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
# Next
1010

1111

12+
# 5.4.0
13+
> 2022.01.27
14+
1. <font color=orange>修改</font> `uuid`版本从`3.3.3`更新至`8.3.2`
15+
16+
1217
# 5.3.1
1318
> 2021.11.17
1419
1. <font color=red>修复</font> 请求返回`data``null`时报错

dist/base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3333
return (mod && mod.__esModule) ? mod : { "default": mod };
3434
};
3535
Object.defineProperty(exports, "__esModule", { value: true });
36-
var v4_1 = __importDefault(require("uuid/v4"));
36+
var uuid_1 = require("uuid");
3737
var browser_which_1 = __importDefault(require("browser-which"));
3838
var promise_1 = require("./utils/promise");
3939
var form_1 = require("./utils/form");
@@ -546,7 +546,7 @@ var AjaxBase = /** @class */ (function () {
546546
}
547547
if (!options.simple) {
548548
if (!isXCorrelationIDExist) {
549-
_opts.xCorrelationID = v4_1.default();
549+
_opts.xCorrelationID = uuid_1.v4();
550550
xhr.setRequestHeader('X-Correlation-ID', _opts.xCorrelationID);
551551
}
552552
if (!isContentTypeExist && !form_1.isFormData(params) && (!options || options.encrypt !== 'all')) {

dist/signature-extend.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
55
Object.defineProperty(exports, "__esModule", { value: true });
66
var lodash_1 = __importDefault(require("lodash"));
77
var client_crypto_1 = __importDefault(require("client-crypto"));
8-
var v4_1 = __importDefault(require("uuid/v4"));
8+
var uuid_1 = require("uuid");
99
var form_1 = require("./utils/form");
1010
/**
1111
* 签名扩展。
@@ -39,7 +39,7 @@ function signatureExtend() {
3939
? ''
4040
: _this.stringifyParams(params, method, { cache: true, encodeValue: false });
4141
var timestamp = new Date().getTime();
42-
var appNonce = v4_1.default();
42+
var appNonce = uuid_1.v4();
4343
lodash_1.default.merge(options, {
4444
headers: (_b = {},
4545
_b[signField] = client_crypto_1.default.SHA256("" + signatureStr + timestamp + appNonce.substring(2, appNonce.length - 1)),

example/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"react-router-dom": "5.1.2",
8282
"react-syntax-highlighter": "10.3.0",
8383
"tsx-control-statements": "^2.17.1",
84-
"typescript": "^3.9.7",
84+
"typescript": "4.2.4",
8585
"uglifyjs-webpack-plugin": "^2.2.0",
8686
"url-loader": "1.1.2",
8787
"webpack": "4.43.0",

example/server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
"koa-session": "5.13.1",
2828
"koa-sleep": "0.1.0",
2929
"koa-static": "5.0.0",
30-
"lodash": "4.17.19",
30+
"lodash": "4.17.21",
3131
"marked": "0.7.0",
3232
"moment": "2.24.0",
3333
"node-rsa": "1.0.8",
3434
"pandora-aes": "1.0.0",
3535
"path": "0.12.7",
3636
"ts-node-dev": "1.0.0-pre.40",
3737
"typescript": "3.7.2",
38-
"uuid": "3.3.3"
38+
"uuid": "8.3.2"
3939
},
4040
"devDependencies": {
4141
"@types/request-promise-native": "1.0.17"

example/server/src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as _ from 'lodash';
22
import * as Koa from 'koa';
3-
import * as uuid from 'uuid/v4';
3+
import { v4 as uuid } from 'uuid';
44

55
import { encryptData, decryptData } from './crypto';
66

lib/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import uuid from 'uuid/v4';
1+
import { v4 as uuid } from 'uuid';
22
import browser from 'browser-which';
33
import { promisify } from './utils/promise';
44
import { isFormData } from './utils/form';

lib/signature-extend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import _ from 'lodash';
22
import Crypto from 'client-crypto';
3-
import uuid from 'uuid/v4';
3+
import { v4 as uuid } from 'uuid';
44
import { isFormData } from './utils/form';
55
import { IAjax, IAjaxProcessDataAfterOptions, IParams, IMethod, IOptions } from './interface';
66

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)