Skip to content
This repository was archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Greenkeeper/typescript 2.4.1 (#22)
Browse files Browse the repository at this point in the history
* chore(package): update typescript to version 2.4.1

* fix(build, sn-client-js, Actions, Epics):

* ci(travis): Added nodejs 8 to build targets

* ci(added nodejs 8.0 to build target (fix)):
  • Loading branch information
gallayl authored Jul 5, 2017
1 parent 84c4050 commit 2906606
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ notifications:
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
node_js:
- '8'
- '7'
- '6'
before_script:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
},
"homepage": "https://sensenet.com",
"dependencies": {
"@reactivex/rxjs": "^5.4.0",
"@reactivex/rxjs": "^5.4.1",
"normalizr": "^3.2.3",
"nyc": "^11.0.1",
"redux": "^3.6.0",
"redux-logger": "^3.0.6",
"redux-observable": "^0.14.1",
"rimraf": "^2.6.1",
"rxjs": "^5.4.0",
"sn-client-js": "^2.0.0-RC.2"
"sn-client-js": "^2.0.0-RC.4-development3"
},
"devDependencies": {
"@types/chai": "^4.0.0",
Expand All @@ -89,7 +89,7 @@
"typedoc": "^0.7.1",
"typedoc-md-theme": "^1.0.1",
"typedoc-plugin-external-module-name": "^1.0.9",
"typescript": "^2.3.2"
"typescript": "^2.4.1"
},
"czConfig": {
"path": "node_modules/cz-conventional-changelog"
Expand Down
2 changes: 1 addition & 1 deletion src/Actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export module Actions {
* @param content {Content} Content that have to be created in the Content Respository.
* @returns {Object} Returns a redux action with the properties type, path of the parent and content.
*/
export const CreateContent = <T extends Content, K extends T['options']>(path: string, contentType: { new(arg: K, arg2: Repository.IRepository<any, any>): T}, contentOptions: K) => ({ type: 'CREATE_CONTENT_REQUEST', content: contentOptions, path, contentType });
export const CreateContent = <T extends Content, K extends T['options']>(path: string, contentType: { new(arg: K, arg2: Repository.BaseRepository): T}, contentOptions: K) => ({ type: 'CREATE_CONTENT_REQUEST', content: contentOptions, path, contentType });
/**
* Action creator for the step when Content creation on the server ends successfully.
* @param response {any} JSON response of the ajax request.
Expand Down
2 changes: 1 addition & 1 deletion src/Epics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export module Epics {
export function createContentEpic(action$, store, dependencies?: { repository: Repository }) {
return action$.ofType('CREATE_CONTENT_REQUEST')
.mergeMap(action => {
return dependencies.repository.Content.Create(action.path, action.content, action.contentType)
return dependencies.repository.Content.Post(action.path, action.content, action.contentType)
.map(Actions.CreateContentSuccess)
.catch(error => Observable.of(Actions.CreateContentFailure(error)))
})
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"preserveConstEnums": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"skipLibCheck": true,
"outDir": "./dist"
},
"exclude": [
Expand Down

0 comments on commit 2906606

Please sign in to comment.