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.8.0 to 2.0.1-alpha

dist/index.d.ts

48

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

@@ -14,11 +14,10 @@ "keywords": [

},
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"prepublish": "npm run build-test",
"lint": "tslint lib/**/*.ts test/**/*.ts",
"build": "tsc",
"test": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec dist/test",
"coverage": "remap-istanbul -i coverage/coverage.json -o testResult/lcov.info -t lcovonly",
"coveralls": "coveralls < testResult/lcov.info",
"build-test": "npm run build && npm run test && npm run coverage"
"test": "nyc mocha src/*",
"coveralls": "coveralls < coverage/lcov.info",
"test:coverage": "npm run test && npm run coverage"
},

@@ -28,11 +27,32 @@ "author": "bromne",

"devDependencies": {
"@types/mocha": "^2.2.43",
"@types/power-assert": "^1.4.29",
"coveralls": "^3.0.0",
"@types/mocha": "^2.2.48",
"@types/power-assert": "^1.5.0",
"coveralls": "^3.0.2",
"istanbul": "^0.4.5",
"mocha": "^3.5.3",
"power-assert": "^1.4.4",
"remap-istanbul": "^0.9.5",
"typescript": "^2.5.3"
"nyc": "^13.1.0",
"power-assert": "^1.6.1",
"remap-istanbul": "^0.9.6",
"ts-node": "^7.0.1",
"tslint": "^5.12.0",
"typescript": "^3.2.2"
},
"nyc": {
"include": [
"src/**/*.ts"
],
"exclude": [
"src/**/*.spec.ts"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"reporter": [
"lcov"
],
"sourceMap": true
}
}

@@ -5,4 +5,4 @@ # TypeScript Optional

[![License](https://img.shields.io/npm/l/typescript-optional.svg)](https://www.npmjs.com/package/typescript-optional)
[![Build Status](https://travis-ci.org/bromne/typescript-optional.svg?branch=master)](https://travis-ci.org/bromne/typescript-optional)
[![Coverage Status](https://coveralls.io/repos/github/bromne/typescript-optional/badge.svg?branch=master)](https://coveralls.io/github/bromne/typescript-optional?branch=master)
[![Build Status](https://travis-ci.org/bromne/typescript-optional.svg?branch=develop)](https://travis-ci.org/bromne/typescript-optional)
[![Coverage Status](https://coveralls.io/repos/github/bromne/typescript-optional/badge.svg?branch=develop)](https://coveralls.io/github/bromne/typescript-optional?branch=develop)

@@ -37,3 +37,3 @@ Optional (like Java) implementation in TypeScript

// import Optional type from this module
import Optional from 'typescript-optional';
import { Optional } from "typescript-optional";
```

@@ -64,6 +64,6 @@

// represent whether this is present or not.
optional.isPresent
optional.isPresent();
// represent whether this is empty or not. (negation of `isPresent` property)
optional.isEmpty
optional.isEmpty();

@@ -70,0 +70,0 @@ // if a payload is present, execute the given `consumer`.

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