master
Drfelfel 2021-06-03 21:56:22 +04:30
parent 5532f0bd6a
commit fd6f00ed01
2 changed files with 4 additions and 2 deletions

View File

@ -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}`;

View File

@ -6,7 +6,8 @@
"declaration": true,
"outDir": "dist",
"strict": true,
"esModuleInterop": true
"esModuleInterop": true,
"resolveJsonModule": true
},
"exclude": [
"node_modules",