@accelbyte/codegen 4.1.1 → 4.1.3
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.
|
@@ -1207,7 +1207,7 @@ var templateSdkSnippet = ({
|
|
|
1207
1207
|
normMethod += "\n\n//" + methodArr[1];
|
|
1208
1208
|
const sdkAcronyms = ["Ams", "Gdpr", "Iam", "Ugc"];
|
|
1209
1209
|
let sdkSnippet = `import { AccelByte } from '@accelbyte/sdk'
|
|
1210
|
-
import { ${
|
|
1210
|
+
import { ${apiName} } from '@accelbyte/sdk-${serviceNameTitle.toLowerCase()}'
|
|
1211
1211
|
|
|
1212
1212
|
const sdk = AccelByte.SDK({
|
|
1213
1213
|
coreConfig: {
|
|
@@ -1218,7 +1218,7 @@ const sdk = AccelByte.SDK({
|
|
|
1218
1218
|
}
|
|
1219
1219
|
})
|
|
1220
1220
|
|
|
1221
|
-
${
|
|
1221
|
+
${apiName}(${snippetApiArgs.join(", ")})
|
|
1222
1222
|
.${normMethod}`;
|
|
1223
1223
|
if (isUMD) {
|
|
1224
1224
|
sdkSnippet = `<script src="https://unpkg.com/@accelbyte/sdk/dist/global/index.global.js"></script>
|