@csedl/svelte-on-rails 11.0.0 → 11.0.1
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csedl/svelte-on-rails",
|
|
3
|
-
"version": "11.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "11.0.1",
|
|
4
|
+
"description": "Client-side runtime for svelte-on-rails: hydration, SSR build support & Turbo Stream actions",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
package/src/logger.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import SvelteOnRails from './config.js'
|
|
1
|
+
import {SvelteOnRails} from './config.js'
|
|
2
2
|
|
|
3
3
|
export function debugLog(message, object, object2) {
|
|
4
4
|
log( null, message, object, object2);
|
|
@@ -9,7 +9,7 @@ export function streamDebugLog(message, object, object2) {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
function log(namespace, message, object, object2) {
|
|
12
|
-
if (
|
|
12
|
+
if (SvelteOnRails.debug) {
|
|
13
13
|
|
|
14
14
|
const nmsp = (namespace ? `:${namespace}` : '');
|
|
15
15
|
|