@jetthai/cuora 1.0.6 → 1.0.7

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.7](https://github.com/jetthai/cuora-module/compare/v1.0.6...v1.0.7) (2021-08-10)
6
+
5
7
  ### [1.0.6](https://github.com/jetthai/cuora-module/compare/v1.0.5...v1.0.6) (2021-08-09)
6
8
 
7
9
  ### [1.0.5](https://github.com/jetthai/cuora-module/compare/v1.0.4...v1.0.5) (2021-08-09)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/plugin/user.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import qs from 'qs'
2
+ import urljoin from 'url-join'
2
3
 
3
4
  const api = {
4
5
  getUserInfo: () => ({ url: 'self', method: 'get' }),
@@ -175,10 +176,10 @@ function createStore({ $request, $loadingRequest, $fullURL }) {
175
176
  throw { code: 'ERR_A106', method }
176
177
  }
177
178
 
178
- const url = (
179
- $fullURL +
180
- 'login?' +
181
- qs.stringify({
179
+ const url = urljoin(
180
+ $fullURL,
181
+ 'login',
182
+ '?' + qs.stringify({
182
183
  provider: method,
183
184
  redirectURI: `${window.location.protocol}//${window.location.host}`,
184
185
  channel: 'official',