@teambit/aspect-loader 1.0.141 → 1.0.143
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/artifacts/__bit_junit.xml +2 -2
- package/artifacts/preview/teambit_harmony_aspect_loader-preview.js +1 -1
- package/dist/aspect-definition.d.ts +7 -7
- package/dist/aspect-loader.composition.d.ts +1 -0
- package/dist/core-aspects.d.ts +2 -2
- package/dist/core-aspects.spec.js +8 -1
- package/dist/core-aspects.spec.js.map +1 -1
- package/dist/{preview-1705720522529.js → preview-1706194779559.js} +2 -2
- package/package.json +15 -14
- package/tsconfig.json +4 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites>
|
|
3
|
-
<testsuite name="teambit.harmony/aspect-loader@1.0.
|
|
4
|
-
<testcase classname="core-aspects.spec.js" name="should include the namespace in the aspect name" time="0.
|
|
3
|
+
<testsuite name="teambit.harmony/aspect-loader@1.0.143" tests="1" failures="0" errors="0" skipped="0">
|
|
4
|
+
<testcase classname="dist/core-aspects.spec.js" name="should include the namespace in the aspect name" time="0.023"/>
|
|
5
5
|
</testsuite>
|
|
6
6
|
</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.harmony/aspect-loader-preview"]=t():e["teambit.harmony/aspect-loader-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.harmony/aspect-loader-preview"]=t():e["teambit.harmony/aspect-loader-preview"]=t()}(self,(()=>(()=>{"use strict";var e={47547:(e,t,o)=>{var r={id:"teambit.harmony/aspect-loader@1.0.143",homepage:"https://bit.cloud/teambit/harmony/aspect-loader",exported:!0};function n(){const e=i(o(87363));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 a=()=>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/aspect-loader.svg"}));a.__bit_component=r,t.Logo=a},87363: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={};return(()=>{o.r(r),o.d(r,{compositions:()=>l,compositions_metadata:()=>f,overview:()=>u});var e={};o.r(e),o.d(e,{default:()=>d});var t=o(47547);o(87363);const n=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var a=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},p.apply(this,arguments)}var c={},s="wrapper";function d(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,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,a);return(0,n.mdx)(s,p({},c,o,{components:t,mdxType:"MDXLayout"}),(0,n.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const l=[t],u=[e],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),r})()));
|
|
@@ -23,15 +23,15 @@ export declare class AspectDefinition {
|
|
|
23
23
|
/**
|
|
24
24
|
* aspect component
|
|
25
25
|
*/
|
|
26
|
-
readonly component?: Component;
|
|
26
|
+
readonly component?: Component | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* id of the component (used instead of component in the case of core aspect)
|
|
29
29
|
*/
|
|
30
|
-
readonly id?: string;
|
|
30
|
+
readonly id?: string | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* aspect defined using 'file://' protocol
|
|
33
33
|
*/
|
|
34
|
-
readonly local?: boolean;
|
|
34
|
+
readonly local?: boolean | undefined;
|
|
35
35
|
constructor(
|
|
36
36
|
/**
|
|
37
37
|
* path to the root directory of the aspect module.
|
|
@@ -48,15 +48,15 @@ export declare class AspectDefinition {
|
|
|
48
48
|
/**
|
|
49
49
|
* aspect component
|
|
50
50
|
*/
|
|
51
|
-
component?: Component,
|
|
51
|
+
component?: Component | undefined,
|
|
52
52
|
/**
|
|
53
53
|
* id of the component (used instead of component in the case of core aspect)
|
|
54
54
|
*/
|
|
55
|
-
id?: string,
|
|
55
|
+
id?: string | undefined,
|
|
56
56
|
/**
|
|
57
57
|
* aspect defined using 'file://' protocol
|
|
58
58
|
*/
|
|
59
|
-
local?: boolean);
|
|
60
|
-
get getId(): string;
|
|
59
|
+
local?: boolean | undefined);
|
|
60
|
+
get getId(): string | null;
|
|
61
61
|
static from({ component, aspectPath, aspectFilePath, runtimePath, id, local }: AspectDefinitionProps): AspectDefinition;
|
|
62
62
|
}
|
package/dist/core-aspects.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare function getCoreAspectPackageName(id: string): string;
|
|
|
11
11
|
export declare function getAspectDef(aspectName: string, runtime?: string): Promise<{
|
|
12
12
|
id: string;
|
|
13
13
|
aspectPath: string;
|
|
14
|
-
aspectFilePath: string;
|
|
15
|
-
runtimePath: string;
|
|
14
|
+
aspectFilePath: string | null;
|
|
15
|
+
runtimePath: string | null;
|
|
16
16
|
}>;
|
|
17
17
|
export {};
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _chai() {
|
|
4
|
+
const data = require("chai");
|
|
5
|
+
_chai = function () {
|
|
6
|
+
return data;
|
|
7
|
+
};
|
|
8
|
+
return data;
|
|
9
|
+
}
|
|
3
10
|
function _coreAspects() {
|
|
4
11
|
const data = require("./core-aspects");
|
|
5
12
|
_coreAspects = function () {
|
|
@@ -11,7 +18,7 @@ describe('core-aspects', () => {
|
|
|
11
18
|
describe('getCoreAspectName', () => {
|
|
12
19
|
it('should include the namespace in the aspect name', () => {
|
|
13
20
|
const aspectName = (0, _coreAspects().getCoreAspectName)('teambit.workspace/e2e/workspace');
|
|
14
|
-
expect(aspectName).
|
|
21
|
+
(0, _chai().expect)(aspectName).to.equal('e2e.workspace');
|
|
15
22
|
});
|
|
16
23
|
});
|
|
17
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_chai","data","require","_coreAspects","describe","it","aspectName","getCoreAspectName","expect","to","equal"],"sources":["core-aspects.spec.ts"],"sourcesContent":["import { expect } from 'chai';\nimport { getCoreAspectName } from './core-aspects';\n\ndescribe('core-aspects', () => {\n describe('getCoreAspectName', () => {\n it('should include the namespace in the aspect name', () => {\n const aspectName = getCoreAspectName('teambit.workspace/e2e/workspace');\n expect(aspectName).to.equal('e2e.workspace');\n });\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,aAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,YAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEAG,QAAQ,CAAC,cAAc,EAAE,MAAM;EAC7BA,QAAQ,CAAC,mBAAmB,EAAE,MAAM;IAClCC,EAAE,CAAC,iDAAiD,EAAE,MAAM;MAC1D,MAAMC,UAAU,GAAG,IAAAC,gCAAiB,EAAC,iCAAiC,CAAC;MACvE,IAAAC,cAAM,EAACF,UAAU,CAAC,CAACG,EAAE,CAACC,KAAK,CAAC,eAAe,CAAC;IAC9C,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.143/dist/aspect-loader.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.143/dist/aspect-loader.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/aspect-loader",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.143",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/aspect-loader",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "aspect-loader",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.143"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"fs-extra": "10.0.0",
|
|
@@ -19,30 +19,30 @@
|
|
|
19
19
|
"@teambit/component-id": "1.2.0",
|
|
20
20
|
"@teambit/graph.cleargraph": "0.0.8",
|
|
21
21
|
"@teambit/node.utils.esm-loader": "0.0.6",
|
|
22
|
-
"@teambit/bvm.config": "0.2.
|
|
22
|
+
"@teambit/bvm.config": "0.2.5",
|
|
23
23
|
"@teambit/bvm.path": "0.1.2",
|
|
24
|
-
"@teambit/component": "1.0.
|
|
25
|
-
"@teambit/bit": "1.6.
|
|
26
|
-
"@teambit/cli": "0.0.
|
|
24
|
+
"@teambit/component": "1.0.143",
|
|
25
|
+
"@teambit/bit": "1.6.36",
|
|
26
|
+
"@teambit/cli": "0.0.849",
|
|
27
27
|
"@teambit/compilation.modules.babel-compiler": "0.0.139",
|
|
28
|
-
"@teambit/envs": "1.0.
|
|
28
|
+
"@teambit/envs": "1.0.143",
|
|
29
29
|
"@teambit/harmony.modules.requireable-component": "0.0.497",
|
|
30
|
-
"@teambit/logger": "0.0.
|
|
31
|
-
"@teambit/scope": "1.0.
|
|
30
|
+
"@teambit/logger": "0.0.942",
|
|
31
|
+
"@teambit/scope": "1.0.143",
|
|
32
32
|
"@teambit/toolbox.performance.v8-cache": "0.0.33"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/fs-extra": "9.0.7",
|
|
36
36
|
"@types/lodash": "4.14.165",
|
|
37
|
+
"@types/chai": "4.2.15",
|
|
38
|
+
"chai": "4.3.0",
|
|
37
39
|
"@types/find-root": "1.1.2",
|
|
38
40
|
"@types/mocha": "9.1.0",
|
|
39
|
-
"@
|
|
40
|
-
"@types/testing-library__jest-dom": "^5.9.5",
|
|
41
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.19"
|
|
41
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.24"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": "^17.0.0 || ^18.0.0",
|
|
45
|
-
"@types/react": "17.0.
|
|
45
|
+
"@types/react": "^17.0.73",
|
|
46
46
|
"@teambit/legacy": "1.0.624"
|
|
47
47
|
},
|
|
48
48
|
"license": "Apache-2.0",
|
|
@@ -57,7 +57,8 @@
|
|
|
57
57
|
"default": "./dist/index.js"
|
|
58
58
|
},
|
|
59
59
|
"./dist/*": "./dist/*",
|
|
60
|
-
"./artifacts/*": "./artifacts/*"
|
|
60
|
+
"./artifacts/*": "./artifacts/*",
|
|
61
|
+
"./*": "./*.ts"
|
|
61
62
|
},
|
|
62
63
|
"private": false,
|
|
63
64
|
"engines": {
|
package/tsconfig.json
CHANGED
|
@@ -17,7 +17,10 @@
|
|
|
17
17
|
"resolveJsonModule": true,
|
|
18
18
|
"allowJs": true,
|
|
19
19
|
"outDir": "dist",
|
|
20
|
-
"emitDeclarationOnly": true
|
|
20
|
+
"emitDeclarationOnly": true,
|
|
21
|
+
"strict": true,
|
|
22
|
+
"strictPropertyInitialization": false,
|
|
23
|
+
"noImplicitAny": false
|
|
21
24
|
},
|
|
22
25
|
"exclude": [
|
|
23
26
|
"artifacts",
|