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

typescript-optional

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-optional - npm Package Compare versions

Comparing version 1.5.0 to 1.6.1

.vscode/launch.json

1

dist/lib/index.d.ts

@@ -16,3 +16,4 @@ export default abstract class Optional<T> {

static ofNonNull<T>(payload: T): Optional<T>;
static of<T>(payload: T): Optional<T>;
static empty<T>(): Optional<T>;
}

@@ -30,2 +30,5 @@ "use strict";

Optional.ofNonNull = function (payload) {
return Optional.of(payload);
};
Optional.of = function (payload) {
if (payload !== null && payload !== undefined)

@@ -32,0 +35,0 @@ return new PresentOptional(payload);

2

package.json
{
"name": "typescript-optional",
"version": "1.5.0",
"version": "1.6.1",
"description": "Optional (like Java) implementation in TypeScript",

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

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