@lendi/lendi-app-bridge
Advanced tools
Comparing version 3.0.0 to 3.1.0
## [3.0.0] - 2019-08-22 - [HUB-422](https://creditandfinance.atlassian.net/browse/HUB-422) | ||
## 3.1.0 | ||
- [minor] 26936e5: | ||
- Add a logic for vendor, it should be Domain is the host contains dlf | ||
### Changed | ||
@@ -4,0 +9,0 @@ |
@@ -68,2 +68,3 @@ "use strict"; | ||
case window.location.host.indexOf('domain') >= 0: | ||
case window.location.host.indexOf('dlf') >= 0: | ||
return 'Domain'; | ||
@@ -70,0 +71,0 @@ case window.location.host.indexOf('lendi') >= 0: |
@@ -34,2 +34,7 @@ "use strict"; | ||
}); | ||
it('should return Domain if url host contains dlf', function () { | ||
global.window.location = { host: 'https://team-dlf.lendi.com.au' }; | ||
var bridge = new _1.default(''); | ||
expect(bridge.vendor).toEqual('Domain'); | ||
}); | ||
it('should throw error if url host fails to match either lendi or domain', function () { | ||
@@ -36,0 +41,0 @@ global.window.location = { host: 'https://testing.com.au' }; |
{ | ||
"name": "@lendi/lendi-app-bridge", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Library to share state between micro frontends and lendi-app", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
28462
356
0