@dynamic-labs/logger 4.100.0 → 4.100.2
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/CHANGELOG.md +15 -0
- package/package.json +1 -1
- package/src/index.cjs +27 -25
- package/src/index.js +27 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.100.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.100.1...v4.100.2) (2026-09-17)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **webview-controller:** route MetaMask connector storage through native secure storage [V4 backport] ([#12418](https://github.com/dynamic-labs/dynamic-auth/issues/12418)) ([0a9047c](https://github.com/dynamic-labs/dynamic-auth/commit/0a9047c72f184fca3fd27116d0a9eaa0a5bc69e6)), closes [#12304](https://github.com/dynamic-labs/dynamic-auth/issues/12304)
|
|
8
|
+
|
|
9
|
+
### [4.100.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.100.0...v4.100.1) (2026-09-16)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **ethereum-core:** prefer dashboard-saved RPC urls when mapping viem chains ([#12407](https://github.com/dynamic-labs/dynamic-auth/issues/12407)) ([e794605](https://github.com/dynamic-labs/dynamic-auth/commit/e79460541f5d99caee64e9f4699baa1bf1b36544))
|
|
15
|
+
* **wallet-connect:** fix Rabby WalletConnect connection on Mobile [V4 backport] ([#12387](https://github.com/dynamic-labs/dynamic-auth/issues/12387)) ([a2f137f](https://github.com/dynamic-labs/dynamic-auth/commit/a2f137f5dc203f7fbfc4399b9999751c22851654))
|
|
16
|
+
|
|
2
17
|
## [4.100.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.99.0...v4.100.0) (2026-09-10)
|
|
3
18
|
|
|
4
19
|
|
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -140,31 +140,34 @@ class Logger {
|
|
|
140
140
|
* Essentially, multiple calls to log in the same event loop will be batched into a single request
|
|
141
141
|
*/
|
|
142
142
|
queueMicrotask(() => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
143
|
-
//
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
currentBatch.forEach((msg) => {
|
|
147
|
-
var _a, _b, _c, _d, _e, _f;
|
|
148
|
-
const body = {};
|
|
149
|
-
const { objectArgs, remainingArgs } = processArgs.processArgs(msg);
|
|
150
|
-
Object.assign(body, ...objectArgs);
|
|
151
|
-
Object.assign(body, {
|
|
152
|
-
level: types.LogLevel[msg.level],
|
|
153
|
-
message: [msg.message, ...remainingArgs].join(' '),
|
|
154
|
-
meta: transformMeta(globalState.metaData.merge(this.metaData).get()),
|
|
155
|
-
stack: msg.stack,
|
|
156
|
-
url: {
|
|
157
|
-
hostname: (_a = window.location) === null || _a === void 0 ? void 0 : _a.hostname,
|
|
158
|
-
origin: (_b = window.location) === null || _b === void 0 ? void 0 : _b.origin,
|
|
159
|
-
pathname: (_c = window.location) === null || _c === void 0 ? void 0 : _c.pathname,
|
|
160
|
-
port: (_d = window.location) === null || _d === void 0 ? void 0 : _d.port,
|
|
161
|
-
protocol: (_e = window.location) === null || _e === void 0 ? void 0 : _e.protocol,
|
|
162
|
-
},
|
|
163
|
-
userAgent: (_f = window.navigator) === null || _f === void 0 ? void 0 : _f.userAgent,
|
|
164
|
-
});
|
|
165
|
-
messages.push(body);
|
|
166
|
-
});
|
|
143
|
+
// Payload assembly stays inside this try because an escaping
|
|
144
|
+
// rejection is re-reported by host apps' unhandledrejection
|
|
145
|
+
// handlers, which call back into the logger and loop.
|
|
167
146
|
try {
|
|
147
|
+
// Grab all pending messages immediately and clear the queue
|
|
148
|
+
const currentBatch = messageQueue.splice(0, messageQueue.length);
|
|
149
|
+
const messages = [];
|
|
150
|
+
currentBatch.forEach((msg) => {
|
|
151
|
+
var _a, _b, _c, _d, _e, _f;
|
|
152
|
+
const body = {};
|
|
153
|
+
const { objectArgs, remainingArgs } = processArgs.processArgs(msg);
|
|
154
|
+
Object.assign(body, ...objectArgs);
|
|
155
|
+
Object.assign(body, {
|
|
156
|
+
level: types.LogLevel[msg.level],
|
|
157
|
+
message: [msg.message, ...remainingArgs].join(' '),
|
|
158
|
+
meta: transformMeta(globalState.metaData.merge(this.metaData).get()),
|
|
159
|
+
stack: msg.stack,
|
|
160
|
+
url: {
|
|
161
|
+
hostname: (_a = window.location) === null || _a === void 0 ? void 0 : _a.hostname,
|
|
162
|
+
origin: (_b = window.location) === null || _b === void 0 ? void 0 : _b.origin,
|
|
163
|
+
pathname: (_c = window.location) === null || _c === void 0 ? void 0 : _c.pathname,
|
|
164
|
+
port: (_d = window.location) === null || _d === void 0 ? void 0 : _d.port,
|
|
165
|
+
protocol: (_e = window.location) === null || _e === void 0 ? void 0 : _e.protocol,
|
|
166
|
+
},
|
|
167
|
+
userAgent: (_f = window.navigator) === null || _f === void 0 ? void 0 : _f.userAgent,
|
|
168
|
+
});
|
|
169
|
+
messages.push(body);
|
|
170
|
+
});
|
|
168
171
|
if (!globalState.keys.environmentId) {
|
|
169
172
|
throw new Error('Environment ID not set');
|
|
170
173
|
}
|
|
@@ -184,7 +187,6 @@ class Logger {
|
|
|
184
187
|
catch (error) {
|
|
185
188
|
this.debug('Failed to send logs to server', error);
|
|
186
189
|
}
|
|
187
|
-
// REMOVE: messageQueue.length = 0;
|
|
188
190
|
}));
|
|
189
191
|
}
|
|
190
192
|
}
|
package/src/index.js
CHANGED
|
@@ -133,31 +133,34 @@ class Logger {
|
|
|
133
133
|
* Essentially, multiple calls to log in the same event loop will be batched into a single request
|
|
134
134
|
*/
|
|
135
135
|
queueMicrotask(() => __awaiter(this, void 0, void 0, function* () {
|
|
136
|
-
//
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
currentBatch.forEach((msg) => {
|
|
140
|
-
var _a, _b, _c, _d, _e, _f;
|
|
141
|
-
const body = {};
|
|
142
|
-
const { objectArgs, remainingArgs } = processArgs(msg);
|
|
143
|
-
Object.assign(body, ...objectArgs);
|
|
144
|
-
Object.assign(body, {
|
|
145
|
-
level: LogLevel[msg.level],
|
|
146
|
-
message: [msg.message, ...remainingArgs].join(' '),
|
|
147
|
-
meta: transformMeta(globalState.metaData.merge(this.metaData).get()),
|
|
148
|
-
stack: msg.stack,
|
|
149
|
-
url: {
|
|
150
|
-
hostname: (_a = window.location) === null || _a === void 0 ? void 0 : _a.hostname,
|
|
151
|
-
origin: (_b = window.location) === null || _b === void 0 ? void 0 : _b.origin,
|
|
152
|
-
pathname: (_c = window.location) === null || _c === void 0 ? void 0 : _c.pathname,
|
|
153
|
-
port: (_d = window.location) === null || _d === void 0 ? void 0 : _d.port,
|
|
154
|
-
protocol: (_e = window.location) === null || _e === void 0 ? void 0 : _e.protocol,
|
|
155
|
-
},
|
|
156
|
-
userAgent: (_f = window.navigator) === null || _f === void 0 ? void 0 : _f.userAgent,
|
|
157
|
-
});
|
|
158
|
-
messages.push(body);
|
|
159
|
-
});
|
|
136
|
+
// Payload assembly stays inside this try because an escaping
|
|
137
|
+
// rejection is re-reported by host apps' unhandledrejection
|
|
138
|
+
// handlers, which call back into the logger and loop.
|
|
160
139
|
try {
|
|
140
|
+
// Grab all pending messages immediately and clear the queue
|
|
141
|
+
const currentBatch = messageQueue.splice(0, messageQueue.length);
|
|
142
|
+
const messages = [];
|
|
143
|
+
currentBatch.forEach((msg) => {
|
|
144
|
+
var _a, _b, _c, _d, _e, _f;
|
|
145
|
+
const body = {};
|
|
146
|
+
const { objectArgs, remainingArgs } = processArgs(msg);
|
|
147
|
+
Object.assign(body, ...objectArgs);
|
|
148
|
+
Object.assign(body, {
|
|
149
|
+
level: LogLevel[msg.level],
|
|
150
|
+
message: [msg.message, ...remainingArgs].join(' '),
|
|
151
|
+
meta: transformMeta(globalState.metaData.merge(this.metaData).get()),
|
|
152
|
+
stack: msg.stack,
|
|
153
|
+
url: {
|
|
154
|
+
hostname: (_a = window.location) === null || _a === void 0 ? void 0 : _a.hostname,
|
|
155
|
+
origin: (_b = window.location) === null || _b === void 0 ? void 0 : _b.origin,
|
|
156
|
+
pathname: (_c = window.location) === null || _c === void 0 ? void 0 : _c.pathname,
|
|
157
|
+
port: (_d = window.location) === null || _d === void 0 ? void 0 : _d.port,
|
|
158
|
+
protocol: (_e = window.location) === null || _e === void 0 ? void 0 : _e.protocol,
|
|
159
|
+
},
|
|
160
|
+
userAgent: (_f = window.navigator) === null || _f === void 0 ? void 0 : _f.userAgent,
|
|
161
|
+
});
|
|
162
|
+
messages.push(body);
|
|
163
|
+
});
|
|
161
164
|
if (!globalState.keys.environmentId) {
|
|
162
165
|
throw new Error('Environment ID not set');
|
|
163
166
|
}
|
|
@@ -177,7 +180,6 @@ class Logger {
|
|
|
177
180
|
catch (error) {
|
|
178
181
|
this.debug('Failed to send logs to server', error);
|
|
179
182
|
}
|
|
180
|
-
// REMOVE: messageQueue.length = 0;
|
|
181
183
|
}));
|
|
182
184
|
}
|
|
183
185
|
}
|