Comparing version 7.18.3 to 7.18.4
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -6,2 +9,3 @@ exports.getLogLevelName = exports.logLevels = exports.Roarr = exports.ROARR = void 0; | ||
const createRoarrInitialGlobalStateBrowser_1 = require("./factories/createRoarrInitialGlobalStateBrowser"); | ||
const safe_stable_stringify_1 = __importDefault(require("safe-stable-stringify")); | ||
const ROARR = (0, createRoarrInitialGlobalStateBrowser_1.createRoarrInitialGlobalStateBrowser)(globalThis.ROARR || {}); | ||
@@ -11,3 +15,3 @@ exports.ROARR = ROARR; | ||
const serializeMessage = (message) => { | ||
return JSON.stringify(message); | ||
return (0, safe_stable_stringify_1.default)(message); | ||
}; | ||
@@ -14,0 +18,0 @@ const Roarr = (0, createLogger_1.createLogger)((message) => { |
@@ -71,3 +71,3 @@ { | ||
"types": "./dist/Roarr.d.ts", | ||
"version": "7.18.3" | ||
"version": "7.18.4" | ||
} |
import { createLogger } from './factories/createLogger'; | ||
import { createRoarrInitialGlobalStateBrowser } from './factories/createRoarrInitialGlobalStateBrowser'; | ||
import { type MessageSerializer, type RoarrGlobalState } from './types'; | ||
import safeStringify from 'safe-stable-stringify'; | ||
@@ -12,3 +13,3 @@ const ROARR = createRoarrInitialGlobalStateBrowser( | ||
const serializeMessage: MessageSerializer = (message) => { | ||
return JSON.stringify(message); | ||
return safeStringify(message); | ||
}; | ||
@@ -15,0 +16,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95717
1283