@loopstack/remote-file-explorer-module 0.22.6 → 0.23.0

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,2 +1,2 @@
1
- export * from './remote-file-explorer.controller';
1
+ export * from './remote-file-explorer.controller.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
@@ -1,18 +1,2 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./remote-file-explorer.controller"), exports);
1
+ export * from './remote-file-explorer.controller.js';
18
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAkD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC"}
@@ -6,7 +6,7 @@ export declare class RemoteFileExplorerController {
6
6
  private readonly workspaceRepository;
7
7
  constructor(remoteAgentClient: RemoteClient, workspaceRepository: Repository<WorkspaceEntity>);
8
8
  private getAgentUrl;
9
- getFileTree(workspaceId: string, basePath: string | undefined, user: CurrentUserInterface): Promise<import("@loopstack/remote-client/dist/services/remote-client.service").FileTreeNode[]>;
9
+ getFileTree(workspaceId: string, basePath: string | undefined, user: CurrentUserInterface): Promise<unknown>;
10
10
  readFile(workspaceId: string, filePath: string, user: CurrentUserInterface): Promise<import("@loopstack/remote-client").FileReadResponse>;
11
11
  }
12
12
  //# sourceMappingURL=remote-file-explorer.controller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-file-explorer.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/remote-file-explorer.controller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAe,oBAAoB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,qBAGa,4BAA4B;IAErC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAElC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAFnB,iBAAiB,EAAE,YAAY,EAE/B,mBAAmB,EAAE,UAAU,CAAC,eAAe,CAAC;YAGrD,WAAW;IAmBnB,WAAW,CACO,WAAW,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,IAAI,EAAE,oBAAoB;IAOrC,QAAQ,CACU,WAAW,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,oBAAoB;CAK5C"}
1
+ {"version":3,"file":"remote-file-explorer.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/remote-file-explorer.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAe,oBAAoB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,qBAEa,4BAA4B;IAErC,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAElC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAFnB,iBAAiB,EAAE,YAAY,EAE/B,mBAAmB,EAAE,UAAU,CAAC,eAAe,CAAC;YAGrD,WAAW;IAmBnB,WAAW,CACO,WAAW,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,IAAI,EAAE,oBAAoB,GACxC,OAAO,CAAC,OAAO,CAAC;IAMb,QAAQ,CACU,WAAW,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,oBAAoB;CAK5C"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -11,14 +10,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
10
  var __param = (this && this.__param) || function (paramIndex, decorator) {
12
11
  return function (target, key) { decorator(target, key, paramIndex); }
13
12
  };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.RemoteFileExplorerController = void 0;
16
- const common_1 = require("@nestjs/common");
17
- const swagger_1 = require("@nestjs/swagger");
18
- const typeorm_1 = require("@nestjs/typeorm");
19
- const typeorm_2 = require("typeorm");
20
- const common_2 = require("@loopstack/common");
21
- const remote_client_1 = require("@loopstack/remote-client");
13
+ import { Controller, Get, NotFoundException, Param, Query, UsePipes, ValidationPipe } from '@nestjs/common';
14
+ import { InjectRepository } from '@nestjs/typeorm';
15
+ import { Repository } from 'typeorm';
16
+ import { CurrentUser, WorkspaceEntity } from '@loopstack/common';
17
+ import { RemoteClient } from '@loopstack/remote-client';
22
18
  let RemoteFileExplorerController = class RemoteFileExplorerController {
23
19
  remoteAgentClient;
24
20
  workspaceRepository;
@@ -32,11 +28,11 @@ let RemoteFileExplorerController = class RemoteFileExplorerController {
32
28
  relations: ['environments'],
33
29
  });
34
30
  if (!workspace) {
35
- throw new common_1.NotFoundException(`Workspace with ID ${workspaceId} not found`);
31
+ throw new NotFoundException(`Workspace with ID ${workspaceId} not found`);
36
32
  }
37
33
  const environment = workspace.environments?.find((e) => !!e.agentUrl);
38
34
  if (!environment?.agentUrl) {
39
- throw new common_1.NotFoundException(`No remote environment configured for workspace ${workspaceId}`);
35
+ throw new NotFoundException(`No remote environment configured for workspace ${workspaceId}`);
40
36
  }
41
37
  return environment.agentUrl;
42
38
  }
@@ -49,31 +45,30 @@ let RemoteFileExplorerController = class RemoteFileExplorerController {
49
45
  return this.remoteAgentClient.readFile(agentUrl, filePath);
50
46
  }
51
47
  };
52
- exports.RemoteFileExplorerController = RemoteFileExplorerController;
53
48
  __decorate([
54
- (0, common_1.Get)('tree'),
55
- __param(0, (0, common_1.Param)('workspaceId')),
56
- __param(1, (0, common_1.Query)('path')),
57
- __param(2, (0, common_2.CurrentUser)()),
49
+ Get('tree'),
50
+ __param(0, Param('workspaceId')),
51
+ __param(1, Query('path')),
52
+ __param(2, CurrentUser()),
58
53
  __metadata("design:type", Function),
59
54
  __metadata("design:paramtypes", [String, Object, Object]),
60
55
  __metadata("design:returntype", Promise)
61
56
  ], RemoteFileExplorerController.prototype, "getFileTree", null);
62
57
  __decorate([
63
- (0, common_1.Get)('read'),
64
- __param(0, (0, common_1.Param)('workspaceId')),
65
- __param(1, (0, common_1.Query)('path')),
66
- __param(2, (0, common_2.CurrentUser)()),
58
+ Get('read'),
59
+ __param(0, Param('workspaceId')),
60
+ __param(1, Query('path')),
61
+ __param(2, CurrentUser()),
67
62
  __metadata("design:type", Function),
68
63
  __metadata("design:paramtypes", [String, String, Object]),
69
64
  __metadata("design:returntype", Promise)
70
65
  ], RemoteFileExplorerController.prototype, "readFile", null);
71
- exports.RemoteFileExplorerController = RemoteFileExplorerController = __decorate([
72
- (0, swagger_1.ApiTags)('api/v1/workspaces/:workspaceId/files'),
73
- (0, common_1.UsePipes)(new common_1.ValidationPipe({ transform: true, whitelist: true, forbidNonWhitelisted: true })),
74
- (0, common_1.Controller)('api/v1/workspaces/:workspaceId/files'),
75
- __param(1, (0, typeorm_1.InjectRepository)(common_2.WorkspaceEntity)),
76
- __metadata("design:paramtypes", [remote_client_1.RemoteClient,
77
- typeorm_2.Repository])
66
+ RemoteFileExplorerController = __decorate([
67
+ UsePipes(new ValidationPipe({ transform: true, whitelist: true, forbidNonWhitelisted: true })),
68
+ Controller('api/v1/workspaces/:workspaceId/files'),
69
+ __param(1, InjectRepository(WorkspaceEntity)),
70
+ __metadata("design:paramtypes", [RemoteClient,
71
+ Repository])
78
72
  ], RemoteFileExplorerController);
73
+ export { RemoteFileExplorerController };
79
74
  //# sourceMappingURL=remote-file-explorer.controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-file-explorer.controller.js","sourceRoot":"","sources":["../../src/controllers/remote-file-explorer.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4G;AAC5G,6CAA0C;AAC1C,6CAAmD;AACnD,qCAAqC;AACrC,8CAAuF;AACvF,4DAAwD;AAKjD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAEpB;IAEA;IAHnB,YACmB,iBAA+B,EAE/B,mBAAgD;QAFhD,sBAAiB,GAAjB,iBAAiB,CAAc;QAE/B,wBAAmB,GAAnB,mBAAmB,CAA6B;IAChE,CAAC;IAEI,KAAK,CAAC,WAAW,CAAC,WAAmB,EAAE,MAAc;QAC3D,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC;YACvD,KAAK,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAA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+DAIf;AAGK;IADL,IAAA,YAAG,EAAC,MAAM,CAAC;IAET,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;IACpB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IACb,WAAA,IAAA,oBAAW,GAAE,CAAA;;;;4DAIf;uCA3CU,4BAA4B;IAHxC,IAAA,iBAAO,EAAC,sCAAsC,CAAC;IAC/C,IAAA,iBAAQ,EAAC,IAAI,uBAAc,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9F,IAAA,mBAAU,EAAC,sCAAsC,CAAC;IAI9C,WAAA,IAAA,0BAAgB,EAAC,wBAAe,CAAC,CAAA;qCADE,4BAAY;QAEV,oBAAU;GAJvC,4BAA4B,CA4CxC"}
1
+ {"version":3,"file":"remote-file-explorer.controller.js","sourceRoot":"","sources":["../../src/controllers/remote-file-explorer.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,iBAAiB,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,WAAW,EAAwB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIjD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAEpB;IAEA;IAHnB,YACmB,iBAA+B,EAE/B,mBAAgD;QAFhD,sBAAiB,GAAjB,iBAAiB,CAAc;QAE/B,wBAAmB,GAAnB,mBAAmB,CAA6B;IAChE,CAAC;IAEI,KAAK,CAAC,WAAW,CAAC,WAAmB,EAAE,MAAc;QAC3D,MAAM,SAAS,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AA;IACpB,WAAA,KAAK,CAAC,MAAM,CAAC,CAAA;IACb,WAAA,WAAW,EAAE,CAAA;;;;+DAIf;AAGK;IADL,GAAG,CAAC,MAAM,CAAC;IAET,WAAA,KAAK,CAAC,aAAa,CAAC,CAAA;IACpB,WAAA,KAAK,CAAC,MAAM,CAAC,CAAA;IACb,WAAA,WAAW,EAAE,CAAA;;;;4DAIf;AA3CU,4BAA4B;IAFxC,QAAQ,CAAC,IAAI,cAAc,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9F,UAAU,CAAC,sCAAsC,CAAC;IAI9C,WAAA,gBAAgB,CAAC,eAAe,CAAC,CAAA;qCADE,YAAY;QAEV,UAAU;GAJvC,4BAA4B,CA4CxC"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './remote-file-explorer.module';
2
- export * from './controllers';
1
+ export * from './remote-file-explorer.module.js';
2
+ export * from './controllers/index.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC"}
package/dist/index.js CHANGED
@@ -1,19 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./remote-file-explorer.module"), exports);
18
- __exportStar(require("./controllers"), exports);
1
+ export * from './remote-file-explorer.module.js';
2
+ export * from './controllers/index.js';
19
3
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"remote-file-explorer.module.d.ts","sourceRoot":"","sources":["../src/remote-file-explorer.module.ts"],"names":[],"mappings":"AAOA,qBAIa,wBAAwB;CAAG"}
1
+ {"version":3,"file":"remote-file-explorer.module.d.ts","sourceRoot":"","sources":["../src/remote-file-explorer.module.ts"],"names":[],"mappings":"AAMA,qBAIa,wBAAwB;CAAG"}
@@ -1,25 +1,21 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
6
  };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.RemoteFileExplorerModule = void 0;
10
- const common_1 = require("@nestjs/common");
11
- const typeorm_1 = require("@nestjs/typeorm");
12
- const common_2 = require("@loopstack/common");
13
- const core_1 = require("@loopstack/core");
14
- const remote_client_1 = require("@loopstack/remote-client");
15
- const controllers_1 = require("./controllers");
7
+ import { Module } from '@nestjs/common';
8
+ import { TypeOrmModule } from '@nestjs/typeorm';
9
+ import { WorkspaceEntity } from '@loopstack/common';
10
+ import { RemoteClientModule } from '@loopstack/remote-client';
11
+ import { RemoteFileExplorerController } from './controllers/index.js';
16
12
  let RemoteFileExplorerModule = class RemoteFileExplorerModule {
17
13
  };
18
- exports.RemoteFileExplorerModule = RemoteFileExplorerModule;
19
- exports.RemoteFileExplorerModule = RemoteFileExplorerModule = __decorate([
20
- (0, common_1.Module)({
21
- imports: [core_1.LoopCoreModule, remote_client_1.RemoteClientModule, typeorm_1.TypeOrmModule.forFeature([common_2.WorkspaceEntity])],
22
- controllers: [controllers_1.RemoteFileExplorerController],
14
+ RemoteFileExplorerModule = __decorate([
15
+ Module({
16
+ imports: [RemoteClientModule, TypeOrmModule.forFeature([WorkspaceEntity])],
17
+ controllers: [RemoteFileExplorerController],
23
18
  })
24
19
  ], RemoteFileExplorerModule);
20
+ export { RemoteFileExplorerModule };
25
21
  //# sourceMappingURL=remote-file-explorer.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote-file-explorer.module.js","sourceRoot":"","sources":["../src/remote-file-explorer.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,8CAAoD;AACpD,0CAAiD;AACjD,4DAA8D;AAC9D,+CAA6D;AAMtD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAG,CAAA;AAA3B,4DAAwB;mCAAxB,wBAAwB;IAJpC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,qBAAc,EAAE,kCAAkB,EAAE,uBAAa,CAAC,UAAU,CAAC,CAAC,wBAAe,CAAC,CAAC,CAAC;QAC1F,WAAW,EAAE,CAAC,0CAA4B,CAAC;KAC5C,CAAC;GACW,wBAAwB,CAAG"}
1
+ {"version":3,"file":"remote-file-explorer.module.js","sourceRoot":"","sources":["../src/remote-file-explorer.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAM/D,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAG,CAAA;AAA3B,wBAAwB;IAJpC,MAAM,CAAC;QACN,OAAO,EAAE,CAAC,kBAAkB,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;QAC1E,WAAW,EAAE,CAAC,4BAA4B,CAAC;KAC5C,CAAC;GACW,wBAAwB,CAAG"}
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "remote-agent",
9
9
  "workflow"
10
10
  ],
11
- "version": "0.22.6",
11
+ "version": "0.23.0",
12
12
  "license": "MIT",
13
13
  "author": {
14
14
  "name": "Jakob Klippel",
@@ -17,7 +17,10 @@
17
17
  "main": "dist/index.js",
18
18
  "types": "dist/index.d.ts",
19
19
  "exports": {
20
- ".": "./dist/index.js"
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "default": "./dist/index.js"
23
+ }
21
24
  },
22
25
  "scripts": {
23
26
  "build": "nest build",
@@ -28,9 +31,9 @@
28
31
  "watch": "nest build --watch"
29
32
  },
30
33
  "dependencies": {
31
- "@loopstack/common": "^0.29.0",
32
- "@loopstack/core": "^0.29.0",
33
- "@loopstack/remote-client": "^0.23.4",
34
+ "@loopstack/common": "^0.30.0",
35
+ "@loopstack/core": "^0.30.0",
36
+ "@loopstack/remote-client": "^0.24.0",
34
37
  "@nestjs/common": "^11.1.19",
35
38
  "@nestjs/typeorm": "^11.0.1",
36
39
  "typeorm": "^0.3.28"
@@ -56,15 +59,5 @@
56
59
  "testEnvironment": "node",
57
60
  "maxWorkers": 1
58
61
  },
59
- "loopstack": {
60
- "modules": [
61
- {
62
- "path": "src/remote-file-explorer.module.ts",
63
- "className": "RemoteFileExplorerModule"
64
- }
65
- ],
66
- "installModes": [
67
- "install"
68
- ]
69
- }
62
+ "type": "module"
70
63
  }