@teambit/api-server 0.0.6 → 0.0.8

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.
@@ -80,6 +80,9 @@ class ApiServerMain {
80
80
  async runApiServer(options) {
81
81
  const port = options.port || 3000;
82
82
  await this.express.listen(port);
83
+ if (!this.workspace) {
84
+ throw new Error(`unable to run bit-server, the current directory ${process.cwd()} is not a workspace`);
85
+ }
83
86
  this.watcher.watch({
84
87
  preCompile: false
85
88
  }).catch(err => {
@@ -1 +1 @@
1
- {"version":3,"names":["ApiServerMain","constructor","workspace","logger","express","watcher","runApiServer","options","port","listen","watch","preCompile","catch","err","error","Promise","consoleSuccess","provider","cli","loggerMain","createLogger","ApiServerAspect","id","apiServer","register","ServerCmd","cliRoute","CLIRoute","CLIAspect","WorkspaceAspect","LoggerAspect","ExpressAspect","WatcherAspect","MainRuntime","addRuntime"],"sources":["api-server.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ExpressAspect, ExpressMain } from '@teambit/express';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport WatcherAspect, { WatcherMain } from '@teambit/watcher';\nimport WorkspaceAspect, { Workspace } from '@teambit/workspace';\nimport { ApiServerAspect } from './api-server.aspect';\nimport { CLIRoute } from './cli.route';\nimport { ServerCmd } from './server.cmd';\n\nexport class ApiServerMain {\n constructor(\n private workspace: Workspace,\n private logger: Logger,\n private express: ExpressMain,\n private watcher: WatcherMain\n ) {}\n\n async runApiServer(options: { port: number }) {\n const port = options.port || 3000;\n await this.express.listen(port);\n\n this.watcher\n .watch({\n preCompile: false,\n })\n .catch((err) => {\n // don't throw an error, we don't want to break the \"run\" process\n this.logger.error('watcher found an error', err);\n });\n\n // never ending promise to not exit the process (is there a better way?)\n return new Promise(() => {\n this.logger.consoleSuccess(`Bit Server is listening on port ${port}`);\n });\n }\n\n static dependencies = [CLIAspect, WorkspaceAspect, LoggerAspect, ExpressAspect, WatcherAspect];\n static runtime = MainRuntime;\n static async provider([cli, workspace, loggerMain, express, watcher]: [\n CLIMain,\n Workspace,\n LoggerMain,\n ExpressMain,\n WatcherMain\n ]) {\n const logger = loggerMain.createLogger(ApiServerAspect.id);\n const apiServer = new ApiServerMain(workspace, logger, express, watcher);\n cli.register(new ServerCmd(apiServer));\n\n const cliRoute = new CLIRoute(logger, cli);\n // register only when the workspace is available. don't register this on a remote-scope, for security reasons.\n if (workspace) {\n express.register([cliRoute]);\n }\n\n return apiServer;\n }\n}\n\nApiServerAspect.addRuntime(ApiServerMain);\n\nexport default ApiServerMain;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,aAAa,CAAC;EACzBC,WAAW,CACDC,SAAoB,EACpBC,MAAc,EACdC,OAAoB,EACpBC,OAAoB,EAC5B;IAAA,KAJQH,SAAoB,GAApBA,SAAoB;IAAA,KACpBC,MAAc,GAAdA,MAAc;IAAA,KACdC,OAAoB,GAApBA,OAAoB;IAAA,KACpBC,OAAoB,GAApBA,OAAoB;EAC3B;EAEH,MAAMC,YAAY,CAACC,OAAyB,EAAE;IAC5C,MAAMC,IAAI,GAAGD,OAAO,CAACC,IAAI,IAAI,IAAI;IACjC,MAAM,IAAI,CAACJ,OAAO,CAACK,MAAM,CAACD,IAAI,CAAC;IAE/B,IAAI,CAACH,OAAO,CACTK,KAAK,CAAC;MACLC,UAAU,EAAE;IACd,CAAC,CAAC,CACDC,KAAK,CAAEC,GAAG,IAAK;MACd;MACA,IAAI,CAACV,MAAM,CAACW,KAAK,CAAC,wBAAwB,EAAED,GAAG,CAAC;IAClD,CAAC,CAAC;;IAEJ;IACA,OAAO,IAAIE,OAAO,CAAC,MAAM;MACvB,IAAI,CAACZ,MAAM,CAACa,cAAc,CAAE,mCAAkCR,IAAK,EAAC,CAAC;IACvE,CAAC,CAAC;EACJ;EAIA,aAAaS,QAAQ,CAAC,CAACC,GAAG,EAAEhB,SAAS,EAAEiB,UAAU,EAAEf,OAAO,EAAEC,OAAO,CAMlE,EAAE;IACD,MAAMF,MAAM,GAAGgB,UAAU,CAACC,YAAY,CAACC,4BAAe,CAACC,EAAE,CAAC;IAC1D,MAAMC,SAAS,GAAG,IAAIvB,aAAa,CAACE,SAAS,EAAEC,MAAM,EAAEC,OAAO,EAAEC,OAAO,CAAC;IACxEa,GAAG,CAACM,QAAQ,CAAC,KAAIC,mBAAS,EAACF,SAAS,CAAC,CAAC;IAEtC,MAAMG,QAAQ,GAAG,KAAIC,gBAAQ,EAACxB,MAAM,EAAEe,GAAG,CAAC;IAC1C;IACA,IAAIhB,SAAS,EAAE;MACbE,OAAO,CAACoB,QAAQ,CAAC,CAACE,QAAQ,CAAC,CAAC;IAC9B;IAEA,OAAOH,SAAS;EAClB;AACF;AAAC;AAAA,gCAhDYvB,aAAa,kBA2BF,CAAC4B,gBAAS,EAAEC,oBAAe,EAAEC,sBAAY,EAAEC,wBAAa,EAAEC,kBAAa,CAAC;AAAA,gCA3BnFhC,aAAa,aA4BPiC,kBAAW;AAsB9BZ,4BAAe,CAACa,UAAU,CAAClC,aAAa,CAAC;AAAC,eAE3BA,aAAa;AAAA"}
1
+ {"version":3,"names":["ApiServerMain","constructor","workspace","logger","express","watcher","runApiServer","options","port","listen","Error","process","cwd","watch","preCompile","catch","err","error","Promise","consoleSuccess","provider","cli","loggerMain","createLogger","ApiServerAspect","id","apiServer","register","ServerCmd","cliRoute","CLIRoute","CLIAspect","WorkspaceAspect","LoggerAspect","ExpressAspect","WatcherAspect","MainRuntime","addRuntime"],"sources":["api-server.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ExpressAspect, ExpressMain } from '@teambit/express';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport WatcherAspect, { WatcherMain } from '@teambit/watcher';\nimport WorkspaceAspect, { Workspace } from '@teambit/workspace';\nimport { ApiServerAspect } from './api-server.aspect';\nimport { CLIRoute } from './cli.route';\nimport { ServerCmd } from './server.cmd';\n\nexport class ApiServerMain {\n constructor(\n private workspace: Workspace,\n private logger: Logger,\n private express: ExpressMain,\n private watcher: WatcherMain\n ) {}\n\n async runApiServer(options: { port: number }) {\n const port = options.port || 3000;\n await this.express.listen(port);\n if (!this.workspace) {\n throw new Error(`unable to run bit-server, the current directory ${process.cwd()} is not a workspace`);\n }\n this.watcher\n .watch({\n preCompile: false,\n })\n .catch((err) => {\n // don't throw an error, we don't want to break the \"run\" process\n this.logger.error('watcher found an error', err);\n });\n\n // never ending promise to not exit the process (is there a better way?)\n return new Promise(() => {\n this.logger.consoleSuccess(`Bit Server is listening on port ${port}`);\n });\n }\n\n static dependencies = [CLIAspect, WorkspaceAspect, LoggerAspect, ExpressAspect, WatcherAspect];\n static runtime = MainRuntime;\n static async provider([cli, workspace, loggerMain, express, watcher]: [\n CLIMain,\n Workspace,\n LoggerMain,\n ExpressMain,\n WatcherMain\n ]) {\n const logger = loggerMain.createLogger(ApiServerAspect.id);\n const apiServer = new ApiServerMain(workspace, logger, express, watcher);\n cli.register(new ServerCmd(apiServer));\n\n const cliRoute = new CLIRoute(logger, cli);\n // register only when the workspace is available. don't register this on a remote-scope, for security reasons.\n if (workspace) {\n express.register([cliRoute]);\n }\n\n return apiServer;\n }\n}\n\nApiServerAspect.addRuntime(ApiServerMain);\n\nexport default ApiServerMain;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAA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AAU,EAAElB,OAAO,EAAEC,OAAO,CAMlE,EAAE;IACD,MAAMF,MAAM,GAAGmB,UAAU,CAACC,YAAY,CAACC,4BAAe,CAACC,EAAE,CAAC;IAC1D,MAAMC,SAAS,GAAG,IAAI1B,aAAa,CAACE,SAAS,EAAEC,MAAM,EAAEC,OAAO,EAAEC,OAAO,CAAC;IACxEgB,GAAG,CAACM,QAAQ,CAAC,KAAIC,mBAAS,EAACF,SAAS,CAAC,CAAC;IAEtC,MAAMG,QAAQ,GAAG,KAAIC,gBAAQ,EAAC3B,MAAM,EAAEkB,GAAG,CAAC;IAC1C;IACA,IAAInB,SAAS,EAAE;MACbE,OAAO,CAACuB,QAAQ,CAAC,CAACE,QAAQ,CAAC,CAAC;IAC9B;IAEA,OAAOH,SAAS;EAClB;AACF;AAAC;AAAA,gCAlDY1B,aAAa,kBA6BF,CAAC+B,gBAAS,EAAEC,oBAAe,EAAEC,sBAAY,EAAEC,wBAAa,EAAEC,kBAAa,CAAC;AAAA,gCA7BnFnC,aAAa,aA8BPoC,kBAAW;AAsB9BZ,4BAAe,CAACa,UAAU,CAACrC,aAAa,CAAC;AAAC,eAE3BA,aAAa;AAAA"}
package/dist/cli.route.js CHANGED
@@ -50,14 +50,15 @@ class CLIRoute {
50
50
  options
51
51
  } = body;
52
52
  const optsToString = Object.keys(options || {}).map(key => `--${key}`).join(' ');
53
- this.logger.console(`started a new command: ${req.params.cmd} ${args.join(' ')} ${optsToString}`);
53
+ this.logger.console(`started a new command: ${req.params.cmd} ${(args || []).join(' ')} ${optsToString}`);
54
54
  const startTask = process.hrtime();
55
55
  const result = await (command === null || command === void 0 ? void 0 : command.json(args || [], options || {}));
56
56
  const duration = (0, _prettyTime().default)(process.hrtime(startTask));
57
57
  this.logger.consoleSuccess(`command "${req.params.cmd}" had been completed in ${duration}`);
58
58
  res.json(result);
59
59
  } catch (err) {
60
- this.logger.consoleFailure(`command "${req.params.cmd}" had failed`);
60
+ this.logger.error(`command "${req.params.cmd}" had failed`, err);
61
+ this.logger.consoleFailure(`command "${req.params.cmd}" had failed. ${err.message}`);
61
62
  next(err);
62
63
  }
63
64
  }]);
@@ -1 +1 @@
1
- {"version":3,"names":["CLIRoute","constructor","logger","cli","req","res","next","debug","params","cmd","command","getCommand","Error","json","body","args","options","optsToString","Object","keys","map","key","join","console","startTask","process","hrtime","result","duration","prettyTime","consoleSuccess","err","consoleFailure"],"sources":["cli.route.ts"],"sourcesContent":["import { CLIMain } from '@teambit/cli';\nimport prettyTime from 'pretty-time';\nimport { Route, Request, Response } from '@teambit/express';\nimport { Logger } from '@teambit/logger';\n\n/**\n * example usage:\n * post to http://localhost:3000/api/cli/list\n * with the following json as the body\n *\n{\n \"args\": [\"teambit.workspace\"],\n \"options\": {\n \"ids\": true\n }\n}\n */\nexport class CLIRoute implements Route {\n constructor(private logger: Logger, private cli: CLIMain) {}\n\n method = 'post';\n route = '/cli/:cmd';\n\n middlewares = [\n async (req: Request, res: Response, next) => {\n this.logger.debug(`cli server: got request for ${req.params.cmd}`);\n try {\n const command = this.cli.getCommand(req.params.cmd);\n if (!command) throw new Error(`command \"${req.params.cmd}\" was not found`);\n if (!command.json) throw new Error(`command \"${req.params.cmd}\" does not have a json method`);\n const body = req.body;\n const { args, options } = body;\n const optsToString = Object.keys(options || {})\n .map((key) => `--${key}`)\n .join(' ');\n this.logger.console(`started a new command: ${req.params.cmd} ${args.join(' ')} ${optsToString}`);\n const startTask = process.hrtime();\n const result = await command?.json(args || [], options || {});\n const duration = prettyTime(process.hrtime(startTask));\n this.logger.consoleSuccess(`command \"${req.params.cmd}\" had been completed in ${duration}`);\n res.json(result);\n } catch (err) {\n this.logger.consoleFailure(`command \"${req.params.cmd}\" had failed`);\n next(err);\n }\n },\n ];\n}\n"],"mappings":";;;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,QAAQ,CA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AAE,EAAEC,OAAO,IAAI,CAAC,CAAC,CAAC;QAC7D,MAAMY,QAAQ,GAAG,IAAAC,qBAAU,EAACJ,OAAO,CAACC,MAAM,CAACF,SAAS,CAAC,CAAC;QACtD,IAAI,CAACtB,MAAM,CAAC4B,cAAc,CAAE,YAAW1B,GAAG,CAACI,MAAM,CAACC,GAAI,2BAA0BmB,QAAS,EAAC,CAAC;QAC3FvB,GAAG,CAACQ,IAAI,CAACc,MAAM,CAAC;MAClB,CAAC,CAAC,OAAOI,GAAG,EAAE;QACZ,IAAI,CAAC7B,MAAM,CAAC8B,cAAc,CAAE,YAAW5B,GAAG,CAACI,MAAM,CAACC,GAAI,cAAa,CAAC;QACpEH,IAAI,CAACyB,GAAG,CAAC;MACX;IACF,CAAC,CACF;EA5B0D;AA6B7D;AAAC"}
1
+ {"version":3,"names":["CLIRoute","constructor","logger","cli","req","res","next","debug","params","cmd","command","getCommand","Error","json","body","args","options","optsToString","Object","keys","map","key","join","console","startTask","process","hrtime","result","duration","prettyTime","consoleSuccess","err","error","consoleFailure","message"],"sources":["cli.route.ts"],"sourcesContent":["import { CLIMain } from '@teambit/cli';\nimport prettyTime from 'pretty-time';\nimport { Route, Request, Response } from '@teambit/express';\nimport { Logger } from '@teambit/logger';\n\n/**\n * example usage:\n * post to http://localhost:3000/api/cli/list\n * with the following json as the body\n *\n{\n \"args\": [\"teambit.workspace\"],\n \"options\": {\n \"ids\": true\n }\n}\n */\nexport class CLIRoute implements Route {\n constructor(private logger: Logger, private cli: CLIMain) {}\n\n method = 'post';\n route = '/cli/:cmd';\n\n middlewares = [\n async (req: Request, res: Response, next) => {\n this.logger.debug(`cli server: got request for ${req.params.cmd}`);\n try {\n const command = this.cli.getCommand(req.params.cmd);\n if (!command) throw new Error(`command \"${req.params.cmd}\" was not found`);\n if (!command.json) throw new Error(`command \"${req.params.cmd}\" does not have a json method`);\n const body = req.body;\n const { args, options } = body;\n const optsToString = Object.keys(options || {})\n .map((key) => `--${key}`)\n .join(' ');\n this.logger.console(`started a new command: ${req.params.cmd} ${(args || []).join(' ')} ${optsToString}`);\n const startTask = process.hrtime();\n const result = await command?.json(args || [], options || {});\n const duration = prettyTime(process.hrtime(startTask));\n this.logger.consoleSuccess(`command \"${req.params.cmd}\" had been completed in ${duration}`);\n res.json(result);\n } catch (err: any) {\n this.logger.error(`command \"${req.params.cmd}\" had failed`, err);\n this.logger.consoleFailure(`command \"${req.params.cmd}\" had failed. ${err.message}`);\n next(err);\n }\n },\n ];\n}\n"],"mappings":";;;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,QAAQ,CAAkB;EACrCC,WAAW,CAASC,MAAc,EAAUC,GAAY,EAAE;IAAA,KAAtCD,MAAc,GAAdA,MAAc;IAAA,KAAUC,GAAY,GAAZA,GAAY;IAAA,gDAE/C,MAAM;IAAA,+CACP,WAAW;IAAA,qDAEL,CACZ,OAAOC,GAAY,EAAEC,GAAa,EAAEC,IAAI,KAAK;MAC3C,IAAI,CAACJ,MAAM,CAACK,KAAK,CAAE,+BAA8BH,GAAG,CAACI,MAAM,CAACC,GAAI,EAAC,CAAC;MAClE,IAAI;QACF,MAAMC,OAAO,GAAG,IAAI,CAACP,GAAG,CAACQ,UAAU,CAACP,GAAG,CAACI,MAAM,CAACC,GAAG,CAAC;QACnD,IAAI,CAACC,OAAO,EAAE,MAAM,IAAIE,KAAK,CAAE,YAAWR,GAAG,CAACI,MAAM,CAACC,GAAI,iBAAgB,CAAC;QAC1E,IAAI,CAACC,OAAO,CAACG,IAAI,EAAE,MAAM,IAAID,KAAK,CAAE,YAAWR,GAAG,CAACI,MAAM,CAACC,GAAI,+BAA8B,CAAC;QAC7F,MAAMK,IAAI,GAAGV,GAAG,CAACU,IAAI;QACrB,MAAM;UAAEC,IAAI;UAAEC;QAAQ,CAAC,GAAGF,IAAI;QAC9B,MAAMG,Y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
  "homepage": "https://bit.dev/teambit/harmony/api-server",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "api-server",
9
- "version": "0.0.6"
9
+ "version": "0.0.8"
10
10
  },
11
11
  "dependencies": {
12
12
  "pretty-time": "1.1.0",
13
13
  "core-js": "^3.0.0",
14
14
  "@babel/runtime": "7.20.0",
15
15
  "@teambit/harmony": "0.4.6",
16
- "@teambit/cli": "0.0.668",
17
- "@teambit/express": "0.0.766",
18
- "@teambit/logger": "0.0.761",
19
- "@teambit/watcher": "0.0.6",
20
- "@teambit/workspace": "0.0.994"
16
+ "@teambit/cli": "0.0.669",
17
+ "@teambit/express": "0.0.767",
18
+ "@teambit/logger": "0.0.762",
19
+ "@teambit/watcher": "0.0.8",
20
+ "@teambit/workspace": "0.0.996"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/mocha": "9.1.0",
@@ -28,7 +28,7 @@
28
28
  "@types/testing-library__jest-dom": "5.9.5"
29
29
  },
30
30
  "peerDependencies": {
31
- "@teambit/legacy": "1.0.449",
31
+ "@teambit/legacy": "1.0.451",
32
32
  "react": "^16.8.0 || ^17.0.0",
33
33
  "react-dom": "^16.8.0 || ^17.0.0"
34
34
  },