@teambit/harmony.modules.resolved-component
Advanced tools
Comparing version 0.0.500 to 0.0.501
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ResolvedComponent = void 0; | ||
var resolved_component_1 = require("./resolved-component"); | ||
Object.defineProperty(exports, "ResolvedComponent", { enumerable: true, get: function () { return resolved_component_1.ResolvedComponent; } }); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "ResolvedComponent", { | ||
enumerable: true, | ||
get: function () { | ||
return _resolvedComponent().ResolvedComponent; | ||
} | ||
}); | ||
function _resolvedComponent() { | ||
const data = require("./resolved-component"); | ||
_resolvedComponent = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.ResolvedComponent = void 0; | ||
// TODO: This 2 (component and capsule should be probably an interfaces in the shared types implemented by the actual classes | ||
class ResolvedComponent { | ||
constructor(component, capsule) { | ||
this.component = component; | ||
this.capsule = capsule; | ||
} | ||
require() { | ||
// eslint-disable-next-line global-require, import/no-dynamic-require | ||
return require(this.capsule.path); | ||
} | ||
constructor(component, capsule) { | ||
this.component = component; | ||
this.capsule = capsule; | ||
} | ||
require() { | ||
// eslint-disable-next-line global-require, import/no-dynamic-require | ||
return require(this.capsule.path); | ||
} | ||
} | ||
exports.ResolvedComponent = ResolvedComponent; | ||
//# sourceMappingURL=resolved-component.js.map |
{ | ||
"name": "@teambit/harmony.modules.resolved-component", | ||
"version": "0.0.500", | ||
"version": "0.0.501", | ||
"homepage": "https://bit.cloud/teambit/harmony/modules/resolved-component", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"name": "modules/resolved-component", | ||
"version": "0.0.500" | ||
"version": "0.0.501" | ||
}, | ||
@@ -15,4 +15,4 @@ "dependencies": {}, | ||
"@types/mocha": "9.1.0", | ||
"@types/jest": "26.0.20", | ||
"@types/node": "22.10.5" | ||
"chai": "4.3.0", | ||
"@teambit/node.envs.node-babel-mocha": "0.1.4" | ||
}, | ||
@@ -19,0 +19,0 @@ "peerDependencies": {}, |
@@ -8,8 +8,8 @@ declare module '*.png' { | ||
export const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement> & { title?: string }>; | ||
export const ReactComponent: FunctionComponent< | ||
SVGProps<SVGSVGElement> & { title?: string } | ||
>; | ||
const src: string; | ||
export default src; | ||
} | ||
// @TODO Gilad | ||
declare module '*.jpg' { | ||
@@ -31,1 +31,13 @@ const value: any; | ||
} | ||
declare module '*.otf' { | ||
const value: any; | ||
export = value; | ||
} | ||
declare module '*.woff' { | ||
const value: any; | ||
export = value; | ||
} | ||
declare module '*.woff2' { | ||
const value: any; | ||
export = value; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5767
133
11