New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

intl-schematic

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intl-schematic - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

dist/es/plugins/core.js

@@ -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));

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc