@backstage/plugin-scaffolder-backend 0.15.13 → 0.15.17

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/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ import { Config } from '@backstage/config';
11
11
  import { createPullRequest } from 'octokit-plugin-create-pull-request';
12
12
  import { Octokit } from '@octokit/rest';
13
13
  export { createFetchCookiecutterAction } from '@backstage/plugin-scaffolder-backend-module-cookiecutter';
14
+ import { SpawnOptionsWithoutStdio } from 'child_process';
14
15
  import { Knex } from 'knex';
15
16
  import express from 'express';
16
17
  import { TemplateEntityV1beta2, Entity, LocationSpec } from '@backstage/catalog-model';
@@ -27,7 +28,7 @@ declare const createBuiltinActions: (options: {
27
28
  reader: UrlReader;
28
29
  integrations: ScmIntegrations;
29
30
  catalogClient: CatalogApi;
30
- containerRunner: ContainerRunner;
31
+ containerRunner?: ContainerRunner;
31
32
  config: Config;
32
33
  }) => TemplateAction<any>[];
33
34
 
@@ -108,6 +109,10 @@ declare function createPublishGitlabAction(options: {
108
109
  config: Config;
109
110
  }): TemplateAction<any>;
110
111
 
112
+ declare const createPublishGitlabMergeRequestAction: (options: {
113
+ integrations: ScmIntegrationRegistry;
114
+ }) => TemplateAction<any>;
115
+
111
116
  declare function createGithubActionsDispatchAction(options: {
112
117
  integrations: ScmIntegrationRegistry;
113
118
  }): TemplateAction<any>;
@@ -140,11 +145,19 @@ declare class OctokitProvider {
140
145
  }
141
146
 
142
147
  declare type RunCommandOptions = {
148
+ /** command to run */
143
149
  command: string;
150
+ /** arguments to pass the command */
144
151
  args: string[];
152
+ /** options to pass to spawn */
153
+ options?: SpawnOptionsWithoutStdio;
154
+ /** stream to capture stdout and stderr output */
145
155
  logStream?: Writable;
146
156
  };
147
- declare const runCommand: ({ command, args, logStream, }: RunCommandOptions) => Promise<void>;
157
+ /**
158
+ * Run a command in a sub-process, normally a shell command.
159
+ */
160
+ declare const runCommand: ({ command, args, logStream, options, }: RunCommandOptions) => Promise<void>;
148
161
 
149
162
  /**
150
163
  * Status
@@ -501,7 +514,7 @@ interface RouterOptions {
501
514
  catalogClient: CatalogApi;
502
515
  actions?: TemplateAction<any>[];
503
516
  taskWorkers?: number;
504
- containerRunner: ContainerRunner;
517
+ containerRunner?: ContainerRunner;
505
518
  taskBroker?: TaskBroker;
506
519
  }
507
520
  declare function createRouter(options: RouterOptions): Promise<express.Router>;
@@ -529,4 +542,4 @@ declare class ScaffolderEntitiesProcessor implements CatalogProcessor {
529
542
  postProcessEntity(entity: Entity, _location: LocationSpec, emit: CatalogProcessorEmit): Promise<Entity>;
530
543
  }
531
544
 
532
- export { ActionContext, CatalogEntityClient, CompletedTaskState, CreateWorkerOptions, DatabaseTaskStore, DispatchResult, OctokitProvider, RouterOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, Status, TaskBroker, TaskContext, TaskEventType, TaskManager, TaskSecrets, TaskSpec, TaskSpecV1beta2, TaskSpecV1beta3, TaskState, TaskStore, TaskStoreEmitOptions, TaskStoreListEventsOptions, TaskWorker, TemplateAction, TemplateActionRegistry, TemplateMetadata, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchPlainAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishFileAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createRouter, createTemplateAction, fetchContents, runCommand };
545
+ export { ActionContext, CatalogEntityClient, CompletedTaskState, CreateWorkerOptions, DatabaseTaskStore, DispatchResult, OctokitProvider, RouterOptions, ScaffolderEntitiesProcessor, SerializedTask, SerializedTaskEvent, Status, TaskBroker, TaskContext, TaskEventType, TaskManager, TaskSecrets, TaskSpec, TaskSpecV1beta2, TaskSpecV1beta3, TaskState, TaskStore, TaskStoreEmitOptions, TaskStoreListEventsOptions, TaskWorker, TemplateAction, TemplateActionRegistry, TemplateMetadata, createBuiltinActions, createCatalogRegisterAction, createCatalogWriteAction, createDebugLogAction, createFetchPlainAction, createFetchTemplateAction, createFilesystemDeleteAction, createFilesystemRenameAction, createGithubActionsDispatchAction, createGithubWebhookAction, createPublishAzureAction, createPublishBitbucketAction, createPublishFileAction, createPublishGithubAction, createPublishGithubPullRequestAction, createPublishGitlabAction, createPublishGitlabMergeRequestAction, createRouter, createTemplateAction, fetchContents, runCommand };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-backend",
3
3
  "description": "The Backstage backend plugin that helps you create new things",
4
- "version": "0.15.13",
4
+ "version": "0.15.17",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -27,21 +27,22 @@
27
27
  "test": "backstage-cli test",
28
28
  "prepack": "backstage-cli prepack",
29
29
  "postpack": "backstage-cli postpack",
30
- "clean": "backstage-cli clean"
30
+ "clean": "backstage-cli clean",
31
+ "build:assets": "node scripts/build-nunjucks.js"
31
32
  },
32
33
  "dependencies": {
33
- "@backstage/backend-common": "^0.9.10",
34
+ "@backstage/backend-common": "^0.9.14",
34
35
  "@backstage/catalog-client": "^0.5.2",
35
- "@backstage/catalog-model": "^0.9.7",
36
+ "@backstage/catalog-model": "^0.9.8",
36
37
  "@backstage/config": "^0.1.11",
37
- "@backstage/errors": "^0.1.4",
38
- "@backstage/integration": "^0.6.9",
39
- "@backstage/plugin-catalog-backend": "^0.17.4",
40
- "@backstage/plugin-scaffolder-backend-module-cookiecutter": "^0.1.4",
38
+ "@backstage/errors": "^0.1.5",
39
+ "@backstage/integration": "^0.6.10",
40
+ "@backstage/plugin-catalog-backend": "^0.19.2",
41
+ "@backstage/plugin-scaffolder-backend-module-cookiecutter": "^0.1.5",
41
42
  "@backstage/plugin-scaffolder-common": "^0.1.1",
42
43
  "@backstage/types": "^0.1.1",
43
- "@gitbeaker/core": "^30.2.0",
44
- "@gitbeaker/node": "^30.2.0",
44
+ "@gitbeaker/core": "^34.6.0",
45
+ "@gitbeaker/node": "^34.6.0",
45
46
  "@octokit/rest": "^18.5.3",
46
47
  "@octokit/webhooks": "^9.14.1",
47
48
  "@types/express": "^4.17.6",
@@ -49,7 +50,6 @@
49
50
  "command-exists": "^1.2.9",
50
51
  "compression": "^1.7.4",
51
52
  "cors": "^2.8.5",
52
- "cross-fetch": "^3.0.6",
53
53
  "express": "^4.17.1",
54
54
  "express-promise-router": "^4.1.0",
55
55
  "fs-extra": "10.0.0",
@@ -64,21 +64,24 @@
64
64
  "lodash": "^4.17.21",
65
65
  "luxon": "^2.0.2",
66
66
  "morgan": "^1.10.0",
67
+ "node-fetch": "^2.6.1",
67
68
  "nunjucks": "^3.2.3",
68
69
  "octokit-plugin-create-pull-request": "^3.10.0",
69
70
  "uuid": "^8.2.0",
71
+ "vm2": "^3.9.5",
70
72
  "winston": "^3.2.1",
71
73
  "yaml": "^1.10.0"
72
74
  },
73
75
  "devDependencies": {
74
- "@backstage/cli": "^0.9.0",
75
- "@backstage/test-utils": "^0.1.22",
76
+ "@backstage/cli": "^0.10.2",
77
+ "@backstage/test-utils": "^0.1.24",
76
78
  "@types/command-exists": "^1.2.0",
77
79
  "@types/fs-extra": "^9.0.1",
78
80
  "@types/git-url-parse": "^9.0.0",
79
81
  "@types/mock-fs": "^4.13.0",
80
82
  "@types/nunjucks": "^3.1.4",
81
83
  "@types/supertest": "^2.0.8",
84
+ "esbuild": "^0.14.1",
82
85
  "jest-when": "^3.1.0",
83
86
  "mock-fs": "^5.1.0",
84
87
  "msw": "^0.35.0",
@@ -88,8 +91,9 @@
88
91
  "files": [
89
92
  "dist",
90
93
  "migrations",
91
- "config.d.ts"
94
+ "config.d.ts",
95
+ "assets"
92
96
  ],
93
97
  "configSchema": "config.d.ts",
94
- "gitHead": "ddfdcd2b44dc9848cf550cea5346d5f9916a36d9"
98
+ "gitHead": "9ff0f1e76d4510edda2f1b1b3e58cba168a76190"
95
99
  }