@infinite-table/infinite-react 7.2.2 → 7.2.3
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/index.dev.js +16 -7
- package/index.dev.mjs +16 -7
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +2 -2
package/index.dev.js
CHANGED
|
@@ -1140,14 +1140,14 @@ if (false) {
|
|
|
1140
1140
|
// src/utils/debugLoggers.ts
|
|
1141
1141
|
var dbg = (channelName) => {
|
|
1142
1142
|
const result = debug(
|
|
1143
|
-
channelName ?
|
|
1143
|
+
channelName ? `IT:${channelName}:TYPE=debug` : "IT:TYPE=debug"
|
|
1144
1144
|
);
|
|
1145
1145
|
result.logFn = console.log.bind(console);
|
|
1146
1146
|
return result;
|
|
1147
1147
|
};
|
|
1148
1148
|
var err = (channelName) => {
|
|
1149
1149
|
const result = debug(
|
|
1150
|
-
channelName ?
|
|
1150
|
+
channelName ? `IT:${channelName}:TYPE=error` : "IT:TYPE=error"
|
|
1151
1151
|
);
|
|
1152
1152
|
result.logFn = console.error.bind(console);
|
|
1153
1153
|
return result;
|
|
@@ -15912,7 +15912,7 @@ var CellSelectionState = class {
|
|
|
15912
15912
|
};
|
|
15913
15913
|
|
|
15914
15914
|
// src/utils/logger.ts
|
|
15915
|
-
var log = debug("InfiniteTable");
|
|
15915
|
+
var log = debug("IT:InfiniteTable");
|
|
15916
15916
|
var COLOR_ERROR_VALUE = `#dc3545`;
|
|
15917
15917
|
var COLOR_WARN_VALUE = `#eb9316`;
|
|
15918
15918
|
var warnChannel = "Warn";
|
|
@@ -25719,7 +25719,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
25719
25719
|
}
|
|
25720
25720
|
let valid2 = isValidLicense(licenseKey, {
|
|
25721
25721
|
publishedAt: 1624970570587,
|
|
25722
|
-
version: "7.2.
|
|
25722
|
+
version: "7.2.3"
|
|
25723
25723
|
});
|
|
25724
25724
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
25725
25725
|
return true;
|
|
@@ -29223,7 +29223,7 @@ var setupHook = once(() => {
|
|
|
29223
29223
|
}
|
|
29224
29224
|
};
|
|
29225
29225
|
window.__INFINITE_TABLE_DEVTOOLS_HOOK__ = hookFn;
|
|
29226
|
-
debug.onLogIntent("
|
|
29226
|
+
debug.onLogIntent("IT:*", (options) => {
|
|
29227
29227
|
postMessage({
|
|
29228
29228
|
...messageBase,
|
|
29229
29229
|
url: getPageUrlOfWindow(),
|
|
@@ -29234,7 +29234,16 @@ var setupHook = once(() => {
|
|
|
29234
29234
|
color: options.color,
|
|
29235
29235
|
args: options.args.map((arg) => {
|
|
29236
29236
|
if (typeof arg === "object" && arg !== null) {
|
|
29237
|
-
|
|
29237
|
+
let str = "";
|
|
29238
|
+
try {
|
|
29239
|
+
str = JSON.stringify(arg);
|
|
29240
|
+
} catch (e) {
|
|
29241
|
+
console.error(
|
|
29242
|
+
`Cannot stringify arg in global log interceptor`,
|
|
29243
|
+
arg
|
|
29244
|
+
);
|
|
29245
|
+
}
|
|
29246
|
+
return str;
|
|
29238
29247
|
}
|
|
29239
29248
|
return String(arg);
|
|
29240
29249
|
}),
|
|
@@ -30235,7 +30244,7 @@ var DataQuery = class {
|
|
|
30235
30244
|
this.isDone = () => this.state === "success" || this.state === "error";
|
|
30236
30245
|
this.isSuccess = () => this.state === "success";
|
|
30237
30246
|
this.debugName = debugName || "";
|
|
30238
|
-
this.logger = debug(
|
|
30247
|
+
this.logger = debug(`IT:${debugName}:DataQuery`);
|
|
30239
30248
|
}
|
|
30240
30249
|
};
|
|
30241
30250
|
|
package/index.dev.mjs
CHANGED
|
@@ -1068,14 +1068,14 @@ if (false) {
|
|
|
1068
1068
|
// src/utils/debugLoggers.ts
|
|
1069
1069
|
var dbg = (channelName) => {
|
|
1070
1070
|
const result = debug(
|
|
1071
|
-
channelName ?
|
|
1071
|
+
channelName ? `IT:${channelName}:TYPE=debug` : "IT:TYPE=debug"
|
|
1072
1072
|
);
|
|
1073
1073
|
result.logFn = console.log.bind(console);
|
|
1074
1074
|
return result;
|
|
1075
1075
|
};
|
|
1076
1076
|
var err = (channelName) => {
|
|
1077
1077
|
const result = debug(
|
|
1078
|
-
channelName ?
|
|
1078
|
+
channelName ? `IT:${channelName}:TYPE=error` : "IT:TYPE=error"
|
|
1079
1079
|
);
|
|
1080
1080
|
result.logFn = console.error.bind(console);
|
|
1081
1081
|
return result;
|
|
@@ -15854,7 +15854,7 @@ var CellSelectionState = class {
|
|
|
15854
15854
|
};
|
|
15855
15855
|
|
|
15856
15856
|
// src/utils/logger.ts
|
|
15857
|
-
var log = debug("InfiniteTable");
|
|
15857
|
+
var log = debug("IT:InfiniteTable");
|
|
15858
15858
|
var COLOR_ERROR_VALUE = `#dc3545`;
|
|
15859
15859
|
var COLOR_WARN_VALUE = `#eb9316`;
|
|
15860
15860
|
var warnChannel = "Warn";
|
|
@@ -25670,7 +25670,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
25670
25670
|
}
|
|
25671
25671
|
let valid2 = isValidLicense(licenseKey, {
|
|
25672
25672
|
publishedAt: 1624970570587,
|
|
25673
|
-
version: "7.2.
|
|
25673
|
+
version: "7.2.3"
|
|
25674
25674
|
});
|
|
25675
25675
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
25676
25676
|
return true;
|
|
@@ -29184,7 +29184,7 @@ var setupHook = once(() => {
|
|
|
29184
29184
|
}
|
|
29185
29185
|
};
|
|
29186
29186
|
window.__INFINITE_TABLE_DEVTOOLS_HOOK__ = hookFn;
|
|
29187
|
-
debug.onLogIntent("
|
|
29187
|
+
debug.onLogIntent("IT:*", (options) => {
|
|
29188
29188
|
postMessage({
|
|
29189
29189
|
...messageBase,
|
|
29190
29190
|
url: getPageUrlOfWindow(),
|
|
@@ -29195,7 +29195,16 @@ var setupHook = once(() => {
|
|
|
29195
29195
|
color: options.color,
|
|
29196
29196
|
args: options.args.map((arg) => {
|
|
29197
29197
|
if (typeof arg === "object" && arg !== null) {
|
|
29198
|
-
|
|
29198
|
+
let str = "";
|
|
29199
|
+
try {
|
|
29200
|
+
str = JSON.stringify(arg);
|
|
29201
|
+
} catch (e) {
|
|
29202
|
+
console.error(
|
|
29203
|
+
`Cannot stringify arg in global log interceptor`,
|
|
29204
|
+
arg
|
|
29205
|
+
);
|
|
29206
|
+
}
|
|
29207
|
+
return str;
|
|
29199
29208
|
}
|
|
29200
29209
|
return String(arg);
|
|
29201
29210
|
}),
|
|
@@ -30196,7 +30205,7 @@ var DataQuery = class {
|
|
|
30196
30205
|
this.isDone = () => this.state === "success" || this.state === "error";
|
|
30197
30206
|
this.isSuccess = () => this.state === "success";
|
|
30198
30207
|
this.debugName = debugName || "";
|
|
30199
|
-
this.logger = debug(
|
|
30208
|
+
this.logger = debug(`IT:${debugName}:DataQuery`);
|
|
30200
30209
|
}
|
|
30201
30210
|
};
|
|
30202
30211
|
|