Skip to content

Commit

Permalink
build: ensure to be browser friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Oct 13, 2019
1 parent 7e4ff57 commit 4561dbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"version": "0.5.0",
"browser": "src/browser.js",
"main": "src/node.js",
"module": "src/browser.js",
"author": {
"email": "[email protected]",
"name": "Kiko Beats",
Expand Down
3 changes: 2 additions & 1 deletion src/browser.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const MicrolinkError = require('whoops')('MicrolinkError')
const { default: ky } = require('ky-universal')
const { encode: stringify } = require('qss')
const isUrlHttp = require('is-url-http')
const { default: ky } = require('ky-universal')
const flatten = require('flat')

const factory = require('./factory')
Expand Down Expand Up @@ -34,3 +34,4 @@ const browser = factory({
})

module.exports = browser
module.exports.default = browser

0 comments on commit 4561dbc

Please sign in to comment.