@teambit/isolator 0.0.627 → 0.0.632

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.
@@ -0,0 +1 @@
1
+ export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_isolator@0.0.632/dist/isolator.docs.md')]
@@ -27,7 +27,9 @@ class CapsuleList extends Array {
27
27
  }
28
28
 
29
29
  getCapsuleIgnoreVersion(id) {
30
- return this.find(capsule => capsule.component.id._legacy.isEqualWithoutVersion(id._legacy));
30
+ return this.find(capsule => capsule.component.id.isEqual(id, {
31
+ ignoreVersion: true
32
+ }));
31
33
  }
32
34
 
33
35
  getCapsuleIgnoreScopeAndVersion(id) {
@@ -1 +1 @@
1
- {"version":3,"sources":["capsule-list.ts"],"names":["CapsuleList","Array","getCapsule","id","find","capsule","component","isEqual","getCapsuleByLegacyId","_legacy","getCapsuleIgnoreVersion","isEqualWithoutVersion","getCapsuleIgnoreScopeAndVersion","isEqualWithoutScopeAndVersion","getAllCapsuleDirs","map","path","getIdByPathInCapsule","pathInCapsule","normalizedPathInCapsule","found","getAllComponents","c","fromArray","capsules"],"mappings":";;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAIe,MAAMA,WAAN,SAA0BC,KAA1B,CAAyC;AACtDC,EAAAA,UAAU,CAACC,EAAD,EAAuC;AAC/C,WAAO,KAAKC,IAAL,CAAWC,OAAD,IAAaA,OAAO,CAACC,SAAR,CAAkBH,EAAlB,CAAqBI,OAArB,CAA6BJ,EAA7B,CAAvB,CAAP;AACD;;AACDK,EAAAA,oBAAoB,CAACL,EAAD,EAAiC;AACnD,WAAO,KAAKC,IAAL,CAAWC,OAAD,IAAaA,OAAO,CAACC,SAAR,CAAkBH,EAAlB,CAAqBM,OAArB,CAA6BF,OAA7B,CAAqCJ,EAArC,CAAvB,CAAP;AACD;;AACDO,EAAAA,uBAAuB,CAACP,EAAD,EAAuC;AAC5D,WAAO,KAAKC,IAAL,CAAWC,OAAD,IAAaA,OAAO,CAACC,SAAR,CAAkBH,EAAlB,CAAqBM,OAArB,CAA6BE,qBAA7B,CAAmDR,EAAE,CAACM,OAAtD,CAAvB,CAAP;AACD;;AACDG,EAAAA,+BAA+B,CAACT,EAAD,EAAuC;AACpE,WAAO,KAAKC,IAAL,CAAWC,OAAD,IAAaA,OAAO,CAACC,SAAR,CAAkBH,EAAlB,CAAqBM,OAArB,CAA6BI,6BAA7B,CAA2DV,EAAE,CAACM,OAA9D,CAAvB,CAAP;AACD;;AACDK,EAAAA,iBAAiB,GAAa;AAC5B,WAAO,KAAKC,GAAL,CAAUV,OAAD,IAAaA,OAAO,CAACW,IAA9B,CAAP;AACD;;AACDC,EAAAA,oBAAoB,CAACC,aAAD,EAA4C;AAC9D,UAAMC,uBAAuB,GAAG,uBAAUD,aAAV,CAAhC;AACA,UAAME,KAAK,GAAG,KAAKhB,IAAL,CAAWC,OAAD,IAAac,uBAAuB,KAAK,uBAAUd,OAAO,CAACW,IAAlB,CAAnD,CAAd;AACA,WAAOI,KAAK,GAAGA,KAAK,CAACd,SAAN,CAAgBH,EAAnB,GAAwB,IAApC;AACD;;AACDkB,EAAAA,gBAAgB,GAAgB;AAC9B,WAAO,KAAKN,GAAL,CAAUO,CAAD,IAAOA,CAAC,CAAChB,SAAlB,CAAP;AACD;;AACe,SAATiB,SAAS,CAACC,QAAD,EAAsB;AACpC,WAAO,IAAIxB,WAAJ,CAAgB,GAAGwB,QAAnB,CAAP;AACD;;AA1BqD","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._legacy.isEqualWithoutVersion(id._legacy));\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"]}
1
+ {"version":3,"sources":["capsule-list.ts"],"names":["CapsuleList","Array","getCapsule","id","find","capsule","component","isEqual","getCapsuleByLegacyId","_legacy","getCapsuleIgnoreVersion","ignoreVersion","getCapsuleIgnoreScopeAndVersion","isEqualWithoutScopeAndVersion","getAllCapsuleDirs","map","path","getIdByPathInCapsule","pathInCapsule","normalizedPathInCapsule","found","getAllComponents","c","fromArray","capsules"],"mappings":";;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAIe,MAAMA,WAAN,SAA0BC,KAA1B,CAAyC;AACtDC,EAAAA,UAAU,CAACC,EAAD,EAAuC;AAC/C,WAAO,KAAKC,IAAL,CAAWC,OAAD,IAAaA,OAAO,CAACC,SAAR,CAAkBH,EAAlB,CAAqBI,OAArB,CAA6BJ,EAA7B,CAAvB,CAAP;AACD;;AACDK,EAAAA,oBAAoB,CAACL,EAAD,EAAiC;AACnD,WAAO,KAAKC,IAAL,CAAWC,OAAD,IAAaA,OAAO,CAACC,SAAR,CAAkBH,EAAlB,CAAqBM,OAArB,CAA6BF,OAA7B,CAAqCJ,EAArC,CAAvB,CAAP;AACD;;AACDO,EAAAA,uBAAuB,CAACP,EAAD,EAAuC;AAC5D,WAAO,KAAKC,IAAL,CAAWC,OAAD,IAAaA,OAAO,CAACC,SAAR,CAAkBH,EAAlB,CAAqBI,OAArB,CAA6BJ,EAA7B,EAAiC;AAAEQ,MAAAA,aAAa,EAAE;AAAjB,KAAjC,CAAvB,CAAP;AACD;;AACDC,EAAAA,+BAA+B,CAACT,EAAD,EAAuC;AACpE,WAAO,KAAKC,IAAL,CAAWC,OAAD,IAAaA,OAAO,CAACC,SAAR,CAAkBH,EAAlB,CAAqBM,OAArB,CAA6BI,6BAA7B,CAA2DV,EAAE,CAACM,OAA9D,CAAvB,CAAP;AACD;;AACDK,EAAAA,iBAAiB,GAAa;AAC5B,WAAO,KAAKC,GAAL,CAAUV,OAAD,IAAaA,OAAO,CAACW,IAA9B,CAAP;AACD;;AACDC,EAAAA,oBAAoB,CAACC,aAAD,EAA4C;AAC9D,UAAMC,uBAAuB,GAAG,uBAAUD,aAAV,CAAhC;AACA,UAAME,KAAK,GAAG,KAAKhB,IAAL,CAAWC,OAAD,IAAac,uBAAuB,KAAK,uBAAUd,OAAO,CAACW,IAAlB,CAAnD,CAAd;AACA,WAAOI,KAAK,GAAGA,KAAK,CAACd,SAAN,CAAgBH,EAAnB,GAAwB,IAApC;AACD;;AACDkB,EAAAA,gBAAgB,GAAgB;AAC9B,WAAO,KAAKN,GAAL,CAAUO,CAAD,IAAOA,CAAC,CAAChB,SAAlB,CAAP;AACD;;AACe,SAATiB,SAAS,CAACC,QAAD,EAAsB;AACpC,WAAO,IAAIxB,WAAJ,CAAgB,GAAGwB,QAAnB,CAAP;AACD;;AA1BqD","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"]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/isolator",
3
- "version": "0.0.627",
3
+ "version": "0.0.632",
4
4
  "homepage": "https://bit.dev/teambit/component/isolator",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "isolator",
9
- "version": "0.0.627"
9
+ "version": "0.0.632"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.2.11",
@@ -23,14 +23,14 @@
23
23
  "execa": "2.1.0",
24
24
  "@babel/runtime": "7.12.18",
25
25
  "core-js": "^3.0.0",
26
- "@teambit/component": "0.0.627",
26
+ "@teambit/component": "0.0.632",
27
27
  "@teambit/legacy-bit-id": "0.0.397",
28
- "@teambit/cli": "0.0.431",
28
+ "@teambit/cli": "0.0.434",
29
29
  "@teambit/component-package-version": "0.0.396",
30
- "@teambit/dependency-resolver": "0.0.627",
31
- "@teambit/global-config": "0.0.432",
32
- "@teambit/graph": "0.0.627",
33
- "@teambit/logger": "0.0.520"
30
+ "@teambit/dependency-resolver": "0.0.632",
31
+ "@teambit/global-config": "0.0.436",
32
+ "@teambit/graph": "0.0.632",
33
+ "@teambit/logger": "0.0.524"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/fs-extra": "9.0.7",
@@ -45,7 +45,7 @@
45
45
  "@types/node": "12.20.4"
46
46
  },
47
47
  "peerDependencies": {
48
- "@teambit/legacy": "1.0.208",
48
+ "@teambit/legacy": "1.0.210",
49
49
  "react-dom": "^16.8.0 || ^17.0.0",
50
50
  "react": "^16.8.0 || ^17.0.0"
51
51
  },
@@ -73,7 +73,7 @@
73
73
  "react": "-"
74
74
  },
75
75
  "peerDependencies": {
76
- "@teambit/legacy": "1.0.208",
76
+ "@teambit/legacy": "1.0.210",
77
77
  "react-dom": "^16.8.0 || ^17.0.0",
78
78
  "react": "^16.8.0 || ^17.0.0"
79
79
  }