@unavatar/core 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +5 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@unavatar/core",
3
3
  "description": "Get unified user avatar from social networks, including Instagram, SoundCloud, Telegram, Twitter, YouTube & more.",
4
4
  "homepage": "https://unavatar.io",
5
- "version": "0.0.5",
5
+ "version": "0.0.6",
6
6
  "main": "src/index.js",
7
7
  "exports": {
8
8
  ".": "./src/index.js",
package/src/index.js CHANGED
@@ -46,6 +46,11 @@ module.exports = ({ constants: userConstants } = {}) => {
46
46
  unavatar.providersBy = providersBy
47
47
  unavatar.reachableUrl = reachableUrl
48
48
  unavatar.got = got
49
+ unavatar.warmup = async () => {
50
+ const browser = createBrowser()
51
+ const context = await browser.createContext()
52
+ await context.destroyContext()
53
+ }
49
54
 
50
55
  return unavatar
51
56
  }