intl-schematic
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -18,3 +18,3 @@ export const callPlugins = (translate, plugins = []) => { | ||
if (!pluginsPerHook[hook]) { | ||
return !value ? undefined : String(value); | ||
return value == null ? undefined : String(value); | ||
} | ||
@@ -40,3 +40,3 @@ let val = value; | ||
} | ||
return !val ? undefined : String(val); | ||
return val == null ? undefined : String(val); | ||
}; | ||
@@ -43,0 +43,0 @@ return callPluginsForHook; |
@@ -38,3 +38,3 @@ import { createPlugin } from './core'; | ||
const result = getProcessedResult(mergedInput, mergedParameter); | ||
return result | ||
return result != null | ||
? this.callHook('keyProcessed', result) | ||
@@ -41,0 +41,0 @@ : (this.callHook('keyNotProcessed', result) ?? this.callHook('keyNotFound', result)); |
@@ -18,3 +18,3 @@ export const callPlugins = (translate, plugins = []) => { | ||
if (!pluginsPerHook[hook]) { | ||
return !value ? undefined : String(value); | ||
return value == null ? undefined : String(value); | ||
} | ||
@@ -40,3 +40,3 @@ let val = value; | ||
} | ||
return !val ? undefined : String(val); | ||
return val == null ? undefined : String(val); | ||
}; | ||
@@ -43,0 +43,0 @@ return callPluginsForHook; |
@@ -37,3 +37,3 @@ import { createPlugin } from './core'; | ||
const result = getProcessedResult(mergedInput, mergedParameter); | ||
return result | ||
return result != null | ||
? this.callHook('keyProcessed', result) | ||
@@ -40,0 +40,0 @@ : (this.callHook('keyNotProcessed', result) ?? this.callHook('keyNotFound', result)); |
{ | ||
"name": "intl-schematic", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -63,3 +63,3 @@ import { Translation, LocaleInputParameter, LocaleKey, TranslationProxy, LocaleOptionsParameter } from '../ts.schema'; | ||
if (!pluginsPerHook[hook]) { | ||
return !value ? undefined : String(value); | ||
return value == null ? undefined : String(value); | ||
} | ||
@@ -91,3 +91,3 @@ | ||
return !val ? undefined : String(val); | ||
return val == null ? undefined : String(val); | ||
}; | ||
@@ -94,0 +94,0 @@ |
@@ -58,3 +58,3 @@ import { Processor, Processors } from '../processors'; | ||
return result | ||
return result != null | ||
? this.callHook('keyProcessed', result) | ||
@@ -61,0 +61,0 @@ : (this.callHook('keyNotProcessed', result) ?? this.callHook('keyNotFound', result)); |
102061