@teambit/node 0.0.1165 → 0.0.1167
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/env-template/public/{405.918715c1efa35ecb648f.js → 794.183fbb8a100e1cb8d1d9.js} +2 -2
- package/artifacts/env-template/public/assets-manifest.json +13 -13
- package/artifacts/env-template/public/{compositions.a5dec0ba687495b13f1f.js → compositions.af29b144fa40b09243ee.js} +1 -1
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.65a12a6e2011fc2f9612.js → overview.f3995d1f8c3ef5151382.js} +2 -2
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/peers.b3cc3c515d61d12acdcf.js +1 -0
- package/artifacts/env-template/public/{preview-root.90c91439406e85cfcb8f.js → preview-root.3571f9102ffecafa7bb0.js} +2 -2
- package/dist/node.application.js +1 -1
- package/dist/node.application.js.map +1 -1
- package/dist/node.env.js +2 -2
- package/dist/node.env.js.map +1 -1
- package/dist/{preview-1695007069502.js → preview-1695053895626.js} +2 -2
- package/package.json +18 -18
- package/artifacts/env-template/public/peers.fd22021a3b0ef8ab6688.js +0 -1
- /package/artifacts/env-template/public/static/css/{405.924bbb41.css → 794.924bbb41.css} +0 -0
- /package/{compositions-1695007069502.js → compositions-1695053895626.js} +0 -0
- /package/{overview-1695007069502.js → overview-1695053895626.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Preview</title><script>// Allow to use react dev-tools inside the examples
|
|
2
|
-
try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}</script><style>body { margin: 0; }</style><script defer="defer" src="244.23981efc3a92f81df93b.js"></script><script defer="defer" src="peers.
|
|
2
|
+
try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}</script><style>body { margin: 0; }</style><script defer="defer" src="244.23981efc3a92f81df93b.js"></script><script defer="defer" src="peers.b3cc3c515d61d12acdcf.js"></script><script defer="defer" src="794.183fbb8a100e1cb8d1d9.js"></script><script defer="defer" src="preview-root.3571f9102ffecafa7bb0.js"></script><script defer="defer" src="compositions.af29b144fa40b09243ee.js"></script><script defer="defer" src="overview.f3995d1f8c3ef5151382.js"></script><link href="static/css/794.924bbb41.css" rel="stylesheet"><link href="static/css/compositions.e163efe5.css" rel="stylesheet"><link href="static/css/503.3a84acb5.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var __webpack_modules__={68822:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__2)=>{var react__WEBPACK_IMPORTED_MODULE_2___namespace_cache,react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache,_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__2(38168),_mdx_js_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__2(3905),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__2(67294),react_dom__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__2(73935);const globalObj=window;guard("TeambitMdxUiMdxScopeContext",_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_0__),guard("MdxJsReact",_mdx_js_react__WEBPACK_IMPORTED_MODULE_1__),guard("React",react__WEBPACK_IMPORTED_MODULE_2___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_2___namespace_cache=__webpack_require__2.t(react__WEBPACK_IMPORTED_MODULE_2__,2))),guard("ReactDom",react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache||(react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache=__webpack_require__2.t(react_dom__WEBPACK_IMPORTED_MODULE_3__,2))),globalObj.TeambitMdxUiMdxScopeContext=_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_0__,globalObj.MdxJsReact=_mdx_js_react__WEBPACK_IMPORTED_MODULE_1__,globalObj.React=react__WEBPACK_IMPORTED_MODULE_2___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_2___namespace_cache=__webpack_require__2.t(react__WEBPACK_IMPORTED_MODULE_2__,2)),globalObj.ReactDom=react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache||(react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache=__webpack_require__2.t(react_dom__WEBPACK_IMPORTED_MODULE_3__,2));function guard(property,expected){var existing=globalObj[property];if(existing===expected&&expected!==void 0)console.warn('[expose-peers] "'+property+'" already exists in global scope, but with correct value');else if(existing!==void 0)throw new Error('[expose-peers] "'+property+'" already exists in the global scope, cannot overwrite')}}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(cachedModule!==void 0)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,(()=>{var deferred=[];__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(chunkIds){priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority];return}for(var notFulfilled=1/0,i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(priority&!1||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every(key=>__webpack_require__.O[key](chunkIds[j]))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();r!==void 0&&(result=r)}}return result}})(),__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},(()=>{var getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,leafPrototypes;__webpack_require__.t=function(value,mode){if(mode&1&&(value=this(value)),mode&8||typeof value=="object"&&value&&(mode&4&&value.__esModule||mode&16&&typeof value.then=="function"))return value;var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=mode&2&&value;typeof current=="object"&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach(key=>def[key]=()=>value[key]);return def.default=()=>value,__webpack_require__.d(ns,def),ns}})(),__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.r=exports=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),(()=>{var installedChunks={703:0,503:0};__webpack_require__.O.j=chunkId=>installedChunks[chunkId]===0;var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var[chunkIds,moreModules,runtime]=data,moduleId,chunkId,i=0;if(chunkIds.some(id=>installedChunks[id]!==0)){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})();var __webpack_exports__=__webpack_require__.O(void 0,[244],()=>__webpack_require__(68822));__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[629],{58225:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(34155),Buffer=__webpack_require__(48764).Buffer;Object.defineProperty(exports,"__esModule",{value:!0}),exports.auto=auto,exports.cr=cr,exports.crlf=crlf,exports.lf=lf
|
|
1
|
+
(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[629],{58225:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(34155),Buffer=__webpack_require__(48764).Buffer;__webpack_require__(74916),__webpack_require__(15306),Object.defineProperty(exports,"__esModule",{value:!0}),exports.auto=auto,exports.cr=cr,exports.crlf=crlf,exports.lf=lf;function _isbinaryfile(){const data=__webpack_require__(88954);return _isbinaryfile=function(){return data},data}const lineBreak=typeof process<"u"&&process.platform==="win32"?`\r
|
|
2
2
|
`:`
|
|
3
3
|
`,newline=/\r\n|\r|\n/g;function converts(text,to){if(Buffer.isBuffer(text)){if((0,_isbinaryfile().isBinaryFileSync)(text))return text;const str=text.toString(),strReplaced=str.replace(newline,to);return str!==strReplaced?Buffer.from(strReplaced):text}return text.toString().replace(newline,to)}function lf(text){return converts(text,`
|
|
4
4
|
`)}function auto(text){return converts(text,lineBreak)}function cr(text){return converts(text,"\r")}function crlf(text){return converts(text,`\r
|
|
5
|
-
`)}},30755:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getLatestVersion=getLatestVersion,exports.getValidVersionOrReleaseType=getValidVersionOrReleaseType,exports.isReleaseTypeSupported=isReleaseTypeSupported,exports.isStrReleaseType=isStrReleaseType,exports.throwForUnsupportedReleaseType=throwForUnsupportedReleaseType,exports.validateVersion=validateVersion;function _semver(){const data=__webpack_require__(81249);return _semver=function(){return data},data}function _componentVersion(){const data=__webpack_require__(8886);return _componentVersion=function(){return data},data}function isStrReleaseType(str){return["major","premajor","minor","preminor","patch","prepatch","prerelease"].includes(str)}function isReleaseTypeSupported(str){return["patch","minor","major","prerelease"].includes(str)}function throwForUnsupportedReleaseType(str){if(!isReleaseTypeSupported(str))throw new Error(`the release-type "${str}" is not supported`)}function validateVersion(version){if(version){const validVersion=(0,_semver().valid)(version);if(!validVersion)throw new(_componentVersion()).InvalidVersion(version);return validVersion}}function getValidVersionOrReleaseType(str){if(isStrReleaseType(str)){const releaseType=str;return throwForUnsupportedReleaseType(releaseType),{releaseType}}return{exactVersion:validateVersion(str)}}function getLatestVersion(versions){const max=(0,_semver().maxSatisfying)(versions,"*",{includePrerelease:!0});if(!max)throw new Error(`unable to find the latest version from ${versions.join(", ")}`);return max}},591:()=>{},74112:()=>{},24654:()=>{},52361:()=>{},94616:()=>{}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[
|
|
5
|
+
`)}},30755:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getLatestVersion=getLatestVersion,exports.getValidVersionOrReleaseType=getValidVersionOrReleaseType,exports.isReleaseTypeSupported=isReleaseTypeSupported,exports.isStrReleaseType=isStrReleaseType,exports.throwForUnsupportedReleaseType=throwForUnsupportedReleaseType,exports.validateVersion=validateVersion;function _semver(){const data=__webpack_require__(81249);return _semver=function(){return data},data}function _componentVersion(){const data=__webpack_require__(8886);return _componentVersion=function(){return data},data}function isStrReleaseType(str){return["major","premajor","minor","preminor","patch","prepatch","prerelease"].includes(str)}function isReleaseTypeSupported(str){return["patch","minor","major","prerelease"].includes(str)}function throwForUnsupportedReleaseType(str){if(!isReleaseTypeSupported(str))throw new Error(`the release-type "${str}" is not supported`)}function validateVersion(version){if(version){const validVersion=(0,_semver().valid)(version);if(!validVersion)throw new(_componentVersion()).InvalidVersion(version);return validVersion}}function getValidVersionOrReleaseType(str){if(isStrReleaseType(str)){const releaseType=str;return throwForUnsupportedReleaseType(releaseType),{releaseType}}return{exactVersion:validateVersion(str)}}function getLatestVersion(versions){const max=(0,_semver().maxSatisfying)(versions,"*",{includePrerelease:!0});if(!max)throw new Error(`unable to find the latest version from ${versions.join(", ")}`);return max}},591:()=>{},74112:()=>{},24654:()=>{},52361:()=>{},94616:()=>{}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[794,244],()=>__webpack_exec__(84941));var __webpack_exports__=__webpack_require__.O()}]);
|
package/dist/node.application.js
CHANGED
|
@@ -50,7 +50,7 @@ class NodeApp {
|
|
|
50
50
|
throw error;
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
-
(_child$stdout = child.stdout) === null || _child$stdout === void 0
|
|
53
|
+
(_child$stdout = child.stdout) === null || _child$stdout === void 0 ? void 0 : _child$stdout.on('data', function (data) {
|
|
54
54
|
logger.console(data.toString());
|
|
55
55
|
});
|
|
56
56
|
return port;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_child_process","data","require","_path","_toolboxNetwork","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","NodeApp","constructor","name","entry","portRange","nodeEnv","logger","deploy","run","context","_child$stdout","from","to","port","Port","getPort","child","execFile","toString","error","stdout","on","console","build","base","parse","distDir","getCompiler","mainFile","join","_context","assign","exports"],"sources":["node.application.ts"],"sourcesContent":["import { execFile } from 'child_process';\nimport { parse, join } from 'path';\nimport { Logger } from '@teambit/logger';\nimport { ReactEnv } from '@teambit/react';\nimport { Application, DeployFn, AppBuildContext, AppContext } from '@teambit/application';\nimport { Port } from '@teambit/toolbox.network.get-port';\nimport { NodeEnv } from './node.env';\nimport { DeployContext } from './node-app-options';\n\nexport class NodeApp implements Application {\n constructor(\n readonly name: string,\n readonly entry: string,\n readonly portRange: number[],\n readonly nodeEnv: NodeEnv & ReactEnv,\n readonly logger: Logger,\n readonly deploy?: DeployFn\n ) {}\n\n applicationType = 'node';\n\n async run(context: AppContext): Promise<number | undefined> {\n const logger = this.logger;\n const [from, to] = this.portRange;\n const port = context.port || (await Port.getPort(from, to));\n const child = execFile('node', [this.entry, port.toString()], (error) => {\n if (error) {\n // @todo: this is causing uncaughtException in the main process. a better way to handle this would be to use promise.\n // however, since it expects to return a number, it would require a bigger refactor.\n throw error;\n }\n });\n child.stdout?.on('data', function (data) {\n logger.console(data.toString());\n });\n return port;\n }\n\n async build(context: AppBuildContext): Promise<DeployContext> {\n const { base } = parse(this.entry);\n const { distDir } = this.nodeEnv.getCompiler();\n const mainFile = join(distDir, base);\n const _context = Object.assign(context, { mainFile });\n return _context;\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAIA,SAAAG,gBAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,eAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAyD,SAAAI,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,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MS,IAAI,GAAGJ,OAAO,CAACI,IAAI,KAAK,MAAMC,sBAAI,CAACC,OAAO,CAACJ,IAAI,EAAEC,EAAE,CAAC,CAAC;IAC3D,MAAMI,KAAK,GAAG,IAAAC,yBAAQ,EAAC,MAAM,EAAE,CAAC,IAAI,CAACd,KAAK,EAAEU,IAAI,CAACK,QAAQ,CAAC,CAAC,CAAC,EAAGC,KAAK,IAAK;MACvE,IAAIA,KAAK,EAAE;QACT;QACA;QACA,MAAMA,KAAK;MACb;IACF,CAAC,CAAC;IACF,CAAAT,aAAA,GAAAM,KAAK,CAACI,MAAM,cAAAV,aAAA,
|
|
1
|
+
{"version":3,"names":["_child_process","data","require","_path","_toolboxNetwork","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","NodeApp","constructor","name","entry","portRange","nodeEnv","logger","deploy","run","context","_child$stdout","from","to","port","Port","getPort","child","execFile","toString","error","stdout","on","console","build","base","parse","distDir","getCompiler","mainFile","join","_context","assign","exports"],"sources":["node.application.ts"],"sourcesContent":["import { execFile } from 'child_process';\nimport { parse, join } from 'path';\nimport { Logger } from '@teambit/logger';\nimport { ReactEnv } from '@teambit/react';\nimport { Application, DeployFn, AppBuildContext, AppContext } from '@teambit/application';\nimport { Port } from '@teambit/toolbox.network.get-port';\nimport { NodeEnv } from './node.env';\nimport { DeployContext } from './node-app-options';\n\nexport class NodeApp implements Application {\n constructor(\n readonly name: string,\n readonly entry: string,\n readonly portRange: number[],\n readonly nodeEnv: NodeEnv & ReactEnv,\n readonly logger: Logger,\n readonly deploy?: DeployFn\n ) {}\n\n applicationType = 'node';\n\n async run(context: AppContext): Promise<number | undefined> {\n const logger = this.logger;\n const [from, to] = this.portRange;\n const port = context.port || (await Port.getPort(from, to));\n const child = execFile('node', [this.entry, port.toString()], (error) => {\n if (error) {\n // @todo: this is causing uncaughtException in the main process. a better way to handle this would be to use promise.\n // however, since it expects to return a number, it would require a bigger refactor.\n throw error;\n }\n });\n child.stdout?.on('data', function (data) {\n logger.console(data.toString());\n });\n return port;\n }\n\n async build(context: AppBuildContext): Promise<DeployContext> {\n const { base } = parse(this.entry);\n const { distDir } = this.nodeEnv.getCompiler();\n const mainFile = join(distDir, base);\n const _context = Object.assign(context, { mainFile });\n return _context;\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAIA,SAAAG,gBAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,eAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAyD,SAAAI,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GA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C,CAAC,CAAC;IACF,OAAOL,IAAI;EACb;EAEA,MAAMU,KAAKA,CAACd,OAAwB,EAA0B;IAC5D,MAAM;MAAEe;IAAK,CAAC,GAAG,IAAAC,aAAK,EAAC,IAAI,CAACtB,KAAK,CAAC;IAClC,MAAM;MAAEuB;IAAQ,CAAC,GAAG,IAAI,CAACrB,OAAO,CAACsB,WAAW,CAAC,CAAC;IAC9C,MAAMC,QAAQ,GAAG,IAAAC,YAAI,EAACH,OAAO,EAAEF,IAAI,CAAC;IACpC,MAAMM,QAAQ,GAAGhD,MAAM,CAACiD,MAAM,CAACtB,OAAO,EAAE;MAAEmB;IAAS,CAAC,CAAC;IACrD,OAAOE,QAAQ;EACjB;AACF;AAACE,OAAA,CAAAhC,OAAA,GAAAA,OAAA"}
|
package/dist/node.env.js
CHANGED
|
@@ -41,8 +41,8 @@ class NodeEnv {
|
|
|
41
41
|
*/
|
|
42
42
|
getBuildPipe(modifiers = {}) {
|
|
43
43
|
var _modifiers$tsModifier, _modifiers$tsModifier2;
|
|
44
|
-
const tsTransformers = (modifiers === null || modifiers === void 0
|
|
45
|
-
const compilerTask = this.reactAspect.reactEnv.getCjsCompilerTask(tsTransformers, modifiers === null || modifiers === void 0
|
|
44
|
+
const tsTransformers = (modifiers === null || modifiers === void 0 ? void 0 : (_modifiers$tsModifier = modifiers.tsModifier) === null || _modifiers$tsModifier === void 0 ? void 0 : _modifiers$tsModifier.transformers) || [];
|
|
45
|
+
const compilerTask = this.reactAspect.reactEnv.getCjsCompilerTask(tsTransformers, modifiers === null || modifiers === void 0 ? void 0 : (_modifiers$tsModifier2 = modifiers.tsModifier) === null || _modifiers$tsModifier2 === void 0 ? void 0 : _modifiers$tsModifier2.module);
|
|
46
46
|
const pipeWithoutCompiler = this.reactAspect.reactEnv.getBuildPipeWithoutCompiler();
|
|
47
47
|
return [compilerTask, ...pipeWithoutCompiler];
|
|
48
48
|
}
|
package/dist/node.env.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_preview","data","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","NodeEnvType","exports","NodeEnv","constructor","tsAspect","reactAspect","getDependencies","devDependencies","getCompiler","transformers","tsModule","reactEnv","getTsCjsCompiler","getBuildPipe","modifiers","_modifiers$tsModifier","_modifiers$tsModifier2","tsTransformers","tsModifier","compilerTask","getCjsCompilerTask","module","pipeWithoutCompiler","getBuildPipeWithoutCompiler","getTester","jestConfigPath","jestModulePath","config","resolve","getCjsJestTester","getPreviewConfig","strategyName","COMPONENT_PREVIEW_STRATEGY_NAME","splitComponentBundle","getPackageJsonProps","getCjsPackageJsonProps","getSchemaExtractor","tsconfig","tsserverPath","contextPath","createSchemaExtractor","getTsConfig","__getDescriptor","type"],"sources":["node.env.ts"],"sourcesContent":["import { DependenciesEnv, PackageEnv, PipeServiceModifier, PipeServiceModifiersMap } from '@teambit/envs';\nimport { VariantPolicyConfigObject } from '@teambit/dependency-resolver';\nimport { TsConfigTransformer, TypescriptMain } from '@teambit/typescript';\nimport { ReactMain } from '@teambit/react';\nimport { Tester } from '@teambit/tester';\nimport { BuildTask } from '@teambit/builder';\nimport { COMPONENT_PREVIEW_STRATEGY_NAME, PreviewStrategyName } from '@teambit/preview';\nimport { SchemaExtractor } from '@teambit/schema';\nimport { TsConfigSourceFile } from 'typescript';\n\nexport const NodeEnvType = 'node';\n\ntype GetBuildPipeModifiers = PipeServiceModifiersMap & {\n tsModifier?: PipeServiceModifier;\n};\nexport class NodeEnv implements DependenciesEnv, PackageEnv {\n constructor(protected tsAspect: TypescriptMain, protected reactAspect: ReactMain) {}\n\n icon = 'https://static.bit.dev/extensions-icons/nodejs.svg';\n\n getDependencies(): VariantPolicyConfigObject {\n return {\n devDependencies: {\n '@types/jest': '26.0.20',\n '@types/node': '12.20.4',\n // This is added as dev dep since our jest file transformer uses babel plugins that require this to be installed\n '@babel/runtime': '7.20.0',\n },\n };\n }\n\n getCompiler(transformers: TsConfigTransformer[] = [], tsModule) {\n return this.reactAspect.reactEnv.getTsCjsCompiler('dev', transformers, tsModule);\n }\n\n /**\n * returns the component build pipeline.\n */\n getBuildPipe(modifiers: GetBuildPipeModifiers = {}): BuildTask[] {\n const tsTransformers: TsConfigTransformer[] =\n (modifiers?.tsModifier?.transformers as any as TsConfigTransformer[]) || [];\n const compilerTask = this.reactAspect.reactEnv.getCjsCompilerTask(tsTransformers, modifiers?.tsModifier?.module);\n\n const pipeWithoutCompiler = this.reactAspect.reactEnv.getBuildPipeWithoutCompiler();\n return [compilerTask, ...pipeWithoutCompiler];\n }\n\n /**\n * returns a component tester.\n */\n getTester(jestConfigPath: string, jestModulePath?: string): Tester {\n const config = jestConfigPath || require.resolve('./jest/jest.config');\n return this.reactAspect.reactEnv.getCjsJestTester(config, jestModulePath);\n }\n\n getPreviewConfig() {\n return {\n strategyName: COMPONENT_PREVIEW_STRATEGY_NAME as PreviewStrategyName,\n splitComponentBundle: false,\n };\n }\n\n getPackageJsonProps() {\n return this.tsAspect.getCjsPackageJsonProps();\n }\n\n getSchemaExtractor(tsconfig: TsConfigSourceFile, tsserverPath?: string, contextPath?: string): SchemaExtractor {\n return this.tsAspect.createSchemaExtractor(\n this.reactAspect.reactEnv.getTsConfig(tsconfig),\n tsserverPath,\n contextPath\n );\n }\n\n async __getDescriptor() {\n return {\n type: NodeEnvType,\n };\n }\n}\n"],"mappings":";;;;;;AAMA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAwF,SAAAE,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GA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AC,qBAAA,EAAAC,sBAAA;IAC/D,MAAMC,cAAqC,GACzC,CAACH,SAAS,aAATA,SAAS,
|
|
1
|
+
{"version":3,"names":["_preview","data","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","NodeEnvType","exports","NodeEnv","constructor","tsAspect","reactAspect","getDependencies","devDependencies","getCompiler","transformers","tsModule","reactEnv","getTsCjsCompiler","getBuildPipe","modifiers","_modifiers$tsModifier","_modifiers$tsModifier2","tsTransformers","tsModifier","compilerTask","getCjsCompilerTask","module","pipeWithoutCompiler","getBuildPipeWithoutCompiler","getTester","jestConfigPath","jestModulePath","config","resolve","getCjsJestTester","getPreviewConfig","strategyName","COMPONENT_PREVIEW_STRATEGY_NAME","splitComponentBundle","getPackageJsonProps","getCjsPackageJsonProps","getSchemaExtractor","tsconfig","tsserverPath","contextPath","createSchemaExtractor","getTsConfig","__getDescriptor","type"],"sources":["node.env.ts"],"sourcesContent":["import { DependenciesEnv, PackageEnv, PipeServiceModifier, PipeServiceModifiersMap } from '@teambit/envs';\nimport { VariantPolicyConfigObject } from '@teambit/dependency-resolver';\nimport { TsConfigTransformer, TypescriptMain } from '@teambit/typescript';\nimport { ReactMain } from '@teambit/react';\nimport { Tester } from '@teambit/tester';\nimport { BuildTask } from '@teambit/builder';\nimport { COMPONENT_PREVIEW_STRATEGY_NAME, PreviewStrategyName } from '@teambit/preview';\nimport { SchemaExtractor } from '@teambit/schema';\nimport { TsConfigSourceFile } from 'typescript';\n\nexport const NodeEnvType = 'node';\n\ntype GetBuildPipeModifiers = PipeServiceModifiersMap & {\n tsModifier?: PipeServiceModifier;\n};\nexport class NodeEnv implements DependenciesEnv, PackageEnv {\n constructor(protected tsAspect: TypescriptMain, protected reactAspect: ReactMain) {}\n\n icon = 'https://static.bit.dev/extensions-icons/nodejs.svg';\n\n getDependencies(): VariantPolicyConfigObject {\n return {\n devDependencies: {\n '@types/jest': '26.0.20',\n '@types/node': '12.20.4',\n // This is added as dev dep since our jest file transformer uses babel plugins that require this to be installed\n '@babel/runtime': '7.20.0',\n },\n };\n }\n\n getCompiler(transformers: TsConfigTransformer[] = [], tsModule) {\n return this.reactAspect.reactEnv.getTsCjsCompiler('dev', transformers, tsModule);\n }\n\n /**\n * returns the component build pipeline.\n */\n getBuildPipe(modifiers: GetBuildPipeModifiers = {}): BuildTask[] {\n const tsTransformers: TsConfigTransformer[] =\n (modifiers?.tsModifier?.transformers as any as TsConfigTransformer[]) || [];\n const compilerTask = this.reactAspect.reactEnv.getCjsCompilerTask(tsTransformers, modifiers?.tsModifier?.module);\n\n const pipeWithoutCompiler = this.reactAspect.reactEnv.getBuildPipeWithoutCompiler();\n return [compilerTask, ...pipeWithoutCompiler];\n }\n\n /**\n * returns a component tester.\n */\n getTester(jestConfigPath: string, jestModulePath?: string): Tester {\n const config = jestConfigPath || require.resolve('./jest/jest.config');\n return this.reactAspect.reactEnv.getCjsJestTester(config, jestModulePath);\n }\n\n getPreviewConfig() {\n return {\n strategyName: COMPONENT_PREVIEW_STRATEGY_NAME as PreviewStrategyName,\n splitComponentBundle: false,\n };\n }\n\n getPackageJsonProps() {\n return this.tsAspect.getCjsPackageJsonProps();\n }\n\n getSchemaExtractor(tsconfig: TsConfigSourceFile, tsserverPath?: string, contextPath?: string): SchemaExtractor {\n return this.tsAspect.createSchemaExtractor(\n this.reactAspect.reactEnv.getTsConfig(tsconfig),\n tsserverPath,\n contextPath\n );\n }\n\n async __getDescriptor() {\n return {\n type: NodeEnvType,\n };\n }\n}\n"],"mappings":";;;;;;AAMA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAwF,SAAAE,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAA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AAQ,CAAC,EAC/CC,YAAY,EACZC,WACF,CAAC;EACH;EAEA,MAAMG,eAAeA,CAAA,EAAG;IACtB,OAAO;MACLC,IAAI,EAAE3C;IACR,CAAC;EACH;AACF;AAACC,OAAA,CAAAC,OAAA,GAAAA,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_node@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_node@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_node@0.0.1167/dist/node.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_node@0.0.1167/dist/node.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/node",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1167",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/node",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "node",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.1167"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"typescript": "4.7.4",
|
|
@@ -14,23 +14,23 @@
|
|
|
14
14
|
"jest-environment-node": "27.5.1",
|
|
15
15
|
"@teambit/harmony": "0.4.6",
|
|
16
16
|
"@teambit/design.ui.empty-box": "0.0.363",
|
|
17
|
-
"@teambit/application": "0.0.
|
|
18
|
-
"@teambit/logger": "0.0.
|
|
19
|
-
"@teambit/react": "0.0.
|
|
17
|
+
"@teambit/application": "0.0.809",
|
|
18
|
+
"@teambit/logger": "0.0.871",
|
|
19
|
+
"@teambit/react": "0.0.1167",
|
|
20
20
|
"@teambit/toolbox.network.get-port": "1.0.0",
|
|
21
|
-
"@teambit/builder": "0.0.
|
|
22
|
-
"@teambit/dependency-resolver": "0.0.
|
|
23
|
-
"@teambit/envs": "0.0.
|
|
24
|
-
"@teambit/preview": "0.0.
|
|
25
|
-
"@teambit/schema": "0.0.
|
|
26
|
-
"@teambit/tester": "0.0.
|
|
27
|
-
"@teambit/typescript": "0.0.
|
|
28
|
-
"@teambit/cli": "0.0.
|
|
29
|
-
"@teambit/compiler": "0.0.
|
|
30
|
-
"@teambit/generator": "0.0.
|
|
31
|
-
"@teambit/pkg": "0.0.
|
|
32
|
-
"@teambit/compositions": "0.0.
|
|
33
|
-
"@teambit/ui": "0.0.
|
|
21
|
+
"@teambit/builder": "0.0.1167",
|
|
22
|
+
"@teambit/dependency-resolver": "0.0.1167",
|
|
23
|
+
"@teambit/envs": "0.0.1167",
|
|
24
|
+
"@teambit/preview": "0.0.1167",
|
|
25
|
+
"@teambit/schema": "0.0.1167",
|
|
26
|
+
"@teambit/tester": "0.0.1167",
|
|
27
|
+
"@teambit/typescript": "0.0.1167",
|
|
28
|
+
"@teambit/cli": "0.0.778",
|
|
29
|
+
"@teambit/compiler": "0.0.1167",
|
|
30
|
+
"@teambit/generator": "0.0.1167",
|
|
31
|
+
"@teambit/pkg": "0.0.1167",
|
|
32
|
+
"@teambit/compositions": "0.0.1167",
|
|
33
|
+
"@teambit/ui": "0.0.1167"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/react": "^17.0.8",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{"use strict";var __webpack_modules__={4576:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__2)=>{var react__WEBPACK_IMPORTED_MODULE_2___namespace_cache,react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache,_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__2(38168),_mdx_js_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__2(3905),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__2(67294),react_dom__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__2(73935);const globalObj=window;guard("TeambitMdxUiMdxScopeContext",_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_0__),guard("MdxJsReact",_mdx_js_react__WEBPACK_IMPORTED_MODULE_1__),guard("React",react__WEBPACK_IMPORTED_MODULE_2___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_2___namespace_cache=__webpack_require__2.t(react__WEBPACK_IMPORTED_MODULE_2__,2))),guard("ReactDom",react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache||(react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache=__webpack_require__2.t(react_dom__WEBPACK_IMPORTED_MODULE_3__,2))),globalObj.TeambitMdxUiMdxScopeContext=_teambit_mdx_ui_mdx_scope_context__WEBPACK_IMPORTED_MODULE_0__,globalObj.MdxJsReact=_mdx_js_react__WEBPACK_IMPORTED_MODULE_1__,globalObj.React=react__WEBPACK_IMPORTED_MODULE_2___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_2___namespace_cache=__webpack_require__2.t(react__WEBPACK_IMPORTED_MODULE_2__,2)),globalObj.ReactDom=react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache||(react_dom__WEBPACK_IMPORTED_MODULE_3___namespace_cache=__webpack_require__2.t(react_dom__WEBPACK_IMPORTED_MODULE_3__,2));function guard(property,expected){var existing=globalObj[property];if(existing===expected&&expected!==void 0)console.warn('[expose-peers] "'+property+'" already exists in global scope, but with correct value');else if(existing!==void 0)throw new Error('[expose-peers] "'+property+'" already exists in the global scope, cannot overwrite')}}},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(cachedModule!==void 0)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,(()=>{var deferred=[];__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(chunkIds){priority=priority||0;for(var i=deferred.length;i>0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority];return}for(var notFulfilled=1/0,i=0;i<deferred.length;i++){for(var[chunkIds,fn,priority]=deferred[i],fulfilled=!0,j=0;j<chunkIds.length;j++)(priority&!1||notFulfilled>=priority)&&Object.keys(__webpack_require__.O).every(key=>__webpack_require__.O[key](chunkIds[j]))?chunkIds.splice(j--,1):(fulfilled=!1,priority<notFulfilled&&(notFulfilled=priority));if(fulfilled){deferred.splice(i--,1);var r=fn();r!==void 0&&(result=r)}}return result}})(),__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},(()=>{var getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,leafPrototypes;__webpack_require__.t=function(value,mode){if(mode&1&&(value=this(value)),mode&8||typeof value=="object"&&value&&(mode&4&&value.__esModule||mode&16&&typeof value.then=="function"))return value;var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=mode&2&&value;typeof current=="object"&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach(key=>def[key]=()=>value[key]);return def.default=()=>value,__webpack_require__.d(ns,def),ns}})(),__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),__webpack_require__.r=exports=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),(()=>{var installedChunks={703:0,503:0};__webpack_require__.O.j=chunkId=>installedChunks[chunkId]===0;var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var[chunkIds,moreModules,runtime]=data,moduleId,chunkId,i=0;if(chunkIds.some(id=>installedChunks[id]!==0)){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i<chunkIds.length;i++)chunkId=chunkIds[i],__webpack_require__.o(installedChunks,chunkId)&&installedChunks[chunkId]&&installedChunks[chunkId][0](),installedChunks[chunkId]=0;return __webpack_require__.O(result)},chunkLoadingGlobal=self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[];chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null,0)),chunkLoadingGlobal.push=webpackJsonpCallback.bind(null,chunkLoadingGlobal.push.bind(chunkLoadingGlobal))})();var __webpack_exports__=__webpack_require__.O(void 0,[244],()=>__webpack_require__(4576));__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|