@ibiz-template/core 0.2.15 → 0.2.18-dev.0
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/dist/index.esm.js +4 -389
- package/dist/index.system.min.js +2 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/command/interface/index.d.ts +3 -3
- package/out/command/interface/index.d.ts.map +1 -1
- package/out/utils/index.d.ts +2 -1
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/logger/logger.js +2 -2
- package/out/utils/net/net.js +2 -2
- package/package.json +3 -2
- package/src/command/interface/index.ts +3 -3
- package/src/utils/index.ts +2 -1
- package/src/utils/logger/logger.ts +2 -2
- package/src/utils/net/net.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ICommand, Command, ICommandHandler, ICommandsMap, ICommandRegistry, } from './command/command';
|
|
2
|
-
export { ICommandOption } from './command/command-option';
|
|
3
|
-
export { IDisposable } from './disposable/disposable';
|
|
1
|
+
export type { ICommand, Command, ICommandHandler, ICommandsMap, ICommandRegistry, } from './command/command';
|
|
2
|
+
export type { ICommandOption } from './command/command-option';
|
|
3
|
+
export type { IDisposable } from './disposable/disposable';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/command/interface/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/command/interface/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,QAAQ,EACR,OAAO,EACP,eAAe,EACf,YAAY,EACZ,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC"}
|
package/out/utils/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export * from './interceptor';
|
|
2
2
|
export { MessageCenter } from './message-center';
|
|
3
3
|
export { Namespace } from './namespace/namespace';
|
|
4
|
-
export { IHttpResponse
|
|
4
|
+
export type { IHttpResponse } from './net/http-response';
|
|
5
|
+
export { HttpResponse } from './net/http-response';
|
|
5
6
|
export { Net } from './net/net';
|
|
6
7
|
export { StringUtil } from './string-util/string-util';
|
|
7
8
|
export * from './util/util';
|
package/out/utils/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC"}
|
package/out/utils/net/net.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import { fetchEventSource, } from '@microsoft/fetch-event-source';
|
|
3
3
|
import { merge } from 'lodash-es';
|
|
4
|
-
import
|
|
4
|
+
import qs from 'qs';
|
|
5
5
|
import { notNilEmpty } from 'qx-util';
|
|
6
6
|
import { mergeDeepRight } from 'ramda';
|
|
7
7
|
import { HttpError } from '../../error';
|
|
@@ -376,7 +376,7 @@ export class Net {
|
|
|
376
376
|
.join('/');
|
|
377
377
|
url = urlSplit.length > 1 ? urlSplit.join('?') : urlSplit[0];
|
|
378
378
|
}
|
|
379
|
-
const strParams = stringify(params);
|
|
379
|
+
const strParams = qs.stringify(params);
|
|
380
380
|
if (notNilEmpty(strParams)) {
|
|
381
381
|
if (url.endsWith('?')) {
|
|
382
382
|
url = `${url}${strParams}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18-dev.0",
|
|
4
4
|
"description": "核心包",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -49,5 +49,6 @@
|
|
|
49
49
|
"qs": "^6.11.0",
|
|
50
50
|
"qx-util": "^0.4.8",
|
|
51
51
|
"ramda": "^0.29.0"
|
|
52
|
-
}
|
|
52
|
+
},
|
|
53
|
+
"gitHead": "de22b329e96206702748d184505240544290da9a"
|
|
53
54
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type {
|
|
2
2
|
ICommand,
|
|
3
3
|
Command,
|
|
4
4
|
ICommandHandler,
|
|
5
5
|
ICommandsMap,
|
|
6
6
|
ICommandRegistry,
|
|
7
7
|
} from './command/command';
|
|
8
|
-
export { ICommandOption } from './command/command-option';
|
|
9
|
-
export { IDisposable } from './disposable/disposable';
|
|
8
|
+
export type { ICommandOption } from './command/command-option';
|
|
9
|
+
export type { IDisposable } from './disposable/disposable';
|
package/src/utils/index.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export * from './interceptor';
|
|
2
2
|
export { MessageCenter } from './message-center';
|
|
3
3
|
export { Namespace } from './namespace/namespace';
|
|
4
|
-
export { IHttpResponse
|
|
4
|
+
export type { IHttpResponse } from './net/http-response';
|
|
5
|
+
export { HttpResponse } from './net/http-response';
|
|
5
6
|
export { Net } from './net/net';
|
|
6
7
|
export { StringUtil } from './string-util/string-util';
|
|
7
8
|
export * from './util/util';
|
package/src/utils/net/net.ts
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
fetchEventSource,
|
|
12
12
|
} from '@microsoft/fetch-event-source';
|
|
13
13
|
import { merge } from 'lodash-es';
|
|
14
|
-
import
|
|
14
|
+
import qs from 'qs';
|
|
15
15
|
import { notNilEmpty } from 'qx-util';
|
|
16
16
|
import { mergeDeepRight } from 'ramda';
|
|
17
17
|
import { HttpError } from '../../error';
|
|
@@ -448,7 +448,7 @@ export class Net {
|
|
|
448
448
|
.join('/');
|
|
449
449
|
url = urlSplit.length > 1 ? urlSplit.join('?') : urlSplit[0];
|
|
450
450
|
}
|
|
451
|
-
const strParams: string = stringify(params);
|
|
451
|
+
const strParams: string = qs.stringify(params);
|
|
452
452
|
if (notNilEmpty(strParams)) {
|
|
453
453
|
if (url.endsWith('?')) {
|
|
454
454
|
url = `${url}${strParams}`;
|