openkbs 0.0.23 → 0.0.24
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/package.json +1 -1
- package/src/utils.js +3 -3
package/package.json
CHANGED
package/src/utils.js
CHANGED
|
@@ -506,14 +506,14 @@ async function signPayload(payload, accountId, publicKey, privateKey, expiresInS
|
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
const buildPackage = async (namespace, kbId, moduleName) => {
|
|
509
|
-
const
|
|
509
|
+
const { kbToken } = await fetchKBJWT(kbId);
|
|
510
510
|
|
|
511
511
|
return await makePostRequest('https://kb.openkbs.com/', {
|
|
512
|
-
token,
|
|
512
|
+
token: kbToken,
|
|
513
513
|
kbId,
|
|
514
514
|
namespace,
|
|
515
515
|
moduleName,
|
|
516
|
-
action: namespace === 'frontend' ? '
|
|
516
|
+
action: namespace === 'frontend' ? 'buildWebpackPackageWithKBToken' : 'buildNodePackageWithKBToken'
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
519
|
|