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

@ephox/katamari

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ephox/katamari - npm Package Compare versions

Comparing version 2.1.12 to 2.1.13

2

lib/main/ts/ephox/katamari/api/Option.d.ts

@@ -28,3 +28,3 @@ export interface Option<T> {

none: <T = any>() => Option<T>;
from: <T>(value: T) => Option<T>;
from: <T>(value: T) => Option<NonNullable<T>>;
};
{
"name": "@ephox/katamari",
"version": "2.1.12",
"version": "2.1.13",
"description": "Basic data type library",

@@ -5,0 +5,0 @@ "repository": {

@@ -195,4 +195,4 @@ import Fun from './Fun';

/** from :: undefined|null|a -> Option a */
var from = function <T> (value: T) {
return value === null || value === undefined ? <Option<T>>NONE : some(value);
var from = function <T> (value: T | undefined | null): Option<NonNullable<T>> {
return value === null || value === undefined ? NONE : some(value as NonNullable<T>);
};

@@ -199,0 +199,0 @@

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