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 7, 2020
1 parent 0f79d2a commit 69266cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webfaas/webfaas-plugin-packageregistryrouting",
"version": "0.1.0",
"version": "0.2.0",
"description": "WebFaaS Framework - Plugin - Package Registry Routing",
"main": "lib/index.js",
"readmeFilename": "README.md",
Expand All @@ -23,7 +23,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/webfaas/webfaas-plugin-packageregistryrouting.git"
"url": "git@github.com:webfaas/webfaas-plugin-packageregistryrouting.git"
},
"dependencies": {},
"devDependencies": {
Expand All @@ -35,7 +35,7 @@
"nyc": "^15.0",
"typescript": "^3.8",
"typescript-tslint-plugin": "^0.5",
"@webfaas/webfaas-core": "^0.6"
"@webfaas/webfaas-core": "^0.12"
},
"engines": {
"node": ">=10.0.0"
Expand Down
4 changes: 3 additions & 1 deletion src/test/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ describe("Plugin", () => {
]
}
}
let core2 = new Core( new Config(configData) );
let config = new Config();
config.read(configData);
let core2 = new Core( config );
let plugin2 = new WebFassPlugin(core2);
core2.getLog().changeCurrentLevel(LogLevelEnum.OFF);
chai.expect(core2.getPackageRegistryManager().getRegistryNameByExternalRouting("@scope1/module1")).to.eq("registry1");
Expand Down

0 comments on commit 69266cd

Please sign in to comment.