@squiz/edge-dev-render-runtime-lib 2.0.0 → 2.1.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.
@@ -4754,7 +4754,7 @@
4754
4754
  "type": "string",
4755
4755
  "enum": [
4756
4756
  "edge",
4757
- "sandbox"
4757
+ "server"
4758
4758
  ],
4759
4759
  "description": "Type of component that will be deployed to different runtimes"
4760
4760
  },
@@ -4926,7 +4926,7 @@
4926
4926
  },
4927
4927
  "info": {
4928
4928
  "title": "@squiz/edge-dev-render-runtime-lib",
4929
- "version": "1.0.0",
4929
+ "version": "2.0.0",
4930
4930
  "description": "Package of Edge rendering utilities for components in dev mode",
4931
4931
  "license": {
4932
4932
  "name": "ISC"
@@ -0,0 +1,3 @@
1
+ import { Controller } from 'tsoa';
2
+ export declare class BaseController extends Controller {
3
+ }
@@ -1,4 +1,4 @@
1
- import { Controller } from 'tsoa';
1
+ import { BaseController } from './BaseController';
2
2
  import { ManifestService, Manifest } from '@squiz/component-lib';
3
3
  import { type Request as ExpressRequest } from 'express';
4
4
  type ComponentMap = Record<string, {
@@ -8,7 +8,7 @@ type ComponentMap = Record<string, {
8
8
  previewKey: string | undefined;
9
9
  }[];
10
10
  }>;
11
- export declare class CoreController extends Controller {
11
+ export declare class CoreController extends BaseController {
12
12
  protected manifestService: ManifestService;
13
13
  constructor(manifestService: ManifestService);
14
14
  getSchemaVersion(version: string): Promise<any>;
@@ -1,9 +1,9 @@
1
- import { Controller } from 'tsoa';
1
+ import { BaseController } from './BaseController';
2
2
  import { type Request as ExpressRequest, type Response as ExpressResponse } from 'express';
3
3
  import { ManifestModel, ManifestService, ComponentFunctionService, ComponentSetService, Manifest, Headers } from '@squiz/component-lib';
4
4
  import { MANIFEST_MODELS } from '@squiz/dx-json-schema-lib';
5
5
  import { ComponentRootUrlResolver } from '../../component-runner';
6
- export declare class DefinitionController extends Controller {
6
+ export declare class DefinitionController extends BaseController {
7
7
  protected componentSetService: ComponentSetService;
8
8
  protected manifestService: ManifestService;
9
9
  protected componentFunctionService: ComponentFunctionService;
@@ -1,11 +1,11 @@
1
- import { Controller } from 'tsoa';
1
+ import { BaseController } from './BaseController';
2
2
  import { type Request as ExpressRequest, type Response as ExpressResponse } from 'express';
3
3
  import { ComponentRunnerService } from '../../component-runner';
4
4
  import { ManifestService, ComponentFunctionService, ComponentSetService } from '@squiz/component-lib';
5
5
  import { RenderInputService, ComponentExecutionInput } from '../../RenderInputService';
6
6
  import { FunctionReturnTypes } from '../../component-runner/FunctionReturnTypes';
7
7
  import { ComponentPreviewService } from '../../PreviewComponentService';
8
- export declare class RenderController extends Controller {
8
+ export declare class RenderController extends BaseController {
9
9
  protected componentSetService: ComponentSetService;
10
10
  protected manifestService: ManifestService;
11
11
  protected componentFunctionService: ComponentFunctionService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/edge-dev-render-runtime-lib",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Package of Edge rendering utilities for components in dev mode",
5
5
  "homepage": "",
6
6
  "license": "ISC",