@dpgradio/creative 5.6.0 → 5.7.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpgradio/creative",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "description": "Support package for standalone Javascript applications",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -15,6 +15,11 @@
15
15
  "keywords": [
16
16
  "qmusic"
17
17
  ],
18
+ "exports": {
19
+ ".": "./src/index.js",
20
+ "./share": "./src/share.js",
21
+ "./styles/": "./styles/"
22
+ },
18
23
  "type": "module",
19
24
  "author": "DPG Media",
20
25
  "license": "ISC",
@@ -96,7 +96,9 @@ export default class Request {
96
96
 
97
97
  const endpointWithoutSlash = endpoint.replace(/^\/+/, '')
98
98
 
99
- const urlParts = [baseUrlWithProtocol, this.version, endpointWithoutSlash].filter(Boolean)
99
+ const urlParts = endpoint.startsWith('http')
100
+ ? [endpoint]
101
+ : [baseUrlWithProtocol, this.version, endpointWithoutSlash].filter(Boolean)
100
102
 
101
103
  return tap(new URL(urlParts.join('/')), (url) => {
102
104
  url.search = new URLSearchParams({