@accelbyte/sdk 0.2.0-beta.11 → 0.2.0-beta.12
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 +1 -1
- package/dist/index.browser.es.js +30 -35
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.d.ts +2 -7
- package/dist/index.node.es.js +30 -35
- package/dist/index.node.es.js.map +1 -1
- package/dist/index.node.js +29 -34
- package/dist/index.node.js.map +1 -1
- package/examples/node/index.mjs +30 -26
- package/examples/node/package.json +1 -1
- package/examples/node/yarn.lock +4 -4
- package/package.json +1 -1
package/dist/index.node.js
CHANGED
|
@@ -10392,7 +10392,7 @@ class DlcApi {
|
|
|
10392
10392
|
}
|
|
10393
10393
|
|
|
10394
10394
|
/*
|
|
10395
|
-
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
|
|
10395
|
+
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
10396
10396
|
* This is licensed software from AccelByte Inc, for limitations
|
|
10397
10397
|
* and restrictions contact your company contract manager.
|
|
10398
10398
|
*/
|
|
@@ -10434,12 +10434,7 @@ const AvailablePlatform = [
|
|
|
10434
10434
|
arch: [ARCH.X64],
|
|
10435
10435
|
targetPlatform: [BUILDINFO_PLATFORM_ID.WIN64, BUILDINFO_PLATFORM_ID.WINDOWS, BUILDINFO_PLATFORM_ID.WIN32]
|
|
10436
10436
|
}
|
|
10437
|
-
];
|
|
10438
|
-
exports.LogLevel = void 0;
|
|
10439
|
-
(function (LogLevel) {
|
|
10440
|
-
LogLevel["DEBUG"] = "DEBUG";
|
|
10441
|
-
LogLevel["INFO"] = "INFO";
|
|
10442
|
-
})(exports.LogLevel || (exports.LogLevel = {}));
|
|
10437
|
+
];
|
|
10443
10438
|
|
|
10444
10439
|
/*
|
|
10445
10440
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
@@ -26907,18 +26902,16 @@ const injectErrorInterceptors = (baseUrl, onUserEligibilityChange, onError) => {
|
|
|
26907
26902
|
});
|
|
26908
26903
|
};
|
|
26909
26904
|
|
|
26910
|
-
var version="x.y.z";var build$1="x.y.z";var timestamp="x.y.z";var buildInfo = {version:version,build:build$1,timestamp:timestamp};
|
|
26911
|
-
|
|
26912
26905
|
/*
|
|
26913
26906
|
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
26914
26907
|
* This is licensed software from AccelByte Inc, for limitations
|
|
26915
26908
|
* and restrictions contact your company contract manager.
|
|
26916
26909
|
*/
|
|
26917
26910
|
var BasicVersion = {
|
|
26918
|
-
title: '
|
|
26911
|
+
title: 'basic',
|
|
26919
26912
|
name: 'justice-basic-service',
|
|
26920
26913
|
version: '2.6.0',
|
|
26921
|
-
buildDate: '2023-02-
|
|
26914
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
26922
26915
|
};
|
|
26923
26916
|
|
|
26924
26917
|
/*
|
|
@@ -26927,10 +26920,10 @@ var BasicVersion = {
|
|
|
26927
26920
|
* and restrictions contact your company contract manager.
|
|
26928
26921
|
*/
|
|
26929
26922
|
var BuildinfoVersion = {
|
|
26930
|
-
title: '
|
|
26923
|
+
title: 'buildinfo',
|
|
26931
26924
|
name: 'justice-buildinfo-service',
|
|
26932
26925
|
version: '3.28.2',
|
|
26933
|
-
buildDate: '2023-02-
|
|
26926
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
26934
26927
|
};
|
|
26935
26928
|
|
|
26936
26929
|
/*
|
|
@@ -26939,10 +26932,10 @@ var BuildinfoVersion = {
|
|
|
26939
26932
|
* and restrictions contact your company contract manager.
|
|
26940
26933
|
*/
|
|
26941
26934
|
var EventVersion = {
|
|
26942
|
-
title: '
|
|
26935
|
+
title: 'event',
|
|
26943
26936
|
name: 'justice-event-log-service',
|
|
26944
26937
|
version: undefined,
|
|
26945
|
-
buildDate: '2023-02-
|
|
26938
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
26946
26939
|
};
|
|
26947
26940
|
|
|
26948
26941
|
/*
|
|
@@ -26951,10 +26944,10 @@ var EventVersion = {
|
|
|
26951
26944
|
* and restrictions contact your company contract manager.
|
|
26952
26945
|
*/
|
|
26953
26946
|
var GdprVersion = {
|
|
26954
|
-
title: '
|
|
26947
|
+
title: 'gdpr',
|
|
26955
26948
|
name: 'justice-gdpr-service',
|
|
26956
26949
|
version: '1.19.1',
|
|
26957
|
-
buildDate: '2023-02-
|
|
26950
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
26958
26951
|
};
|
|
26959
26952
|
|
|
26960
26953
|
/*
|
|
@@ -26963,10 +26956,10 @@ var GdprVersion = {
|
|
|
26963
26956
|
* and restrictions contact your company contract manager.
|
|
26964
26957
|
*/
|
|
26965
26958
|
var IamVersion = {
|
|
26966
|
-
title: '
|
|
26959
|
+
title: 'iam',
|
|
26967
26960
|
name: 'justice-iam-service',
|
|
26968
26961
|
version: '5.28.0',
|
|
26969
|
-
buildDate: '2023-02-
|
|
26962
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
26970
26963
|
};
|
|
26971
26964
|
|
|
26972
26965
|
/*
|
|
@@ -26975,10 +26968,10 @@ var IamVersion = {
|
|
|
26975
26968
|
* and restrictions contact your company contract manager.
|
|
26976
26969
|
*/
|
|
26977
26970
|
var LegalVersion = {
|
|
26978
|
-
title: '
|
|
26971
|
+
title: 'legal',
|
|
26979
26972
|
name: 'justice-legal-service',
|
|
26980
26973
|
version: '1.27.0',
|
|
26981
|
-
buildDate: '2023-02-
|
|
26974
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
26982
26975
|
};
|
|
26983
26976
|
|
|
26984
26977
|
/*
|
|
@@ -26986,14 +26979,24 @@ var LegalVersion = {
|
|
|
26986
26979
|
* This is licensed software from AccelByte Inc, for limitations
|
|
26987
26980
|
* and restrictions contact your company contract manager.
|
|
26988
26981
|
*/
|
|
26989
|
-
var OdinConfigVersion = {
|
|
26982
|
+
var OdinConfigVersion = {
|
|
26983
|
+
title: 'odin-config',
|
|
26984
|
+
name: 'config-service-app',
|
|
26985
|
+
version: 'dev',
|
|
26986
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
26987
|
+
};
|
|
26990
26988
|
|
|
26991
26989
|
/*
|
|
26992
26990
|
* Copyright (c) 2023 AccelByte Inc. All Rights Reserved
|
|
26993
26991
|
* This is licensed software from AccelByte Inc, for limitations
|
|
26994
26992
|
* and restrictions contact your company contract manager.
|
|
26995
26993
|
*/
|
|
26996
|
-
var PlatformVersion = {
|
|
26994
|
+
var PlatformVersion = {
|
|
26995
|
+
title: 'platform',
|
|
26996
|
+
name: 'justice-platform-service',
|
|
26997
|
+
version: '4.24.0',
|
|
26998
|
+
buildDate: '2023-02-22T00:53:23.199Z'
|
|
26999
|
+
};
|
|
26997
27000
|
|
|
26998
27001
|
/*
|
|
26999
27002
|
* Copyright (c) 2022-2023 AccelByte Inc. All Rights Reserved
|
|
@@ -27042,7 +27045,6 @@ class AccelbyteSDKFactory {
|
|
|
27042
27045
|
}
|
|
27043
27046
|
};
|
|
27044
27047
|
this.options = {
|
|
27045
|
-
loglevel: 'INFO',
|
|
27046
27048
|
cache: false,
|
|
27047
27049
|
...options
|
|
27048
27050
|
};
|
|
@@ -27057,9 +27059,7 @@ class AccelbyteSDKFactory {
|
|
|
27057
27059
|
...config?.headers
|
|
27058
27060
|
}
|
|
27059
27061
|
};
|
|
27060
|
-
|
|
27061
|
-
Logger.info('Accelbyte-SDK initialized with config', this.config);
|
|
27062
|
-
}
|
|
27062
|
+
// Logger.info('Accelbyte-SDK initialized with config', this.config)
|
|
27063
27063
|
}
|
|
27064
27064
|
init() {
|
|
27065
27065
|
const { baseURL, clientId } = this.options;
|
|
@@ -27132,7 +27132,7 @@ class AccelbyteSDKFactory {
|
|
|
27132
27132
|
axiosInstance
|
|
27133
27133
|
.get('https://development.accelbyte.io/iam/version')
|
|
27134
27134
|
.then(res => {
|
|
27135
|
-
console.log('-- axiosInstance res', res);
|
|
27135
|
+
console.log('-- axiosInstance res', res.data);
|
|
27136
27136
|
console.log('-- current ver', IamVersion);
|
|
27137
27137
|
})
|
|
27138
27138
|
.catch(err => {
|
|
@@ -27143,13 +27143,8 @@ class AccelbyteSDKFactory {
|
|
|
27143
27143
|
}
|
|
27144
27144
|
}
|
|
27145
27145
|
const sdkInit = ({ options, config, onEvents }) => {
|
|
27146
|
-
|
|
27147
|
-
Logger.info('Accelbyte-SDK instantiated:', options);
|
|
27148
|
-
}
|
|
27146
|
+
Logger.info('Accelbyte-SDK instantiated:', options);
|
|
27149
27147
|
const sdkFactory = new AccelbyteSDKFactory(options, config, onEvents);
|
|
27150
|
-
if (options.loglevel === exports.LogLevel.DEBUG) {
|
|
27151
|
-
Logger.info(`Accelbyte-SDK version: ${buildInfo.version} \nBuild: ${buildInfo.build} \nTimestamp: ${new Date(buildInfo.timestamp)}`);
|
|
27152
|
-
}
|
|
27153
27148
|
return sdkFactory.init();
|
|
27154
27149
|
};
|
|
27155
27150
|
// ts-prune-ignore-next
|