@plaidev/karte-action-sdk 1.1.128 → 1.1.129-27954181.90f54989
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.d.ts +3 -2
- package/dist/hydrate/index.es.js +4 -0
- package/dist/index.es.d.ts +3 -2
- package/dist/index.es.js +4 -0
- package/package.json +1 -1
@@ -873,7 +873,7 @@ declare function onTime(time: number, fn: Function): () => void;
|
|
873
873
|
* アクションのログの記録の管理
|
874
874
|
*/
|
875
875
|
/** @internal */
|
876
|
-
type LogLevel = "info" | "error" | "warn";
|
876
|
+
type LogLevel = "info" | "error" | "warn" | "system";
|
877
877
|
/** @internal */
|
878
878
|
type Log = {
|
879
879
|
level: LogLevel;
|
@@ -900,7 +900,8 @@ declare const logger: {
|
|
900
900
|
log: (...messages: any[]) => void;
|
901
901
|
error: (...messages: any[]) => void;
|
902
902
|
warn: (...messages: any[]) => void;
|
903
|
-
|
903
|
+
system: (...messages: any[]) => void;
|
904
|
+
event: (name: string, values?: any) => void;
|
904
905
|
clear: () => void;
|
905
906
|
clearEvents: () => void;
|
906
907
|
};
|
package/dist/hydrate/index.es.js
CHANGED
@@ -953,6 +953,10 @@ const logger = {
|
|
953
953
|
const log = cloneToJson({ level: 'warn', messages, date: new Date() });
|
954
954
|
w(window).postMessage({ type: 'KARTE-ACTION-LOGGER', detail: { method: 'log', log } }, '*');
|
955
955
|
},
|
956
|
+
system: (...messages) => {
|
957
|
+
const log = cloneToJson({ level: 'system', messages, date: new Date() });
|
958
|
+
w(window).postMessage({ type: 'KARTE-ACTION-LOGGER', detail: { method: 'log', log } }, '*');
|
959
|
+
},
|
956
960
|
event: (name, values) => {
|
957
961
|
const event = values ? { name, values, date: new Date() } : { name, date: new Date() };
|
958
962
|
w(window).postMessage({
|
package/dist/index.es.d.ts
CHANGED
@@ -873,7 +873,7 @@ declare function onTime(time: number, fn: Function): () => void;
|
|
873
873
|
* アクションのログの記録の管理
|
874
874
|
*/
|
875
875
|
/** @internal */
|
876
|
-
type LogLevel = "info" | "error" | "warn";
|
876
|
+
type LogLevel = "info" | "error" | "warn" | "system";
|
877
877
|
/** @internal */
|
878
878
|
type Log = {
|
879
879
|
level: LogLevel;
|
@@ -900,7 +900,8 @@ declare const logger: {
|
|
900
900
|
log: (...messages: any[]) => void;
|
901
901
|
error: (...messages: any[]) => void;
|
902
902
|
warn: (...messages: any[]) => void;
|
903
|
-
|
903
|
+
system: (...messages: any[]) => void;
|
904
|
+
event: (name: string, values?: any) => void;
|
904
905
|
clear: () => void;
|
905
906
|
clearEvents: () => void;
|
906
907
|
};
|
package/dist/index.es.js
CHANGED
@@ -1003,6 +1003,10 @@ const logger = {
|
|
1003
1003
|
const log = cloneToJson({ level: 'warn', messages, date: new Date() });
|
1004
1004
|
w(window).postMessage({ type: 'KARTE-ACTION-LOGGER', detail: { method: 'log', log } }, '*');
|
1005
1005
|
},
|
1006
|
+
system: (...messages) => {
|
1007
|
+
const log = cloneToJson({ level: 'system', messages, date: new Date() });
|
1008
|
+
w(window).postMessage({ type: 'KARTE-ACTION-LOGGER', detail: { method: 'log', log } }, '*');
|
1009
|
+
},
|
1006
1010
|
event: (name, values) => {
|
1007
1011
|
const event = values ? { name, values, date: new Date() } : { name, date: new Date() };
|
1008
1012
|
w(window).postMessage({
|