@teambit/aspect-loader 1.0.142 → 1.0.144

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.
@@ -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.142" timestamp="2024-01-21T03:40:54.195Z" tests="1" failures="0" errors="0" skipped="0">
4
- <testcase classname="core-aspects.spec.js" name="should include the namespace in the aspect name" time="0.32"/>
3
+ <testsuite name="teambit.harmony/aspect-loader@1.0.144" 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.032"/>
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={36253:(e,t,o)=>{var r={id:"teambit.harmony/aspect-loader@1.0.142",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(36253);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})()));
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={44972:(e,t,o)=>{var r={id:"teambit.harmony/aspect-loader@1.0.144",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(44972);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
  }
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const Logo: () => JSX.Element;
@@ -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).toEqual('e2e.workspace');
21
+ (0, _chai().expect)(aspectName).to.equal('e2e.workspace');
15
22
  });
16
23
  });
17
24
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_coreAspects","data","require","describe","it","aspectName","getCoreAspectName","expect","toEqual"],"sources":["core-aspects.spec.ts"],"sourcesContent":["import { 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).toEqual('e2e.workspace');\n });\n });\n});\n"],"mappings":";;AAAA,SAAAA,aAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,YAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEAE,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;MACvEC,MAAM,CAACF,UAAU,CAAC,CAACG,OAAO,CAAC,eAAe,CAAC;IAC7C,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
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.142/dist/aspect-loader.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.142/dist/aspect-loader.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.144/dist/aspect-loader.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_aspect-loader@1.0.144/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.142",
3
+ "version": "1.0.144",
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.142"
9
+ "version": "1.0.144"
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.3",
22
+ "@teambit/bvm.config": "0.2.5",
23
23
  "@teambit/bvm.path": "0.1.2",
24
- "@teambit/component": "1.0.142",
25
- "@teambit/bit": "1.6.35",
26
- "@teambit/cli": "0.0.848",
24
+ "@teambit/component": "1.0.144",
25
+ "@teambit/bit": "1.6.37",
26
+ "@teambit/cli": "0.0.849",
27
27
  "@teambit/compilation.modules.babel-compiler": "0.0.139",
28
- "@teambit/envs": "1.0.142",
28
+ "@teambit/envs": "1.0.144",
29
29
  "@teambit/harmony.modules.requireable-component": "0.0.497",
30
- "@teambit/logger": "0.0.941",
31
- "@teambit/scope": "1.0.142",
30
+ "@teambit/logger": "0.0.942",
31
+ "@teambit/scope": "1.0.144",
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
- "@types/jest": "^29.2.2",
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.8",
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",