@teambit/importer 1.0.310 → 1.0.311
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
3
|
-
<testsuite name="teambit.scope/importer@1.0.
|
3
|
+
<testsuite name="teambit.scope/importer@1.0.311" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.scope/importer-preview"]=t():e["teambit.scope/importer-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.scope/importer-preview"]=t():e["teambit.scope/importer-preview"]=t()}(self,(()=>(()=>{"use strict";var e={16347:(e,t,o)=>{var r={id:"teambit.scope/importer@1.0.311",homepage:"https://bit.cloud/teambit/scope/importer",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const p=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/import.svg"}));p.__bit_component=r,t.Logo=p},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};o.r(r),o.d(r,{compositions:()=>f,compositions_metadata:()=>v,overview:()=>m});var n={};o.r(n),o.d(n,{default:()=>l});var i=o(16347);o(41594);const p=MdxJsReact,a=TeambitMdxUiMdxScopeContext;var c=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},s.apply(null,arguments)}var u={},d="wrapper";function l(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,c);return(0,p.mdx)(d,s({},u,o,{components:t,mdxType:"MDXLayout"}),(0,p.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}l.isMDXComponent=!0;const f=[i],m=[n],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return r})()));
|
package/artifacts/schema.json
CHANGED
@@ -533,7 +533,7 @@
|
|
533
533
|
"_legacy": {
|
534
534
|
"scope": "teambit.scope",
|
535
535
|
"name": "importer",
|
536
|
-
"version": "1.0.
|
536
|
+
"version": "1.0.311"
|
537
537
|
},
|
538
538
|
"_scope": "teambit.scope"
|
539
539
|
}
|
@@ -1443,7 +1443,8 @@
|
|
1443
1443
|
"character": 3
|
1444
1444
|
},
|
1445
1445
|
"raw": "/**\n * fetch objects according to the criteria set by `options` param.\n * to fetch current objects according to the current lane or main, use `this.importCurrentObjects()`.\n */",
|
1446
|
-
"comment": "fetch objects according to the criteria set by `options` param.\nto fetch current objects according to the current lane or main, use `this.importCurrentObjects()`."
|
1446
|
+
"comment": "fetch objects according to the criteria set by `options` param.\nto fetch current objects according to the current lane or main, use `this.importCurrentObjects()`.",
|
1447
|
+
"tags": []
|
1447
1448
|
},
|
1448
1449
|
"signature": "(method) ImporterMain.importObjects(options?: Partial<ImportOptions>): Promise<ImportResult>",
|
1449
1450
|
"name": "importObjects",
|
@@ -1521,7 +1522,8 @@
|
|
1521
1522
|
"character": 3
|
1522
1523
|
},
|
1523
1524
|
"raw": "/**\n * given a lane object, load all components by their head on the lane, find the artifacts refs and import them from\n * the lane scope\n */",
|
1524
|
-
"comment": "given a lane object, load all components by their head on the lane, find the artifacts refs and import them from\nthe lane scope"
|
1525
|
+
"comment": "given a lane object, load all components by their head on the lane, find the artifacts refs and import them from\nthe lane scope",
|
1526
|
+
"tags": []
|
1525
1527
|
},
|
1526
1528
|
"signature": "(method) ImporterMain.importHeadArtifactsFromLane(lane: Lane, ids?: ComponentID[], throwIfMissing?: boolean): Promise<void>",
|
1527
1529
|
"name": "importHeadArtifactsFromLane",
|
@@ -1631,7 +1633,8 @@
|
|
1631
1633
|
"character": 3
|
1632
1634
|
},
|
1633
1635
|
"raw": "/**\n * if on main, fetch main objects, if on lane, fetch lane objects.\n */",
|
1634
|
-
"comment": "if on main, fetch main objects, if on lane, fetch lane objects."
|
1636
|
+
"comment": "if on main, fetch main objects, if on lane, fetch lane objects.",
|
1637
|
+
"tags": []
|
1635
1638
|
},
|
1636
1639
|
"signature": "(method) ImporterMain.importCurrentObjects(): Promise<ImportResult>",
|
1637
1640
|
"name": "importCurrentObjects",
|
@@ -1778,7 +1781,8 @@
|
|
1778
1781
|
"character": 3
|
1779
1782
|
},
|
1780
1783
|
"raw": "/**\n * fetch lane's components and save them in the local scope.\n * once done, merge the lane object and save it as well.\n */",
|
1781
|
-
"comment": "fetch lane's components and save them in the local scope.\nonce done, merge the lane object and save it as well."
|
1784
|
+
"comment": "fetch lane's components and save them in the local scope.\nonce done, merge the lane object and save it as well.",
|
1785
|
+
"tags": []
|
1782
1786
|
},
|
1783
1787
|
"signature": "(method) ImporterMain.fetchLaneComponents(lane: Lane, includeUpdateDependents?: boolean): Promise<void>",
|
1784
1788
|
"name": "fetchLaneComponents",
|
@@ -2104,7 +2108,8 @@
|
|
2104
2108
|
"character": 3
|
2105
2109
|
},
|
2106
2110
|
"raw": "/**\n * get a Lane object from the remote.\n * `persistIfNotExists` saves the object in the local scope only if the lane is not there yet.\n * otherwise, it needs some merging mechanism, which is done differently whether it's export or import.\n * see `sources.mergeLane()` for export and `import-components._saveLaneDataIfNeeded()` for import.\n * in this case, because we only bring the lane object and not the components, it's not easy to do the merge.\n */",
|
2107
|
-
"comment": "get a Lane object from the remote.\n`persistIfNotExists` saves the object in the local scope only if the lane is not there yet.\notherwise, it needs some merging mechanism, which is done differently whether it's export or import.\nsee `sources.mergeLane()` for export and `import-components._saveLaneDataIfNeeded()` for import.\nin this case, because we only bring the lane object and not the components, it's not easy to do the merge."
|
2111
|
+
"comment": "get a Lane object from the remote.\n`persistIfNotExists` saves the object in the local scope only if the lane is not there yet.\notherwise, it needs some merging mechanism, which is done differently whether it's export or import.\nsee `sources.mergeLane()` for export and `import-components._saveLaneDataIfNeeded()` for import.\nin this case, because we only bring the lane object and not the components, it's not easy to do the merge.",
|
2112
|
+
"tags": []
|
2108
2113
|
},
|
2109
2114
|
"signature": "(method) ImporterMain.importLaneObject(laneId: LaneId, persistIfNotExists?: boolean, includeLaneHistory?: boolean): Promise<Lane>",
|
2110
2115
|
"name": "importLaneObject",
|
@@ -3094,7 +3099,7 @@
|
|
3094
3099
|
"_legacy": {
|
3095
3100
|
"scope": "teambit.scope",
|
3096
3101
|
"name": "importer",
|
3097
|
-
"version": "1.0.
|
3102
|
+
"version": "1.0.311"
|
3098
3103
|
},
|
3099
3104
|
"_scope": "teambit.scope"
|
3100
3105
|
}
|
@@ -4910,7 +4915,8 @@
|
|
4910
4915
|
"character": 3
|
4911
4916
|
},
|
4912
4917
|
"raw": "/**\n * get import details, includes the diff between the versions array before import and after import\n */",
|
4913
|
-
"comment": "get import details, includes the diff between the versions array before import and after import"
|
4918
|
+
"comment": "get import details, includes the diff between the versions array before import and after import",
|
4919
|
+
"tags": []
|
4914
4920
|
},
|
4915
4921
|
"signature": "(method) ImportComponents._getImportDetails(currentVersions: ImportedVersions, components: VersionDependencies[]): Promise<ImportDetails[]>",
|
4916
4922
|
"name": "_getImportDetails",
|
@@ -5133,7 +5139,8 @@
|
|
5133
5139
|
"character": 3
|
5134
5140
|
},
|
5135
5141
|
"raw": "/**\n * Model Component id() calculation uses id.toString() for the hash.\n * If an imported component has scopereadonly name equals to a local name, both will have the exact same\n * hash and they'll override each other.\n */",
|
5136
|
-
"comment": "Model Component id() calculation uses id.toString() for the hash.\nIf an imported component has scopereadonly name equals to a local name, both will have the exact same\nhash and they'll override each other."
|
5142
|
+
"comment": "Model Component id() calculation uses id.toString() for the hash.\nIf an imported component has scopereadonly name equals to a local name, both will have the exact same\nhash and they'll override each other.",
|
5143
|
+
"tags": []
|
5137
5144
|
},
|
5138
5145
|
"signature": "(method) ImportComponents._throwForDifferentComponentWithSameName(ids: ComponentIdList): void",
|
5139
5146
|
"name": "_throwForDifferentComponentWithSameName",
|
@@ -5247,7 +5254,8 @@
|
|
5247
5254
|
"character": 3
|
5248
5255
|
},
|
5249
5256
|
"raw": "/**\n * 1) when there are conflicts and the strategy is \"ours\", don't write the imported component to\n * the filesystem, only update bitmap.\n *\n * 2) when there are conflicts and the strategy is \"theirs\", override the local changes by the\n * imported component. (similar to --override)\n *\n * 3) when there is no conflict or there are conflicts and the strategy is manual, write the files\n * according to the merge result. (done by applyModifiedVersion())\n */",
|
5250
|
-
"comment": "1) when there are conflicts and the strategy is \"ours\", don't write the imported component to\nthe filesystem, only update bitmap.\n\n2) when there are conflicts and the strategy is \"theirs\", override the local changes by the\nimported component. (similar to --override)\n\n3) when there is no conflict or there are conflicts and the strategy is manual, write the files\naccording to the merge result. (done by applyModifiedVersion())"
|
5257
|
+
"comment": "1) when there are conflicts and the strategy is \"ours\", don't write the imported component to\nthe filesystem, only update bitmap.\n\n2) when there are conflicts and the strategy is \"theirs\", override the local changes by the\nimported component. (similar to --override)\n\n3) when there is no conflict or there are conflicts and the strategy is manual, write the files\naccording to the merge result. (done by applyModifiedVersion())",
|
5258
|
+
"tags": []
|
5251
5259
|
},
|
5252
5260
|
"signature": "(method) ImportComponents._updateComponentFilesPerMergeStrategy(componentMergeStatus: ComponentMergeStatus): FilesStatus | null | undefined",
|
5253
5261
|
"name": "_updateComponentFilesPerMergeStrategy",
|
@@ -5332,7 +5340,8 @@
|
|
5332
5340
|
"character": 3
|
5333
5341
|
},
|
5334
5342
|
"raw": "/**\n * update the component files if they are modified and there is a merge strategy.\n * returns only the components that need to be written to the filesystem\n */",
|
5335
|
-
"comment": "update the component files if they are modified and there is a merge strategy.\nreturns only the components that need to be written to the filesystem"
|
5343
|
+
"comment": "update the component files if they are modified and there is a merge strategy.\nreturns only the components that need to be written to the filesystem",
|
5344
|
+
"tags": []
|
5336
5345
|
},
|
5337
5346
|
"signature": "(method) ImportComponents.updateAllComponentsAccordingToMergeStrategy(components: Component[]): Promise<Component[]>",
|
5338
5347
|
"name": "updateAllComponentsAccordingToMergeStrategy",
|
@@ -6024,7 +6033,8 @@
|
|
6024
6033
|
"character": 3
|
6025
6034
|
},
|
6026
6035
|
"raw": "/**\n * fetch objects according to the criteria set by `options` param.\n * to fetch current objects according to the current lane or main, use `this.importCurrentObjects()`.\n */",
|
6027
|
-
"comment": "fetch objects according to the criteria set by `options` param.\nto fetch current objects according to the current lane or main, use `this.importCurrentObjects()`."
|
6036
|
+
"comment": "fetch objects according to the criteria set by `options` param.\nto fetch current objects according to the current lane or main, use `this.importCurrentObjects()`.",
|
6037
|
+
"tags": []
|
6028
6038
|
},
|
6029
6039
|
"signature": "(method) ImporterMain.importObjects(options?: Partial<ImportOptions>): Promise<ImportResult>",
|
6030
6040
|
"name": "importObjects",
|
@@ -6102,7 +6112,8 @@
|
|
6102
6112
|
"character": 3
|
6103
6113
|
},
|
6104
6114
|
"raw": "/**\n * given a lane object, load all components by their head on the lane, find the artifacts refs and import them from\n * the lane scope\n */",
|
6105
|
-
"comment": "given a lane object, load all components by their head on the lane, find the artifacts refs and import them from\nthe lane scope"
|
6115
|
+
"comment": "given a lane object, load all components by their head on the lane, find the artifacts refs and import them from\nthe lane scope",
|
6116
|
+
"tags": []
|
6106
6117
|
},
|
6107
6118
|
"signature": "(method) ImporterMain.importHeadArtifactsFromLane(lane: Lane, ids?: ComponentID[], throwIfMissing?: boolean): Promise<void>",
|
6108
6119
|
"name": "importHeadArtifactsFromLane",
|
@@ -6212,7 +6223,8 @@
|
|
6212
6223
|
"character": 3
|
6213
6224
|
},
|
6214
6225
|
"raw": "/**\n * if on main, fetch main objects, if on lane, fetch lane objects.\n */",
|
6215
|
-
"comment": "if on main, fetch main objects, if on lane, fetch lane objects."
|
6226
|
+
"comment": "if on main, fetch main objects, if on lane, fetch lane objects.",
|
6227
|
+
"tags": []
|
6216
6228
|
},
|
6217
6229
|
"signature": "(method) ImporterMain.importCurrentObjects(): Promise<ImportResult>",
|
6218
6230
|
"name": "importCurrentObjects",
|
@@ -6359,7 +6371,8 @@
|
|
6359
6371
|
"character": 3
|
6360
6372
|
},
|
6361
6373
|
"raw": "/**\n * fetch lane's components and save them in the local scope.\n * once done, merge the lane object and save it as well.\n */",
|
6362
|
-
"comment": "fetch lane's components and save them in the local scope.\nonce done, merge the lane object and save it as well."
|
6374
|
+
"comment": "fetch lane's components and save them in the local scope.\nonce done, merge the lane object and save it as well.",
|
6375
|
+
"tags": []
|
6363
6376
|
},
|
6364
6377
|
"signature": "(method) ImporterMain.fetchLaneComponents(lane: Lane, includeUpdateDependents?: boolean): Promise<void>",
|
6365
6378
|
"name": "fetchLaneComponents",
|
@@ -6685,7 +6698,8 @@
|
|
6685
6698
|
"character": 3
|
6686
6699
|
},
|
6687
6700
|
"raw": "/**\n * get a Lane object from the remote.\n * `persistIfNotExists` saves the object in the local scope only if the lane is not there yet.\n * otherwise, it needs some merging mechanism, which is done differently whether it's export or import.\n * see `sources.mergeLane()` for export and `import-components._saveLaneDataIfNeeded()` for import.\n * in this case, because we only bring the lane object and not the components, it's not easy to do the merge.\n */",
|
6688
|
-
"comment": "get a Lane object from the remote.\n`persistIfNotExists` saves the object in the local scope only if the lane is not there yet.\notherwise, it needs some merging mechanism, which is done differently whether it's export or import.\nsee `sources.mergeLane()` for export and `import-components._saveLaneDataIfNeeded()` for import.\nin this case, because we only bring the lane object and not the components, it's not easy to do the merge."
|
6701
|
+
"comment": "get a Lane object from the remote.\n`persistIfNotExists` saves the object in the local scope only if the lane is not there yet.\notherwise, it needs some merging mechanism, which is done differently whether it's export or import.\nsee `sources.mergeLane()` for export and `import-components._saveLaneDataIfNeeded()` for import.\nin this case, because we only bring the lane object and not the components, it's not easy to do the merge.",
|
6702
|
+
"tags": []
|
6689
6703
|
},
|
6690
6704
|
"signature": "(method) ImporterMain.importLaneObject(laneId: LaneId, persistIfNotExists?: boolean, includeLaneHistory?: boolean): Promise<Lane>",
|
6691
6705
|
"name": "importLaneObject",
|
@@ -7160,7 +7174,7 @@
|
|
7160
7174
|
"componentId": {
|
7161
7175
|
"scope": "teambit.scope",
|
7162
7176
|
"name": "importer",
|
7163
|
-
"version": "1.0.
|
7177
|
+
"version": "1.0.311"
|
7164
7178
|
},
|
7165
7179
|
"taggedModuleExports": []
|
7166
7180
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_importer@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_importer@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_importer@1.0.311/dist/importer.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.scope_importer@1.0.311/dist/importer.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/importer",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.311",
|
4
4
|
"homepage": "https://bit.cloud/teambit/scope/importer",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.scope",
|
8
8
|
"name": "importer",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.311"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
@@ -20,18 +20,18 @@
|
|
20
20
|
"@teambit/lane-id": "0.0.311",
|
21
21
|
"@teambit/harmony": "0.4.6",
|
22
22
|
"@teambit/legacy-bit-id": "1.1.1",
|
23
|
-
"@teambit/graph": "1.0.
|
24
|
-
"@teambit/logger": "0.0.
|
25
|
-
"@teambit/workspace": "1.0.
|
26
|
-
"@teambit/cli": "0.0.
|
27
|
-
"@teambit/checkout": "1.0.
|
28
|
-
"@teambit/component-writer": "1.0.
|
29
|
-
"@teambit/config-merger": "0.0.
|
30
|
-
"@teambit/envs": "1.0.
|
31
|
-
"@teambit/merging": "1.0.
|
32
|
-
"@teambit/dependency-resolver": "1.0.
|
33
|
-
"@teambit/install": "1.0.
|
34
|
-
"@teambit/scope": "1.0.
|
23
|
+
"@teambit/graph": "1.0.311",
|
24
|
+
"@teambit/logger": "0.0.981",
|
25
|
+
"@teambit/workspace": "1.0.311",
|
26
|
+
"@teambit/cli": "0.0.888",
|
27
|
+
"@teambit/checkout": "1.0.311",
|
28
|
+
"@teambit/component-writer": "1.0.311",
|
29
|
+
"@teambit/config-merger": "0.0.178",
|
30
|
+
"@teambit/envs": "1.0.311",
|
31
|
+
"@teambit/merging": "1.0.311",
|
32
|
+
"@teambit/dependency-resolver": "1.0.311",
|
33
|
+
"@teambit/install": "1.0.311",
|
34
|
+
"@teambit/scope": "1.0.311"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
37
|
"@types/lodash": "4.14.165",
|