@lion/ajax
Advanced tools
Comparing version 0.2.10 to 0.3.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [0.3.0](https://github.com/ing-bank/lion/compare/@lion/ajax@0.2.10...@lion/ajax@0.3.0) (2020-05-18) | ||
### Features | ||
* use singleton manager to support nested npm installations ([e2eb0e0](https://github.com/ing-bank/lion/commit/e2eb0e0077b9efed9382701461753778f63cad48)) | ||
## [0.2.10](https://github.com/ing-bank/lion/compare/@lion/ajax@0.2.9...@lion/ajax@0.2.10) (2020-04-29) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@lion/ajax", | ||
"version": "0.2.10", | ||
"version": "0.3.0", | ||
"description": "Thin wrapper around axios to allow for custom interceptors", | ||
@@ -18,4 +18,4 @@ "author": "ing-bank", | ||
"prepublishOnly": "../../scripts/npm-prepublish.js", | ||
"test": "cd ../../ && yarn test --grep \"packages/ajax/test/**/*.test.js\"", | ||
"test:watch": "cd ../../ && yarn test:watch --grep \"packages/ajax/test/**/*.test.js\"" | ||
"test": "cd ../../ && yarn test:browser --grep \"packages/ajax/test/**/*.test.js\"", | ||
"test:watch": "cd ../../ && yarn test:browser:watch --grep \"packages/ajax/test/**/*.test.js\"" | ||
}, | ||
@@ -37,7 +37,9 @@ "keywords": [ | ||
], | ||
"sideEffects": false, | ||
"dependencies": { | ||
"@bundled-es-modules/axios": "0.18.1", | ||
"@lion/core": "0.5.2" | ||
"@lion/core": "0.6.0", | ||
"singleton-manager": "1.0.0" | ||
}, | ||
"gitHead": "2476211c21e3f785a909c71e8f94ff307fc6a4fc" | ||
"gitHead": "f9ce60c08cf0c608f5f3a9ef9937c536f7782c11" | ||
} |
@@ -0,1 +1,2 @@ | ||
import { singletonManager } from 'singleton-manager'; | ||
import { AjaxClass } from './AjaxClass.js'; | ||
@@ -6,3 +7,3 @@ | ||
*/ | ||
export let ajax = AjaxClass.getInstance(); // eslint-disable-line import/no-mutable-exports | ||
export let ajax = singletonManager.get('@lion/ajax::ajax::0.3.x') || AjaxClass.getInstance(); // eslint-disable-line import/no-mutable-exports | ||
@@ -9,0 +10,0 @@ /** |
50232
916
3
+ Addedsingleton-manager@1.0.0
+ Added@lion/core@0.6.0(transitive)
+ Addedsingleton-manager@1.0.0(transitive)
- Removed@lion/core@0.5.2(transitive)
Updated@lion/core@0.6.0