Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:glipecki/optional-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
glipecki committed Aug 21, 2019
2 parents 9ebd9f6 + 0532662 commit 1dc46fd
Show file tree
Hide file tree
Showing 5 changed files with 1,212 additions and 1,452 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
],
globals: {
'ts-jest': {
tsConfigFile: 'tsconfig.spec.json'
tsConfig: 'src/tsconfig.spec.json'
}
}
};
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@glipecki/optional",
"version": "0.11.0",
"version": "0.14.0",
"description": "Optional implementation for TypeScript projects",
"repository": "git@github.com:glipecki/optional.ts.git",
"author": "Grzegorz Lipecki <grzegorz.lipecki@gmail.com>",
Expand All @@ -27,17 +27,17 @@
"release": "yarn build && yarn publish --minor --non-interactive --access public && git push && git push --tags"
},
"devDependencies": {
"@types/jest": "23.3.0",
"concurrently": "4.0.0",
"copyfiles": "2.0.0",
"coveralls": "3.0.2",
"jest": "23.4.1",
"rimraf": "2.6.2",
"rollup": "0.64.0",
"rollup-plugin-cleanup": "^3.0.0",
"ts-jest": "23.0.1",
"tslint": "5.10.0",
"typedoc": "0.12.0",
"typescript": "3.0.0-dev.20180712"
"@types/jest": "24.0.9",
"concurrently": "4.1.0",
"copyfiles": "2.1.0",
"coveralls": "3.0.3",
"jest": "24.1.0",
"rimraf": "2.6.3",
"rollup": "1.3.3",
"rollup-plugin-cleanup": "^3.1.1",
"ts-jest": "24.0.1",
"tslint": "5.13.0",
"typedoc": "0.15.0",
"typescript": "3.3.3333"
}
}
2 changes: 1 addition & 1 deletion src/optional/optional.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ describe('Optional.ifPresent', () => {

it('should not call callback if value not present', () => {
Optional.of(null).ifPresent(v => {
throw new Error('should not call callback!')
throw new Error('should not call callback!');
});
});

Expand Down
1 change: 1 addition & 0 deletions src/optional/optional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export class Optional<T> {
if (this.isPresent()) {
return mapper(this.value);
} else {
// FIXME: return empty()
return null;
}
}
Expand Down
Loading

0 comments on commit 1dc46fd

Please sign in to comment.