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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/utils.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openkbs",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "OpenKBS - Command Line Interface",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
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 token = await getClientJWT();
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' ? 'buildWebpackPackage' : 'buildNodePackage'
516
+ action: namespace === 'frontend' ? 'buildWebpackPackageWithKBToken' : 'buildNodePackageWithKBToken'
517
517
  });
518
518
  }
519
519