Skip to content

Commit

Permalink
refactor: support core 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriodegoiania committed May 8, 2020
1 parent 63696b3 commit 2e0fdec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webfaas/webfaas",
"version": "0.1.0",
"version": "0.2.0",
"description": "WebFaaS Framework",
"main": "lib/index.js",
"readmeFilename": "README.md",
Expand All @@ -23,18 +23,18 @@
},
"repository": {
"type": "git",
"url": "https://github.com/webfaas/webfaas.git"
"url": "git@github.com:webfaas/webfaas.git"
},
"bin": {
"webfaas": "bin/webfaas.js"
},
"dependencies": {
"@webfaas/webfaas-core": "^0.11.0",
"@webfaas/webfaas-plugin-packageregistry-disk": "^0.1",
"@webfaas/webfaas-plugin-packageregistry-github": "^0.1",
"@webfaas/webfaas-plugin-packageregistry-npm": "^0.1",
"@webfaas/webfaas-plugin-packageregistryrouting": "^0.1",
"@webfaas/webfaas-plugin-packagestore-cache-disk": "^0.1"
"@webfaas/webfaas-core": "^0.12",
"@webfaas/webfaas-plugin-packageregistry-disk": "^0.2",
"@webfaas/webfaas-plugin-packageregistry-github": "^0.2",
"@webfaas/webfaas-plugin-packageregistry-npm": "^0.2",
"@webfaas/webfaas-plugin-packageregistryrouting": "^0.2",
"@webfaas/webfaas-plugin-packagestore-cache-disk": "^0.2"
},
"devDependencies": {
"@types/chai": "^4.2.11",
Expand Down
3 changes: 2 additions & 1 deletion src/WebFaaS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export class WebFaaS {
*/
getConfig(): Config{
if (!this.config){
let newConfig = new Config(this.getPathConfigFile());
let newConfig = new Config();
newConfig.read(this.getPathConfigFile());
this.setConfig(new Config());
return newConfig;
}
Expand Down

0 comments on commit 2e0fdec

Please sign in to comment.