@teambit/install 0.0.0-e63924d1e4e3f532aeb1a9be1a256107109b66e6 → 0.0.0-e8a4d71a122482b5db003c92c290bddad87fadf2
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.
@@ -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;MACpBC,WAAW,EAAE;I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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-e8a4d71a122482b5db003c92c290bddad87fadf2",
|
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": "e8a4d71a122482b5db003c92c290bddad87fadf2"
|
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.1258",
|
27
|
-
"@teambit/logger": "0.0.1351",
|
28
26
|
"@teambit/component-issues": "0.0.161",
|
29
27
|
"@teambit/component-package-version": "0.0.440",
|
30
|
-
"@teambit/component.sources": "0.0.117",
|
31
28
|
"@teambit/dependencies.fs.linked-dependencies": "0.0.34",
|
32
|
-
"@teambit/pkg.modules.component-package-name": "0.0.72",
|
33
|
-
"@teambit/variants": "0.0.1525",
|
34
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.293",
|
35
29
|
"@teambit/workspace.root-components": "1.0.0",
|
36
30
|
"@teambit/bit-error": "0.0.404",
|
37
31
|
"@teambit/toolbox.time.time-format": "0.0.500",
|
38
|
-
"@teambit/
|
39
|
-
"@teambit/
|
40
|
-
"@teambit/
|
41
|
-
"@teambit/
|
42
|
-
"@teambit/
|
43
|
-
"@teambit/
|
44
|
-
"@teambit/
|
45
|
-
"@teambit/
|
46
|
-
"@teambit/
|
47
|
-
"@teambit/
|
48
|
-
"@teambit/
|
49
|
-
"@teambit/
|
50
|
-
"@teambit/
|
51
|
-
"@teambit/
|
32
|
+
"@teambit/cli": "0.0.0-0e399511c5917329cad9a3a3cf6b8c8758296eae",
|
33
|
+
"@teambit/dependency-resolver": "0.0.0-3e2dc37af460865bce0f35a4d03a0d84362c0e6d",
|
34
|
+
"@teambit/logger": "0.0.0-5b07e0651a5bffd0cd8b0930105c21559d9446ce",
|
35
|
+
"@teambit/workspace": "0.0.0-df756e081437c488be6598d24dee8533fa330731",
|
36
|
+
"@teambit/application": "0.0.0-4bf0dc176213ddb0a9edc9316ce6e861423173ef",
|
37
|
+
"@teambit/aspect-loader": "0.0.0-825c048bd6d503f6ed5d4478550fa3a2abcc3e16",
|
38
|
+
"@teambit/bundler": "0.0.0-d52e2aa2785a6896c25d06b96fb79b8449880ff9",
|
39
|
+
"@teambit/compiler": "0.0.0-4bf0faf73e9ceb812dd7832b6e5ccce4c89c3616",
|
40
|
+
"@teambit/component.sources": "0.0.0-1c2f2e183a113e2a688837dc2fa1cb13008bf362",
|
41
|
+
"@teambit/component": "0.0.0-2b881db3de5f6d1a54b8aacce9a319708770b861",
|
42
|
+
"@teambit/envs": "0.0.0-264c3e4b8537b991df70ab290c19fe66544a8784",
|
43
|
+
"@teambit/generator": "0.0.0-5149c3a3526deb32052b1e81fa2f2974c68fc874",
|
44
|
+
"@teambit/ipc-events": "0.0.0-d942a89f5f9611430930eb80d6ec3ccd36617293",
|
45
|
+
"@teambit/issues": "0.0.0-d481bd1987c981d6fcf9a4b6a3227b2e5e52e76b",
|
46
|
+
"@teambit/objects": "0.0.0-07465a59855c3a804f9fa508afced8361afa760c",
|
47
|
+
"@teambit/pkg.modules.component-package-name": "0.0.0-4198a086c36cc6e884583ee69ffac99a6d52b300",
|
48
|
+
"@teambit/ui": "0.0.0-a906eead216629b0df48d97c2d11e14fde187f25",
|
49
|
+
"@teambit/variants": "0.0.0-07937b06ab9c0105a3e1cc43ecbd5b2ef4039fdb",
|
50
|
+
"@teambit/workspace-config-files": "0.0.0-3c50ebd653b19e69a5c9fcb93d4f2cca05874c02",
|
51
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.0-6b99b71fc3eb4b0cdafe3b759a77124241eda8a8"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
54
54
|
"@types/fs-extra": "9.0.7",
|
File without changes
|