@teambit/scope 1.0.45 → 1.0.47

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.
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_scope@1.0.45/dist/scope.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_scope@1.0.45/dist/scope.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_scope@1.0.47/dist/scope.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_scope@1.0.47/dist/scope.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -53,7 +53,7 @@ class FetchRoute {
53
53
  Promise.all(preFetchHookP).catch(err => {
54
54
  this.logger.error('fatal: onPreFetchObjects encountered an error (this error does not stop the process)', err);
55
55
  });
56
- const readable = await (0, _scope().fetch)(this.scope.path, req.body.ids, req.body.fetchOptions);
56
+ const readable = await (0, _scope().fetch)(this.scope.path, req.body.ids, req.body.fetchOptions, req.headers);
57
57
  const pack = _objectList().ObjectList.fromObjectStreamToTar(readable, this.scope.name);
58
58
  try {
59
59
  await (0, _promises().pipeline)(pack, res);
@@ -63,7 +63,8 @@ class FetchRoute {
63
63
  this.logger.warn('FetchRoute, the client aborted the request', err);
64
64
  } else {
65
65
  this.logger.error(`FetchRoute encountered an error during the pipeline streaming, this should never happen.
66
- make sure the error is caught in fromObjectStreamToTar and it streamed using the name "ERROR"`, err);
66
+ make sure the error is caught in fromObjectStreamToTar and it streamed using the name "ERROR".
67
+ error: ${err.message}`, err);
67
68
  }
68
69
  }
69
70
  }]);
@@ -1 +1 @@
1
- {"version":3,"names":["_express","data","require","_scope","_objectList","_promises","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","FetchRoute","constructor","scope","logger","Verb","READ","req","setTimeout","config","httpTimeOut","preFetchHookP","preFetchObjects","values","map","fn","ids","body","fetchOptions","headers","Promise","all","catch","err","error","readable","fetch","path","pack","ObjectList","fromObjectStreamToTar","name","pipeline","info","aborted","warn","exports"],"sources":["fetch.route.ts"],"sourcesContent":["import { Route, Verb, Request, Response } from '@teambit/express';\nimport { fetch } from '@teambit/legacy/dist/api/scope';\nimport { ObjectList } from '@teambit/legacy/dist/scope/objects/object-list';\nimport { Logger } from '@teambit/logger';\n// @ts-ignore\nimport { pipeline } from 'stream/promises';\nimport { ScopeMain } from '../scope.main.runtime';\n\nexport class FetchRoute implements Route {\n constructor(private scope: ScopeMain, private logger: Logger) {}\n\n route = '/scope/fetch';\n method = 'post';\n verb = Verb.READ;\n middlewares = [\n async (req: Request, res: Response) => {\n req.setTimeout(this.scope.config.httpTimeOut);\n const preFetchHookP = this.scope.preFetchObjects\n .values()\n .map((fn) => fn({ ids: req.body.ids, fetchOptions: req.body.fetchOptions }, { headers: req.headers }));\n\n Promise.all(preFetchHookP).catch((err) => {\n this.logger.error('fatal: onPreFetchObjects encountered an error (this error does not stop the process)', err);\n });\n\n const readable = await fetch(this.scope.path, req.body.ids, req.body.fetchOptions);\n const pack = ObjectList.fromObjectStreamToTar(readable, this.scope.name);\n try {\n await pipeline(pack, res);\n this.logger.info('fetch.router, the response has been sent successfully to the client', req.headers);\n } catch (err: any) {\n if (req.aborted) {\n this.logger.warn('FetchRoute, the client aborted the request', err);\n } else {\n this.logger.error(\n `FetchRoute encountered an error during the pipeline streaming, this should never happen.\n make sure the error is caught in fromObjectStreamToTar and it streamed using the name \"ERROR\"`,\n err\n );\n }\n }\n },\n ];\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;QACzB,IAAI,CAACO,MAAM,CAAC6B,IAAI,CAAC,qEAAqE,EAAE1B,GAAG,CAACY,OAAO,CAAC;MACtG,CAAC,CAAC,OAAOI,GAAQ,EAAE;QACjB,IAAIhB,GAAG,CAAC2B,OAAO,EAAE;UACf,IAAI,CAAC9B,MAAM,CAAC+B,IAAI,CAAC,4CAA4C,EAAEZ,GAAG,CAAC;QACrE,CAAC,MAAM;UACL,IAAI,CAACnB,MAAM,CAACoB,KAAK,CACd;AACb,gGAAgG,EACpFD,GACF,CAAC;QACH;MACF;IACF,CAAC,CACF;EAjC8D;AAkCjE;AAACa,OAAA,CAAAnC,UAAA,GAAAA,UAAA"}
1
+ {"version":3,"names":["_express","data","require","_scope","_objectList","_promises","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","FetchRoute","constructor","scope","logger","Verb","READ","req","setTimeout","config","httpTimeOut","preFetchHookP","preFetchObjects","values","map","fn","ids","body","fetchOptions","headers","Promise","all","catch","err","error","readable","fetch","path","pack","ObjectList","fromObjectStreamToTar","name","pipeline","info","aborted","warn","message","exports"],"sources":["fetch.route.ts"],"sourcesContent":["import { Route, Verb, Request, Response } from '@teambit/express';\nimport { fetch } from '@teambit/legacy/dist/api/scope';\nimport { ObjectList } from '@teambit/legacy/dist/scope/objects/object-list';\nimport { Logger } from '@teambit/logger';\n// @ts-ignore\nimport { pipeline } from 'stream/promises';\nimport { ScopeMain } from '../scope.main.runtime';\n\nexport class FetchRoute implements Route {\n constructor(private scope: ScopeMain, private logger: Logger) {}\n\n route = '/scope/fetch';\n method = 'post';\n verb = Verb.READ;\n middlewares = [\n async (req: Request, res: Response) => {\n req.setTimeout(this.scope.config.httpTimeOut);\n const preFetchHookP = this.scope.preFetchObjects\n .values()\n .map((fn) => fn({ ids: req.body.ids, fetchOptions: req.body.fetchOptions }, { headers: req.headers }));\n\n Promise.all(preFetchHookP).catch((err) => {\n this.logger.error('fatal: onPreFetchObjects encountered an error (this error does not stop the process)', err);\n });\n\n const readable = await fetch(this.scope.path, req.body.ids, req.body.fetchOptions, req.headers);\n const pack = ObjectList.fromObjectStreamToTar(readable, this.scope.name);\n try {\n await pipeline(pack, res);\n this.logger.info('fetch.router, the response has been sent successfully to the client', req.headers);\n } catch (err: any) {\n if (req.aborted) {\n this.logger.warn('FetchRoute, the client aborted the request', err);\n } else {\n this.logger.error(\n `FetchRoute encountered an error during the pipeline streaming, this should never happen.\nmake sure the error is caught in fromObjectStreamToTar and it streamed using the name \"ERROR\".\nerror: ${err.message}`,\n err\n );\n }\n }\n },\n ];\n}\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,YAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,WAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAI,UAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,SAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA2C,SAAAK,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA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ACnB,MAAM,CAACoB,KAAK,CAAC,sFAAsF,EAAED,GAAG,CAAC;MAChH,CAAC,CAAC;MAEF,MAAME,QAAQ,GAAG,MAAM,IAAAC,cAAK,EAAC,IAAI,CAACvB,KAAK,CAACwB,IAAI,EAAEpB,GAAG,CAACU,IAAI,CAACD,GAAG,EAAET,GAAG,CAACU,IAAI,CAACC,YAAY,EAAEX,GAAG,CAACY,OAAO,CAAC;MAC/F,MAAMS,IAAI,GAAGC,wBAAU,CAACC,qBAAqB,CAACL,QAAQ,EAAE,IAAI,CAACtB,KAAK,CAAC4B,IAAI,CAAC;MACxE,IAAI;QACF,MAAM,IAAAC,oBAAQ,EAACJ,IAAI,EAAE/B,GAAG,CAAC;QACzB,IAAI,CAACO,MAAM,CAAC6B,IAAI,CAAC,qEAAqE,EAAE1B,GAAG,CAACY,OAAO,CAAC;MACtG,CAAC,CAAC,OAAOI,GAAQ,EAAE;QACjB,IAAIhB,GAAG,CAAC2B,OAAO,EAAE;UACf,IAAI,CAAC9B,MAAM,CAAC+B,IAAI,CAAC,4CAA4C,EAAEZ,GAAG,CAAC;QACrE,CAAC,MAAM;UACL,IAAI,CAACnB,MAAM,CAACoB,KAAK,CACd;AACb;AACA,SAASD,GAAG,CAACa,OAAQ,EAAC,EACVb,GACF,CAAC;QACH;MACF;IACF,CAAC,CACF;EAlC8D;AAmCjE;AAACc,OAAA,CAAApC,UAAA,GAAAA,UAAA"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/scope",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "homepage": "https://bit.cloud/teambit/scope/scope",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.scope",
8
8
  "name": "scope",
9
- "version": "1.0.45"
9
+ "version": "1.0.47"
10
10
  },
11
11
  "dependencies": {
12
12
  "fs-extra": "10.0.0",
@@ -44,43 +44,43 @@
44
44
  "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.506",
45
45
  "@teambit/lane-id": "0.0.311",
46
46
  "@teambit/ui-foundation.ui.constants.z-indexes": "0.0.504",
47
- "@teambit/base-ui.surfaces.split-pane.hover-splitter": "1.0.0",
48
- "@teambit/base-ui.surfaces.split-pane.split-pane": "1.0.0",
49
- "@teambit/base-ui.utils.composer": "1.0.0",
50
47
  "@teambit/scope.ui.hooks.use-scope": "0.0.453",
51
48
  "@teambit/ui-foundation.ui.buttons.collapser": "0.0.215",
52
49
  "@teambit/ui-foundation.ui.corner": "0.0.520",
53
50
  "@teambit/ui-foundation.ui.full-loader": "0.0.500",
54
51
  "@teambit/ui-foundation.ui.hooks.use-is-mobile": "0.0.197",
55
52
  "@teambit/ui-foundation.ui.top-bar": "0.0.514",
53
+ "@teambit/base-ui.surfaces.split-pane.hover-splitter": "1.0.0",
54
+ "@teambit/base-ui.surfaces.split-pane.split-pane": "1.0.0",
55
+ "@teambit/base-ui.utils.composer": "1.0.0",
56
56
  "@teambit/ui-foundation.ui.use-box.dropdown": "0.0.141",
57
57
  "@teambit/ui-foundation.ui.use-box.scope-menu": "0.0.145",
58
58
  "@teambit/explorer.ui.gallery.component-card": "0.0.513",
59
59
  "@teambit/explorer.ui.gallery.component-grid": "0.0.496",
60
60
  "@teambit/scope.ui.empty-scope": "0.0.509",
61
61
  "@teambit/scope.ui.scope-details": "0.0.526",
62
- "@teambit/component.modules.component-url": "0.0.159",
63
- "@teambit/scope.models.scope-model": "0.0.466",
64
- "@teambit/scope.ui.hooks.scope-context": "0.0.460",
65
- "@teambit/aspect-loader": "1.0.45",
66
- "@teambit/cli": "0.0.809",
67
- "@teambit/compiler": "1.0.45",
68
- "@teambit/component": "1.0.45",
69
- "@teambit/dependency-resolver": "1.0.45",
70
- "@teambit/envs": "1.0.45",
71
- "@teambit/global-config": "0.0.811",
72
- "@teambit/harmony.modules.requireable-component": "0.0.494",
73
- "@teambit/isolator": "1.0.45",
74
- "@teambit/logger": "0.0.902",
75
- "@teambit/builder": "1.0.45",
76
- "@teambit/express": "0.0.908",
77
- "@teambit/graph": "1.0.45",
78
- "@teambit/graphql": "1.0.45",
79
- "@teambit/ui": "1.0.45",
80
- "@teambit/workspace.modules.match-pattern": "0.0.501",
81
- "@teambit/command-bar": "1.0.45",
82
- "@teambit/component-tree": "1.0.45",
83
- "@teambit/sidebar": "1.0.45",
62
+ "@teambit/component.modules.component-url": "0.0.160",
63
+ "@teambit/scope.models.scope-model": "0.0.468",
64
+ "@teambit/scope.ui.hooks.scope-context": "0.0.462",
65
+ "@teambit/aspect-loader": "1.0.47",
66
+ "@teambit/cli": "0.0.811",
67
+ "@teambit/compiler": "1.0.47",
68
+ "@teambit/component": "1.0.47",
69
+ "@teambit/dependency-resolver": "1.0.47",
70
+ "@teambit/envs": "1.0.47",
71
+ "@teambit/global-config": "0.0.813",
72
+ "@teambit/harmony.modules.requireable-component": "0.0.495",
73
+ "@teambit/isolator": "1.0.47",
74
+ "@teambit/logger": "0.0.904",
75
+ "@teambit/builder": "1.0.47",
76
+ "@teambit/express": "0.0.910",
77
+ "@teambit/graph": "1.0.47",
78
+ "@teambit/graphql": "1.0.47",
79
+ "@teambit/ui": "1.0.47",
80
+ "@teambit/workspace.modules.match-pattern": "0.0.502",
81
+ "@teambit/command-bar": "1.0.47",
82
+ "@teambit/component-tree": "1.0.47",
83
+ "@teambit/sidebar": "1.0.47",
84
84
  "@teambit/preview.ui.preview-placeholder": "0.0.504"
85
85
  },
86
86
  "devDependencies": {
@@ -98,7 +98,7 @@
98
98
  },
99
99
  "peerDependencies": {
100
100
  "react-router-dom": "^6.0.0",
101
- "@teambit/legacy": "1.0.591",
101
+ "@teambit/legacy": "1.0.594",
102
102
  "react": "^16.8.0 || ^17.0.0",
103
103
  "react-dom": "^16.8.0 || ^17.0.0"
104
104
  },
@@ -23,7 +23,7 @@ export class FetchRoute implements Route {
23
23
  this.logger.error('fatal: onPreFetchObjects encountered an error (this error does not stop the process)', err);
24
24
  });
25
25
 
26
- const readable = await fetch(this.scope.path, req.body.ids, req.body.fetchOptions);
26
+ const readable = await fetch(this.scope.path, req.body.ids, req.body.fetchOptions, req.headers);
27
27
  const pack = ObjectList.fromObjectStreamToTar(readable, this.scope.name);
28
28
  try {
29
29
  await pipeline(pack, res);
@@ -34,7 +34,8 @@ export class FetchRoute implements Route {
34
34
  } else {
35
35
  this.logger.error(
36
36
  `FetchRoute encountered an error during the pipeline streaming, this should never happen.
37
- make sure the error is caught in fromObjectStreamToTar and it streamed using the name "ERROR"`,
37
+ make sure the error is caught in fromObjectStreamToTar and it streamed using the name "ERROR".
38
+ error: ${err.message}`,
38
39
  err
39
40
  );
40
41
  }