typescript-optional
Advanced tools
Comparing version 1.8.0 to 2.0.1-alpha
{ | ||
"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`. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20380
12
206
11
2
1