@teambit/isolator 0.0.880 → 0.0.882
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/dist/capsule/capsule.js +6 -57
- package/dist/capsule/capsule.js.map +1 -1
- package/dist/capsule/container-exec.js +0 -18
- package/dist/capsule/container-exec.js.map +1 -1
- package/dist/capsule/container.js +17 -58
- package/dist/capsule/container.js.map +1 -1
- package/dist/capsule/index.js +0 -10
- package/dist/capsule/index.js.map +1 -1
- package/dist/capsule-list.js +0 -14
- package/dist/capsule-list.js.map +1 -1
- package/dist/index.js +0 -16
- package/dist/index.js.map +1 -1
- package/dist/isolator.aspect.js +0 -5
- package/dist/isolator.aspect.js.map +1 -1
- package/dist/isolator.composition.js +0 -6
- package/dist/isolator.composition.js.map +1 -1
- package/dist/isolator.main.runtime.js +29 -197
- package/dist/isolator.main.runtime.js.map +1 -1
- package/dist/network.js +5 -27
- package/dist/network.js.map +1 -1
- package/dist/symlink-bit-legacy-to-capsules.js +9 -31
- package/dist/symlink-bit-legacy-to-capsules.js.map +1 -1
- package/dist/symlink-dependencies-to-capsules.js +4 -30
- package/dist/symlink-dependencies-to-capsules.js.map +1 -1
- package/package-tar/teambit-isolator-0.0.882.tgz +0 -0
- package/package.json +10 -10
- package/{preview-1666312873430.js → preview-1666496165706.js} +2 -2
- package/package-tar/teambit-isolator-0.0.880.tgz +0 -0
package/dist/capsule/index.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
@@ -23,34 +22,25 @@ Object.defineProperty(exports, "FsContainer", {
|
|
23
22
|
return _container().default;
|
24
23
|
}
|
25
24
|
});
|
26
|
-
|
27
25
|
function _capsule() {
|
28
26
|
const data = _interopRequireDefault(require("./capsule"));
|
29
|
-
|
30
27
|
_capsule = function () {
|
31
28
|
return data;
|
32
29
|
};
|
33
|
-
|
34
30
|
return data;
|
35
31
|
}
|
36
|
-
|
37
32
|
function _container() {
|
38
33
|
const data = _interopRequireDefault(require("./container"));
|
39
|
-
|
40
34
|
_container = function () {
|
41
35
|
return data;
|
42
36
|
};
|
43
|
-
|
44
37
|
return data;
|
45
38
|
}
|
46
|
-
|
47
39
|
function _containerExec() {
|
48
40
|
const data = _interopRequireDefault(require("./container-exec"));
|
49
|
-
|
50
41
|
_containerExec = function () {
|
51
42
|
return data;
|
52
43
|
};
|
53
|
-
|
54
44
|
return data;
|
55
45
|
}
|
56
46
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default as Capsule } from './capsule';\nexport { default as FsContainer } from './container';\nexport { default as ContainerExec } from './container-exec';\n"],"mappings":"
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default as Capsule } from './capsule';\nexport { default as FsContainer } from './container';\nexport { default as ContainerExec } from './container-exec';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
|
package/dist/capsule-list.js
CHANGED
@@ -1,61 +1,47 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
require("core-js/modules/es.array.iterator.js");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports.default = void 0;
|
9
|
-
|
10
8
|
function _path() {
|
11
9
|
const data = require("path");
|
12
|
-
|
13
10
|
_path = function () {
|
14
11
|
return data;
|
15
12
|
};
|
16
|
-
|
17
13
|
return data;
|
18
14
|
}
|
19
|
-
|
20
15
|
class CapsuleList extends Array {
|
21
16
|
getCapsule(id) {
|
22
17
|
return this.find(capsule => capsule.component.id.isEqual(id));
|
23
18
|
}
|
24
|
-
|
25
19
|
getCapsuleByLegacyId(id) {
|
26
20
|
return this.find(capsule => capsule.component.id._legacy.isEqual(id));
|
27
21
|
}
|
28
|
-
|
29
22
|
getCapsuleIgnoreVersion(id) {
|
30
23
|
return this.find(capsule => capsule.component.id.isEqual(id, {
|
31
24
|
ignoreVersion: true
|
32
25
|
}));
|
33
26
|
}
|
34
|
-
|
35
27
|
getCapsuleIgnoreScopeAndVersion(id) {
|
36
28
|
return this.find(capsule => capsule.component.id._legacy.isEqualWithoutScopeAndVersion(id._legacy));
|
37
29
|
}
|
38
|
-
|
39
30
|
getAllCapsuleDirs() {
|
40
31
|
return this.map(capsule => capsule.path);
|
41
32
|
}
|
42
|
-
|
43
33
|
getIdByPathInCapsule(pathInCapsule) {
|
44
34
|
const normalizedPathInCapsule = (0, _path().normalize)(pathInCapsule);
|
45
35
|
const found = this.find(capsule => normalizedPathInCapsule === (0, _path().normalize)(capsule.path));
|
46
36
|
return found ? found.component.id : null;
|
47
37
|
}
|
48
|
-
|
49
38
|
getAllComponents() {
|
50
39
|
return this.map(c => c.component);
|
51
40
|
}
|
52
|
-
|
53
41
|
static fromArray(capsules) {
|
54
42
|
return new CapsuleList(...capsules);
|
55
43
|
}
|
56
|
-
|
57
44
|
}
|
58
|
-
|
59
45
|
exports.default = CapsuleList;
|
60
46
|
|
61
47
|
//# sourceMappingURL=capsule-list.js.map
|
package/dist/capsule-list.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["CapsuleList","Array","getCapsule","id","find","capsule","component","isEqual","getCapsuleByLegacyId","_legacy","getCapsuleIgnoreVersion","ignoreVersion","getCapsuleIgnoreScopeAndVersion","isEqualWithoutScopeAndVersion","getAllCapsuleDirs","map","path","getIdByPathInCapsule","pathInCapsule","normalizedPathInCapsule","normalize","found","getAllComponents","c","fromArray","capsules"],"sources":["capsule-list.ts"],"sourcesContent":["import type { Component, ComponentID } from '@teambit/component';\nimport { normalize } from 'path';\nimport { BitId } from '@teambit/legacy-bit-id';\nimport { Capsule } from './capsule';\n\nexport default class CapsuleList extends Array<Capsule> {\n getCapsule(id: ComponentID): Capsule | undefined {\n return this.find((capsule) => capsule.component.id.isEqual(id));\n }\n getCapsuleByLegacyId(id: BitId): Capsule | undefined {\n return this.find((capsule) => capsule.component.id._legacy.isEqual(id));\n }\n getCapsuleIgnoreVersion(id: ComponentID): Capsule | undefined {\n return this.find((capsule) => capsule.component.id.isEqual(id, { ignoreVersion: true }));\n }\n getCapsuleIgnoreScopeAndVersion(id: ComponentID): Capsule | undefined {\n return this.find((capsule) => capsule.component.id._legacy.isEqualWithoutScopeAndVersion(id._legacy));\n }\n getAllCapsuleDirs(): string[] {\n return this.map((capsule) => capsule.path);\n }\n getIdByPathInCapsule(pathInCapsule: string): ComponentID | null {\n const normalizedPathInCapsule = normalize(pathInCapsule);\n const found = this.find((capsule) => normalizedPathInCapsule === normalize(capsule.path));\n return found ? found.component.id : null;\n }\n getAllComponents(): Component[] {\n return this.map((c) => c.component);\n }\n static fromArray(capsules: Capsule[]) {\n return new CapsuleList(...capsules);\n }\n}\n"],"mappings":"
|
1
|
+
{"version":3,"names":["CapsuleList","Array","getCapsule","id","find","capsule","component","isEqual","getCapsuleByLegacyId","_legacy","getCapsuleIgnoreVersion","ignoreVersion","getCapsuleIgnoreScopeAndVersion","isEqualWithoutScopeAndVersion","getAllCapsuleDirs","map","path","getIdByPathInCapsule","pathInCapsule","normalizedPathInCapsule","normalize","found","getAllComponents","c","fromArray","capsules"],"sources":["capsule-list.ts"],"sourcesContent":["import type { Component, ComponentID } from '@teambit/component';\nimport { normalize } from 'path';\nimport { BitId } from '@teambit/legacy-bit-id';\nimport { Capsule } from './capsule';\n\nexport default class CapsuleList extends Array<Capsule> {\n getCapsule(id: ComponentID): Capsule | undefined {\n return this.find((capsule) => capsule.component.id.isEqual(id));\n }\n getCapsuleByLegacyId(id: BitId): Capsule | undefined {\n return this.find((capsule) => capsule.component.id._legacy.isEqual(id));\n }\n getCapsuleIgnoreVersion(id: ComponentID): Capsule | undefined {\n return this.find((capsule) => capsule.component.id.isEqual(id, { ignoreVersion: true }));\n }\n getCapsuleIgnoreScopeAndVersion(id: ComponentID): Capsule | undefined {\n return this.find((capsule) => capsule.component.id._legacy.isEqualWithoutScopeAndVersion(id._legacy));\n }\n getAllCapsuleDirs(): string[] {\n return this.map((capsule) => capsule.path);\n }\n getIdByPathInCapsule(pathInCapsule: string): ComponentID | null {\n const normalizedPathInCapsule = normalize(pathInCapsule);\n const found = this.find((capsule) => normalizedPathInCapsule === normalize(capsule.path));\n return found ? found.component.id : null;\n }\n getAllComponents(): Component[] {\n return this.map((c) => c.component);\n }\n static fromArray(capsules: Capsule[]) {\n return new CapsuleList(...capsules);\n }\n}\n"],"mappings":";;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAIe,MAAMA,WAAW,SAASC,KAAK,CAAU;EACtDC,UAAU,CAACC,EAAe,EAAuB;IAC/C,OAAO,IAAI,CAACC,IAAI,CAAEC,OAAO,IAAKA,OAAO,CAACC,SAAS,CAACH,EAAE,CAACI,OAAO,CAACJ,EAAE,CAAC,CAAC;EACjE;EACAK,oBAAoB,CAACL,EAAS,EAAuB;IACnD,OAAO,IAAI,CAACC,IAAI,CAAEC,OAAO,IAAKA,OAAO,CAACC,SAAS,CAACH,EAAE,CAACM,OAAO,CAACF,OAAO,CAACJ,EAAE,CAAC,CAAC;EACzE;EACAO,uBAAuB,CAACP,EAAe,EAAuB;IAC5D,OAAO,IAAI,CAACC,IAAI,CAAEC,OAAO,IAAKA,OAAO,CAACC,SAAS,CAACH,EAAE,CAACI,OAAO,CAACJ,EAAE,EAAE;MAAEQ,aAAa,EAAE;IAAK,CAAC,CAAC,CAAC;EAC1F;EACAC,+BAA+B,CAACT,EAAe,EAAuB;IACpE,OAAO,IAAI,CAACC,IAAI,CAAEC,OAAO,IAAKA,OAAO,CAACC,SAAS,CAACH,EAAE,CAACM,OAAO,CAACI,6BAA6B,CAACV,EAAE,CAACM,OAAO,CAAC,CAAC;EACvG;EACAK,iBAAiB,GAAa;IAC5B,OAAO,IAAI,CAACC,GAAG,CAAEV,OAAO,IAAKA,OAAO,CAACW,IAAI,CAAC;EAC5C;EACAC,oBAAoB,CAACC,aAAqB,EAAsB;IAC9D,MAAMC,uBAAuB,GAAG,IAAAC,iBAAS,EAACF,aAAa,CAAC;IACxD,MAAMG,KAAK,GAAG,IAAI,CAACjB,IAAI,CAAEC,OAAO,IAAKc,uBAAuB,KAAK,IAAAC,iBAAS,EAACf,OAAO,CAACW,IAAI,CAAC,CAAC;IACzF,OAAOK,KAAK,GAAGA,KAAK,CAACf,SAAS,CAACH,EAAE,GAAG,IAAI;EAC1C;EACAmB,gBAAgB,GAAgB;IAC9B,OAAO,IAAI,CAACP,GAAG,CAAEQ,CAAC,IAAKA,CAAC,CAACjB,SAAS,CAAC;EACrC;EACA,OAAOkB,SAAS,CAACC,QAAmB,EAAE;IACpC,OAAO,IAAIzB,WAAW,CAAC,GAAGyB,QAAQ,CAAC;EACrC;AACF;AAAC"}
|
package/dist/index.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
@@ -47,54 +46,39 @@ Object.defineProperty(exports, "Network", {
|
|
47
46
|
return _network().Network;
|
48
47
|
}
|
49
48
|
});
|
50
|
-
|
51
49
|
function _isolatorMain() {
|
52
50
|
const data = require("./isolator.main.runtime");
|
53
|
-
|
54
51
|
_isolatorMain = function () {
|
55
52
|
return data;
|
56
53
|
};
|
57
|
-
|
58
54
|
return data;
|
59
55
|
}
|
60
|
-
|
61
56
|
function _network() {
|
62
57
|
const data = require("./network");
|
63
|
-
|
64
58
|
_network = function () {
|
65
59
|
return data;
|
66
60
|
};
|
67
|
-
|
68
61
|
return data;
|
69
62
|
}
|
70
|
-
|
71
63
|
function _capsule() {
|
72
64
|
const data = require("./capsule");
|
73
|
-
|
74
65
|
_capsule = function () {
|
75
66
|
return data;
|
76
67
|
};
|
77
|
-
|
78
68
|
return data;
|
79
69
|
}
|
80
|
-
|
81
70
|
function _isolator() {
|
82
71
|
const data = require("./isolator.aspect");
|
83
|
-
|
84
72
|
_isolator = function () {
|
85
73
|
return data;
|
86
74
|
};
|
87
|
-
|
88
75
|
return data;
|
89
76
|
}
|
90
|
-
|
91
77
|
function _capsuleList() {
|
92
78
|
const data = _interopRequireDefault(require("./capsule-list"));
|
93
|
-
|
94
79
|
_capsuleList = function () {
|
95
80
|
return data;
|
96
81
|
};
|
97
|
-
|
98
82
|
return data;
|
99
83
|
}
|
100
84
|
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { IsolateComponentsOptions } from './isolator.main.runtime';\nexport { Network } from './network';\nexport { FsContainer, Capsule, ContainerExec } from './capsule';\nexport type { IsolatorMain } from './isolator.main.runtime';\nexport { IsolatorAspect } from './isolator.aspect';\nexport { default as CapsuleList } from './capsule-list';\n"],"mappings":"
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { IsolateComponentsOptions } from './isolator.main.runtime';\nexport { Network } from './network';\nexport { FsContainer, Capsule, ContainerExec } from './capsule';\nexport type { IsolatorMain } from './isolator.main.runtime';\nexport { IsolatorAspect } from './isolator.aspect';\nexport { default as CapsuleList } from './capsule-list';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
|
package/dist/isolator.aspect.js
CHANGED
@@ -4,23 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.IsolatorAspect = void 0;
|
7
|
-
|
8
7
|
function _harmony() {
|
9
8
|
const data = require("@teambit/harmony");
|
10
|
-
|
11
9
|
_harmony = function () {
|
12
10
|
return data;
|
13
11
|
};
|
14
|
-
|
15
12
|
return data;
|
16
13
|
}
|
17
|
-
|
18
14
|
const IsolatorAspect = _harmony().Aspect.create({
|
19
15
|
id: 'teambit.component/isolator',
|
20
16
|
dependencies: [],
|
21
17
|
defaultConfig: {}
|
22
18
|
});
|
23
|
-
|
24
19
|
exports.IsolatorAspect = IsolatorAspect;
|
25
20
|
|
26
21
|
//# sourceMappingURL=isolator.aspect.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["IsolatorAspect","Aspect","create","id","dependencies","defaultConfig"],"sources":["isolator.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const IsolatorAspect = Aspect.create({\n id: 'teambit.component/isolator',\n dependencies: [],\n defaultConfig: {},\n});\n"],"mappings":"
|
1
|
+
{"version":3,"names":["IsolatorAspect","Aspect","create","id","dependencies","defaultConfig"],"sources":["isolator.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const IsolatorAspect = Aspect.create({\n id: 'teambit.component/isolator',\n dependencies: [],\n defaultConfig: {},\n});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,cAAc,GAAGC,iBAAM,CAACC,MAAM,CAAC;EAC1CC,EAAE,EAAE,4BAA4B;EAChCC,YAAY,EAAE,EAAE;EAChBC,aAAa,EAAE,CAAC;AAClB,CAAC,CAAC;AAAC"}
|
@@ -1,22 +1,17 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports.Logo = void 0;
|
9
|
-
|
10
8
|
function _react() {
|
11
9
|
const data = _interopRequireDefault(require("react"));
|
12
|
-
|
13
10
|
_react = function () {
|
14
11
|
return data;
|
15
12
|
};
|
16
|
-
|
17
13
|
return data;
|
18
14
|
}
|
19
|
-
|
20
15
|
const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
|
21
16
|
style: {
|
22
17
|
height: '100%',
|
@@ -29,7 +24,6 @@ const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
|
|
29
24
|
},
|
30
25
|
src: "https://static.bit.dev/extensions-icons/isolator.svg"
|
31
26
|
}));
|
32
|
-
|
33
27
|
exports.Logo = Logo;
|
34
28
|
|
35
29
|
//# sourceMappingURL=isolator.composition.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Logo","height","display","justifyContent","width"],"sources":["isolator.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/isolator.svg\" />\n </div>\n);\n"],"mappings":"
|
1
|
+
{"version":3,"names":["Logo","height","display","justifyContent","width"],"sources":["isolator.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/isolator.svg\" />\n </div>\n);\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,IAAI,GAAG,mBAClB;EAAK,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxE;EAAK,KAAK,EAAE;IAAEC,KAAK,EAAE;EAAG,CAAE;EAAC,GAAG,EAAC;AAAsD,EAAG,CAE3F;AAAC"}
|