forked from rayconnect/client
fix
parent
5532f0bd6a
commit
fd6f00ed01
|
@ -2,6 +2,7 @@ import { Provider, ProviderConstructor } from '../providers/provider';
|
|||
import { CloudStorageService } from '../storage/cloudstorageService';
|
||||
import { Options } from './types';
|
||||
import { detect } from 'detect-browser'
|
||||
import {version} from '../package.json'
|
||||
const device = detect();
|
||||
|
||||
export class RayconnectCore {
|
||||
|
@ -45,7 +46,7 @@ export class RayconnectCore {
|
|||
protected Connect(): any {
|
||||
let connectionString = this.ops.url as string;
|
||||
if (this.config) {
|
||||
connectionString = `${this.ops.url}?scopes=${this.ops.scopes}&appID=${this.ops.appID}&space=${this.ops.space}&type=${this.ops.type}&encode=${this.encode}`;
|
||||
connectionString = `${this.ops.url}?scopes=${this.ops.scopes}&appID=${this.ops.appID}&space=${this.ops.space}&type=${this.ops.type}&encode=${this.encode}&sdk_version=${version}`;
|
||||
|
||||
if (this.token) {
|
||||
connectionString += `&token=${this.token}`;
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
"declaration": true,
|
||||
"outDir": "dist",
|
||||
"strict": true,
|
||||
"esModuleInterop": true
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
|
|
Loading…
Reference in New Issue