@teambit/export 1.0.676 → 1.0.678
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/8891be5ad/teambit.scope_export@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_export@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_export@1.0.678/dist/export.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_export@1.0.678/dist/export.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -11,6 +11,13 @@ function _chalk() {
|
|
|
11
11
|
};
|
|
12
12
|
return data;
|
|
13
13
|
}
|
|
14
|
+
function _exportScopeComponents() {
|
|
15
|
+
const data = require("./export-scope-components");
|
|
16
|
+
_exportScopeComponents = function () {
|
|
17
|
+
return data;
|
|
18
|
+
};
|
|
19
|
+
return data;
|
|
20
|
+
}
|
|
14
21
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
22
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
16
23
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
@@ -31,7 +38,7 @@ alternatively, exporting to any one of the failed scopes, throws server-is-busy
|
|
|
31
38
|
_defineProperty(this, "remoteOp", true);
|
|
32
39
|
}
|
|
33
40
|
async report([exportId, remotes]) {
|
|
34
|
-
const exportedIds = await this.scope.
|
|
41
|
+
const exportedIds = await (0, _exportScopeComponents().resumeExport)(this.scope.legacyScope, exportId, remotes);
|
|
35
42
|
if (!exportedIds.length) return _chalk().default.yellow('no components were left to persist for this export-id');
|
|
36
43
|
return `the following components were persisted successfully:
|
|
37
44
|
${exportedIds.join('\n')}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ResumeExportCmd","constructor","scope","report","exportId","remotes","exportedIds","resumeExport","length","chalk","yellow","join","exports"],"sources":["resume-export-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport type { ScopeMain } from '@teambit/scope';\n\nexport class ResumeExportCmd implements Command {\n name = 'resume-export <export-id> <remotes...>';\n description = 'EXPERIMENTAL. resume failed export';\n extendedDescription = `resume failed export to persist the pending objects on the given remotes.\nthe export-id is the id the client received in the error message during the failure.\nalternatively, exporting to any one of the failed scopes, throws server-is-busy error with the export-id`;\n alias = '';\n options = [] as CommandOptions;\n loader = true;\n group = 'advanced';\n private = true;\n remoteOp = true;\n\n constructor(private scope: ScopeMain) {}\n\n async report([exportId, remotes]: [string, string[]]): Promise<string> {\n const exportedIds = await this.scope.
|
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_exportScopeComponents","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ResumeExportCmd","constructor","scope","report","exportId","remotes","exportedIds","resumeExport","legacyScope","length","chalk","yellow","join","exports"],"sources":["resume-export-cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport type { ScopeMain } from '@teambit/scope';\nimport { resumeExport } from './export-scope-components';\n\nexport class ResumeExportCmd implements Command {\n name = 'resume-export <export-id> <remotes...>';\n description = 'EXPERIMENTAL. resume failed export';\n extendedDescription = `resume failed export to persist the pending objects on the given remotes.\nthe export-id is the id the client received in the error message during the failure.\nalternatively, exporting to any one of the failed scopes, throws server-is-busy error with the export-id`;\n alias = '';\n options = [] as CommandOptions;\n loader = true;\n group = 'advanced';\n private = true;\n remoteOp = true;\n\n constructor(private scope: ScopeMain) {}\n\n async report([exportId, remotes]: [string, string[]]): Promise<string> {\n const exportedIds = await resumeExport(this.scope.legacyScope, exportId, remotes);\n if (!exportedIds.length) return chalk.yellow('no components were left to persist for this export-id');\n return `the following components were persisted successfully:\n${exportedIds.join('\\n')}`;\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAG,uBAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,sBAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAyD,SAAAC,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAZ,CAAA,CAAAI,CAAA,IAAAC,CAAA,EAAAL,CAAA;AAAA,SAAAM,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAL,CAAA,GAAAK,CAAA,CAAAU,MAAA,CAAAC,WAAA,kBAAAhB,CAAA,QAAAa,CAAA,GAAAb,CAAA,CAAAiB,IAAA,CAAAZ,CAAA,EAAAD,CAAA,uCAAAS,CAAA,SAAAA,CAAA,YAAAK,SAAA,yEAAAd,CAAA,GAAAe,MAAA,GAAAC,MAAA,EAAAf,CAAA;AAElD,MAAMgB,eAAe,CAAoB;EAa9CC,WAAWA,CAASC,KAAgB,EAAE;IAAA,KAAlBA,KAAgB,GAAhBA,KAAgB;IAAApB,eAAA,eAZ7B,wCAAwC;IAAAA,eAAA,sBACjC,oCAAoC;IAAAA,eAAA,8BAC5B;AACxB;AACA,yGAAyG;IAAAA,eAAA,gBAC/F,EAAE;IAAAA,eAAA,kBACA,EAAE;IAAAA,eAAA,iBACH,IAAI;IAAAA,eAAA,gBACL,UAAU;IAAAA,eAAA,kBACR,IAAI;IAAAA,eAAA,mBACH,IAAI;EAEwB;EAEvC,MAAMqB,MAAMA,CAAC,CAACC,QAAQ,EAAEC,OAAO,CAAqB,EAAmB;IACrE,MAAMC,WAAW,GAAG,MAAM,IAAAC,qCAAY,EAAC,IAAI,CAACL,KAAK,CAACM,WAAW,EAAEJ,QAAQ,EAAEC,OAAO,CAAC;IACjF,IAAI,CAACC,WAAW,CAACG,MAAM,EAAE,OAAOC,gBAAK,CAACC,MAAM,CAAC,uDAAuD,CAAC;IACrG,OAAO;AACX,EAAEL,WAAW,CAACM,IAAI,CAAC,IAAI,CAAC,EAAE;EACxB;AACF;AAACC,OAAA,CAAAb,eAAA,GAAAA,eAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/export",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.678",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/scope/export",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.scope",
|
|
8
8
|
"name": "export",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.678"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "4.1.2",
|
|
@@ -14,35 +14,35 @@
|
|
|
14
14
|
"open": "7.4.2",
|
|
15
15
|
"p-map-series": "2.1.0",
|
|
16
16
|
"fs-extra": "10.0.0",
|
|
17
|
-
"@teambit/cli": "0.0.
|
|
17
|
+
"@teambit/cli": "0.0.1251",
|
|
18
18
|
"@teambit/legacy.constants": "0.0.14",
|
|
19
19
|
"@teambit/component-id": "1.2.4",
|
|
20
20
|
"@teambit/harmony.modules.concurrency": "0.0.15",
|
|
21
21
|
"@teambit/legacy.loader": "0.0.9",
|
|
22
22
|
"@teambit/legacy.logger": "0.0.24",
|
|
23
|
-
"@teambit/legacy.scope": "0.0.
|
|
24
|
-
"@teambit/scope.remote-actions": "0.0.
|
|
25
|
-
"@teambit/scope.remotes": "0.0.
|
|
23
|
+
"@teambit/legacy.scope": "0.0.61",
|
|
24
|
+
"@teambit/scope.remote-actions": "0.0.61",
|
|
25
|
+
"@teambit/scope.remotes": "0.0.61",
|
|
26
26
|
"@teambit/toolbox.promise.map-pool": "0.0.6",
|
|
27
27
|
"@teambit/harmony": "0.4.7",
|
|
28
28
|
"@teambit/bit-error": "0.0.404",
|
|
29
|
-
"@teambit/component.snap-distance": "0.0.
|
|
29
|
+
"@teambit/component.snap-distance": "0.0.62",
|
|
30
30
|
"@teambit/lane-id": "0.0.312",
|
|
31
31
|
"@teambit/legacy.analytics": "0.0.77",
|
|
32
|
-
"@teambit/legacy.bit-map": "0.0.
|
|
33
|
-
"@teambit/legacy.component-list": "0.0.
|
|
34
|
-
"@teambit/legacy.consumer": "0.0.
|
|
32
|
+
"@teambit/legacy.bit-map": "0.0.118",
|
|
33
|
+
"@teambit/legacy.component-list": "0.0.115",
|
|
34
|
+
"@teambit/legacy.consumer": "0.0.61",
|
|
35
35
|
"@teambit/legacy.utils": "0.0.23",
|
|
36
|
-
"@teambit/logger": "0.0.
|
|
37
|
-
"@teambit/scope.network": "0.0.
|
|
38
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.
|
|
39
|
-
"@teambit/legacy.scope-api": "0.0.
|
|
40
|
-
"@teambit/eject": "1.0.
|
|
41
|
-
"@teambit/objects": "0.0.
|
|
42
|
-
"@teambit/dependency-resolver": "1.0.
|
|
43
|
-
"@teambit/remove": "1.0.
|
|
44
|
-
"@teambit/scope": "1.0.
|
|
45
|
-
"@teambit/workspace": "1.0.
|
|
36
|
+
"@teambit/logger": "0.0.1344",
|
|
37
|
+
"@teambit/scope.network": "0.0.61",
|
|
38
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.289",
|
|
39
|
+
"@teambit/legacy.scope-api": "0.0.116",
|
|
40
|
+
"@teambit/eject": "1.0.678",
|
|
41
|
+
"@teambit/objects": "0.0.185",
|
|
42
|
+
"@teambit/dependency-resolver": "1.0.678",
|
|
43
|
+
"@teambit/remove": "1.0.678",
|
|
44
|
+
"@teambit/scope": "1.0.678",
|
|
45
|
+
"@teambit/workspace": "1.0.678"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/lodash": "4.14.165",
|