mp-front-cli 0.0.20 → 0.0.21
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.
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CustomLogger } from "./custom-logger";
|
|
2
2
|
export declare class CustomEncoder extends CustomLogger {
|
|
3
3
|
encode<T>(data: T): string;
|
|
4
|
-
decode<T>(data: string | T |
|
|
4
|
+
decode<T>(data: string | T | {
|
|
5
|
+
info: string;
|
|
6
|
+
}): T;
|
|
5
7
|
}
|
|
6
8
|
//# sourceMappingURL=custom-encoder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-encoder.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-encoder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,qBAAa,aAAc,SAAQ,YAAY;IAC7C,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IAajB,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"custom-encoder.d.ts","sourceRoot":"","sources":["../../../src/core/utils/custom-encoder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,qBAAa,aAAc,SAAQ,YAAY;IAC7C,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;IAajB,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;CAkB9C"}
|
package/dist/mp-front-cli.es.js
CHANGED
|
@@ -8445,9 +8445,8 @@ class Tw extends Hi {
|
|
|
8445
8445
|
}
|
|
8446
8446
|
decode(r) {
|
|
8447
8447
|
try {
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
const { info: t } = JSON.parse(r);
|
|
8448
|
+
af.isString(r) && (r = JSON.parse(r));
|
|
8449
|
+
const { info: t } = r;
|
|
8451
8450
|
this.logDebug("decode CustomEncoder", JSON.stringify(t));
|
|
8452
8451
|
const s = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
|
|
8453
8452
|
if (af.isString(t) && s.test(t)) {
|