@solid-primitives/i18n
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -1,5 +0,5 @@ | ||
import { createContext, createSignal, useContext } from 'solid-js'; | ||
import { createContext, createSignal, useContext, DEV } from 'solid-js'; | ||
import { createStore } from 'solid-js/store'; | ||
import { createContextProvider } from '@solid-primitives/context'; | ||
import { isDev } from 'solid-js/web'; | ||
import { isServer } from 'solid-js/web'; | ||
@@ -85,3 +85,4 @@ // src/i18n.ts | ||
throw new Error( | ||
isDev ? `Unsupported data format on the keys. Values must resolve to a string or a function that returns a string. Key name: "${key}"` : "" | ||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition | ||
!isServer && DEV ? `Unsupported data format on the keys. Values must resolve to a string or a function that returns a string. Key name: "${key}"` : "" | ||
); | ||
@@ -88,0 +89,0 @@ } |
{ | ||
"name": "@solid-primitives/i18n", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Primitive to create and use i18n primitives.", | ||
@@ -5,0 +5,0 @@ "author": "Alexandre Mouton-Brady <amoutonbrady@gmail.com>", |
Sorry, the diff of this file is not supported yet
21553
365