@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.
@@ -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
- event: (name: string, values: any) => void;
903
+ system: (...messages: any[]) => void;
904
+ event: (name: string, values?: any) => void;
904
905
  clear: () => void;
905
906
  clearEvents: () => void;
906
907
  };
@@ -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({
@@ -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
- event: (name: string, values: any) => void;
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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.128",
3
+ "version": "1.1.129-27954181.90f54989",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",