@rsdoctor/sdk 1.3.1 → 1.3.3

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.
@@ -9,7 +9,7 @@ export const __webpack_ids__ = [
9
9
  ];
10
10
  export const __webpack_modules__ = {
11
11
  "../../node_modules/.pnpm/open@10.2.0/node_modules/open/index.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
12
- let isDockerCached, cachedResult;
12
+ let isDockerCached, cachedResult, mountPoint, defaultMountPoint;
13
13
  __webpack_require__.d(__webpack_exports__, {
14
14
  default: ()=>node_modules_open
15
15
  });
@@ -43,21 +43,18 @@ export const __webpack_modules__ = {
43
43
  } catch {
44
44
  return !1;
45
45
  }
46
- }, is_wsl = node_process.env.__IS_WSL_TEST__ ? isWsl : isWsl(), wslDrivesMountPoint = (()=>{
47
- let mountPoint, defaultMountPoint = '/mnt/';
48
- return async function() {
49
- if (mountPoint) return mountPoint;
50
- let configFilePath = '/etc/wsl.conf', isConfigFileExists = !1;
51
- try {
52
- await promises.access(configFilePath, constants.F_OK), isConfigFileExists = !0;
53
- } catch {}
54
- if (!isConfigFileExists) return defaultMountPoint;
55
- let configContent = await promises.readFile(configFilePath, {
56
- encoding: 'utf8'
57
- }), configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
58
- return configMountPoint ? mountPoint = (mountPoint = configMountPoint.groups.mountPoint.trim()).endsWith('/') ? mountPoint : `${mountPoint}/` : defaultMountPoint;
59
- };
60
- })(), powerShellPathFromWsl = async ()=>{
46
+ }, is_wsl = node_process.env.__IS_WSL_TEST__ ? isWsl : isWsl(), wslDrivesMountPoint = (defaultMountPoint = '/mnt/', async function() {
47
+ if (mountPoint) return mountPoint;
48
+ let configFilePath = '/etc/wsl.conf', isConfigFileExists = !1;
49
+ try {
50
+ await promises.access(configFilePath, constants.F_OK), isConfigFileExists = !0;
51
+ } catch {}
52
+ if (!isConfigFileExists) return defaultMountPoint;
53
+ let configContent = await promises.readFile(configFilePath, {
54
+ encoding: 'utf8'
55
+ }), configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
56
+ return configMountPoint ? mountPoint = (mountPoint = configMountPoint.groups.mountPoint.trim()).endsWith('/') ? mountPoint : `${mountPoint}/` : defaultMountPoint;
57
+ }), powerShellPathFromWsl = async ()=>{
61
58
  let mountPoint = await wslDrivesMountPoint();
62
59
  return `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`;
63
60
  }, powerShellPath = async ()=>is_wsl ? powerShellPathFromWsl() : `${node_process.env.SYSTEMROOT || node_process.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
@@ -282,8 +279,7 @@ export const __webpack_modules__ = {
282
279
  let subprocess = external_node_child_process_.default.spawn(command, cliArguments, childProcessOptions);
283
280
  return options.wait ? new Promise((resolve, reject)=>{
284
281
  subprocess.once('error', reject), subprocess.once('close', (exitCode)=>{
285
- if (!options.allowNonzeroExitCode && exitCode > 0) return void reject(Error(`Exited with code ${exitCode}`));
286
- resolve(subprocess);
282
+ !options.allowNonzeroExitCode && exitCode > 0 ? reject(Error(`Exited with code ${exitCode}`)) : resolve(subprocess);
287
283
  });
288
284
  }) : (subprocess.unref(), subprocess);
289
285
  };
@@ -3,7 +3,7 @@ exports.ids = [
3
3
  "336"
4
4
  ], exports.modules = {
5
5
  "../../node_modules/.pnpm/open@10.2.0/node_modules/open/index.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
6
- let isDockerCached, cachedResult;
6
+ let isDockerCached, cachedResult, mountPoint, defaultMountPoint;
7
7
  __webpack_require__.d(__webpack_exports__, {
8
8
  default: ()=>node_modules_open
9
9
  });
@@ -37,21 +37,18 @@ exports.ids = [
37
37
  } catch {
38
38
  return !1;
39
39
  }
40
- }, is_wsl = external_node_process_.env.__IS_WSL_TEST__ ? isWsl : isWsl(), wslDrivesMountPoint = (()=>{
41
- let mountPoint, defaultMountPoint = '/mnt/';
42
- return async function() {
43
- if (mountPoint) return mountPoint;
44
- let configFilePath = '/etc/wsl.conf', isConfigFileExists = !1;
45
- try {
46
- await promises_.access(configFilePath, promises_.constants.F_OK), isConfigFileExists = !0;
47
- } catch {}
48
- if (!isConfigFileExists) return defaultMountPoint;
49
- let configContent = await promises_.readFile(configFilePath, {
50
- encoding: 'utf8'
51
- }), configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
52
- return configMountPoint ? mountPoint = (mountPoint = configMountPoint.groups.mountPoint.trim()).endsWith('/') ? mountPoint : `${mountPoint}/` : defaultMountPoint;
53
- };
54
- })(), powerShellPathFromWsl = async ()=>{
40
+ }, is_wsl = external_node_process_.env.__IS_WSL_TEST__ ? isWsl : isWsl(), wslDrivesMountPoint = (defaultMountPoint = '/mnt/', async function() {
41
+ if (mountPoint) return mountPoint;
42
+ let configFilePath = '/etc/wsl.conf', isConfigFileExists = !1;
43
+ try {
44
+ await promises_.access(configFilePath, promises_.constants.F_OK), isConfigFileExists = !0;
45
+ } catch {}
46
+ if (!isConfigFileExists) return defaultMountPoint;
47
+ let configContent = await promises_.readFile(configFilePath, {
48
+ encoding: 'utf8'
49
+ }), configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
50
+ return configMountPoint ? mountPoint = (mountPoint = configMountPoint.groups.mountPoint.trim()).endsWith('/') ? mountPoint : `${mountPoint}/` : defaultMountPoint;
51
+ }), powerShellPathFromWsl = async ()=>{
55
52
  let mountPoint = await wslDrivesMountPoint();
56
53
  return `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`;
57
54
  }, powerShellPath = async ()=>is_wsl ? powerShellPathFromWsl() : `${external_node_process_.env.SYSTEMROOT || external_node_process_.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
@@ -276,8 +273,7 @@ exports.ids = [
276
273
  let subprocess = external_node_child_process_.spawn(command, cliArguments, childProcessOptions);
277
274
  return options.wait ? new Promise((resolve, reject)=>{
278
275
  subprocess.once('error', reject), subprocess.once('close', (exitCode)=>{
279
- if (!options.allowNonzeroExitCode && exitCode > 0) return void reject(Error(`Exited with code ${exitCode}`));
280
- resolve(subprocess);
276
+ !options.allowNonzeroExitCode && exitCode > 0 ? reject(Error(`Exited with code ${exitCode}`)) : resolve(subprocess);
281
277
  });
282
278
  }) : (subprocess.unref(), subprocess);
283
279
  };
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see index.cjs.LICENSE.txt */
2
- let __rslib_import_meta_url__ = 'undefined' == typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
2
+ const __rslib_import_meta_url__ = 'undefined' == typeof document ? new (require('url'.replace('', ''))).URL('file:' + __filename).href : document.currentScript && document.currentScript.src || new URL('main.js', document.baseURI).href;
3
3
  var __webpack_modules__ = {
4
4
  "../../node_modules/.pnpm/body-parser@1.20.3/node_modules/body-parser/index.js": function(module, exports1, __webpack_require__) {
5
5
  "use strict";
@@ -3374,16 +3374,15 @@ var __webpack_modules__ = {
3374
3374
  ]
3375
3375
  ], onFinish));
3376
3376
  }
3377
- if (eeMsg = eeSocket = first([
3377
+ (eeMsg = eeSocket = first([
3378
3378
  [
3379
3379
  msg,
3380
3380
  'end',
3381
3381
  'finish'
3382
3382
  ]
3383
- ], onFinish), msg.socket) return onSocket(msg.socket);
3384
- msg.on('socket', onSocket), void 0 === msg.socket && (res = msg, callback1 = onSocket, 'function' == typeof (assignSocket = res.assignSocket) && (res.assignSocket = function(socket) {
3383
+ ], onFinish), msg.socket) ? onSocket(msg.socket) : (msg.on('socket', onSocket), void 0 === msg.socket && (res = msg, callback1 = onSocket, 'function' == typeof (assignSocket = res.assignSocket) && (res.assignSocket = function(socket) {
3385
3384
  assignSocket.call(this, socket), callback1(socket);
3386
- }));
3385
+ })));
3387
3386
  }(msg1, attached)), attached.queue.push(listener1)), msg;
3388
3387
  }, module.exports.isFinished = isFinished;
3389
3388
  var asyncHooks = function() {
@@ -4109,10 +4108,9 @@ var __webpack_modules__ = {
4109
4108
  this._array.forEach(aCallback, aThisArg);
4110
4109
  }
4111
4110
  add(aMapping) {
4112
- !function(mappingA, mappingB) {
4113
- let lineA = mappingA.generatedLine, lineB = mappingB.generatedLine, columnA = mappingA.generatedColumn, columnB = mappingB.generatedColumn;
4114
- return lineB > lineA || lineB == lineA && columnB >= columnA || 0 >= util.compareByGeneratedPositionsInflated(mappingA, mappingB);
4115
- }(this._last, aMapping) ? this._sorted = !1 : this._last = aMapping, this._array.push(aMapping);
4111
+ var mappingA;
4112
+ let lineA, lineB, columnA, columnB;
4113
+ (mappingA = this._last, lineA = mappingA.generatedLine, lineB = aMapping.generatedLine, columnA = mappingA.generatedColumn, columnB = aMapping.generatedColumn, lineB > lineA || lineB == lineA && columnB >= columnA || 0 >= util.compareByGeneratedPositionsInflated(mappingA, aMapping)) ? this._last = aMapping : this._sorted = !1, this._array.push(aMapping);
4116
4114
  }
4117
4115
  toArray() {
4118
4116
  return this._sorted || (this._array.sort(util.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
@@ -4126,8 +4124,7 @@ var __webpack_modules__ = {
4126
4124
  return new Promise((resolve, reject)=>{
4127
4125
  let wasmPath = path.join(__dirname, "mappings.wasm");
4128
4126
  fs.readFile(wasmPath, null, (error, data)=>{
4129
- if (error) return void reject(error);
4130
- resolve(data.buffer);
4127
+ error ? reject(error) : resolve(data.buffer);
4131
4128
  });
4132
4129
  });
4133
4130
  }, module.exports.initialize = (_)=>{
@@ -4568,133 +4565,7 @@ var __webpack_modules__ = {
4568
4565
  SourceMapGenerator.prototype._version = 3, exports1.SourceMapGenerator = SourceMapGenerator;
4569
4566
  },
4570
4567
  "../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-node.js": function(__unused_webpack_module, exports1, __webpack_require__) {
4571
- let SourceMapGenerator = __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator, util = __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/util.js"), REGEX_NEWLINE = /(\r?\n)/, isSourceNode = "$$$isSourceNode$$$";
4572
- class SourceNode {
4573
- constructor(aLine, aColumn, aSource, aChunks, aName){
4574
- this.children = [], this.sourceContents = {}, this.line = null == aLine ? null : aLine, this.column = null == aColumn ? null : aColumn, this.source = null == aSource ? null : aSource, this.name = null == aName ? null : aName, this[isSourceNode] = !0, null != aChunks && this.add(aChunks);
4575
- }
4576
- static fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
4577
- let nextLine, node = new SourceNode(), remainingLines = aGeneratedCode.split(REGEX_NEWLINE), remainingLinesIndex = 0, shiftNextLine = function() {
4578
- return getNextLine() + (getNextLine() || "");
4579
- function getNextLine() {
4580
- return remainingLinesIndex < remainingLines.length ? remainingLines[remainingLinesIndex++] : void 0;
4581
- }
4582
- }, lastGeneratedLine = 1, lastGeneratedColumn = 0, lastMapping = null;
4583
- return aSourceMapConsumer.eachMapping(function(mapping) {
4584
- if (null !== lastMapping) if (lastGeneratedLine < mapping.generatedLine) addMappingWithCode(lastMapping, shiftNextLine()), lastGeneratedLine++, lastGeneratedColumn = 0;
4585
- else {
4586
- let code = (nextLine = remainingLines[remainingLinesIndex] || "").substr(0, mapping.generatedColumn - lastGeneratedColumn);
4587
- remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn), lastGeneratedColumn = mapping.generatedColumn, addMappingWithCode(lastMapping, code), lastMapping = mapping;
4588
- return;
4589
- }
4590
- for(; lastGeneratedLine < mapping.generatedLine;)node.add(shiftNextLine()), lastGeneratedLine++;
4591
- lastGeneratedColumn < mapping.generatedColumn && (nextLine = remainingLines[remainingLinesIndex] || "", node.add(nextLine.substr(0, mapping.generatedColumn)), remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn), lastGeneratedColumn = mapping.generatedColumn), lastMapping = mapping;
4592
- }, this), remainingLinesIndex < remainingLines.length && (lastMapping && addMappingWithCode(lastMapping, shiftNextLine()), node.add(remainingLines.splice(remainingLinesIndex).join(""))), aSourceMapConsumer.sources.forEach(function(sourceFile) {
4593
- let content = aSourceMapConsumer.sourceContentFor(sourceFile);
4594
- null != content && (null != aRelativePath && (sourceFile = util.join(aRelativePath, sourceFile)), node.setSourceContent(sourceFile, content));
4595
- }), node;
4596
- function addMappingWithCode(mapping, code) {
4597
- if (null === mapping || void 0 === mapping.source) node.add(code);
4598
- else {
4599
- let source = aRelativePath ? util.join(aRelativePath, mapping.source) : mapping.source;
4600
- node.add(new SourceNode(mapping.originalLine, mapping.originalColumn, source, code, mapping.name));
4601
- }
4602
- }
4603
- }
4604
- add(aChunk) {
4605
- if (Array.isArray(aChunk)) aChunk.forEach(function(chunk) {
4606
- this.add(chunk);
4607
- }, this);
4608
- else if (aChunk[isSourceNode] || "string" == typeof aChunk) aChunk && this.children.push(aChunk);
4609
- else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk);
4610
- return this;
4611
- }
4612
- prepend(aChunk) {
4613
- if (Array.isArray(aChunk)) for(let i = aChunk.length - 1; i >= 0; i--)this.prepend(aChunk[i]);
4614
- else if (aChunk[isSourceNode] || "string" == typeof aChunk) this.children.unshift(aChunk);
4615
- else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk);
4616
- return this;
4617
- }
4618
- walk(aFn) {
4619
- let chunk;
4620
- for(let i = 0, len = this.children.length; i < len; i++)(chunk = this.children[i])[isSourceNode] ? chunk.walk(aFn) : "" !== chunk && aFn(chunk, {
4621
- source: this.source,
4622
- line: this.line,
4623
- column: this.column,
4624
- name: this.name
4625
- });
4626
- }
4627
- join(aSep) {
4628
- let newChildren, i, len = this.children.length;
4629
- if (len > 0) {
4630
- for(i = 0, newChildren = []; i < len - 1; i++)newChildren.push(this.children[i]), newChildren.push(aSep);
4631
- newChildren.push(this.children[i]), this.children = newChildren;
4632
- }
4633
- return this;
4634
- }
4635
- replaceRight(aPattern, aReplacement) {
4636
- let lastChild = this.children[this.children.length - 1];
4637
- return lastChild[isSourceNode] ? lastChild.replaceRight(aPattern, aReplacement) : "string" == typeof lastChild ? this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement) : this.children.push("".replace(aPattern, aReplacement)), this;
4638
- }
4639
- setSourceContent(aSourceFile, aSourceContent) {
4640
- this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
4641
- }
4642
- walkSourceContents(aFn) {
4643
- for(let i = 0, len = this.children.length; i < len; i++)this.children[i][isSourceNode] && this.children[i].walkSourceContents(aFn);
4644
- let sources = Object.keys(this.sourceContents);
4645
- for(let i = 0, len = sources.length; i < len; i++)aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
4646
- }
4647
- toString() {
4648
- let str = "";
4649
- return this.walk(function(chunk) {
4650
- str += chunk;
4651
- }), str;
4652
- }
4653
- toStringWithSourceMap(aArgs) {
4654
- let generated = {
4655
- code: "",
4656
- line: 1,
4657
- column: 0
4658
- }, map = new SourceMapGenerator(aArgs), sourceMappingActive = !1, lastOriginalSource = null, lastOriginalLine = null, lastOriginalColumn = null, lastOriginalName = null;
4659
- return this.walk(function(chunk, original) {
4660
- generated.code += chunk, null !== original.source && null !== original.line && null !== original.column ? ((lastOriginalSource !== original.source || lastOriginalLine !== original.line || lastOriginalColumn !== original.column || lastOriginalName !== original.name) && map.addMapping({
4661
- source: original.source,
4662
- original: {
4663
- line: original.line,
4664
- column: original.column
4665
- },
4666
- generated: {
4667
- line: generated.line,
4668
- column: generated.column
4669
- },
4670
- name: original.name
4671
- }), lastOriginalSource = original.source, lastOriginalLine = original.line, lastOriginalColumn = original.column, lastOriginalName = original.name, sourceMappingActive = !0) : sourceMappingActive && (map.addMapping({
4672
- generated: {
4673
- line: generated.line,
4674
- column: generated.column
4675
- }
4676
- }), lastOriginalSource = null, sourceMappingActive = !1);
4677
- for(let idx = 0, length = chunk.length; idx < length; idx++)10 === chunk.charCodeAt(idx) ? (generated.line++, generated.column = 0, idx + 1 === length ? (lastOriginalSource = null, sourceMappingActive = !1) : sourceMappingActive && map.addMapping({
4678
- source: original.source,
4679
- original: {
4680
- line: original.line,
4681
- column: original.column
4682
- },
4683
- generated: {
4684
- line: generated.line,
4685
- column: generated.column
4686
- },
4687
- name: original.name
4688
- })) : generated.column++;
4689
- }), this.walkSourceContents(function(sourceFile, sourceContent) {
4690
- map.setSourceContent(sourceFile, sourceContent);
4691
- }), {
4692
- code: generated.code,
4693
- map
4694
- };
4695
- }
4696
- }
4697
- exports1.SourceNode = SourceNode;
4568
+ __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator, __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/util.js");
4698
4569
  },
4699
4570
  "../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/url.js": function(module, __unused_webpack_exports, __webpack_require__) {
4700
4571
  "use strict";
@@ -4872,7 +4743,7 @@ var __webpack_modules__ = {
4872
4743
  };
4873
4744
  },
4874
4745
  "../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/source-map.js": function(__unused_webpack_module, exports1, __webpack_require__) {
4875
- __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator, exports1.SourceMapConsumer = __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-map-consumer.js").SourceMapConsumer, __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-node.js").SourceNode;
4746
+ __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator, exports1.SourceMapConsumer = __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-map-consumer.js").SourceMapConsumer, __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-node.js");
4876
4747
  },
4877
4748
  "../../node_modules/.pnpm/statuses@2.0.1/node_modules/statuses/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
4878
4749
  "use strict";
@@ -5130,7 +5001,7 @@ __webpack_require__.m = __webpack_modules__, __webpack_require__.n = (module)=>{
5130
5001
  enumerable: !0,
5131
5002
  get: definition[key]
5132
5003
  });
5133
- }, __webpack_require__.f = {}, __webpack_require__.e = (chunkId)=>Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key)=>(__webpack_require__.f[key](chunkId, promises), promises), [])), __webpack_require__.u = (chunkId)=>"" + chunkId + ".cjs", __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports1)=>{
5004
+ }, __webpack_require__.f = {}, __webpack_require__.e = (chunkId)=>Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key)=>(__webpack_require__.f[key](chunkId, promises), promises), [])), __webpack_require__.u = (chunkId)=>"1~" + chunkId + ".cjs", __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports1)=>{
5134
5005
  'undefined' != typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports1, Symbol.toStringTag, {
5135
5006
  value: 'Module'
5136
5007
  }), Object.defineProperty(exports1, '__esModule', {
@@ -6540,7 +6411,7 @@ for(var __webpack_i__ in (()=>{
6540
6411
  async writeManifest() {
6541
6412
  let { cloudData: data, diskManifestPath } = this, dataStr = JSON.stringify(data, null, 2);
6542
6413
  return logger_namespaceObject.logger.debug(`SDKCore.writeManifest extraConfig: ${this.extraConfig}`, '[SDKCore.writeManifest]'), await Promise.all([
6543
- build_namespaceObject.File.fse.outputFileSync(diskManifestPath, dataStr)
6414
+ build_namespaceObject.File.fse.outputFile(diskManifestPath, dataStr)
6544
6415
  ]), diskManifestPath;
6545
6416
  }
6546
6417
  async saveManifest(data, options) {
@@ -6851,7 +6722,9 @@ for(var __webpack_i__ in (()=>{
6851
6722
  }).join('')), index = htmlContent.indexOf('</body>');
6852
6723
  htmlContent = htmlContent.slice(0, index) + inlinedCss + inlinedScripts + htmlContent.slice(index), htmlContent = this.addRsdoctorDataToHTML(this.getStoreData(), htmlContent);
6853
6724
  let outputFilePath = external_path_default().resolve(this.outputDir, this.extraConfig?.brief?.htmlOptions?.reportHtmlName || 'rsdoctor-report.html');
6854
- return build_namespaceObject.File.fse.outputFileSync(outputFilePath, htmlContent, {
6725
+ return external_node_fs_default().mkdirSync(external_path_default().dirname(outputFilePath), {
6726
+ recursive: !0
6727
+ }), external_node_fs_default().writeFileSync(outputFilePath, htmlContent, {
6855
6728
  encoding: 'utf-8',
6856
6729
  flag: 'w'
6857
6730
  }), outputFilePath;
@@ -6872,7 +6745,7 @@ for(var __webpack_i__ in (()=>{
6872
6745
  name,
6873
6746
  root: controller.root
6874
6747
  });
6875
- let lastSdk = controller.getLastSdk(), port = lastSdk ? lastSdk.server.port + 1 : this.server.port;
6748
+ const lastSdk = controller.getLastSdk(), port = lastSdk ? lastSdk.server.port + 1 : this.server.port;
6876
6749
  this.id = primary_id++, this.stage = 'number' == typeof stage ? stage : 1, this.extraConfig = extraConfig, this.parent = controller, this.server = new RsdoctorSlaveServer(this, port), this.type = type, this.setName(name), this.clearSwitch();
6877
6750
  }
6878
6751
  clearSwitch() {
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './sdk';
1
+ export * from './sdk/index.js';
package/dist/index.js CHANGED
@@ -3346,16 +3346,15 @@ var installedChunks, installChunk, __webpack_modules__ = {
3346
3346
  ]
3347
3347
  ], onFinish));
3348
3348
  }
3349
- if (eeMsg = eeSocket = first([
3349
+ (eeMsg = eeSocket = first([
3350
3350
  [
3351
3351
  msg,
3352
3352
  'end',
3353
3353
  'finish'
3354
3354
  ]
3355
- ], onFinish), msg.socket) return onSocket(msg.socket);
3356
- msg.on('socket', onSocket), void 0 === msg.socket && (res = msg, callback1 = onSocket, 'function' == typeof (assignSocket = res.assignSocket) && (res.assignSocket = function(socket) {
3355
+ ], onFinish), msg.socket) ? onSocket(msg.socket) : (msg.on('socket', onSocket), void 0 === msg.socket && (res = msg, callback1 = onSocket, 'function' == typeof (assignSocket = res.assignSocket) && (res.assignSocket = function(socket) {
3357
3356
  assignSocket.call(this, socket), callback1(socket);
3358
- }));
3357
+ })));
3359
3358
  }(msg1, attached)), attached.queue.push(listener1)), msg;
3360
3359
  }, module.exports.isFinished = isFinished;
3361
3360
  var asyncHooks = function() {
@@ -4070,10 +4069,9 @@ var installedChunks, installChunk, __webpack_modules__ = {
4070
4069
  this._array.forEach(aCallback, aThisArg);
4071
4070
  }
4072
4071
  add(aMapping) {
4073
- !function(mappingA, mappingB) {
4074
- let lineA = mappingA.generatedLine, lineB = mappingB.generatedLine, columnA = mappingA.generatedColumn, columnB = mappingB.generatedColumn;
4075
- return lineB > lineA || lineB == lineA && columnB >= columnA || 0 >= util.compareByGeneratedPositionsInflated(mappingA, mappingB);
4076
- }(this._last, aMapping) ? this._sorted = !1 : this._last = aMapping, this._array.push(aMapping);
4072
+ var mappingA;
4073
+ let lineA, lineB, columnA, columnB;
4074
+ (mappingA = this._last, lineA = mappingA.generatedLine, lineB = aMapping.generatedLine, columnA = mappingA.generatedColumn, columnB = aMapping.generatedColumn, lineB > lineA || lineB == lineA && columnB >= columnA || 0 >= util.compareByGeneratedPositionsInflated(mappingA, aMapping)) ? this._last = aMapping : this._sorted = !1, this._array.push(aMapping);
4077
4075
  }
4078
4076
  toArray() {
4079
4077
  return this._sorted || (this._array.sort(util.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
@@ -4086,8 +4084,7 @@ var installedChunks, installChunk, __webpack_modules__ = {
4086
4084
  return new Promise((resolve, reject)=>{
4087
4085
  let wasmPath = path.join(__dirname, "mappings.wasm");
4088
4086
  fs.readFile(wasmPath, null, (error, data)=>{
4089
- if (error) return void reject(error);
4090
- resolve(data.buffer);
4087
+ error ? reject(error) : resolve(data.buffer);
4091
4088
  });
4092
4089
  });
4093
4090
  }, module.exports.initialize = (_)=>{
@@ -4527,133 +4524,7 @@ var installedChunks, installChunk, __webpack_modules__ = {
4527
4524
  SourceMapGenerator.prototype._version = 3, exports.SourceMapGenerator = SourceMapGenerator;
4528
4525
  },
4529
4526
  "../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-node.js": function(__unused_webpack_module, exports, __webpack_require__) {
4530
- let SourceMapGenerator = __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator, util = __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/util.js"), REGEX_NEWLINE = /(\r?\n)/, isSourceNode = "$$$isSourceNode$$$";
4531
- class SourceNode {
4532
- constructor(aLine, aColumn, aSource, aChunks, aName){
4533
- this.children = [], this.sourceContents = {}, this.line = null == aLine ? null : aLine, this.column = null == aColumn ? null : aColumn, this.source = null == aSource ? null : aSource, this.name = null == aName ? null : aName, this[isSourceNode] = !0, null != aChunks && this.add(aChunks);
4534
- }
4535
- static fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
4536
- let nextLine, node = new SourceNode(), remainingLines = aGeneratedCode.split(REGEX_NEWLINE), remainingLinesIndex = 0, shiftNextLine = function() {
4537
- return getNextLine() + (getNextLine() || "");
4538
- function getNextLine() {
4539
- return remainingLinesIndex < remainingLines.length ? remainingLines[remainingLinesIndex++] : void 0;
4540
- }
4541
- }, lastGeneratedLine = 1, lastGeneratedColumn = 0, lastMapping = null;
4542
- return aSourceMapConsumer.eachMapping(function(mapping) {
4543
- if (null !== lastMapping) if (lastGeneratedLine < mapping.generatedLine) addMappingWithCode(lastMapping, shiftNextLine()), lastGeneratedLine++, lastGeneratedColumn = 0;
4544
- else {
4545
- let code = (nextLine = remainingLines[remainingLinesIndex] || "").substr(0, mapping.generatedColumn - lastGeneratedColumn);
4546
- remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn), lastGeneratedColumn = mapping.generatedColumn, addMappingWithCode(lastMapping, code), lastMapping = mapping;
4547
- return;
4548
- }
4549
- for(; lastGeneratedLine < mapping.generatedLine;)node.add(shiftNextLine()), lastGeneratedLine++;
4550
- lastGeneratedColumn < mapping.generatedColumn && (nextLine = remainingLines[remainingLinesIndex] || "", node.add(nextLine.substr(0, mapping.generatedColumn)), remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn), lastGeneratedColumn = mapping.generatedColumn), lastMapping = mapping;
4551
- }, this), remainingLinesIndex < remainingLines.length && (lastMapping && addMappingWithCode(lastMapping, shiftNextLine()), node.add(remainingLines.splice(remainingLinesIndex).join(""))), aSourceMapConsumer.sources.forEach(function(sourceFile) {
4552
- let content = aSourceMapConsumer.sourceContentFor(sourceFile);
4553
- null != content && (null != aRelativePath && (sourceFile = util.join(aRelativePath, sourceFile)), node.setSourceContent(sourceFile, content));
4554
- }), node;
4555
- function addMappingWithCode(mapping, code) {
4556
- if (null === mapping || void 0 === mapping.source) node.add(code);
4557
- else {
4558
- let source = aRelativePath ? util.join(aRelativePath, mapping.source) : mapping.source;
4559
- node.add(new SourceNode(mapping.originalLine, mapping.originalColumn, source, code, mapping.name));
4560
- }
4561
- }
4562
- }
4563
- add(aChunk) {
4564
- if (Array.isArray(aChunk)) aChunk.forEach(function(chunk) {
4565
- this.add(chunk);
4566
- }, this);
4567
- else if (aChunk[isSourceNode] || "string" == typeof aChunk) aChunk && this.children.push(aChunk);
4568
- else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk);
4569
- return this;
4570
- }
4571
- prepend(aChunk) {
4572
- if (Array.isArray(aChunk)) for(let i = aChunk.length - 1; i >= 0; i--)this.prepend(aChunk[i]);
4573
- else if (aChunk[isSourceNode] || "string" == typeof aChunk) this.children.unshift(aChunk);
4574
- else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk);
4575
- return this;
4576
- }
4577
- walk(aFn) {
4578
- let chunk;
4579
- for(let i = 0, len = this.children.length; i < len; i++)(chunk = this.children[i])[isSourceNode] ? chunk.walk(aFn) : "" !== chunk && aFn(chunk, {
4580
- source: this.source,
4581
- line: this.line,
4582
- column: this.column,
4583
- name: this.name
4584
- });
4585
- }
4586
- join(aSep) {
4587
- let newChildren, i, len = this.children.length;
4588
- if (len > 0) {
4589
- for(i = 0, newChildren = []; i < len - 1; i++)newChildren.push(this.children[i]), newChildren.push(aSep);
4590
- newChildren.push(this.children[i]), this.children = newChildren;
4591
- }
4592
- return this;
4593
- }
4594
- replaceRight(aPattern, aReplacement) {
4595
- let lastChild = this.children[this.children.length - 1];
4596
- return lastChild[isSourceNode] ? lastChild.replaceRight(aPattern, aReplacement) : "string" == typeof lastChild ? this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement) : this.children.push("".replace(aPattern, aReplacement)), this;
4597
- }
4598
- setSourceContent(aSourceFile, aSourceContent) {
4599
- this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
4600
- }
4601
- walkSourceContents(aFn) {
4602
- for(let i = 0, len = this.children.length; i < len; i++)this.children[i][isSourceNode] && this.children[i].walkSourceContents(aFn);
4603
- let sources = Object.keys(this.sourceContents);
4604
- for(let i = 0, len = sources.length; i < len; i++)aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
4605
- }
4606
- toString() {
4607
- let str = "";
4608
- return this.walk(function(chunk) {
4609
- str += chunk;
4610
- }), str;
4611
- }
4612
- toStringWithSourceMap(aArgs) {
4613
- let generated = {
4614
- code: "",
4615
- line: 1,
4616
- column: 0
4617
- }, map = new SourceMapGenerator(aArgs), sourceMappingActive = !1, lastOriginalSource = null, lastOriginalLine = null, lastOriginalColumn = null, lastOriginalName = null;
4618
- return this.walk(function(chunk, original) {
4619
- generated.code += chunk, null !== original.source && null !== original.line && null !== original.column ? ((lastOriginalSource !== original.source || lastOriginalLine !== original.line || lastOriginalColumn !== original.column || lastOriginalName !== original.name) && map.addMapping({
4620
- source: original.source,
4621
- original: {
4622
- line: original.line,
4623
- column: original.column
4624
- },
4625
- generated: {
4626
- line: generated.line,
4627
- column: generated.column
4628
- },
4629
- name: original.name
4630
- }), lastOriginalSource = original.source, lastOriginalLine = original.line, lastOriginalColumn = original.column, lastOriginalName = original.name, sourceMappingActive = !0) : sourceMappingActive && (map.addMapping({
4631
- generated: {
4632
- line: generated.line,
4633
- column: generated.column
4634
- }
4635
- }), lastOriginalSource = null, sourceMappingActive = !1);
4636
- for(let idx = 0, length = chunk.length; idx < length; idx++)10 === chunk.charCodeAt(idx) ? (generated.line++, generated.column = 0, idx + 1 === length ? (lastOriginalSource = null, sourceMappingActive = !1) : sourceMappingActive && map.addMapping({
4637
- source: original.source,
4638
- original: {
4639
- line: original.line,
4640
- column: original.column
4641
- },
4642
- generated: {
4643
- line: generated.line,
4644
- column: generated.column
4645
- },
4646
- name: original.name
4647
- })) : generated.column++;
4648
- }), this.walkSourceContents(function(sourceFile, sourceContent) {
4649
- map.setSourceContent(sourceFile, sourceContent);
4650
- }), {
4651
- code: generated.code,
4652
- map
4653
- };
4654
- }
4655
- }
4656
- exports.SourceNode = SourceNode;
4527
+ __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator, __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/util.js");
4657
4528
  },
4658
4529
  "../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/url.js": function(module, __unused_webpack_exports, __webpack_require__) {
4659
4530
  module.exports = "function" == typeof URL ? URL : __webpack_require__("url").URL;
@@ -4830,7 +4701,7 @@ var installedChunks, installChunk, __webpack_modules__ = {
4830
4701
  };
4831
4702
  },
4832
4703
  "../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/source-map.js": function(__unused_webpack_module, exports, __webpack_require__) {
4833
- __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator, exports.SourceMapConsumer = __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-map-consumer.js").SourceMapConsumer, __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-node.js").SourceNode;
4704
+ __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator, exports.SourceMapConsumer = __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-map-consumer.js").SourceMapConsumer, __webpack_require__("../../node_modules/.pnpm/source-map@0.7.6/node_modules/source-map/lib/source-node.js");
4834
4705
  },
4835
4706
  "../../node_modules/.pnpm/statuses@2.0.1/node_modules/statuses/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
4836
4707
  var codes, map, codes1 = __webpack_require__("../../node_modules/.pnpm/statuses@2.0.1/node_modules/statuses/codes.json");
@@ -5036,7 +4907,7 @@ __webpack_require__.m = __webpack_modules__, __webpack_require__.n = (module)=>{
5036
4907
  enumerable: !0,
5037
4908
  get: definition[key]
5038
4909
  });
5039
- }, __webpack_require__.f = {}, __webpack_require__.e = (chunkId)=>Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key)=>(__webpack_require__.f[key](chunkId, promises), promises), [])), __webpack_require__.u = (chunkId)=>"" + chunkId + ".js", __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports)=>{
4910
+ }, __webpack_require__.f = {}, __webpack_require__.e = (chunkId)=>Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key)=>(__webpack_require__.f[key](chunkId, promises), promises), [])), __webpack_require__.u = (chunkId)=>"0~" + chunkId + ".js", __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop), __webpack_require__.r = (exports)=>{
5040
4911
  'undefined' != typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports, Symbol.toStringTag, {
5041
4912
  value: 'Module'
5042
4913
  }), Object.defineProperty(exports, '__esModule', {
@@ -6432,7 +6303,7 @@ class SDKCore {
6432
6303
  async writeManifest() {
6433
6304
  let { cloudData: data, diskManifestPath } = this, dataStr = JSON.stringify(data, null, 2);
6434
6305
  return logger.debug(`SDKCore.writeManifest extraConfig: ${this.extraConfig}`, '[SDKCore.writeManifest]'), await Promise.all([
6435
- File.fse.outputFileSync(diskManifestPath, dataStr)
6306
+ File.fse.outputFile(diskManifestPath, dataStr)
6436
6307
  ]), diskManifestPath;
6437
6308
  }
6438
6309
  async saveManifest(data, options) {
@@ -6742,7 +6613,9 @@ class RsdoctorSDK extends SDKCore {
6742
6613
  }).join(''), index = htmlContent.indexOf('</body>');
6743
6614
  htmlContent = htmlContent.slice(0, index) + inlinedCss + inlinedScripts + htmlContent.slice(index), htmlContent = this.addRsdoctorDataToHTML(this.getStoreData(), htmlContent);
6744
6615
  let outputFilePath = external_path_.default.resolve(this.outputDir, this.extraConfig?.brief?.htmlOptions?.reportHtmlName || 'rsdoctor-report.html');
6745
- return File.fse.outputFileSync(outputFilePath, htmlContent, {
6616
+ return external_node_fs_.default.mkdirSync(external_path_.default.dirname(outputFilePath), {
6617
+ recursive: !0
6618
+ }), external_node_fs_.default.writeFileSync(outputFilePath, htmlContent, {
6746
6619
  encoding: 'utf-8',
6747
6620
  flag: 'w'
6748
6621
  }), outputFilePath;
@@ -1,2 +1,2 @@
1
- export * from './sdk';
2
- export * from './multiple';
1
+ export * from './sdk/index.js';
2
+ export * from './multiple/index.js';
@@ -1,5 +1,5 @@
1
1
  import { Manifest } from '@rsdoctor/types';
2
- import { RsdoctorPrimarySDK } from './primary';
2
+ import { RsdoctorPrimarySDK } from './primary.js';
3
3
  export declare class RsdoctorSDKController {
4
4
  readonly slaves: RsdoctorPrimarySDK[];
5
5
  root: string;
@@ -1,2 +1,2 @@
1
- export * from './controller';
2
- export * from './primary';
1
+ export * from './controller.js';
2
+ export * from './primary.js';
@@ -1,6 +1,6 @@
1
1
  import { SDK } from '@rsdoctor/types';
2
- import { RsdoctorSDK } from '../sdk';
3
- import type { RsdoctorSDKController } from './controller';
2
+ import { RsdoctorSDK } from '../sdk/index.js';
3
+ import type { RsdoctorSDKController } from './controller.js';
4
4
  interface RsdoctorSlaveSDKOptions {
5
5
  name: string;
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { RsdoctorServer } from '../server';
2
- import type { RsdoctorPrimarySDK } from './primary';
1
+ import { RsdoctorServer } from '../server/index.js';
2
+ import type { RsdoctorPrimarySDK } from './primary.js';
3
3
  export declare class RsdoctorSlaveServer extends RsdoctorServer {
4
4
  protected sdk: RsdoctorPrimarySDK;
5
5
  constructor(sdk: RsdoctorPrimarySDK, port?: number);
@@ -1,5 +1,5 @@
1
1
  import { Common, Manifest, SDK } from '@rsdoctor/types';
2
- import { RsdoctorSDKOptions, DataWithUrl } from './types';
2
+ import { RsdoctorSDKOptions, DataWithUrl } from './types.js';
3
3
  export declare abstract class SDKCore<T extends RsdoctorSDKOptions> implements SDK.RsdoctorSDKInstance {
4
4
  protected _name: string;
5
5
  protected hash: string;
@@ -1,10 +1,10 @@
1
1
  import { Manifest, SDK } from '@rsdoctor/types';
2
2
  import { RawSourceMap, SourceMapConsumer } from 'source-map';
3
- import { RsdoctorServer } from '../server';
4
- import { RsdoctorWebpackSDKOptions } from './types';
5
- import { SDKCore } from './core';
6
- export * from '../utils/openBrowser';
7
- export * from '../utils/base';
3
+ import { RsdoctorServer } from '../server/index.js';
4
+ import { RsdoctorWebpackSDKOptions } from './types.js';
5
+ import { SDKCore } from './core.js';
6
+ export * from '../utils/openBrowser.js';
7
+ export * from '../utils/base.js';
8
8
  export declare class RsdoctorSDK<T extends RsdoctorWebpackSDKOptions = RsdoctorWebpackSDKOptions> extends SDKCore<T> implements SDK.RsdoctorBuilderSDKInstance {
9
9
  server: RsdoctorServer;
10
10
  extraConfig: SDK.SDKOptionsType | undefined;
@@ -1,5 +1,5 @@
1
1
  import { SDK } from '@rsdoctor/types';
2
- import { BaseAPI } from './base';
2
+ import { BaseAPI } from './base.js';
3
3
  export declare class AlertsAPI extends BaseAPI {
4
4
  getPackageRelationAlertDetails(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetPackageRelationAlertDetails>>;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { SDK } from '@rsdoctor/types';
2
- import { BaseAPI } from './base';
2
+ import { BaseAPI } from './base.js';
3
3
  export declare class BundleDiffAPI extends BaseAPI {
4
4
  getBundleDiffSummary(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetBundleDiffSummary>>;
5
5
  bundleDiffManifest(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.BundleDiffManifest>>;
@@ -1,5 +1,5 @@
1
1
  import { SDK } from '@rsdoctor/types';
2
- import { BaseAPI } from './base';
2
+ import { BaseAPI } from './base.js';
3
3
  export declare class DataAPI extends BaseAPI {
4
4
  loadDataByKey(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.LoadDataByKey>>;
5
5
  sendMessageToClient(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.SendAPIDataToClient>>;
@@ -1,5 +1,5 @@
1
1
  import { SDK } from '@rsdoctor/types';
2
- import { BaseAPI } from './base';
2
+ import { BaseAPI } from './base.js';
3
3
  export declare class FileSystemAPI extends BaseAPI {
4
4
  applyErrorFix(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.ApplyErrorFix>>;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { SDK } from '@rsdoctor/types';
2
- import { BaseAPI } from './base';
2
+ import { BaseAPI } from './base.js';
3
3
  export declare class GraphAPI extends BaseAPI {
4
4
  getAssetsSummary(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetAssetsSummary>>;
5
5
  getModuleGraphForAsset(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetAssetDetails>>;
@@ -1,9 +1,9 @@
1
- export * from './alerts';
2
- export * from './data';
3
- export * from './fs';
4
- export * from './loader';
5
- export * from './graph';
6
- export * from './plugin';
7
- export * from './project';
8
- export * from './renderer';
9
- export * from './resolver';
1
+ export * from './alerts.js';
2
+ export * from './data.js';
3
+ export * from './fs.js';
4
+ export * from './loader.js';
5
+ export * from './graph.js';
6
+ export * from './plugin.js';
7
+ export * from './project.js';
8
+ export * from './renderer.js';
9
+ export * from './resolver.js';
@@ -1,5 +1,5 @@
1
1
  import { SDK } from '@rsdoctor/types';
2
- import { BaseAPI } from './base';
2
+ import { BaseAPI } from './base.js';
3
3
  export declare class LoaderAPI extends BaseAPI {
4
4
  /** report loader data api */
5
5
  reportLoader(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.ReportLoader>>;
@@ -1,5 +1,5 @@
1
1
  import { SDK } from '@rsdoctor/types';
2
- import { BaseAPI } from './base';
2
+ import { BaseAPI } from './base.js';
3
3
  export declare class PluginAPI extends BaseAPI {
4
4
  getPluginSummary(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetPluginSummary>>;
5
5
  getPluginData(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetPluginData>>;
@@ -1,5 +1,5 @@
1
1
  import { SDK } from '@rsdoctor/types';
2
- import { BaseAPI } from './base';
2
+ import { BaseAPI } from './base.js';
3
3
  export declare class ProjectAPI extends BaseAPI {
4
4
  env(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.Env>>;
5
5
  manifest(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.Manifest>>;
@@ -1,5 +1,5 @@
1
1
  import { SDK } from '@rsdoctor/types';
2
- import { BaseAPI } from './base';
2
+ import { BaseAPI } from './base.js';
3
3
  export declare class RendererAPI extends BaseAPI {
4
4
  /** sdk manifest api */
5
5
  entryHtml(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.EntryHtml>>;
@@ -1,5 +1,5 @@
1
1
  import { SDK } from '@rsdoctor/types';
2
- import { BaseAPI } from './base';
2
+ import { BaseAPI } from './base.js';
3
3
  export declare class ResolverAPI extends BaseAPI {
4
4
  getResolverFileTree(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetResolverFileTree>>;
5
5
  getResolverFileDetails(): Promise<SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetResolverFileDetails>>;
@@ -1,5 +1,5 @@
1
1
  import { SDK } from '@rsdoctor/types';
2
- import { RsdoctorServer } from '.';
2
+ import { RsdoctorServer } from './index.js';
3
3
  export declare class RsdoctorFakeServer extends RsdoctorServer {
4
4
  protected sdk: SDK.RsdoctorBuilderSDKInstance;
5
5
  constructor(sdk: SDK.RsdoctorBuilderSDKInstance, port?: number);
@@ -1,5 +1,5 @@
1
1
  import { Common, SDK, Thirdparty, Client } from '@rsdoctor/types';
2
- export * from './utils';
2
+ export * from './utils.js';
3
3
  export type ISocketType = {
4
4
  port: number;
5
5
  socketUrl: string;
@@ -1,6 +1,6 @@
1
1
  import type { ServerResponse } from 'http';
2
2
  import { Common, SDK, Thirdparty } from '@rsdoctor/types';
3
- import { BaseAPI } from './apis/base';
3
+ import { BaseAPI } from './apis/base.js';
4
4
  interface RouterOptions {
5
5
  apis: Common.Constructor<typeof BaseAPI>[];
6
6
  sdk: SDK.RsdoctorBuilderSDKInstance;
@@ -1,7 +1,7 @@
1
1
  import { Common, SDK } from '@rsdoctor/types';
2
2
  import type { Server } from 'http';
3
3
  import { Server as SocketServer, ServerOptions as SocketServerOptions, Socket as SocketType } from 'socket.io';
4
- import { SocketAPILoader } from './api';
4
+ import { SocketAPILoader } from './api.js';
5
5
  interface SocketOptions {
6
6
  sdk: SDK.RsdoctorBuilderSDKInstance;
7
7
  server: Server;
@@ -1,3 +1,3 @@
1
- export * from './constant';
2
- export * from './base';
3
- export * from './upload';
1
+ export * from './constant.js';
2
+ export * from './base.js';
3
+ export * from './upload.js';
@@ -1,2 +1,2 @@
1
- import { DataWithUrl } from '../sdk/types';
1
+ import { DataWithUrl } from '../sdk/types.js';
2
2
  export declare const transformDataUrls: (d: DataWithUrl[]) => Record<string, string[] | string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdoctor/sdk",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rsdoctor",
@@ -26,10 +26,10 @@
26
26
  "safer-buffer": "2.1.2",
27
27
  "socket.io": "4.8.1",
28
28
  "tapable": "2.2.3",
29
- "@rsdoctor/client": "1.3.1",
30
- "@rsdoctor/graph": "1.3.1",
31
- "@rsdoctor/types": "1.3.1",
32
- "@rsdoctor/utils": "1.3.1"
29
+ "@rsdoctor/client": "1.3.3",
30
+ "@rsdoctor/types": "1.3.3",
31
+ "@rsdoctor/utils": "1.3.3",
32
+ "@rsdoctor/graph": "1.3.3"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/body-parser": "1.19.6",