@php-wasm/logger 0.9.27 → 0.9.29
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,11 +1,13 @@
|
|
|
1
1
|
/// <reference lib="webworker" />
|
|
2
2
|
/**
|
|
3
3
|
* **Call this inside a service worker.**
|
|
4
|
-
* These errors include Playground errors like Asyncify errors. PHP errors
|
|
4
|
+
* These errors include Playground errors like Asyncify errors. PHP errors
|
|
5
|
+
* won't trigger this event.
|
|
5
6
|
*
|
|
6
7
|
* Reports service worker metrics.
|
|
7
|
-
* Allows the logger to request metrics from the service worker by sending a
|
|
8
|
-
* The service worker will respond with the number of open Playground
|
|
8
|
+
* Allows the logger to request metrics from the service worker by sending a
|
|
9
|
+
* message. The service worker will respond with the number of open Playground
|
|
10
|
+
* tabs.
|
|
9
11
|
*
|
|
10
12
|
* @param worker The service worker
|
|
11
13
|
*/
|
package/lib/logger.d.ts
CHANGED
|
@@ -79,7 +79,8 @@ export declare const formatLogEntry: (message: string, severity: LogSeverity, pr
|
|
|
79
79
|
/**
|
|
80
80
|
* Add a listener for the Playground crashes.
|
|
81
81
|
* These crashes include Playground errors like Asyncify errors.
|
|
82
|
-
* The callback function will receive an Event object with logs in the detail
|
|
82
|
+
* The callback function will receive an Event object with logs in the detail
|
|
83
|
+
* property.
|
|
83
84
|
*
|
|
84
85
|
* @param loggerInstance The logger instance
|
|
85
86
|
* @param callback The callback function
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@php-wasm/logger",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.29",
|
|
4
4
|
"description": "A logger for PHP-wasm clients like Playground and WP-now.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"node": ">=18.18.0",
|
|
28
28
|
"npm": ">=8.11.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "79ef61d98407b1a90f622f6bef8f91001c568d00",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@php-wasm/node-polyfills": "0.9.
|
|
32
|
+
"@php-wasm/node-polyfills": "0.9.29"
|
|
33
33
|
}
|
|
34
34
|
}
|