@teambit/install 0.0.0-e3a5025920c744147423cd3d625af3429078347f → 0.0.0-e4dbe9b370146c7dbff002d79fd92c39ada8d98a
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/esm.d.mts
ADDED
@@ -58,7 +58,6 @@ describe('makeOutdatedPkgChoices', () => {
|
|
58
58
|
}]);
|
59
59
|
// Removing the ansi chars for better work on bit build on ci
|
60
60
|
const stripped = stripAnsiFromChoices(choices);
|
61
|
-
// @ts-ignore
|
62
61
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
63
62
|
(0, _chai().expect)(stripped).to.deep.equal(orderedChoices);
|
64
63
|
});
|
@@ -80,7 +79,6 @@ describe('makeOutdatedPkgChoices', () => {
|
|
80
79
|
}]);
|
81
80
|
// Removing the ansi chars for better work on bit build on ci
|
82
81
|
const stripped = stripAnsiFromChoices(choices);
|
83
|
-
// @ts-ignore
|
84
82
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
85
83
|
(0, _chai().expect)(stripped).to.deep.equal(contextOrders);
|
86
84
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_chai","data","require","_stripAnsi","_interopRequireDefault","_component","_pickOutdatedPkgs","e","__esModule","default","describe","it","choices","makeOutdatedPkgChoices","name","currentRange","latestRange","source","targetField","stripped","stripAnsiFromChoices","expect","to","deep","equal","orderedChoices","componentId","ComponentID","fromString","variantPattern","contextOrders","forEach","choice","message","stripAnsi","currChoice","value"],"sources":["pick-outdated-pkgs.spec.ts"],"sourcesContent":["import { expect } from 'chai';\nimport stripAnsi from 'strip-ansi';\nimport { ComponentID } from '@teambit/component';\nimport { makeOutdatedPkgChoices } from './pick-outdated-pkgs';\n\ndescribe('makeOutdatedPkgChoices', () => {\n it('should render choices in correct order', () => {\n const choices = makeOutdatedPkgChoices([\n {\n name: 'zoo',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'rootPolicy',\n targetField: 'devDependencies',\n },\n {\n name: 'qar',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'rootPolicy',\n targetField: 'dependencies',\n },\n {\n name: 'foo',\n currentRange: '1.0.0',\n latestRange: '2.0.0',\n source: 'rootPolicy',\n targetField: 'dependencies',\n },\n {\n name: 'bar',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'rootPolicy',\n targetField: 'peerDependencies',\n },\n ]);\n // Removing the ansi chars for better work on bit build on ci\n const stripped = stripAnsiFromChoices(choices);\n //
|
1
|
+
{"version":3,"names":["_chai","data","require","_stripAnsi","_interopRequireDefault","_component","_pickOutdatedPkgs","e","__esModule","default","describe","it","choices","makeOutdatedPkgChoices","name","currentRange","latestRange","source","targetField","stripped","stripAnsiFromChoices","expect","to","deep","equal","orderedChoices","componentId","ComponentID","fromString","variantPattern","contextOrders","forEach","choice","message","stripAnsi","currChoice","value"],"sources":["pick-outdated-pkgs.spec.ts"],"sourcesContent":["import { expect } from 'chai';\nimport stripAnsi from 'strip-ansi';\nimport { ComponentID } from '@teambit/component';\nimport { makeOutdatedPkgChoices } from './pick-outdated-pkgs';\n\ndescribe('makeOutdatedPkgChoices', () => {\n it('should render choices in correct order', () => {\n const choices = makeOutdatedPkgChoices([\n {\n name: 'zoo',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'rootPolicy',\n targetField: 'devDependencies',\n },\n {\n name: 'qar',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'rootPolicy',\n targetField: 'dependencies',\n },\n {\n name: 'foo',\n currentRange: '1.0.0',\n latestRange: '2.0.0',\n source: 'rootPolicy',\n targetField: 'dependencies',\n },\n {\n name: 'bar',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'rootPolicy',\n targetField: 'peerDependencies',\n },\n ]);\n // Removing the ansi chars for better work on bit build on ci\n const stripped = stripAnsiFromChoices(choices);\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n expect(stripped).to.deep.equal(orderedChoices);\n });\n it('should render choices with context information', () => {\n const choices = makeOutdatedPkgChoices([\n {\n name: 'foo',\n currentRange: '1.0.0',\n latestRange: '2.0.0',\n source: 'component',\n componentId: ComponentID.fromString('scope/comp1'),\n targetField: 'dependencies',\n },\n {\n name: 'bar',\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n source: 'variants',\n variantPattern: '{comp2}',\n targetField: 'peerDependencies',\n },\n ]);\n // Removing the ansi chars for better work on bit build on ci\n const stripped = stripAnsiFromChoices(choices);\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n expect(stripped).to.deep.equal(contextOrders);\n });\n});\n\nfunction stripAnsiFromChoices(choices) {\n choices.forEach((choice) => {\n choice.message = stripAnsi(choice.message);\n choice.choices.forEach((currChoice) => {\n currChoice.message = stripAnsi(currChoice.message);\n });\n });\n return choices;\n}\n\nconst orderedChoices = [\n {\n choices: [\n {\n message: 'foo (runtime) 1.0.0 ❯ 2.0.0 ',\n name: 'foo',\n value: {\n currentRange: '1.0.0',\n latestRange: '2.0.0',\n name: 'foo',\n source: 'rootPolicy',\n targetField: 'dependencies',\n },\n },\n {\n message: 'qar (runtime) 1.0.0 ❯ 1.1.0 ',\n name: 'qar',\n value: {\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n name: 'qar',\n source: 'rootPolicy',\n targetField: 'dependencies',\n },\n },\n {\n message: 'zoo (dev) 1.0.0 ❯ 1.1.0 ',\n name: 'zoo',\n value: {\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n name: 'zoo',\n source: 'rootPolicy',\n targetField: 'devDependencies',\n },\n },\n {\n message: 'bar (peer) 1.0.0 ❯ 1.1.0 ',\n name: 'bar',\n value: {\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n name: 'bar',\n source: 'rootPolicy',\n targetField: 'peerDependencies',\n },\n },\n ],\n message: 'Root policies',\n },\n];\n\nconst contextOrders = [\n {\n choices: [\n {\n message: 'foo (runtime) 1.0.0 ❯ 2.0.0 ',\n name: 'foo',\n value: {\n componentId: ComponentID.fromString('scope/comp1'),\n currentRange: '1.0.0',\n latestRange: '2.0.0',\n name: 'foo',\n source: 'component',\n targetField: 'dependencies',\n },\n },\n ],\n message: 'scope/comp1 (component)',\n },\n {\n choices: [\n {\n message: 'bar (peer) 1.0.0 ❯ 1.1.0 ',\n name: 'bar',\n value: {\n currentRange: '1.0.0',\n latestRange: '1.1.0',\n name: 'bar',\n source: 'variants',\n targetField: 'peerDependencies',\n variantPattern: '{comp2}',\n },\n },\n ],\n message: '{comp2} (variant)',\n },\n];\n"],"mappings":";;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,WAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,UAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,kBAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,iBAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8D,SAAAG,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE9DG,QAAQ,CAAC,wBAAwB,EAAE,MAAM;EACvCC,EAAE,CAAC,wCAAwC,EAAE,MAAM;IACjD,MAAMC,OAAO,GAAG,IAAAC,0CAAsB,EAAC,CACrC;MACEC,IAAI,EAAE,KAAK;MACXC,YAAY,EAAE,OAAO;MACrBC,WAAW,EAAE,OAAO;MACpBC,MAAM,EAAE,YAAY;MACp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AAM,EAAE,YAAY;MACpBC,WAAW,EAAE;IACf;EACF,CAAC,CACF;EACDe,OAAO,EAAE;AACX,CAAC,CACF;AAED,MAAMH,aAAa,GAAG,CACpB;EACElB,OAAO,EAAE,CACP;IACEqB,OAAO,EAAE,gCAAgC;IACzCnB,IAAI,EAAE,KAAK;IACXsB,KAAK,EAAE;MACLV,WAAW,EAAEC,wBAAW,CAACC,UAAU,CAAC,aAAa,CAAC;MAClDb,YAAY,EAAE,OAAO;MACrBC,WAAW,EAAE,OAAO;MACpBF,IAAI,EAAE,KAAK;MACXG,MAAM,EAAE,WAAW;MACnBC,WAAW,EAAE;IACf;EACF,CAAC,CACF;EACDe,OAAO,EAAE;AACX,CAAC,EACD;EACErB,OAAO,EAAE,CACP;IACEqB,OAAO,EAAE,gCAAgC;IACzCnB,IAAI,EAAE,KAAK;IACXsB,KAAK,EAAE;MACLrB,YAAY,EAAE,OAAO;MACrBC,WAAW,EAAE,OAAO;MACpBF,IAAI,EAAE,KAAK;MACXG,MAAM,EAAE,UAAU;MAClBC,WAAW,EAAE,kBAAkB;MAC/BW,cAAc,EAAE;IAClB;EACF,CAAC,CACF;EACDI,OAAO,EAAE;AACX,CAAC,CACF","ignoreList":[]}
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/install",
|
3
|
-
"version": "0.0.0-
|
3
|
+
"version": "0.0.0-e4dbe9b370146c7dbff002d79fd92c39ada8d98a",
|
4
4
|
"homepage": "https://bit.cloud/teambit/workspace/install",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.workspace",
|
8
8
|
"name": "install",
|
9
|
-
"version": "
|
9
|
+
"version": "e4dbe9b370146c7dbff002d79fd92c39ada8d98a"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "4.1.2",
|
@@ -23,32 +23,32 @@
|
|
23
23
|
"enquirer": "2.4.1",
|
24
24
|
"table": "6.7.3",
|
25
25
|
"@teambit/harmony": "0.4.7",
|
26
|
-
"@teambit/cli": "0.0.
|
27
|
-
"@teambit/logger": "0.0.
|
26
|
+
"@teambit/cli": "0.0.0-db56479e59017a6bfec5bef7047caf6c34e5c5b0",
|
27
|
+
"@teambit/logger": "0.0.0-896333bd6cd6adbc3e1f41dc257abe18d32b854a",
|
28
28
|
"@teambit/component-issues": "0.0.161",
|
29
29
|
"@teambit/component-package-version": "0.0.440",
|
30
|
-
"@teambit/component.sources": "0.0.
|
30
|
+
"@teambit/component.sources": "0.0.0-efa014456ccb1731af8e3235405e0163f6ace58e",
|
31
31
|
"@teambit/dependencies.fs.linked-dependencies": "0.0.34",
|
32
|
-
"@teambit/pkg.modules.component-package-name": "0.0.
|
33
|
-
"@teambit/variants": "0.0.
|
34
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.
|
32
|
+
"@teambit/pkg.modules.component-package-name": "0.0.0-95c0177b1bd653bdff3900e2f44a92b65aaa14bd",
|
33
|
+
"@teambit/variants": "0.0.0-b5bb6ce3f23a7b38d0ea5074fb54d25fa7ca8103",
|
34
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.0-1f5836ac478984878a9653f9e712791062aebf58",
|
35
35
|
"@teambit/workspace.root-components": "1.0.0",
|
36
36
|
"@teambit/bit-error": "0.0.404",
|
37
37
|
"@teambit/toolbox.time.time-format": "0.0.500",
|
38
|
-
"@teambit/dependency-resolver": "0.0.0-
|
39
|
-
"@teambit/workspace": "0.0.0-
|
40
|
-
"@teambit/application": "0.0.0-
|
41
|
-
"@teambit/aspect-loader": "0.0.0-
|
42
|
-
"@teambit/bundler": "0.0.0-
|
43
|
-
"@teambit/compiler": "0.0.0-
|
44
|
-
"@teambit/component": "0.0.0-
|
45
|
-
"@teambit/envs": "0.0.0-
|
46
|
-
"@teambit/generator": "0.0.0-
|
47
|
-
"@teambit/ipc-events": "0.0.0-
|
48
|
-
"@teambit/issues": "0.0.0-
|
49
|
-
"@teambit/objects": "0.0.0-
|
50
|
-
"@teambit/ui": "0.0.0-
|
51
|
-
"@teambit/workspace-config-files": "0.0.0-
|
38
|
+
"@teambit/dependency-resolver": "0.0.0-06901d7b5d2841814147d67bda59f49f04f99c21",
|
39
|
+
"@teambit/workspace": "0.0.0-99b4d9f4eb723d1f2158339171063a07570eb12d",
|
40
|
+
"@teambit/application": "0.0.0-836f010b7f1eb86168aecac480d15833c7ff067f",
|
41
|
+
"@teambit/aspect-loader": "0.0.0-59cf246ba17a19dabe1932cfbf76a330c2506609",
|
42
|
+
"@teambit/bundler": "0.0.0-8a6d6dade06b42eac669ccc2ca84bb85ffe4a3bc",
|
43
|
+
"@teambit/compiler": "0.0.0-10335766f488ef2b2dfa683c2daad0360317622a",
|
44
|
+
"@teambit/component": "0.0.0-10e8b914d01c3208197abf8ff37ae510bf60ef70",
|
45
|
+
"@teambit/envs": "0.0.0-7fa4b2bb04d85c3220bd7448a23fa151ad8e0898",
|
46
|
+
"@teambit/generator": "0.0.0-650baa1779097339c808e3db9b07a2c54c135cbf",
|
47
|
+
"@teambit/ipc-events": "0.0.0-0b1dcdb974e97a760d5b5ea3485d47de64837b48",
|
48
|
+
"@teambit/issues": "0.0.0-4f5fd6a514f88642aac4837ca379581bbadf4560",
|
49
|
+
"@teambit/objects": "0.0.0-69a6e4cba0a7ce2ff26e658b9cca3e9e44489055",
|
50
|
+
"@teambit/ui": "0.0.0-66bf6e61681cc58c3cf73cad9f98c4a350a64c7e",
|
51
|
+
"@teambit/workspace-config-files": "0.0.0-670a46edc12cb125ceb2f9bbac698f11ff1566c1"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
54
54
|
"@types/fs-extra": "9.0.7",
|
@@ -56,7 +56,7 @@
|
|
56
56
|
"@types/object-hash": "1.3.4",
|
57
57
|
"strip-ansi": "6.0.0",
|
58
58
|
"@types/mocha": "9.1.0",
|
59
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
59
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.75"
|
60
60
|
},
|
61
61
|
"peerDependencies": {
|
62
62
|
"chai": "5.2.1",
|
File without changes
|