@accelbyte/sdk 0.1.1-alpha.52 → 0.1.1-alpha.55
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 +13 -3
- package/README.md +1 -1
- package/dist/index.d.ts +324 -1
- package/dist/{index.es.js → index.node.es.js} +54 -27
- package/dist/index.node.es.js.map +1 -0
- package/dist/{index.js → index.node.js} +64 -35
- package/dist/index.node.js.map +1 -0
- package/package.json +4 -4
- package/dist/index.es.js.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var require$$0$1 = require('crypto');
|
|
3
4
|
var require$$1$1 = require('http');
|
|
4
5
|
var require$$2 = require('https');
|
|
5
|
-
var require$$0$
|
|
6
|
+
var require$$0$4 = require('url');
|
|
6
7
|
var require$$3 = require('stream');
|
|
7
8
|
var require$$4 = require('assert');
|
|
8
|
-
var require$$0$
|
|
9
|
+
var require$$0$3 = require('tty');
|
|
9
10
|
var require$$1 = require('util');
|
|
10
|
-
var require$$0$
|
|
11
|
+
var require$$0$2 = require('os');
|
|
11
12
|
var require$$8 = require('zlib');
|
|
12
13
|
var require$$1$2 = require('path');
|
|
13
14
|
var require$$6 = require('fs');
|
|
14
|
-
var require$$0$4 = require('crypto');
|
|
15
15
|
var buffer = require('buffer');
|
|
16
16
|
|
|
17
|
+
/*
|
|
18
|
+
* Copyright (c) 2018-2022 AccelByte Inc. All Rights Reserved
|
|
19
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
20
|
+
* and restrictions contact your company contract manager.
|
|
21
|
+
*/
|
|
22
|
+
global.crypto = require$$0$1.webcrypto;
|
|
23
|
+
|
|
17
24
|
var util$3;
|
|
18
25
|
(function (util) {
|
|
19
26
|
function assertNever(_x) {
|
|
@@ -5101,7 +5108,7 @@ var hasFlag$1 = (flag, argv) => {
|
|
|
5101
5108
|
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
5102
5109
|
};
|
|
5103
5110
|
|
|
5104
|
-
const os = require$$0$
|
|
5111
|
+
const os = require$$0$2;
|
|
5105
5112
|
const hasFlag = hasFlag$1;
|
|
5106
5113
|
|
|
5107
5114
|
const env = process.env;
|
|
@@ -5237,7 +5244,7 @@ var supportsColor_1 = {
|
|
|
5237
5244
|
*/
|
|
5238
5245
|
|
|
5239
5246
|
(function (module, exports) {
|
|
5240
|
-
const tty = require$$0$
|
|
5247
|
+
const tty = require$$0$3;
|
|
5241
5248
|
const util = require$$1;
|
|
5242
5249
|
|
|
5243
5250
|
/**
|
|
@@ -5525,7 +5532,7 @@ var debug_1 = function () {
|
|
|
5525
5532
|
debug$1.apply(null, arguments);
|
|
5526
5533
|
};
|
|
5527
5534
|
|
|
5528
|
-
var url$1 = require$$0$
|
|
5535
|
+
var url$1 = require$$0$4;
|
|
5529
5536
|
var URL$1 = url$1.URL;
|
|
5530
5537
|
var http$2 = require$$1$1;
|
|
5531
5538
|
var https$2 = require$$2;
|
|
@@ -6112,7 +6119,7 @@ var http$1 = require$$1$1;
|
|
|
6112
6119
|
var https$1 = require$$2;
|
|
6113
6120
|
var httpFollow = followRedirects.exports.http;
|
|
6114
6121
|
var httpsFollow = followRedirects.exports.https;
|
|
6115
|
-
var url = require$$0$
|
|
6122
|
+
var url = require$$0$4;
|
|
6116
6123
|
var zlib = require$$8;
|
|
6117
6124
|
var VERSION$1 = data.version;
|
|
6118
6125
|
var transitionalDefaults$1 = transitional;
|
|
@@ -7447,7 +7454,7 @@ var util = require$$1;
|
|
|
7447
7454
|
var path = require$$1$2;
|
|
7448
7455
|
var http = require$$1$1;
|
|
7449
7456
|
var https = require$$2;
|
|
7450
|
-
var parseUrl = require$$0$
|
|
7457
|
+
var parseUrl = require$$0$4.parse;
|
|
7451
7458
|
var fs = require$$6;
|
|
7452
7459
|
var Stream = require$$3.Stream;
|
|
7453
7460
|
var mime = mimeTypes;
|
|
@@ -12152,7 +12159,7 @@ var core = {exports: {}};
|
|
|
12152
12159
|
// Native crypto import via require (NodeJS)
|
|
12153
12160
|
if (!crypto && typeof commonjsRequire === 'function') {
|
|
12154
12161
|
try {
|
|
12155
|
-
crypto = require$$0$
|
|
12162
|
+
crypto = require$$0$1;
|
|
12156
12163
|
} catch (err) {}
|
|
12157
12164
|
}
|
|
12158
12165
|
|
|
@@ -18838,10 +18845,14 @@ CodeChallenge.load = () => {
|
|
|
18838
18845
|
return parseStoredState(localStorage.getItem('pp:pkce:cd') || '');
|
|
18839
18846
|
};
|
|
18840
18847
|
CodeChallenge.save = (codeVerifier) => {
|
|
18841
|
-
|
|
18848
|
+
if (BrowserHelper.isOnBrowser()) {
|
|
18849
|
+
localStorage.setItem('pp:pkce:cd', stringifyStoredState(codeVerifier));
|
|
18850
|
+
}
|
|
18842
18851
|
};
|
|
18843
18852
|
CodeChallenge.clear = () => {
|
|
18844
|
-
|
|
18853
|
+
if (BrowserHelper.isOnBrowser()) {
|
|
18854
|
+
localStorage.removeItem('pp:pkce:cd');
|
|
18855
|
+
}
|
|
18845
18856
|
};
|
|
18846
18857
|
const CodeChallengeStoredState = mod.object({
|
|
18847
18858
|
csrf: mod.string(),
|
|
@@ -37178,7 +37189,7 @@ const Enum = (...args) => {
|
|
|
37178
37189
|
* This is licensed software from AccelByte Inc, for limitations
|
|
37179
37190
|
* and restrictions contact your company contract manager.
|
|
37180
37191
|
*/
|
|
37181
|
-
const CommonValidationErrorType = Enum('empty', 'lessThanLengthLimit', 'exceedLengthLimit', 'invalidFormat', 'lessThanMinimumValue', 'exceedMaximumValue', 'invalidValue', 'notContainsLetterAndNumber', 'notContainsUpperCaseAndLowerCase', 'containsTwoCharactersInArrow', 'containsBadWords', 'containsForbiddenWords', 'containsDecimal', 'invalidFileExtensions', 'exceedMaximumFileSize', 'alreadyUsed');
|
|
37192
|
+
const CommonValidationErrorType = Enum('empty', 'lessThanLengthLimit', 'exceedLengthLimit', 'invalidFormat', 'lessThanMinimumValue', 'exceedMaximumValue', 'invalidValue', 'notContainsLetterAndNumber', 'notContainsUpperCaseAndLowerCase', 'containsTwoCharactersInArrow', 'containsBadWords', 'containsForbiddenWords', 'containsDecimal', 'invalidFileExtensions', 'exceedMaximumFileSize', 'alreadyUsed', 'nameIsNotAllowed');
|
|
37182
37193
|
const ThrownErrorType = Enum('invalidOption');
|
|
37183
37194
|
|
|
37184
37195
|
/*
|
|
@@ -42296,30 +42307,30 @@ const GlobalStyleConfig = mod.object({
|
|
|
42296
42307
|
})
|
|
42297
42308
|
})
|
|
42298
42309
|
});
|
|
42310
|
+
const SocialLinkConfig = mod.object({
|
|
42311
|
+
url: mod.string(),
|
|
42312
|
+
platform: mod.string(),
|
|
42313
|
+
apps: mod.array(mod.string())
|
|
42314
|
+
});
|
|
42315
|
+
const TemplateInfoConfig = mod.object({
|
|
42316
|
+
draft: mod.string(),
|
|
42317
|
+
published: mod.string()
|
|
42318
|
+
});
|
|
42299
42319
|
const DiscoveryConfigData = mod.object({
|
|
42300
42320
|
ppTemplateInfo: Config.merge(mod.object({
|
|
42301
|
-
data:
|
|
42302
|
-
draft: mod.string(),
|
|
42303
|
-
published: mod.string()
|
|
42304
|
-
})
|
|
42321
|
+
data: TemplateInfoConfig
|
|
42305
42322
|
})),
|
|
42306
42323
|
launcherTemplateInfo: Config.merge(mod.object({
|
|
42307
|
-
data:
|
|
42308
|
-
draft: mod.string(),
|
|
42309
|
-
published: mod.string()
|
|
42310
|
-
})
|
|
42324
|
+
data: TemplateInfoConfig
|
|
42311
42325
|
})),
|
|
42312
42326
|
loginTemplateInfo: Config.merge(mod.object({
|
|
42313
|
-
data:
|
|
42314
|
-
draft: mod.string(),
|
|
42315
|
-
published: mod.string()
|
|
42316
|
-
})
|
|
42327
|
+
data: TemplateInfoConfig
|
|
42317
42328
|
})),
|
|
42318
42329
|
legalTemplateInfo: Config.merge(mod.object({
|
|
42319
|
-
data:
|
|
42320
|
-
|
|
42321
|
-
|
|
42322
|
-
|
|
42330
|
+
data: TemplateInfoConfig
|
|
42331
|
+
})),
|
|
42332
|
+
paymentTemplateInfo: Config.merge(mod.object({
|
|
42333
|
+
data: TemplateInfoConfig
|
|
42323
42334
|
})),
|
|
42324
42335
|
ppFeatureFlags: Config,
|
|
42325
42336
|
launcherFeatureFlags: Config,
|
|
@@ -42327,11 +42338,7 @@ const DiscoveryConfigData = mod.object({
|
|
|
42327
42338
|
experimentalFeatureFlags: Config,
|
|
42328
42339
|
socialLinks: Config.merge(mod.object({
|
|
42329
42340
|
data: mod.object({
|
|
42330
|
-
value: mod.array(
|
|
42331
|
-
url: mod.string(),
|
|
42332
|
-
platform: mod.string(),
|
|
42333
|
-
apps: mod.array(mod.string())
|
|
42334
|
-
}))
|
|
42341
|
+
value: mod.array(SocialLinkConfig)
|
|
42335
42342
|
})
|
|
42336
42343
|
})),
|
|
42337
42344
|
copyright: Config.merge(mod.object({
|
|
@@ -42357,6 +42364,26 @@ const DiscoveryConfigData = mod.object({
|
|
|
42357
42364
|
data: mod.object({
|
|
42358
42365
|
value: mod.string()
|
|
42359
42366
|
})
|
|
42367
|
+
})),
|
|
42368
|
+
appId: Config.merge(mod.object({
|
|
42369
|
+
data: mod.object({
|
|
42370
|
+
value: mod.string()
|
|
42371
|
+
})
|
|
42372
|
+
})),
|
|
42373
|
+
avatarsList: Config.merge(mod.object({
|
|
42374
|
+
data: mod.object({
|
|
42375
|
+
value: mod.string()
|
|
42376
|
+
})
|
|
42377
|
+
})),
|
|
42378
|
+
brandName: Config.merge(mod.object({
|
|
42379
|
+
data: mod.object({
|
|
42380
|
+
value: mod.string()
|
|
42381
|
+
})
|
|
42382
|
+
})),
|
|
42383
|
+
favicon: Config.merge(mod.object({
|
|
42384
|
+
data: mod.object({
|
|
42385
|
+
value: mod.string()
|
|
42386
|
+
})
|
|
42360
42387
|
}))
|
|
42361
42388
|
});
|
|
42362
42389
|
const HomepagePPConfig = mod.object({
|
|
@@ -43047,6 +43074,7 @@ exports.SendVerificationLinkRequest = SendVerificationLinkRequest;
|
|
|
43047
43074
|
exports.SimpleLatestBaseGame = SimpleLatestBaseGame;
|
|
43048
43075
|
exports.SimpleUserPlatformInfoV3 = SimpleUserPlatformInfoV3;
|
|
43049
43076
|
exports.Slide = Slide;
|
|
43077
|
+
exports.SocialLinkConfig = SocialLinkConfig;
|
|
43050
43078
|
exports.Sso$ = Sso$;
|
|
43051
43079
|
exports.SsoPlatformCredentialRequest = SsoPlatformCredentialRequest;
|
|
43052
43080
|
exports.SsoPlatformCredentialResponse = SsoPlatformCredentialResponse;
|
|
@@ -43083,6 +43111,7 @@ exports.TWOFA_PAGE = TWOFA_PAGE;
|
|
|
43083
43111
|
exports.TaxResult = TaxResult;
|
|
43084
43112
|
exports.Template = Template;
|
|
43085
43113
|
exports.TemplateCompact = TemplateCompact;
|
|
43114
|
+
exports.TemplateInfoConfig = TemplateInfoConfig;
|
|
43086
43115
|
exports.Templates$ = Templates$;
|
|
43087
43116
|
exports.TestResult = TestResult;
|
|
43088
43117
|
exports.ThirdPartyCredential$ = ThirdPartyCredential$;
|
|
@@ -43241,4 +43270,4 @@ exports.ZsyncDiffRequest = ZsyncDiffRequest;
|
|
|
43241
43270
|
exports.ZsyncFileManifest = ZsyncFileManifest;
|
|
43242
43271
|
exports.injectRequestInterceptors = injectRequestInterceptors;
|
|
43243
43272
|
exports.injectResponseInterceptors = injectResponseInterceptors;
|
|
43244
|
-
//# sourceMappingURL=index.js.map
|
|
43273
|
+
//# sourceMappingURL=index.node.js.map
|