@tmsfe/tms-core 0.0.68 → 0.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/test/test.js +4 -4
package/package.json
CHANGED
package/test/test.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
2
|
const path = require('path');
|
|
3
3
|
const readline = require('readline');
|
|
4
|
-
const { md5 } = require('../src/md5');
|
|
4
|
+
// const { md5 } = require('../src/md5');
|
|
5
5
|
const openSourceMd5 = require('md5');
|
|
6
6
|
|
|
7
7
|
const scriptStartDir = process.cwd();
|
|
@@ -25,7 +25,7 @@ const readLineByLine = (filePath, onReadLine, startLine, endLine) => { // eslint
|
|
|
25
25
|
let line = 0;
|
|
26
26
|
rl.on('line', (data) => {
|
|
27
27
|
line += 1;
|
|
28
|
-
if (line
|
|
28
|
+
if (line > endLine) return rl.close();
|
|
29
29
|
if (line < startLine) return;
|
|
30
30
|
onReadLine(data);
|
|
31
31
|
});
|
|
@@ -64,10 +64,10 @@ const seriesParam = (param) => {
|
|
|
64
64
|
|
|
65
65
|
const sign = (param = {}) => {
|
|
66
66
|
const data = Object.assign({}, param);
|
|
67
|
-
// delete data.token;
|
|
68
67
|
delete data.sign;
|
|
69
68
|
const str = seriesParam(data);
|
|
70
|
-
return { sign: md5(str), openSourceSign: openSourceMd5(str), str };
|
|
69
|
+
// return { sign: md5(str), openSourceSign: openSourceMd5(str), str };
|
|
70
|
+
return { sign: '', openSourceSign: openSourceMd5(str), str };
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
(async () => {
|