@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.
|
@@ -1229,7 +1229,7 @@ var templateSdkSnippet = ({
|
|
|
1229
1229
|
normMethod += "\n\n//" + methodArr[1];
|
|
1230
1230
|
const sdkAcronyms = ["Ams", "Gdpr", "Iam", "Ugc"];
|
|
1231
1231
|
let sdkSnippet = `import { AccelByte } from '@accelbyte/sdk'
|
|
1232
|
-
import { ${
|
|
1232
|
+
import { ${apiName} } from '@accelbyte/sdk-${serviceNameTitle.toLowerCase()}'
|
|
1233
1233
|
|
|
1234
1234
|
const sdk = AccelByte.SDK({
|
|
1235
1235
|
coreConfig: {
|
|
@@ -1240,7 +1240,7 @@ const sdk = AccelByte.SDK({
|
|
|
1240
1240
|
}
|
|
1241
1241
|
})
|
|
1242
1242
|
|
|
1243
|
-
${
|
|
1243
|
+
${apiName}(${snippetApiArgs.join(", ")})
|
|
1244
1244
|
.${normMethod}`;
|
|
1245
1245
|
if (isUMD) {
|
|
1246
1246
|
sdkSnippet = `<script src="https://unpkg.com/@accelbyte/sdk/dist/global/index.global.js"></script>
|