@teambit/bit 0.0.882 → 0.0.884
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/app.js +2 -18
- package/dist/app.js.map +1 -1
- package/dist/bit.aspect.js +0 -5
- package/dist/bit.aspect.js.map +1 -1
- package/dist/bit.compositions.js +0 -9
- package/dist/bit.compositions.js.map +1 -1
- package/dist/bit.docs.js +0 -9
- package/dist/bit.docs.js.map +1 -1
- package/dist/bit.main.runtime.js +0 -20
- package/dist/bit.main.runtime.js.map +1 -1
- package/dist/bit.provider.js +0 -5
- package/dist/bit.provider.js.map +1 -1
- package/dist/extension/extension.js +6 -0
- package/dist/extension/extension.js.map +1 -1
- package/dist/hook-require.js +4 -11
- package/dist/hook-require.js.map +1 -1
- package/dist/hooks/hook.js +0 -3
- package/dist/hooks/hook.js.map +1 -1
- package/dist/hooks/index.js +0 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.js +0 -18
- package/dist/index.js.map +1 -1
- package/dist/load-bit.js +28 -169
- package/dist/load-bit.js.map +1 -1
- package/dist/manifests.js +1 -290
- package/dist/manifests.js.map +1 -1
- package/package-tar/teambit-bit-0.0.884.tgz +0 -0
- package/package.json +98 -98
- package/{preview-1666312873430.js → preview-1666496165706.js} +2 -2
- package/package-tar/teambit-bit-0.0.882.tgz +0 -0
package/dist/app.js
CHANGED
|
@@ -1,51 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.promise.js");
|
|
4
|
-
|
|
5
4
|
function _toolboxPerformance() {
|
|
6
5
|
const data = require("@teambit/toolbox.performance.v8-cache");
|
|
7
|
-
|
|
8
6
|
_toolboxPerformance = function () {
|
|
9
7
|
return data;
|
|
10
8
|
};
|
|
11
|
-
|
|
12
9
|
return data;
|
|
13
10
|
}
|
|
14
|
-
|
|
15
11
|
require("./hook-require");
|
|
16
|
-
|
|
17
12
|
function _bootstrap() {
|
|
18
13
|
const data = require("@teambit/legacy/dist/bootstrap");
|
|
19
|
-
|
|
20
14
|
_bootstrap = function () {
|
|
21
15
|
return data;
|
|
22
16
|
};
|
|
23
|
-
|
|
24
17
|
return data;
|
|
25
18
|
}
|
|
26
|
-
|
|
27
19
|
function _handleErrors() {
|
|
28
20
|
const data = require("@teambit/legacy/dist/cli/handle-errors");
|
|
29
|
-
|
|
30
21
|
_handleErrors = function () {
|
|
31
22
|
return data;
|
|
32
23
|
};
|
|
33
|
-
|
|
34
24
|
return data;
|
|
35
25
|
}
|
|
36
|
-
|
|
37
26
|
function _loadBit() {
|
|
38
27
|
const data = require("./load-bit");
|
|
39
|
-
|
|
40
28
|
_loadBit = function () {
|
|
41
29
|
return data;
|
|
42
30
|
};
|
|
43
|
-
|
|
44
31
|
return data;
|
|
45
32
|
}
|
|
46
|
-
|
|
47
33
|
/* eslint-disable import/no-dynamic-require */
|
|
48
|
-
|
|
49
34
|
/* eslint-disable import/first */
|
|
50
35
|
process.on('uncaughtException', err => {
|
|
51
36
|
// eslint-disable-next-line no-console
|
|
@@ -56,12 +41,11 @@ process.on('uncaughtException', err => {
|
|
|
56
41
|
_toolboxPerformance().nativeCompileCache === null || _toolboxPerformance().nativeCompileCache === void 0 ? void 0 : _toolboxPerformance().nativeCompileCache.install();
|
|
57
42
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
58
43
|
initApp();
|
|
59
|
-
|
|
60
44
|
async function initApp() {
|
|
61
45
|
try {
|
|
62
|
-
await (0, _bootstrap().bootstrap)();
|
|
46
|
+
await (0, _bootstrap().bootstrap)();
|
|
47
|
+
// registerCoreExtensions();
|
|
63
48
|
// const harmony = await Harmony.load([ConfigExt], {});
|
|
64
|
-
|
|
65
49
|
await (0, _loadBit().runCLI)();
|
|
66
50
|
} catch (err) {
|
|
67
51
|
const originalError = err.originalError || err;
|
package/dist/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["process","on","err","console","error","exit","nativeCompileCache","install","initApp","bootstrap","runCLI","originalError","handleErrorAndExit","argv"],"sources":["app.ts"],"sourcesContent":["/* eslint-disable import/no-dynamic-require */\n/* eslint-disable import/first */\nprocess.on('uncaughtException', (err) => {\n // eslint-disable-next-line no-console\n console.error('uncaughtException', err);\n process.exit(1);\n});\n\nimport { nativeCompileCache } from '@teambit/toolbox.performance.v8-cache';\n\n// Enable v8 compile cache, keep this before other imports\nnativeCompileCache?.install();\n\nimport './hook-require';\nimport { bootstrap } from '@teambit/legacy/dist/bootstrap';\nimport { handleErrorAndExit } from '@teambit/legacy/dist/cli/handle-errors';\nimport { runCLI } from './load-bit';\n\n// eslint-disable-next-line @typescript-eslint/no-floating-promises\ninitApp();\n\nasync function initApp() {\n try {\n await bootstrap();\n // registerCoreExtensions();\n // const harmony = await Harmony.load([ConfigExt], {});\n await runCLI();\n } catch (err: any) {\n const originalError = err.originalError || err;\n await handleErrorAndExit(originalError, process.argv[2]);\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["process","on","err","console","error","exit","nativeCompileCache","install","initApp","bootstrap","runCLI","originalError","handleErrorAndExit","argv"],"sources":["app.ts"],"sourcesContent":["/* eslint-disable import/no-dynamic-require */\n/* eslint-disable import/first */\nprocess.on('uncaughtException', (err) => {\n // eslint-disable-next-line no-console\n console.error('uncaughtException', err);\n process.exit(1);\n});\n\nimport { nativeCompileCache } from '@teambit/toolbox.performance.v8-cache';\n\n// Enable v8 compile cache, keep this before other imports\nnativeCompileCache?.install();\n\nimport './hook-require';\nimport { bootstrap } from '@teambit/legacy/dist/bootstrap';\nimport { handleErrorAndExit } from '@teambit/legacy/dist/cli/handle-errors';\nimport { runCLI } from './load-bit';\n\n// eslint-disable-next-line @typescript-eslint/no-floating-promises\ninitApp();\n\nasync function initApp() {\n try {\n await bootstrap();\n // registerCoreExtensions();\n // const harmony = await Harmony.load([ConfigExt], {});\n await runCLI();\n } catch (err: any) {\n const originalError = err.originalError || err;\n await handleErrorAndExit(originalError, process.argv[2]);\n }\n}\n"],"mappings":";;;AAQA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAKA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAhBA;AACA;AACAA,OAAO,CAACC,EAAE,CAAC,mBAAmB,EAAGC,GAAG,IAAK;EACvC;EACAC,OAAO,CAACC,KAAK,CAAC,mBAAmB,EAAEF,GAAG,CAAC;EACvCF,OAAO,CAACK,IAAI,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC;AAIF;AACAC,wCAAkB,aAAlBA,wCAAkB,uBAAlBA,wCAAkB,CAAEC,OAAO,EAAE;AAO7B;AACAC,OAAO,EAAE;AAET,eAAeA,OAAO,GAAG;EACvB,IAAI;IACF,MAAM,IAAAC,sBAAS,GAAE;IACjB;IACA;IACA,MAAM,IAAAC,iBAAM,GAAE;EAChB,CAAC,CAAC,OAAOR,GAAQ,EAAE;IACjB,MAAMS,aAAa,GAAGT,GAAG,CAACS,aAAa,IAAIT,GAAG;IAC9C,MAAM,IAAAU,kCAAkB,EAACD,aAAa,EAAEX,OAAO,CAACa,IAAI,CAAC,CAAC,CAAC,CAAC;EAC1D;AACF"}
|
package/dist/bit.aspect.js
CHANGED
|
@@ -4,22 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.BitAspect = 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 BitAspect = _harmony().Aspect.create({
|
|
19
15
|
id: 'teambit.harmony/bit',
|
|
20
16
|
dependencies: []
|
|
21
17
|
});
|
|
22
|
-
|
|
23
18
|
exports.BitAspect = BitAspect;
|
|
24
19
|
|
|
25
20
|
//# sourceMappingURL=bit.aspect.js.map
|
package/dist/bit.aspect.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BitAspect","Aspect","create","id","dependencies"],"sources":["bit.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const BitAspect = Aspect.create({\n id: 'teambit.harmony/bit',\n dependencies: [],\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["BitAspect","Aspect","create","id","dependencies"],"sources":["bit.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const BitAspect = Aspect.create({\n id: 'teambit.harmony/bit',\n dependencies: [],\n});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,SAAS,GAAGC,iBAAM,CAACC,MAAM,CAAC;EACrCC,EAAE,EAAE,qBAAqB;EACzBC,YAAY,EAAE;AAChB,CAAC,CAAC;AAAC"}
|
package/dist/bit.compositions.js
CHANGED
|
@@ -1,32 +1,24 @@
|
|
|
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.BitLogo = 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
|
function _designUiBrand() {
|
|
21
16
|
const data = require("@teambit/design.ui.brand.logo");
|
|
22
|
-
|
|
23
17
|
_designUiBrand = function () {
|
|
24
18
|
return data;
|
|
25
19
|
};
|
|
26
|
-
|
|
27
20
|
return data;
|
|
28
21
|
}
|
|
29
|
-
|
|
30
22
|
const BitLogo = () => {
|
|
31
23
|
return /*#__PURE__*/_react().default.createElement("div", {
|
|
32
24
|
style: {
|
|
@@ -37,7 +29,6 @@ const BitLogo = () => {
|
|
|
37
29
|
customSize: 64
|
|
38
30
|
}));
|
|
39
31
|
};
|
|
40
|
-
|
|
41
32
|
exports.BitLogo = BitLogo;
|
|
42
33
|
|
|
43
34
|
//# sourceMappingURL=bit.compositions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BitLogo","width","margin"],"sources":["bit.compositions.tsx"],"sourcesContent":["import React from 'react';\nimport { Logo } from '@teambit/design.ui.brand.logo';\n\nexport const BitLogo = () => {\n return (\n <div style={{ width: '50%', margin: 'auto' }}>\n <Logo customSize={64} />\n </div>\n );\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["BitLogo","width","margin"],"sources":["bit.compositions.tsx"],"sourcesContent":["import React from 'react';\nimport { Logo } from '@teambit/design.ui.brand.logo';\n\nexport const BitLogo = () => {\n return (\n <div style={{ width: '50%', margin: 'auto' }}>\n <Logo customSize={64} />\n </div>\n );\n};\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,OAAO,GAAG,MAAM;EAC3B,oBACE;IAAK,KAAK,EAAE;MAAEC,KAAK,EAAE,KAAK;MAAEC,MAAM,EAAE;IAAO;EAAE,gBAC3C,+BAAC,qBAAI;IAAC,UAAU,EAAE;EAAG,EAAG,CACpB;AAEV,CAAC;AAAC"}
|
package/dist/bit.docs.js
CHANGED
|
@@ -1,39 +1,30 @@
|
|
|
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.abstract = void 0;
|
|
9
8
|
exports.default = Docs;
|
|
10
9
|
exports.tags = void 0;
|
|
11
|
-
|
|
12
10
|
function _react() {
|
|
13
11
|
const data = _interopRequireDefault(require("react"));
|
|
14
|
-
|
|
15
12
|
_react = function () {
|
|
16
13
|
return data;
|
|
17
14
|
};
|
|
18
|
-
|
|
19
15
|
return data;
|
|
20
16
|
}
|
|
21
|
-
|
|
22
17
|
function _bitContent() {
|
|
23
18
|
const data = require("@teambit/bit.content.what-is-bit");
|
|
24
|
-
|
|
25
19
|
_bitContent = function () {
|
|
26
20
|
return data;
|
|
27
21
|
};
|
|
28
|
-
|
|
29
22
|
return data;
|
|
30
23
|
}
|
|
31
|
-
|
|
32
24
|
const tags = ['components', 'software', 'composable', 'component-driven', 'collaboration', 'development', 'design', 'product', 'architecture', 'compounding'];
|
|
33
25
|
exports.tags = tags;
|
|
34
26
|
const abstract = 'Bit is an open source toolchain for component-driven software';
|
|
35
27
|
exports.abstract = abstract;
|
|
36
|
-
|
|
37
28
|
function Docs() {
|
|
38
29
|
return /*#__PURE__*/_react().default.createElement(_bitContent().WhatIsBit, null);
|
|
39
30
|
}
|
package/dist/bit.docs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["tags","abstract","Docs"],"sources":["bit.docs.tsx"],"sourcesContent":["import React from 'react';\nimport { WhatIsBit } from '@teambit/bit.content.what-is-bit';\n\nexport const tags = [\n 'components',\n 'software',\n 'composable',\n 'component-driven',\n 'collaboration',\n 'development',\n 'design',\n 'product',\n 'architecture',\n 'compounding',\n];\n\nexport const abstract = 'Bit is an open source toolchain for component-driven software';\n\nexport default function Docs() {\n return <WhatIsBit />;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["tags","abstract","Docs"],"sources":["bit.docs.tsx"],"sourcesContent":["import React from 'react';\nimport { WhatIsBit } from '@teambit/bit.content.what-is-bit';\n\nexport const tags = [\n 'components',\n 'software',\n 'composable',\n 'component-driven',\n 'collaboration',\n 'development',\n 'design',\n 'product',\n 'architecture',\n 'compounding',\n];\n\nexport const abstract = 'Bit is an open source toolchain for component-driven software';\n\nexport default function Docs() {\n return <WhatIsBit />;\n}\n"],"mappings":";;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,IAAI,GAAG,CAClB,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,QAAQ,EACR,SAAS,EACT,cAAc,EACd,aAAa,CACd;AAAC;AAEK,MAAMC,QAAQ,GAAG,+DAA+D;AAAC;AAEzE,SAASC,IAAI,GAAG;EAC7B,oBAAO,+BAAC,uBAAS,OAAG;AACtB"}
|
package/dist/bit.main.runtime.js
CHANGED
|
@@ -5,65 +5,46 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.BitMain = void 0;
|
|
7
7
|
exports.registerCoreExtensions = registerCoreExtensions;
|
|
8
|
-
|
|
9
8
|
function _cli() {
|
|
10
9
|
const data = require("@teambit/cli");
|
|
11
|
-
|
|
12
10
|
_cli = function () {
|
|
13
11
|
return data;
|
|
14
12
|
};
|
|
15
|
-
|
|
16
13
|
return data;
|
|
17
14
|
}
|
|
18
|
-
|
|
19
15
|
function _extensionData() {
|
|
20
16
|
const data = require("@teambit/legacy/dist/consumer/config/extension-data");
|
|
21
|
-
|
|
22
17
|
_extensionData = function () {
|
|
23
18
|
return data;
|
|
24
19
|
};
|
|
25
|
-
|
|
26
20
|
return data;
|
|
27
21
|
}
|
|
28
|
-
|
|
29
22
|
function _bit() {
|
|
30
23
|
const data = require("./bit.aspect");
|
|
31
|
-
|
|
32
24
|
_bit = function () {
|
|
33
25
|
return data;
|
|
34
26
|
};
|
|
35
|
-
|
|
36
27
|
return data;
|
|
37
28
|
}
|
|
38
|
-
|
|
39
29
|
function _bit2() {
|
|
40
30
|
const data = require("./bit.provider");
|
|
41
|
-
|
|
42
31
|
_bit2 = function () {
|
|
43
32
|
return data;
|
|
44
33
|
};
|
|
45
|
-
|
|
46
34
|
return data;
|
|
47
35
|
}
|
|
48
|
-
|
|
49
36
|
function _manifests() {
|
|
50
37
|
const data = require("./manifests");
|
|
51
|
-
|
|
52
38
|
_manifests = function () {
|
|
53
39
|
return data;
|
|
54
40
|
};
|
|
55
|
-
|
|
56
41
|
return data;
|
|
57
42
|
}
|
|
58
|
-
|
|
59
43
|
const manifests = Object.values(_manifests().manifestsMap);
|
|
60
|
-
|
|
61
44
|
function registerCoreExtensions() {
|
|
62
45
|
const allCoreExtensionsNames = Object.keys(_manifests().manifestsMap);
|
|
63
|
-
|
|
64
46
|
_extensionData().ExtensionDataList.registerManyCoreExtensionNames(allCoreExtensionsNames);
|
|
65
47
|
}
|
|
66
|
-
|
|
67
48
|
const BitMain = {
|
|
68
49
|
name: 'bit',
|
|
69
50
|
runtime: _cli().MainRuntime,
|
|
@@ -71,7 +52,6 @@ const BitMain = {
|
|
|
71
52
|
provider: _bit2().provideBit
|
|
72
53
|
};
|
|
73
54
|
exports.BitMain = BitMain;
|
|
74
|
-
|
|
75
55
|
_bit().BitAspect.addRuntime(BitMain);
|
|
76
56
|
|
|
77
57
|
//# sourceMappingURL=bit.main.runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["manifests","Object","values","manifestsMap","registerCoreExtensions","allCoreExtensionsNames","keys","ExtensionDataList","registerManyCoreExtensionNames","BitMain","name","runtime","MainRuntime","dependencies","provider","provideBit","BitAspect","addRuntime"],"sources":["bit.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { ExtensionDataList } from '@teambit/legacy/dist/consumer/config/extension-data';\n\nimport { BitAspect } from './bit.aspect';\nimport { provideBit } from './bit.provider';\nimport { manifestsMap } from './manifests';\n\nconst manifests = Object.values(manifestsMap);\n\nexport function registerCoreExtensions() {\n const allCoreExtensionsNames = Object.keys(manifestsMap);\n ExtensionDataList.registerManyCoreExtensionNames(allCoreExtensionsNames);\n}\n\nexport const BitMain = {\n name: 'bit',\n runtime: MainRuntime,\n dependencies: manifests,\n provider: provideBit,\n};\n\nBitAspect.addRuntime(BitMain);\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["manifests","Object","values","manifestsMap","registerCoreExtensions","allCoreExtensionsNames","keys","ExtensionDataList","registerManyCoreExtensionNames","BitMain","name","runtime","MainRuntime","dependencies","provider","provideBit","BitAspect","addRuntime"],"sources":["bit.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { ExtensionDataList } from '@teambit/legacy/dist/consumer/config/extension-data';\n\nimport { BitAspect } from './bit.aspect';\nimport { provideBit } from './bit.provider';\nimport { manifestsMap } from './manifests';\n\nconst manifests = Object.values(manifestsMap);\n\nexport function registerCoreExtensions() {\n const allCoreExtensionsNames = Object.keys(manifestsMap);\n ExtensionDataList.registerManyCoreExtensionNames(allCoreExtensionsNames);\n}\n\nexport const BitMain = {\n name: 'bit',\n runtime: MainRuntime,\n dependencies: manifests,\n provider: provideBit,\n};\n\nBitAspect.addRuntime(BitMain);\n"],"mappings":";;;;;;;AAAA;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;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA,MAAMA,SAAS,GAAGC,MAAM,CAACC,MAAM,CAACC,yBAAY,CAAC;AAEtC,SAASC,sBAAsB,GAAG;EACvC,MAAMC,sBAAsB,GAAGJ,MAAM,CAACK,IAAI,CAACH,yBAAY,CAAC;EACxDI,kCAAiB,CAACC,8BAA8B,CAACH,sBAAsB,CAAC;AAC1E;AAEO,MAAMI,OAAO,GAAG;EACrBC,IAAI,EAAE,KAAK;EACXC,OAAO,EAAEC,kBAAW;EACpBC,YAAY,EAAEb,SAAS;EACvBc,QAAQ,EAAEC;AACZ,CAAC;AAAC;AAEFC,gBAAS,CAACC,UAAU,CAACR,OAAO,CAAC"}
|
package/dist/bit.provider.js
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.promise.js");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.provideBit = provideBit;
|
|
9
|
-
|
|
10
8
|
function _manifests() {
|
|
11
9
|
const data = require("./manifests");
|
|
12
|
-
|
|
13
10
|
_manifests = function () {
|
|
14
11
|
return data;
|
|
15
12
|
};
|
|
16
|
-
|
|
17
13
|
return data;
|
|
18
14
|
}
|
|
19
|
-
|
|
20
15
|
async function provideBit() {
|
|
21
16
|
return {
|
|
22
17
|
manifestsMap: _manifests().manifestsMap
|
package/dist/bit.provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["provideBit","manifestsMap"],"sources":["bit.provider.ts"],"sourcesContent":["import { manifestsMap } from './manifests';\n\nexport type BitDeps = [];\n\nexport type BitConfig = {\n cwd: string;\n /**\n * if set, during bit bootstrap it checks whether the current bit-version semver.satisfies this version.\n */\n engine?: string;\n /**\n * if true, it throws an error when \"engine\" not satisfied. otherwise, it just warns.\n */\n engineStrict?: boolean;\n};\n\nexport async function provideBit() {\n return {\n manifestsMap,\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["provideBit","manifestsMap"],"sources":["bit.provider.ts"],"sourcesContent":["import { manifestsMap } from './manifests';\n\nexport type BitDeps = [];\n\nexport type BitConfig = {\n cwd: string;\n /**\n * if set, during bit bootstrap it checks whether the current bit-version semver.satisfies this version.\n */\n engine?: string;\n /**\n * if true, it throws an error when \"engine\" not satisfied. otherwise, it just warns.\n */\n engineStrict?: boolean;\n};\n\nexport async function provideBit() {\n return {\n manifestsMap,\n };\n}\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAgBO,eAAeA,UAAU,GAAG;EACjC,OAAO;IACLC,YAAY,EAAZA;EACF,CAAC;AACH"}
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
// // import { Slot, SlotRegistry } from '@teambit/harmony';
|
|
2
|
+
|
|
2
3
|
// export interface Extension {
|
|
3
4
|
// /**
|
|
4
5
|
// * icon of the extension.
|
|
5
6
|
// */
|
|
6
7
|
// icon?: string
|
|
7
8
|
// }
|
|
9
|
+
|
|
8
10
|
// // export type ExtensionContext<CT, DT> = {
|
|
9
11
|
// // dependencies: DT,
|
|
10
12
|
// // config: CT,
|
|
11
13
|
// // slots: SlotRegistry
|
|
12
14
|
// // };
|
|
15
|
+
|
|
13
16
|
// export type ExtensionProvider = () => Extension;
|
|
17
|
+
|
|
14
18
|
// export type ExtensionProps = {
|
|
15
19
|
// name: string,
|
|
16
20
|
// slots: Slot[],
|
|
17
21
|
// provider: ExtensionProvider
|
|
18
22
|
// };
|
|
23
|
+
|
|
19
24
|
// export function createExtension<>(props: ExtensionProps) {
|
|
25
|
+
|
|
20
26
|
// }
|
|
21
27
|
"use strict";
|
|
22
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["extension.ts"],"sourcesContent":["// // import { Slot, SlotRegistry } from '@teambit/harmony';\n\n// export interface Extension {\n// /**\n// * icon of the extension.\n// */\n// icon?: string\n// }\n\n// // export type ExtensionContext<CT, DT> = {\n// // dependencies: DT,\n// // config: CT,\n// // slots: SlotRegistry\n// // };\n\n// export type ExtensionProvider = () => Extension;\n\n// export type ExtensionProps = {\n// name: string,\n// slots: Slot[],\n// provider: ExtensionProvider\n// };\n\n// export function createExtension<>(props: ExtensionProps) {\n\n// }\n"],"mappings":"AAAA
|
|
1
|
+
{"version":3,"names":[],"sources":["extension.ts"],"sourcesContent":["// // import { Slot, SlotRegistry } from '@teambit/harmony';\n\n// export interface Extension {\n// /**\n// * icon of the extension.\n// */\n// icon?: string\n// }\n\n// // export type ExtensionContext<CT, DT> = {\n// // dependencies: DT,\n// // config: CT,\n// // slots: SlotRegistry\n// // };\n\n// export type ExtensionProvider = () => Extension;\n\n// export type ExtensionProps = {\n// name: string,\n// slots: Slot[],\n// provider: ExtensionProvider\n// };\n\n// export function createExtension<>(props: ExtensionProps) {\n\n// }\n"],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AAAA"}
|
package/dist/hook-require.js
CHANGED
|
@@ -1,42 +1,36 @@
|
|
|
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.hookRequire = hookRequire;
|
|
9
|
-
|
|
10
8
|
function _path() {
|
|
11
9
|
const data = _interopRequireDefault(require("path"));
|
|
12
|
-
|
|
13
10
|
_path = function () {
|
|
14
11
|
return data;
|
|
15
12
|
};
|
|
16
|
-
|
|
17
13
|
return data;
|
|
18
14
|
}
|
|
19
|
-
|
|
20
15
|
function hookRequire() {
|
|
21
16
|
module.constructor.prototype.require = function (id) {
|
|
22
17
|
if (typeof id !== 'string') throw new Error('hookRequire - id must be a string');
|
|
23
|
-
if (!id) throw new Error('hookRequire - missing id');
|
|
18
|
+
if (!id) throw new Error('hookRequire - missing id');
|
|
24
19
|
|
|
20
|
+
// TODO: this should be refactored away to be handled by the dev.
|
|
25
21
|
if (id.endsWith('.scss') || id.endsWith('.css') || id.endsWith('.less') || id === 'reset-css') {
|
|
26
22
|
return {};
|
|
27
|
-
}
|
|
28
|
-
|
|
23
|
+
}
|
|
29
24
|
|
|
25
|
+
// This is a workaround for the issue described here: https://github.com/nodejs/node/issues/44663
|
|
30
26
|
try {
|
|
31
27
|
return this.constructor._load(id, this);
|
|
32
28
|
} catch (firstErr) {
|
|
33
29
|
if (firstErr.code !== 'MODULE_NOT_FOUND') {
|
|
34
30
|
throw firstErr;
|
|
35
31
|
}
|
|
36
|
-
|
|
37
32
|
try {
|
|
38
33
|
const pkgJson = this.constructor._load(_path().default.join(id, 'package.json'), this);
|
|
39
|
-
|
|
40
34
|
if (!pkgJson.main || pkgJson.main === 'index.js') throw firstErr;
|
|
41
35
|
return this.constructor._load(_path().default.join(id, pkgJson.main), this);
|
|
42
36
|
} catch (err) {
|
|
@@ -45,7 +39,6 @@ function hookRequire() {
|
|
|
45
39
|
}
|
|
46
40
|
};
|
|
47
41
|
}
|
|
48
|
-
|
|
49
42
|
hookRequire();
|
|
50
43
|
|
|
51
44
|
//# sourceMappingURL=hook-require.js.map
|
package/dist/hook-require.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["hookRequire","module","constructor","prototype","require","id","Error","endsWith","_load","firstErr","code","pkgJson","path","join","main","err"],"sources":["hook-require.ts"],"sourcesContent":["import path from 'path';\n\nexport function hookRequire() {\n module.constructor.prototype.require = function (id: string) {\n if (typeof id !== 'string') throw new Error('hookRequire - id must be a string');\n if (!id) throw new Error('hookRequire - missing id');\n\n // TODO: this should be refactored away to be handled by the dev.\n if (id.endsWith('.scss') || id.endsWith('.css') || id.endsWith('.less') || id === 'reset-css') {\n return {};\n }\n\n // This is a workaround for the issue described here: https://github.com/nodejs/node/issues/44663\n try {\n return this.constructor._load(id, this);\n } catch (firstErr: any) {\n if (firstErr.code !== 'MODULE_NOT_FOUND') {\n throw firstErr;\n }\n try {\n const pkgJson = this.constructor._load(path.join(id, 'package.json'), this);\n if (!pkgJson.main || pkgJson.main === 'index.js') throw firstErr;\n return this.constructor._load(path.join(id, pkgJson.main), this);\n } catch (err) {\n throw firstErr;\n }\n }\n };\n}\n\nhookRequire();\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["hookRequire","module","constructor","prototype","require","id","Error","endsWith","_load","firstErr","code","pkgJson","path","join","main","err"],"sources":["hook-require.ts"],"sourcesContent":["import path from 'path';\n\nexport function hookRequire() {\n module.constructor.prototype.require = function (id: string) {\n if (typeof id !== 'string') throw new Error('hookRequire - id must be a string');\n if (!id) throw new Error('hookRequire - missing id');\n\n // TODO: this should be refactored away to be handled by the dev.\n if (id.endsWith('.scss') || id.endsWith('.css') || id.endsWith('.less') || id === 'reset-css') {\n return {};\n }\n\n // This is a workaround for the issue described here: https://github.com/nodejs/node/issues/44663\n try {\n return this.constructor._load(id, this);\n } catch (firstErr: any) {\n if (firstErr.code !== 'MODULE_NOT_FOUND') {\n throw firstErr;\n }\n try {\n const pkgJson = this.constructor._load(path.join(id, 'package.json'), this);\n if (!pkgJson.main || pkgJson.main === 'index.js') throw firstErr;\n return this.constructor._load(path.join(id, pkgJson.main), this);\n } catch (err) {\n throw firstErr;\n }\n }\n };\n}\n\nhookRequire();\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,SAASA,WAAW,GAAG;EAC5BC,MAAM,CAACC,WAAW,CAACC,SAAS,CAACC,OAAO,GAAG,UAAUC,EAAU,EAAE;IAC3D,IAAI,OAAOA,EAAE,KAAK,QAAQ,EAAE,MAAM,IAAIC,KAAK,CAAC,mCAAmC,CAAC;IAChF,IAAI,CAACD,EAAE,EAAE,MAAM,IAAIC,KAAK,CAAC,0BAA0B,CAAC;;IAEpD;IACA,IAAID,EAAE,CAACE,QAAQ,CAAC,OAAO,CAAC,IAAIF,EAAE,CAACE,QAAQ,CAAC,MAAM,CAAC,IAAIF,EAAE,CAACE,QAAQ,CAAC,OAAO,CAAC,IAAIF,EAAE,KAAK,WAAW,EAAE;MAC7F,OAAO,CAAC,CAAC;IACX;;IAEA;IACA,IAAI;MACF,OAAO,IAAI,CAACH,WAAW,CAACM,KAAK,CAACH,EAAE,EAAE,IAAI,CAAC;IACzC,CAAC,CAAC,OAAOI,QAAa,EAAE;MACtB,IAAIA,QAAQ,CAACC,IAAI,KAAK,kBAAkB,EAAE;QACxC,MAAMD,QAAQ;MAChB;MACA,IAAI;QACF,MAAME,OAAO,GAAG,IAAI,CAACT,WAAW,CAACM,KAAK,CAACI,eAAI,CAACC,IAAI,CAACR,EAAE,EAAE,cAAc,CAAC,EAAE,IAAI,CAAC;QAC3E,IAAI,CAACM,OAAO,CAACG,IAAI,IAAIH,OAAO,CAACG,IAAI,KAAK,UAAU,EAAE,MAAML,QAAQ;QAChE,OAAO,IAAI,CAACP,WAAW,CAACM,KAAK,CAACI,eAAI,CAACC,IAAI,CAACR,EAAE,EAAEM,OAAO,CAACG,IAAI,CAAC,EAAE,IAAI,CAAC;MAClE,CAAC,CAAC,OAAOC,GAAG,EAAE;QACZ,MAAMN,QAAQ;MAChB;IACF;EACF,CAAC;AACH;AAEAT,WAAW,EAAE"}
|
package/dist/hooks/hook.js
CHANGED
|
@@ -15,14 +15,11 @@ Object.defineProperty(exports, "HookRegistry", {
|
|
|
15
15
|
return _harmony().SlotRegistry;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
|
|
19
18
|
function _harmony() {
|
|
20
19
|
const data = require("@teambit/harmony");
|
|
21
|
-
|
|
22
20
|
_harmony = function () {
|
|
23
21
|
return data;
|
|
24
22
|
};
|
|
25
|
-
|
|
26
23
|
return data;
|
|
27
24
|
}
|
|
28
25
|
|
package/dist/hooks/hook.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["hook.ts"],"sourcesContent":["import { Slot, SlotRegistry } from '@teambit/harmony';\n\nexport { Slot as Hook, SlotRegistry as HookRegistry };\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["hook.ts"],"sourcesContent":["import { Slot, SlotRegistry } from '@teambit/harmony';\n\nexport { Slot as Hook, SlotRegistry as HookRegistry };\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
|
package/dist/hooks/index.js
CHANGED
package/dist/hooks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { Hook, HookRegistry } from './hook';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { Hook, HookRegistry } from './hook';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
|
package/dist/index.js
CHANGED
|
@@ -69,64 +69,46 @@ Object.defineProperty(exports, "registerCoreExtensions", {
|
|
|
69
69
|
return _bitMain().registerCoreExtensions;
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
|
|
73
72
|
function _harmony() {
|
|
74
73
|
const data = require("@teambit/harmony");
|
|
75
|
-
|
|
76
74
|
_harmony = function () {
|
|
77
75
|
return data;
|
|
78
76
|
};
|
|
79
|
-
|
|
80
77
|
return data;
|
|
81
78
|
}
|
|
82
|
-
|
|
83
79
|
function _hooks() {
|
|
84
80
|
const data = require("./hooks");
|
|
85
|
-
|
|
86
81
|
_hooks = function () {
|
|
87
82
|
return data;
|
|
88
83
|
};
|
|
89
|
-
|
|
90
84
|
return data;
|
|
91
85
|
}
|
|
92
|
-
|
|
93
86
|
function _manifests() {
|
|
94
87
|
const data = require("./manifests");
|
|
95
|
-
|
|
96
88
|
_manifests = function () {
|
|
97
89
|
return data;
|
|
98
90
|
};
|
|
99
|
-
|
|
100
91
|
return data;
|
|
101
92
|
}
|
|
102
|
-
|
|
103
93
|
function _bitMain() {
|
|
104
94
|
const data = require("./bit.main.runtime");
|
|
105
|
-
|
|
106
95
|
_bitMain = function () {
|
|
107
96
|
return data;
|
|
108
97
|
};
|
|
109
|
-
|
|
110
98
|
return data;
|
|
111
99
|
}
|
|
112
|
-
|
|
113
100
|
function _bit() {
|
|
114
101
|
const data = require("./bit.aspect");
|
|
115
|
-
|
|
116
102
|
_bit = function () {
|
|
117
103
|
return data;
|
|
118
104
|
};
|
|
119
|
-
|
|
120
105
|
return data;
|
|
121
106
|
}
|
|
122
|
-
|
|
123
107
|
function _loadBit() {
|
|
124
108
|
const data = require("./load-bit");
|
|
125
|
-
|
|
126
109
|
_loadBit = function () {
|
|
127
110
|
return data;
|
|
128
111
|
};
|
|
129
|
-
|
|
130
112
|
return data;
|
|
131
113
|
}
|
|
132
114
|
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { Aspect, RuntimeManifest, RuntimeDefinition } from '@teambit/harmony';\nexport { Hook, HookRegistry } from './hooks';\nexport { manifestsMap, isCoreAspect, getAllCoreAspectsIds } from './manifests';\nexport { registerCoreExtensions } from './bit.main.runtime';\nexport { BitAspect } from './bit.aspect';\nexport type { BitMain } from './bit.main.runtime';\nexport { loadBit } from './load-bit';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { Aspect, RuntimeManifest, RuntimeDefinition } from '@teambit/harmony';\nexport { Hook, HookRegistry } from './hooks';\nexport { manifestsMap, isCoreAspect, getAllCoreAspectsIds } from './manifests';\nexport { registerCoreExtensions } from './bit.main.runtime';\nexport { BitAspect } from './bit.aspect';\nexport type { BitMain } from './bit.main.runtime';\nexport { loadBit } from './load-bit';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;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"}
|