Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

afformative

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

afformative - npm Package Compare versions

Comparing version 0.6.0-alpha.2 to 0.6.0-alpha.3

4

dist/afformative.cjs.js

@@ -41,2 +41,4 @@ 'use strict';

var formatter = function formatter(_ref) {
var _format;
var children = _ref.children,

@@ -47,3 +49,3 @@ _ref$suggestions = _ref.suggestions,

return format(children, suggestions, dataContext);
return (_format = format(children, suggestions, dataContext)) !== null && _format !== void 0 ? _format : null;
};

@@ -50,0 +52,0 @@

@@ -37,2 +37,4 @@ function _objectWithoutPropertiesLoose(source, excluded) {

var formatter = function formatter(_ref) {
var _format;
var children = _ref.children,

@@ -43,3 +45,3 @@ _ref$suggestions = _ref.suggestions,

return format(children, suggestions, dataContext);
return (_format = format(children, suggestions, dataContext)) !== null && _format !== void 0 ? _format : null;
};

@@ -46,0 +48,0 @@

@@ -43,2 +43,4 @@ (function (global, factory) {

var formatter = function formatter(_ref) {
var _format;
var children = _ref.children,

@@ -49,3 +51,3 @@ _ref$suggestions = _ref.suggestions,

return format(children, suggestions, dataContext);
return (_format = format(children, suggestions, dataContext)) !== null && _format !== void 0 ? _format : null;
};

@@ -52,0 +54,0 @@

@@ -1,1 +0,1 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).Afformative={})}(this,(function(e){"use strict";e.makeFormatter=function e(n,t){var i=function(e){var t=e.children,i=e.suggestions,r=void 0===i?[]:i,o=function(e,n){if(null==e)return{};var t,i,r={},o=Object.keys(e);for(i=0;o.length>i;i++)0>n.indexOf(t=o[i])&&(r[t]=e[t]);return r}(e,["children","suggestions"]);return n(t,r,o)};return i.displayName=null==t?void 0:t.displayName,i.format=function(e,t,i){return void 0===t&&(t=[]),void 0===i&&(i={}),n(e,t,i)},i.formatAsPrimitive=function(e,t,i){return void 0===t&&(t=[]),void 0===i&&(i={}),n(e,["primitive"].concat(t),i)},i.wrap=function(n,r){var o=e((function(e,t,r){return n((function(e,n,o){return i.format(e,null!=n?n:t,null!=o?o:r)}),e,t,r)}),null!=r?r:t);return o.innerFormatter=i,o},i},Object.defineProperty(e,"__esModule",{value:!0})}));
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n="undefined"!=typeof globalThis?globalThis:n||self).Afformative={})}(this,(function(n){"use strict";n.makeFormatter=function n(e,t){var i=function(n){var t,i=n.children,r=n.suggestions,o=void 0===r?[]:r,u=function(n,e){if(null==n)return{};var t,i,r={},o=Object.keys(n);for(i=0;o.length>i;i++)0>e.indexOf(t=o[i])&&(r[t]=n[t]);return r}(n,["children","suggestions"]);return null!==(t=e(i,o,u))&&void 0!==t?t:null};return i.displayName=null==t?void 0:t.displayName,i.format=function(n,t,i){return void 0===t&&(t=[]),void 0===i&&(i={}),e(n,t,i)},i.formatAsPrimitive=function(n,t,i){return void 0===t&&(t=[]),void 0===i&&(i={}),e(n,["primitive"].concat(t),i)},i.wrap=function(e,r){var o=n((function(n,t,r){return e((function(n,e,o){return i.format(n,null!=e?e:t,null!=o?o:r)}),n,t,r)}),null!=r?r:t);return o.innerFormatter=i,o},i},Object.defineProperty(n,"__esModule",{value:!0})}));

@@ -86,3 +86,3 @@ declare type PrimitiveSuggestion = "primitive";

*/
(props: FormatterProps<TInput>): TOutput | TPrimitiveOutput;
(props: FormatterProps<TInput>): TOutput | TPrimitiveOutput | null;
}

@@ -89,0 +89,0 @@ /**

{
"name": "afformative",
"version": "0.6.0-alpha.2",
"version": "0.6.0-alpha.3",
"license": "MIT",

@@ -34,3 +34,3 @@ "main": "dist/afformative.cjs.js",

"sideEffects": false,
"gitHead": "370a6f424db00d131caa44a0da2d846a61f1700a"
"gitHead": "79f91d572671154fefa97eca63aa7fbeb7299345"
}

@@ -126,3 +126,3 @@ type PrimitiveSuggestion = "primitive"

*/
(props: FormatterProps<TInput>): TOutput | TPrimitiveOutput
(props: FormatterProps<TInput>): TOutput | TPrimitiveOutput | null
}

@@ -144,3 +144,3 @@

...dataContext
}) => format(children, suggestions, dataContext)
}) => format(children, suggestions, dataContext) ?? null

@@ -147,0 +147,0 @@ formatter.displayName = formatterOptions?.displayName

Sorry, the diff of this file is not supported yet

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