Skip to content

πŸŽ₯ Make videos programmatically with React

.

Matt Mcgillivrayc7fbb55a67db
diff --git a/.gitignore b/.gitignore
index 5b9b4bc471..eadbbbfd3a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,4 @@ packages/example/out
.vercel
packages/renderer/target
packages/gcp/src/remotion-lambda-gcp.code-workspace
+sa-key.json
diff --git a/packages/example/package.json b/packages/example/package.json
index d262b1c8e7..c6f5ddbc84 100644
--- a/packages/example/package.json
+++ b/packages/example/package.json
@@ -41,6 +41,7 @@
"@remotion/renderer": "3.3.36",
"@remotion/shapes": "3.3.36",
"@remotion/three": "3.3.36",
+ "@remotion/gcp": "0.0.1",
"@types/express": "^4.17.11",
"@types/node": "^16.7.5",
"@types/react": "18.0.26",
diff --git a/packages/gcp/package.json b/packages/gcp/package.json
index a930768712..70d37c359a 100644
--- a/packages/gcp/package.json
+++ b/packages/gcp/package.json
@@ -4,7 +4,8 @@
"description": "GCP alternative to lambda rendering",
"main": "dist/index.js",
"scripts": {
- "build": "ts-node src/admin/bundle-renderLogic.ts",
+ "build": "tsc -d && pnpm run buildContainer",
+ "buildContainer": "ts-node src/admin/bundle-renderLogic.ts",
"start": "functions-framework --target=TypescriptFunction",
"prestart": "pnpm run build"
},
@@ -13,17 +14,18 @@
},
"dependencies": {
"@google-cloud/functions-framework": "^3.1.3",
- "@remotion/renderer": "3.3.36",
- "remotion": "3.3.36",
- "@remotion/bundler": "3.3.36",
"@google-cloud/storage": "^6.9.1",
- "minimist": "1.2.6",
- "@remotion/cli": "3.3.36"
+ "@google-cloud/run": "^0.4.0",
+ "@remotion/bundler": "3.3.36",
+ "@remotion/cli": "3.3.36",
+ "@remotion/renderer": "3.3.36",
+ "remotion": "3.3.36"
},
"devDependencies": {
"prettier-plugin-organize-imports": "^3.2.2",
"typescript": "^4.7.0",
"@remotion/compositor-linux-x64-musl": "3.3.36",
- "ts-node": "^10.8.0"
+ "ts-node": "^10.8.0",
+ "@types/minimist": "1.2.2"
}
}
diff --git a/packages/gcp/remotion-gcp-cli.mjs b/packages/gcp/remotion-gcp-cli.mjs
index 72587c6077..c44ec68ca2 100755
--- a/packages/gcp/remotion-gcp-cli.mjs
+++ b/packages/gcp/remotion-gcp-cli.mjs
@@ -1,33 +1,63 @@
#!/usr/bin/env node
-import { exec } from 'child_process';
-import minimist from 'minimist';
-import {CliInternals} from '@remotion/cli';
-
-const {Log} = CliInternals;
-
-// process args:
-// [2]. remotion version (this should match in the Artifact Registry)
-// [3]. project name
-// [4]. service name
-// [5]. region
-
-let args = minimist(process.argv.slice(2));
-console.log(args);
-console.log(args.project ? `project set to: ${args.project}` : 'no project set');
-// console.log(args.remotionVersion ? `remotion version requested: ${args.remotionVersion}` : 'no remotion-version passed');
-if (args.remotionVersion) {
- console.log(`remotion version requested: ${args.remotionVersion}`)
-} else {
- Log.error('no remotion version set!')
-}
+import { v2 } from '@google-cloud/run';
+import fs from 'fs';
+
+// npx remotion-gcp --remotion-version=3.3.36-alpha --project=remotion-lambda --service-name=hello --region=australia-southeast1
+
+const { ServicesClient } = v2;
+
+const sa_data = fs.readFileSync('./sa-key.json', 'utf8');
+const sa_json = JSON.parse(sa_data)
+
+const runClient = new ServicesClient({
+ credentials: sa_json
+});
+
+const newService = await createService()
-// exec(`gcloud run deploy ${process.argv[4]} --image=us-docker.pkg.dev/remotion-dev/cloud-run/render:${process.argv[2]} --project=${args.project} --region=${process.argv[5]} --allow-unauthenticated`,
-// (error, stdout, stderr) => {
-// console.log(stdout);
-// console.log(stderr);
-// if (error !== null) {
-// console.log(`exec error: ${error}`);
-// }
-// });
+// TODO: Check input for whether to allow unauthenticated access
+allowUnauthenticatedAccess(newService)
+
+
+async function createService() {
+ const project = 'remotion-lambda' // TODO: get from args
+ const location = 'australia-southeast1' // TODO: get from args
+
+ const parent = `projects/${project}/locations/${location}`
+ const serviceId = 'remotionCloudRun' // TODO: get from args, or use a default name
+
+ // service structure: https://googleapis.dev/nodejs/run/latest/google.cloud.run.v2.IService.html
+ const service = {
+ template: {
+ containers: [
+ { image: 'us-docker.pkg.dev/remotion-dev/cloud-run/render:3.3.36-alpha' }
+ ]
+ }
+ }
+ // Construct request
+ const request = {
+ parent,
+ service,
+ serviceId,
+ };
+
+ // Run request
+ const [operation] = await runClient.createService(request);
+ const [response] = await operation.promise();
+ return response.name
+}
-// npx remotion-gcp --remotion-version=3.3.36-alpha --project=remotion-lambda --service-name=hello --region=australia-southeast1
\ No newline at end of file
+async function allowUnauthenticatedAccess(newService) {
+ await runClient.setIamPolicy(
+ {
+ resource: newService,
+ policy: {
+ bindings: [
+ {
+ role: 'roles/run.invoker',
+ members: ['allUsers']
+ }
+ ]
+ }
+ });
+}
\ No newline at end of file
diff --git a/packages/gcp/src/api/check-if-service-exists.ts b/packages/gcp/src/api/check-if-service-exists.ts
new file mode 100644
index 0000000000..21da73ce51
--- /dev/null
+++ b/packages/gcp/src/api/check-if-service-exists.ts
@@ -0,0 +1,55 @@
+import { v2, protos } from '@google-cloud/run';
+import fs from 'fs';
+import { validateGcpRegion } from '../shared/validate-gcp-region';
+import { validateServiceName } from '../shared/validate-service-name';
+import { validateProjectID } from '../shared/validate-project-id';
+
+export type CheckIfServiceExistsInput = {
+ serviceNameToCheck: string;
+ projectID: string;
+ region: string;
+};
+
+/**
+ * @description Lists Cloud Run services in the project, and checks for a matching name.
+ * @link https://remotion.dev/docs/lambda/deployfunction
+ * @param options.projectID GCP Project ID to deploy the Cloud Run service to.
+ * @param options.serviceNameToCheck The name of the Cloud Run service.
+ * @param options.region The region you want to deploy your Cloud Run service to.
+ * @returns {Promise<protos.google.cloud.run.v2.IService>} If the service exists, the service object will be returned, otherwise false.
+ */
+export const checkIfServiceExists = async (
+ options: CheckIfServiceExistsInput
+): Promise<protos.google.cloud.run.v2.IService | undefined> => {
+ validateGcpRegion(options.region);
+ validateServiceName(options.serviceNameToCheck);
+ validateProjectID(options.projectID);
+
+ const parent = `projects/${options.projectID}/locations/${options.region}`
+
+ const { ServicesClient } = v2;
+
+ const sa_data = fs.readFileSync('./sa-key.json', 'utf8');
+ const sa_json = JSON.parse(sa_data)
+
+ const runClient = new ServicesClient({
+ credentials: sa_json
+ });
+ // Construct request
+ const request = {
+ parent,
+ };
+
+ // Run request
+ try {
+ const iterable = runClient.listServicesAsync(request);
+ for await (const response of iterable) {
+ if (response.name === `${parent}/services/${options.serviceNameToCheck}`) {
+ return response
+ }
+ }
+ return
+ } catch (e: any) {
+ throw e;
+ }
+}
diff --git a/packages/gcp/src/api/cloud-run-allow-unauthenticated-access.ts b/packages/gcp/src/api/cloud-run-allow-unauthenticated-access.ts
new file mode 100644
index 0000000000..a8cd0ecceb
--- /dev/null
+++ b/packages/gcp/src/api/cloud-run-allow-unauthenticated-access.ts
@@ -0,0 +1,30 @@
+import { getCloudRunClient } from './get-cloud-run-client';
+
+/**
+ * @description Allow unauthenticated access to the Cloud Run service.
+ * @link https://remotion.dev/docs/lambda/deployfunction
+ * @param options.serviceName The name of the Cloud Run service.
+ * @returns {Promise<Boolean>} True if operation was successful. False if not.
+ */
+export const allowUnauthenticatedAccess = async (
+ serviceName: string
+): Promise<Boolean> => {
+ const cloudRunClient = getCloudRunClient()
+ try {
+ await cloudRunClient.setIamPolicy({
+ resource: serviceName,
+ policy: {
+ bindings: [
+ {
+ role: 'roles/run.invoker',
+ members: ['allUsers']
+ }
+ ]
+ }
+ });
+
+ return true
+ } catch (e) {
+ throw e;
+ }
+}
diff --git a/packages/gcp/src/api/deploy-cloud-run-revision.ts b/packages/gcp/src/api/deploy-cloud-run-revision.ts
new file mode 100644
index 0000000000..f6d1957237
--- /dev/null
+++ b/packages/gcp/src/api/deploy-cloud-run-revision.ts
@@ -0,0 +1,62 @@
+import { IService } from './helpers/IService';
+import { validateGcpRegion } from '../shared/validate-gcp-region';
+import { validateProjectID } from '../shared/validate-project-id';
+import { validateRemotionVersion } from '../shared/validate-remotion-version';
+import { getCloudRunClient } from './get-cloud-run-client';
+
+export type DeployCloudRunRevisionInput = {
+ remotionVersion: string;
+ existingService: IService;
+ projectID: string;
+ region: string;
+};
+
+/**
+ * @description Creates a Cloud Run service in your project that will be able to render a video in GCP.
+ * @link https://remotion.dev/docs/lambda/deployfunction
+ * @param options.remotionVersion Which version of Remotion to use within the Cloud Run service.
+ * @param options.projectID GCP Project ID to deploy the Cloud Run service to.
+ * @param options.existingService The Cloud Run service to receive a new revision.
+ * @param options.region The region you want to deploy your Cloud Run service to.
+ * @returns {Promise<IService>} An object that contains the `functionName` property
+ */
+export const deployCloudRunRevision = async (
+ options: DeployCloudRunRevisionInput
+): Promise<IService> => {
+ validateGcpRegion(options.region);
+ validateProjectID(options.projectID);
+ validateRemotionVersion(options.remotionVersion);
+
+ // TODO: Add option for CPU and memory limits, and validate
+
+ const cloudRunClient = getCloudRunClient()
+
+ // Construct request
+ const request = {
+ service: {
+ name: options.existingService.name,
+ template: {
+ containers: [
+ {
+ image: `us-docker.pkg.dev/remotion-dev/cloud-run/render:${options.remotionVersion}`,
+ resources: {
+ limits: {
+ cpu: '1',
+ memory: '4Gi'
+ }
+ }
+ }
+ ]
+ }
+ }
+ };
+ // Run request
+ try {
+ const [operation] = await cloudRunClient.updateService(request);
+ const [response] = await operation.promise();
+
+ return response
+ } catch (e: any) {
+ throw e;
+ }
+}
diff --git a/packages/gcp/src/api/deploy-cloud-run.ts b/packages/gcp/src/api/deploy-cloud-run.ts
deleted file mode 100644
index 2a1689600d..0000000000
--- a/packages/gcp/src/api/deploy-cloud-run.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-import { validateGcpRegion } from '../shared/validate-gcp-region';
-import { validateServiceName } from '../shared/validate-service-name';
-import { validateProjectID } from '../shared/validate-project-id';
-import { exec } from 'child_process';
-
-export type DeployCloudRunInput = {
- remotionVersion: string;
- serviceName: string;
- projectID: string;
- region: string;
- allowUnauthenticated: boolean;
-};
-
-// TODO - add some meaningful output
-// export type DeployCloudRunOutput = {
-// functionName: string;
-// alreadyExisted: boolean;
-// };
-
-/**
- * @description Creates a Cloud Run service in your project that will be able to render a video in GCP.
- * @link https://remotion.dev/docs/lambda/deployfunction
- * @param options.remotionVersion Which version of Remotion to use within the Cloud Run service.
- * @param options.projectID GCP Project ID to deploy the Cloud Run service to.
- * @param options.serviceName The name of the Cloud Run service.
- * @param options.region The region you want to deploy your Cloud Run service to.
- * @param options.allowUnauthenticated Defaults true. If true, allow anyone with the Cloud Run url to trigger the service. Alternatively, manage access via Cloud IAM in GCP.
- * @returns {Promise<DeployCloudRunOutput>} An object that contains the `functionName` property
- */
-export const deployCloudRun = async (
- options: DeployCloudRunInput
-): Promise<undefined> => {
- validateGcpRegion(options.region);
- validateServiceName(options.serviceName);
- validateProjectID(options.projectID);
-
-
-exec(`gcloud run deploy ${options.serviceName} --image=us-docker.pkg.dev/remotion-dev/cloud-run/render:${options.remotionVersion} --project=${options.projectID} --region=${options.region} ${options.allowUnauthenticated ? '--allow-unauthenticated' : '--no-allow-unauthenticated'}`,
- (error, stdout, stderr) => {
- console.log(stdout);
- console.log(stderr);
- if (error !== null) {
- console.log(`exec error: ${error}`);
- }
- });
-
- // TODO - return cloud run serve url
- return ;
-};
diff --git a/packages/gcp/src/api/deploy-new-cloud-run.ts b/packages/gcp/src/api/deploy-new-cloud-run.ts
new file mode 100644
index 0000000000..87661790b2
--- /dev/null
+++ b/packages/gcp/src/api/deploy-new-cloud-run.ts
@@ -0,0 +1,59 @@
+import { IService } from './helpers/IService';
+import { validateGcpRegion } from '../shared/validate-gcp-region';
+import { validateServiceName } from '../shared/validate-service-name';
+import { validateProjectID } from '../shared/validate-project-id';
+import { getCloudRunClient } from './get-cloud-run-client';
+import { validateRemotionVersion } from '../shared/validate-remotion-version';
+
+export type DeployCloudRunInput = {
+ remotionVersion: string;
+ serviceName: string;
+ projectID: string;
+ region: string;
+ overwriteService: boolean;
+};
+
+/**
+ * @description Creates a Cloud Run service in your project that will be able to render a video in GCP.
+ * @link https://remotion.dev/docs/lambda/deployfunction
+ * @param options.remotionVersion Which version of Remotion to use within the Cloud Run service.
+ * @param options.projectID GCP Project ID to deploy the Cloud Run service to.
+ * @param options.serviceName The name of the Cloud Run service.
+ * @param options.region The region you want to deploy your Cloud Run service to.
+ * @returns {Promise<IService>} An object that contains the `functionName` property
+ */
+export const deployNewCloudRun = async (
+ options: DeployCloudRunInput
+): Promise<IService> => {
+ validateGcpRegion(options.region);
+ validateServiceName(options.serviceName);
+ validateProjectID(options.projectID);
+ validateRemotionVersion(options.remotionVersion);
+
+ const parent = `projects/${options.projectID}/locations/${options.region}`
+
+ const cloudRunClient = getCloudRunClient()
+
+ // Construct request
+ const request = {
+ parent,
+ service: { // service structure: https://googleapis.dev/nodejs/run/latest/google.cloud.run.v2.IService.html
+ template: {
+ containers: [
+ { image: `us-docker.pkg.dev/remotion-dev/cloud-run/render:${options.remotionVersion}` }
+ ]
+ }
+ },
+ serviceId: options.serviceName
+ };
+
+ // Run request
+ try {
+ const [operation] = await cloudRunClient.createService(request);
+ const [response] = await operation.promise();
+
+ return response
+ } catch (e: any) {
+ throw e;
+ }
+}
diff --git a/packages/gcp/src/api/get-cloud-run-client.ts b/packages/gcp/src/api/get-cloud-run-client.ts
new file mode 100644
index 0000000000..0c9bdba4e5
--- /dev/null
+++ b/packages/gcp/src/api/get-cloud-run-client.ts
@@ -0,0 +1,13 @@
+import { v2 } from '@google-cloud/run';
+import fs from 'fs';
+
+const { ServicesClient } = v2;
+
+const sa_data = fs.readFileSync('./sa-key.json', 'utf8');
+const sa_json = JSON.parse(sa_data)
+
+export const getCloudRunClient = () => {
+ return new ServicesClient({
+ credentials: sa_json
+ })
+};
diff --git a/packages/gcp/src/api/helpers/IService.ts b/packages/gcp/src/api/helpers/IService.ts
new file mode 100644
index 0000000000..70e8976b01
--- /dev/null
+++ b/packages/gcp/src/api/helpers/IService.ts
@@ -0,0 +1,3 @@
+import { protos } from '@google-cloud/run';
+
+export type IService = protos.google.cloud.run.v2.IService
\ No newline at end of file
diff --git a/packages/gcp/src/cli/args.ts b/packages/gcp/src/cli/args.ts
index 5b00cd47c1..e06bce043c 100644
--- a/packages/gcp/src/cli/args.ts
+++ b/packages/gcp/src/cli/args.ts
@@ -8,6 +8,10 @@ type GCPCommandLineOptions = {
['remotion-version']: string | undefined;
['service-name']: string;
['allow-unauthenticated']: boolean | undefined;
+ y: boolean;
+ yes: boolean;
+ force: boolean;
+ f: boolean;
};
export const parsedGcpCli = CliInternals.minimist<GCPCommandLineOptions>(
@@ -16,3 +20,9 @@ export const parsedGcpCli = CliInternals.minimist<GCPCommandLineOptions>(
boolean: CliInternals.BooleanFlags,
}
);
+
+export const forceFlagProvided =
+ parsedGcpCli.f ||
+ parsedGcpCli.force ||
+ parsedGcpCli.yes ||
+ parsedGcpCli.y;
diff --git a/packages/gcp/src/cli/commands/cloud-run/deploy.ts b/packages/gcp/src/cli/commands/cloud-run/deploy.ts
index 6114b31448..cfb0dd8538 100644
--- a/packages/gcp/src/cli/commands/cloud-run/deploy.ts
+++ b/packages/gcp/src/cli/commands/cloud-run/deploy.ts
@@ -1,12 +1,19 @@
import { CliInternals } from '@remotion/cli';
import { Log } from '@remotion/cli/dist/log';
import { VERSION } from 'remotion/version';
-import { deployCloudRun } from '../../../api/deploy-cloud-run';
+import { deployNewCloudRun } from '../../../api/deploy-new-cloud-run';
+import { deployCloudRunRevision } from '../../../api/deploy-cloud-run-revision';
+import { allowUnauthenticatedAccess } from '../../../api/cloud-run-allow-unauthenticated-access';
import { validateServiceName } from '../../../shared/validate-service-name';
import { validateProjectID } from '../../../shared/validate-project-id';
import { validateRemotionVersion } from '../../../shared/validate-remotion-version';
+import { validateGcpRegion } from '../../../shared/validate-gcp-region';
+import { validateOverwrite } from '../../../shared/validate-overwrite';
import { parsedGcpCli } from '../../args';
import { getGcpRegion } from '../../get-gcp-region';
+import { checkIfServiceExists } from '../../../api/check-if-service-exists';
+import { confirmCli } from '../../helpers/confirm';
+import { quit } from '../../helpers/quit';
export const CLOUD_RUN_DEPLOY_SUBCOMMAND = 'deploy';
@@ -15,11 +22,14 @@ export const cloudRunDeploySubcommand = async () => {
const serviceName = parsedGcpCli['service-name'];
const projectID = parsedGcpCli['project-id'];
const remotionVersion = parsedGcpCli['remotion-version'] ?? VERSION;
- const allowUnauthenticated = parsedGcpCli['allow-unauthenticated'] ?? true;
+ const allowUnauthenticated = parsedGcpCli['allow-unauthenticated'] ?? false;
+ const overwriteService = parsedGcpCli['overwrite-service'] ?? false;
+ validateGcpRegion(region);
validateServiceName(serviceName);
validateProjectID(projectID);
validateRemotionVersion(remotionVersion);
+ validateOverwrite(overwriteService);
if (!CliInternals.quietFlagProvided()) {
Log.info(
CliInternals.chalk.gray(
@@ -29,29 +39,128 @@ Service Name = ${serviceName}
Project Name = ${projectID}
Region = ${region}
Allow Unauthenticated Access = ${allowUnauthenticated}
+Overwrite exsting service = ${overwriteService}
`.trim()
)
);
}
- const output = CliInternals.createOverwriteableCliOutput(
- CliInternals.quietFlagProvided()
- );
- output.update('Deploying Cloud Run...');
- await deployCloudRun({
- remotionVersion,
- serviceName,
- projectID,
- region,
- allowUnauthenticated
- });
+ const existingService = await checkIfServiceExists({
+ serviceNameToCheck: serviceName,
+ projectID: projectID,
+ region: region
+ })
+
+ if (existingService) {
+ const shouldDeployNewRevision = overwriteService || await confirmCli({ delMessage: `Existing service found in ${projectID} project. Deploy new revision? (Y/n)`, allowForceFlag: true });
+
+ if (shouldDeployNewRevision) {
+ Log.info(
+ CliInternals.chalk.white('Deploying Cloud Run Revision...')
+ );
+ try {
+ const deployRevisionResult = await deployCloudRunRevision({
+ remotionVersion,
+ existingService,
+ projectID,
+ region
+ });
+ // TODO: should somehow check if the new revision was identical to the previous one, and therefore not actually revised
+
+ if (!deployRevisionResult.name || !deployRevisionResult.uri) {
+ throw new Error(`Failed to deploy revision. Invalid response from Cloud Run πŸ‘‰ ${deployRevisionResult}`);
+ }
+ Log.info(
+ CliInternals.chalk.blueBright(`
+Cloud Run Revision Deployed! πŸŽ‰
+Service Name = ${deployRevisionResult.name}
+Cloud Run URL = ${deployRevisionResult.uri}
+Project = ${projectID}
+GCP Console URL = https://console.cloud.google.com/run/detail/${region}/${serviceName}/revisions
+ `.trim())
+ );
+
+ allowUnauthenticated && await allowUnauthenticatedAccessToService(deployRevisionResult.name)
+ }
+ catch (e: any) {
+ throw e;
+ }
+ } else {
+ Log.info(CliInternals.chalk.gray('deploy cancelled'))
+ quit(1) // TODO: Check with Jonny what to pass to quit
+ }
+ } else { // if no existing service, deploy new service
+ Log.info(
+ CliInternals.chalk.white('\nDeploying Cloud Run Service...')
+ );
+ try {
+ const deployResult = await deployNewCloudRun({
+ remotionVersion,
+ serviceName,
+ projectID,
+ region,
+ overwriteService
+ });
+
+ if (!deployResult.name) {
+ Log.error('service name not returned from Cloud Run API.');
+ throw new Error(JSON.stringify(deployResult));
+ }
+
+ if (!deployResult.uri) {
+ Log.error('service uri not returned from Cloud Run API.');
+ throw new Error(JSON.stringify(deployResult));
+ }
+
+ Log.info(
+ CliInternals.chalk.blueBright(`
+Cloud Run Deployed! πŸŽ‰
+Full Service Name = ${deployResult.name}
+Cloud Run URL = ${deployResult.uri}
+Project = ${projectID}
+GCP Console URL = https://console.cloud.google.com/run/detail/${region}/${serviceName}/revisions
+ `.trim())
+ );
+
+ allowUnauthenticated && await allowUnauthenticatedAccessToService(deployResult.name)
+ // allowUnauthenticated && await allowUnauthenticatedAccess(deployResult.name)
+ } catch (e: any) {
+ if (e.code === 6) {
+ Log.error(
+ CliInternals.chalk.red(
+ `Failed to deploy service - ${serviceName} already exists in ${parent}.`
+ )
+ );
+ } else {
+ throw e;
+ }
+ }
+
+ }
+
+
if (CliInternals.quietFlagProvided()) {
// Log.info(functionName);
}
-
- // if (alreadyExisted) {
- // output.update(`Already exists as ${functionName}\n`);
- // } else {
- // output.update(`Deployed as ${functionName}\n`);
- // }
};
+
+async function allowUnauthenticatedAccessToService(serviceName: string) {
+ try {
+ Log.info(
+ CliInternals.chalk.white('\nAllowing unauthenticated access to the Cloud Run service...')
+ );
+ await allowUnauthenticatedAccess(serviceName)
+ Log.info(
+ CliInternals.chalk.blueBright(`Unauthenticated access granted on ${serviceName}`)
+ );
+ }
+ catch (e) {
+ Log.error(
+ CliInternals.chalk.red(
+ `Failed to allow unauthenticated access to the Cloud Run service.`
+ )
+ );
+ throw e;
+ }
+}
+
diff --git a/packages/gcp/src/cli/helpers/confirm.ts b/packages/gcp/src/cli/helpers/confirm.ts
new file mode 100644
index 0000000000..1ab96960f7
--- /dev/null
+++ b/packages/gcp/src/cli/helpers/confirm.ts
@@ -0,0 +1,16 @@
+import {forceFlagProvided} from '../args';
+import {yesOrNo} from './yes-or-no';
+
+export const confirmCli = async ({
+ delMessage,
+ allowForceFlag,
+}: {
+ delMessage: string;
+ allowForceFlag: boolean;
+}) => {
+ if (allowForceFlag && forceFlagProvided) {
+ return true;
+ }
+
+ return await yesOrNo({question: delMessage, defaultValue: true});
+};
diff --git a/packages/gcp/src/cli/helpers/yes-or-no.ts b/packages/gcp/src/cli/helpers/yes-or-no.ts
new file mode 100644
index 0000000000..ca88ec8bcb
--- /dev/null
+++ b/packages/gcp/src/cli/helpers/yes-or-no.ts
@@ -0,0 +1,57 @@
+import readline from 'readline';
+
+const options = {
+ yes: ['yes', 'y'],
+ no: ['no', 'n'],
+};
+
+function defaultInvalidHandler({
+ yesValues,
+ noValues,
+}: {
+ question: string;
+ yesValues: string[];
+ noValues: string[];
+}) {
+ process.stdout.write('\nInvalid Response.\n');
+ process.stdout.write('Answer either yes : (' + yesValues.join(', ') + ') \n');
+ process.stdout.write('Or no: (' + noValues.join(', ') + ') \n\n');
+}
+
+export const yesOrNo = ({
+ question,
+ defaultValue,
+}: {
+ question: string;
+ defaultValue: boolean;
+}): Promise<boolean> => {
+ const invalid = defaultInvalidHandler;
+
+ const yesValues = options.yes.map((v) => v.toLowerCase());
+ const noValues = options.no.map((v) => v.toLowerCase());
+
+ const rl = readline.createInterface({
+ input: process.stdin,
+ output: process.stdout,
+ });
+
+ return new Promise<boolean>((resolve) => {
+ rl.question(question + ' ', async (answer) => {
+ rl.close();
+
+ const cleaned = answer.trim().toLowerCase();
+ if (cleaned === '' && defaultValue !== null) return resolve(defaultValue);
+
+ if (yesValues.indexOf(cleaned) >= 0) return resolve(true);
+
+ if (noValues.indexOf(cleaned) >= 0) return resolve(false);
+
+ invalid({question, yesValues, noValues});
+ const result = await yesOrNo({
+ question,
+ defaultValue,
+ });
+ resolve(result);
+ });
+ });
+};
diff --git a/packages/gcp/src/helpers/get-composition-from-body.ts b/packages/gcp/src/functions/helpers/get-composition-from-body.ts
similarity index 100%
rename from packages/gcp/src/helpers/get-composition-from-body.ts
rename to packages/gcp/src/functions/helpers/get-composition-from-body.ts
diff --git a/packages/gcp/src/functions/index.ts b/packages/gcp/src/functions/index.ts
new file mode 100644
index 0000000000..59daae3169
--- /dev/null
+++ b/packages/gcp/src/functions/index.ts
@@ -0,0 +1,20 @@
+import * as ff from '@google-cloud/functions-framework';
+import { renderMediaSingleThread } from "./render-media-single-thread";
+import { renderStillSingleThread } from "./render-still-single-thread";
+
+const renderOnCloudRun = async (req: ff.Request, res: ff.Response) => {
+ const renderType = req.body.type;
+
+ switch (renderType) {
+ case 'media':
+ await renderMediaSingleThread(req, res);
+ break;
+ case 'still':
+ await renderStillSingleThread(req, res);
+ break;
+ default:
+ res.status(400).send('Invalid render type, must be either "media" or "still"');
+ }
+};
+
+export { renderOnCloudRun }
\ No newline at end of file
diff --git a/packages/gcp/src/functions/render-media-single-thread.ts b/packages/gcp/src/functions/render-media-single-thread.ts
index d71b5df198..888dc343ae 100644
--- a/packages/gcp/src/functions/render-media-single-thread.ts
+++ b/packages/gcp/src/functions/render-media-single-thread.ts
@@ -1,5 +1,5 @@
import * as ff from '@google-cloud/functions-framework';
-import { getCompositionFromBody } from '../helpers/get-composition-from-body';
+import { getCompositionFromBody } from './helpers/get-composition-from-body';
import { renderMedia } from '@remotion/renderer';
import { Storage } from '@google-cloud/storage';
diff --git a/packages/gcp/src/functions/render-still-single-thread.ts b/packages/gcp/src/functions/render-still-single-thread.ts
index 7efc105ec7..9fd4464052 100644
--- a/packages/gcp/src/functions/render-still-single-thread.ts
+++ b/packages/gcp/src/functions/render-still-single-thread.ts
@@ -1,5 +1,5 @@
import * as ff from '@google-cloud/functions-framework';
-import { getCompositionFromBody } from '../helpers/get-composition-from-body';
+import { getCompositionFromBody } from './helpers/get-composition-from-body';
import { renderStill } from '@remotion/renderer';
import { Storage } from '@google-cloud/storage';
diff --git a/packages/gcp/src/index.ts b/packages/gcp/src/index.ts
index 7f787f1009..c3fa5c9c42 100644
--- a/packages/gcp/src/index.ts
+++ b/packages/gcp/src/index.ts
@@ -1,21 +1,3 @@
-import * as ff from '@google-cloud/functions-framework';
-import { renderMediaSingleThread } from "./functions/render-media-single-thread";
-import { renderStillSingleThread } from "./functions/render-still-single-thread";
import {GCPInternals} from './internals';
-const renderOnCloudRun = async (req: ff.Request, res: ff.Response) => {
- const renderType = req.body.type;
-
- switch (renderType) {
- case 'media':
- await renderMediaSingleThread(req, res);
- break;
- case 'still':
- await renderStillSingleThread(req, res);
- break;
- default:
- res.status(400).send('Invalid render type, must be either "media" or "still"');
- }
-};
-
-export { renderOnCloudRun, GCPInternals }
\ No newline at end of file
+export { GCPInternals }
\ No newline at end of file
diff --git a/packages/gcp/src/shared/validate-overwrite.ts b/packages/gcp/src/shared/validate-overwrite.ts
new file mode 100644
index 0000000000..68a15f15c5
--- /dev/null
+++ b/packages/gcp/src/shared/validate-overwrite.ts
@@ -0,0 +1,9 @@
+export const validateOverwrite = (overwriteService: unknown) => {
+ if (overwriteService !== true && overwriteService !== false && overwriteService !== 'undefined') {
+ throw new TypeError(
+ `The 'overwrite-service' argument must be either true or false, or not included, but is ${JSON.stringify(
+ overwriteService
+ )}`
+ );
+ }
+};
diff --git a/packages/gcp/src/shared/validate-project-id.ts b/packages/gcp/src/shared/validate-project-id.ts
index 423fd5df4d..87f8f47007 100644
--- a/packages/gcp/src/shared/validate-project-id.ts
+++ b/packages/gcp/src/shared/validate-project-id.ts
@@ -3,22 +3,23 @@ import { exec } from 'child_process';
export const validateProjectID = (projectID: unknown) => {
if (typeof projectID === 'undefined') {
throw new TypeError(
- `The 'projectID' argument must be provided, but is missing.`
+ `The 'project-id' argument must be provided, but is missing.`
);
}
if (typeof projectID !== 'string') {
throw new TypeError(
- `The 'projectID' argument must be a string, but is ${JSON.stringify(
+ `The 'project-id' argument must be a string, but is ${JSON.stringify(
projectID
)}`
);
}
+ // TODO: Complete this with the node API instead of gcloud
exec(`gcloud projects describe ${projectID}`,
(error) => {
if (error !== null) {
- throw new Error(`Project ID ${projectID} not found in GCP. It either does not exist, or you do not have access to it.`)
+ throw new Error(`project-id ${projectID} not found in GCP. It either does not exist, or you do not have access to it.`)
} else {
return
}
@@ -26,7 +27,7 @@ export const validateProjectID = (projectID: unknown) => {
if (!projectID.match(/^[a-zA-Z][a-zA-Z0-9-]{0,48}[a-zA-Z0-9]$/g)) {
throw new Error(
- "The `projectID` must match the RegExp `/^[a-zA-Z][a-zA-Z0-9-]{0,48}[a-zA-Z0-9]$/g`. This means it may only start with a letter, end with a letter or number, and contain up to 49 lowercase letters, numbers or hyphens. You passed: " +
+ "The `project-id` must match the RegExp `/^[a-zA-Z][a-zA-Z0-9-]{0,48}[a-zA-Z0-9]$/g`. This means it may only start with a letter, end with a letter or number, and contain up to 49 lowercase letters, numbers or hyphens. You passed: " +
projectID +
'. Check for invalid characters.'
);
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f3e44dd674..9c0ef1aff9 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -453,6 +453,7 @@ importers:
'@remotion/cli': 3.3.36
'@remotion/eslint-config': 3.3.36
'@remotion/eslint-plugin': 3.3.36
+ '@remotion/gcp': 0.0.1
'@remotion/gif': 3.3.36
'@remotion/google-fonts': 3.3.36
'@remotion/lambda': 3.3.36
@@ -498,6 +499,7 @@ importers:
'@remotion/cli': link:../cli
'@remotion/eslint-config': link:../eslint-config
'@remotion/eslint-plugin': link:../eslint-plugin
+ '@remotion/gcp': link:../gcp
'@remotion/gif': link:../gif
'@remotion/google-fonts': link:../google-fonts
'@remotion/lambda': link:../lambda
@@ -537,26 +539,28 @@ importers:
packages/gcp:
specifiers:
'@google-cloud/functions-framework': ^3.1.3
+ '@google-cloud/run': ^0.4.0
'@google-cloud/storage': ^6.9.1
'@remotion/bundler': 3.3.36
'@remotion/cli': 3.3.36
'@remotion/compositor-linux-x64-musl': 3.3.36
'@remotion/renderer': 3.3.36
- minimist: 1.2.6
+ '@types/minimist': 1.2.2
prettier-plugin-organize-imports: ^3.2.2
remotion: 3.3.36
ts-node: ^10.8.0
typescript: ^4.7.0
dependencies:
'@google-cloud/functions-framework': 3.1.3
+ '@google-cloud/run': 0.4.0
'@google-cloud/storage': 6.9.1
'@remotion/bundler': link:../bundler
'@remotion/cli': link:../cli
'@remotion/renderer': link:../renderer
- minimist: 1.2.6
remotion: link:../core
devDependencies:
'@remotion/compositor-linux-x64-musl': link:../compositor-linux-x64-musl
+ '@types/minimist': 1.2.2
prettier-plugin-organize-imports: 3.2.2_j2odc4yr77iddtreafyicbq5hi
ts-node: 10.8.0_vnj66vw6pmisrnpmmxy72mdbpa
typescript: 4.7.2
@@ -6817,6 +6821,16 @@ packages:
engines: {node: '>=12'}
dev: false
+ /@google-cloud/run/0.4.0:
+ resolution: {integrity: sha512-DB0eMpK/jlH4joI0bPuxSANx2/BV54uQciuTBdn0R2FOfVg9qlmNDhm7COq+6US0RSwUr6WWFQgOkDrY3gnhfA==}
+ engines: {node: '>=12.0.0'}
+ dependencies:
+ google-gax: 3.5.7
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+ dev: false
+
/@google-cloud/storage/6.9.1:
resolution: {integrity: sha512-mhbRfrDgV7qM8HGn12p3dpT87Azt94s9YRzr8qR+o/ptksAkCApspzlNS2mUEeoXUMmnpwcdF2GGNpd4+6NuVw==}
engines: {node: '>=12'}
@@ -6843,6 +6857,26 @@ packages:
- supports-color
dev: false
+ /@grpc/grpc-js/1.8.8:
+ resolution: {integrity: sha512-4gfDqMLXTrorvYTKA1jL22zLvVwiHJ73t6Re1OHwdCFRjdGTDOVtSJuaWhtHaivyeDGg0LeCkmU77MTKoV3wPA==}
+ engines: {node: ^8.13.0 || >=10.10.0}
+ dependencies:
+ '@grpc/proto-loader': 0.7.4
+ '@types/node': 18.11.2
+ dev: false
+
+ /@grpc/proto-loader/0.7.4:
+ resolution: {integrity: sha512-MnWjkGwqQ3W8fx94/c1CwqLsNmHHv2t0CFn+9++6+cDphC1lolpg9M2OU0iebIjK//pBNX9e94ho+gjx6vz39w==}
+ engines: {node: '>=6'}
+ hasBin: true
+ dependencies:
+ '@types/long': 4.0.2
+ lodash.camelcase: 4.3.0
+ long: 4.0.0
+ protobufjs: 7.2.2
+ yargs: 16.2.0
+ dev: false
+
/@hapi/hoek/9.2.1:
resolution: {integrity: sha512-gfta+H8aziZsm8pZa0vj04KO6biEiisppNgA1kbJvFrrWu9Vm7eaUEy76DIxsuTaWvti5fkJVhllWc6ZTE+Mdw==}
@@ -6961,6 +6995,13 @@ packages:
'@jridgewell/sourcemap-codec': 1.4.11
dev: true
+ /@jsdoc/salty/0.2.3:
+ resolution: {integrity: sha512-bbtCxCkxcnWhi50I+4Lj6mdz9w3pOXOgEQrID8TCZ/DF51fW7M9GCQW2y45SpBDdHd1Eirm1X/Cf6CkAAe8HPg==}
+ engines: {node: '>=v12.0.0'}
+ dependencies:
+ lodash: 4.17.21
+ dev: false
+
/@leichtgewicht/ip-codec/2.0.3:
resolution: {integrity: sha512-nkalE/f1RvRGChwBnEIoBfSEYOXnCRdleKuv6+lePbMDrMZXeDQnqak5XDOeBgrPPyPfAdcCu/B5z+v3VhplGg==}
dev: false
@@ -8033,6 +8074,49 @@ packages:
resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==}
dev: false
+ /@protobufjs/aspromise/1.1.2:
+ resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}
+ dev: false
+
+ /@protobufjs/base64/1.1.2:
+ resolution: {integrity: sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==}
+ dev: false
+
+ /@protobufjs/codegen/2.0.4:
+ resolution: {integrity: sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==}
+ dev: false
+
+ /@protobufjs/eventemitter/1.1.0:
+ resolution: {integrity: sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==}
+ dev: false
+
+ /@protobufjs/fetch/1.1.0:
+ resolution: {integrity: sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==}
+ dependencies:
+ '@protobufjs/aspromise': 1.1.2
+ '@protobufjs/inquire': 1.1.0
+ dev: false
+
+ /@protobufjs/float/1.0.2:
+ resolution: {integrity: sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==}
+ dev: false
+
+ /@protobufjs/inquire/1.1.0:
+ resolution: {integrity: sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==}
+ dev: false
+
+ /@protobufjs/path/1.1.2:
+ resolution: {integrity: sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==}
+ dev: false
+
+ /@protobufjs/pool/1.1.0:
+ resolution: {integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==}
+ dev: false
+
+ /@protobufjs/utf8/1.1.0:
+ resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==}
+ dev: false
+
/@react-native-community/cli-clean/8.0.4:
resolution: {integrity: sha512-IwS1M1NHg6+qL8PThZYMSIMYbZ6Zbx+lIck9PLBskbosFo24M3lCOflOl++Bggjakp6mR+sRXxLMexid/GeOsQ==}
dependencies:
@@ -8907,6 +8991,13 @@ packages:
'@types/serve-static': 1.13.10
dev: false
+ /@types/glob/8.0.1:
+ resolution: {integrity: sha512-8bVUjXZvJacUFkJXHdyZ9iH1Eaj5V7I8c4NdH5sQJsdXkqT4CA5Dhb4yb4VE/3asyx4L9ayZr1NIhTsWHczmMw==}
+ dependencies:
+ '@types/minimatch': 5.1.2
+ '@types/node': 18.11.2
+ dev: false
+
/@types/graceful-fs/4.1.5:
resolution: {integrity: sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==}
dependencies:
@@ -8974,12 +9065,31 @@ packages:
dependencies:
'@types/node': 18.11.2
+ /@types/linkify-it/3.0.2:
+ resolution: {integrity: sha512-HZQYqbiFVWufzCwexrvh694SOim8z2d+xJl5UNamcvQFejLY/2YUtzXHYi3cHdI7PMlS8ejH2slRAOJQ32aNbA==}
+ dev: false
+
+ /@types/long/4.0.2:
+ resolution: {integrity: sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==}
+ dev: false
+
+ /@types/markdown-it/12.2.3:
+ resolution: {integrity: sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==}
+ dependencies:
+ '@types/linkify-it': 3.0.2
+ '@types/mdurl': 1.0.2
+ dev: false
+
/@types/mdast/3.0.10:
resolution: {integrity: sha512-W864tg/Osz1+9f4lrGTZpCSO5/z4608eUp19tbozkq2HJK6i3z1kT0H9tlADXuYIb1YYOBByU4Jsqkk75q48qA==}
dependencies:
'@types/unist': 2.0.6
dev: false
+ /@types/mdurl/1.0.2:
+ resolution: {integrity: sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==}
+ dev: false
+
/@types/mime-types/2.1.1:
resolution: {integrity: sha512-vXOTGVSLR2jMw440moWTC7H19iUyLtP3Z1YTj7cSsubOICinjMxFeb/V57v9QdyyPGbbWolUFSSmSiRSn94tFw==}
dev: true
@@ -8992,6 +9102,10 @@ packages:
resolution: {integrity: sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==}
dev: false
+ /@types/minimatch/5.1.2:
+ resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==}
+ dev: false
+
/@types/minimist/1.2.2:
resolution: {integrity: sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==}
@@ -9152,6 +9266,13 @@ packages:
resolution: {integrity: sha512-q6KSi3PklLGQ0CesZ/XuLwly4DXXlnJuucYOG9lrBqrP8rKiuPZThav2h2+pFjaheNpnT0qKK3i304QWIePeJw==}
dev: true
+ /@types/rimraf/3.0.2:
+ resolution: {integrity: sha512-F3OznnSLAUxFrCEu/L5PY8+ny8DtcFRjx7fZZ9bycvXRi3KPTRS9HOitGZwvPg0juRhXFWIeKX58cnX5YqLohQ==}
+ dependencies:
+ '@types/glob': 8.0.1
+ '@types/node': 18.11.2
+ dev: false
+
/@types/sax/1.2.3:
resolution: {integrity: sha512-+QSw6Tqvs/KQpZX8DvIl3hZSjNFLW/OqE5nlyHXtTwODaJvioN2rOWpBNEWZp2HZUFhOh+VohmJku/WxEXU2XA==}
dependencies:
@@ -10535,6 +10656,10 @@ packages:
inherits: 2.0.4
readable-stream: 3.6.0
+ /bluebird/3.7.2:
+ resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==}
+ dev: false
+
/body-parser/1.19.2:
resolution: {integrity: sha512-SAAwOxgoCKMGs9uUAUFHygfLAyaniaoun6I8mFY9pRAJL9+Kec34aU+oIjDhTycub1jozEfEwx1W1IuOYxVSFw==}
engines: {node: '>= 0.8'}
@@ -10604,6 +10729,12 @@ packages:
balanced-match: 1.0.2
concat-map: 0.0.1
+ /brace-expansion/2.0.1:
+ resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==}
+ dependencies:
+ balanced-match: 1.0.2
+ dev: false
+
/braces/2.3.2:
resolution: {integrity: sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==}
engines: {node: '>=0.10.0'}
@@ -10876,6 +11007,13 @@ packages:
resolution: {integrity: sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=}
dev: false
+ /catharsis/0.9.0:
+ resolution: {integrity: sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==}
+ engines: {node: '>= 10'}
+ dependencies:
+ lodash: 4.17.21
+ dev: false
+
/ccount/1.1.0:
resolution: {integrity: sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg==}
dev: false
@@ -12395,6 +12533,10 @@ packages:
resolution: {integrity: sha512-GHrMyVZQWvTIdDtpiEXdHZnFQKzeO09apj8Cbl4pKWy4i0Oprcq17usfDt5aO63swf0JOeMWjWQE/LzgSRuWpA==}
dev: false
+ /entities/2.1.0:
+ resolution: {integrity: sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==}
+ dev: false
+
/entities/2.2.0:
resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==}
dev: false
@@ -12961,6 +13103,19 @@ packages:
resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
engines: {node: '>=10'}
+ /escodegen/1.14.3:
+ resolution: {integrity: sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==}
+ engines: {node: '>=4.0'}
+ hasBin: true
+ dependencies:
+ esprima: 4.0.1
+ estraverse: 4.3.0
+ esutils: 2.0.3
+ optionator: 0.8.3
+ optionalDependencies:
+ source-map: 0.6.1
+ dev: false
+
/escodegen/2.0.0:
resolution: {integrity: sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==}
engines: {node: '>=6.0'}
@@ -13828,7 +13983,7 @@ packages:
dev: false
/fs.realpath/1.0.0:
- resolution: {integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=}
+ resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
/fsevents/2.3.2:
resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==}
@@ -14051,6 +14206,17 @@ packages:
once: 1.4.0
path-is-absolute: 1.0.1
+ /glob/8.1.0:
+ resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==}
+ engines: {node: '>=12'}
+ dependencies:
+ fs.realpath: 1.0.0
+ inflight: 1.0.6
+ inherits: 2.0.4
+ minimatch: 5.1.6
+ once: 1.4.0
+ dev: false
+
/global-dirs/3.0.0:
resolution: {integrity: sha512-v8ho2DS5RiCjftj1nD9NmnfaOzTdud7RRnVd9kFNOjqZbISlx5DQ+OrTkywgd0dIt7oFCvKetZSHoHcP3sDdiA==}
engines: {node: '>=10'}
@@ -14165,6 +14331,31 @@ packages:
- supports-color
dev: false
+ /google-gax/3.5.7:
+ resolution: {integrity: sha512-taDGwR9Ry5y6NkcPYKe0B3wr7rCwaImZZIuWajUcFe9Y8L71eBtaq0+ZJ62JByzr/2cJkd9EN1rr52rD6V/UDA==}
+ engines: {node: '>=12'}
+ hasBin: true
+ dependencies:
+ '@grpc/grpc-js': 1.8.8
+ '@grpc/proto-loader': 0.7.4
+ '@types/long': 4.0.2
+ '@types/rimraf': 3.0.2
+ abort-controller: 3.0.0
+ duplexify: 4.1.2
+ fast-text-encoding: 1.0.6
+ google-auth-library: 8.7.0
+ is-stream-ended: 0.1.4
+ node-fetch: 2.6.7
+ object-hash: 3.0.0
+ proto3-json-serializer: 1.1.0
+ protobufjs: 7.2.2
+ protobufjs-cli: [email protected]
+ retry-request: 5.0.2
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+ dev: false
+
/google-p12-pem/4.0.1:
resolution: {integrity: sha512-WPkN4yGtz05WZ5EhtlxNDWPhC4JIic6G8ePitwUWy4l+XPVYec+a0j0Ts47PDtW59y3RwAhUd9/h9ZZ63px6RQ==}
engines: {node: '>=12.0.0'}
@@ -14819,7 +15010,7 @@ packages:
dev: false
/inflight/1.0.6:
- resolution: {integrity: sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=}
+ resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
dependencies:
once: 1.4.0
wrappy: 1.0.2
@@ -15212,6 +15403,10 @@ packages:
protocols: 1.4.8
dev: false
+ /is-stream-ended/0.1.4:
+ resolution: {integrity: sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==}
+ dev: false
+
/is-stream/1.1.0:
resolution: {integrity: sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==}
engines: {node: '>=0.10.0'}
@@ -15447,6 +15642,12 @@ packages:
dependencies:
argparse: 2.0.1
+ /js2xmlparser/4.0.2:
+ resolution: {integrity: sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==}
+ dependencies:
+ xmlcreate: 2.0.4
+ dev: false
+
/jsbn/0.1.1:
resolution: {integrity: sha1-peZUwuWi3rXyAdls77yoDA7y9RM=}
dev: false
@@ -15483,6 +15684,28 @@ packages:
transitivePeerDependencies:
- supports-color
+ /jsdoc/4.0.0:
+ resolution: {integrity: sha512-tzTgkklbWKrlaQL2+e3NNgLcZu3NaK2vsHRx7tyHQ+H5jcB9Gx0txSd2eJWlMC/xU1+7LQu4s58Ry0RkuaEQVg==}
+ engines: {node: '>=12.0.0'}
+ hasBin: true
+ dependencies:
+ '@babel/parser': 7.19.1
+ '@jsdoc/salty': 0.2.3
+ '@types/markdown-it': 12.2.3
+ bluebird: 3.7.2
+ catharsis: 0.9.0
+ escape-string-regexp: 2.0.0
+ js2xmlparser: 4.0.2
+ klaw: 3.0.0
+ markdown-it: 12.3.2
+ markdown-it-anchor: 8.6.6_2zb4u3vubltivolgu556vv4aom
+ marked: 4.2.12
+ mkdirp: 1.0.4
+ requizzle: 0.2.4
+ strip-json-comments: 3.1.1
+ underscore: 1.13.6
+ dev: false
+
/jsdom/20.0.1:
resolution: {integrity: sha512-pksjj7Rqoa+wdpkKcLzQRHhJCEE42qQhl/xLMUKHgoSejaKOdaXEAnqs6uDNwMl/fciHTzKeR8Wm8cw7N+g98A==}
engines: {node: '>=14'}
@@ -15695,6 +15918,12 @@ packages:
optionalDependencies:
graceful-fs: 4.2.10
+ /klaw/3.0.0:
+ resolution: {integrity: sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==}
+ dependencies:
+ graceful-fs: 4.2.10
+ dev: false
+
/kleur/3.0.3:
resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
engines: {node: '>=6'}
@@ -15754,7 +15983,6 @@ packages:
dependencies:
prelude-ls: 1.1.2
type-check: 0.3.2
- dev: true
/levn/0.4.1:
resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
@@ -15799,6 +16027,12 @@ packages:
resolution: {integrity: sha512-8ZmlJFVK9iCmtLz19HpSsR8HaAMWBT284VMNednLwlIMDP2hJDCIhUp0IZ2xUcZ+Ob6BM0VvCSJwzASDM45NLQ==}
dev: false
+ /linkify-it/3.0.3:
+ resolution: {integrity: sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==}
+ dependencies:
+ uc.micro: 1.0.6
+ dev: false
+
/load-json-file/4.0.0:
resolution: {integrity: sha1-L19Fq5HjMhYjT9U62rZo607AmTs=}
engines: {node: '>=4'}
@@ -15893,6 +16127,10 @@ packages:
resolution: {integrity: sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=}
dev: false
+ /lodash.camelcase/4.3.0:
+ resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==}
+ dev: false
+
/lodash.clamp/4.0.3:
resolution: {integrity: sha512-HvzRFWjtcguTW7yd8NJBshuNaCa8aqNFtnswdT7f/cMd/1YKy5Zzoq4W/Oxvnx9l7aeY258uSdDfM793+eLsVg==}
dev: false
@@ -15972,6 +16210,14 @@ packages:
dayjs: 1.11.4
yargs: 15.4.1
+ /long/4.0.0:
+ resolution: {integrity: sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==}
+ dev: false
+
+ /long/5.2.1:
+ resolution: {integrity: sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==}
+ dev: false
+
/loose-envify/1.4.0:
resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
hasBin: true
@@ -16129,6 +16375,33 @@ packages:
resolution: {integrity: sha512-8z4efJYk43E0upd0NbVXwgSTQs6cT3T06etieCMEg7dRbzCbxUCK/GHlX8mhHRDcp+OLlHkPKsvqQTCvsRl2cg==}
dev: false
+ /markdown-it-anchor/8.6.6_2zb4u3vubltivolgu556vv4aom:
+ resolution: {integrity: sha512-jRW30YGywD2ESXDc+l17AiritL0uVaSnWsb26f+68qaW9zgbIIr1f4v2Nsvc0+s0Z2N3uX6t/yAw7BwCQ1wMsA==}
+ peerDependencies:
+ '@types/markdown-it': '*'
+ markdown-it: '*'
+ dependencies:
+ '@types/markdown-it': 12.2.3
+ markdown-it: 12.3.2
+ dev: false
+
+ /markdown-it/12.3.2:
+ resolution: {integrity: sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==}
+ hasBin: true
+ dependencies:
+ argparse: 2.0.1
+ entities: 2.1.0
+ linkify-it: 3.0.3
+ mdurl: 1.0.1
+ uc.micro: 1.0.6
+ dev: false
+
+ /marked/4.2.12:
+ resolution: {integrity: sha512-yr8hSKa3Fv4D3jdZmtMMPghgVt6TWbk86WQaWhDloQjRSQhMMYCAro7jP7VDJrjjdV8pxVxMssXS8B8Y5DZ5aw==}
+ engines: {node: '>= 12'}
+ hasBin: true
+ dev: false
+
/mdast-squeeze-paragraphs/3.0.5:
resolution: {integrity: sha512-xX6Vbe348Y/rukQlG4W3xH+7v4ZlzUbSY4HUIQCuYrF2DrkcHx584mCaFxkWoDZKNUfyLZItHC9VAqX3kIP7XA==}
dependencies:
@@ -16195,7 +16468,7 @@ packages:
dev: false
/mdurl/1.0.1:
- resolution: {integrity: sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=}
+ resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==}
dev: false
/mdx-constant/0.1.0:
@@ -16687,6 +16960,13 @@ packages:
dependencies:
brace-expansion: 1.1.11
+ /minimatch/5.1.6:
+ resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==}
+ engines: {node: '>=10'}
+ dependencies:
+ brace-expansion: 2.0.1
+ dev: false
+
/minimist-options/4.1.0:
resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==}
engines: {node: '>= 6'}
@@ -17278,6 +17558,11 @@ packages:
define-property: 0.2.5
kind-of: 3.2.2
+ /object-hash/3.0.0:
+ resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==}
+ engines: {node: '>= 6'}
+ dev: false
+
/object-inspect/1.11.0:
resolution: {integrity: sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg==}
@@ -17426,7 +17711,6 @@ packages:
prelude-ls: 1.1.2
type-check: 0.3.2
word-wrap: 1.2.3
- dev: true
/optionator/0.9.1:
resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==}
@@ -18441,7 +18725,6 @@ packages:
/prelude-ls/1.1.2:
resolution: {integrity: sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==}
engines: {node: '>= 0.8.0'}
- dev: true
/prelude-ls/1.2.1:
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
@@ -18641,6 +18924,52 @@ packages:
resolution: {integrity: sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=}
dev: false
+ /proto3-json-serializer/1.1.0:
+ resolution: {integrity: sha512-SjXwUWe/vANGs/mJJTbw5++7U67nwsymg7qsoPtw6GiXqw3kUy8ByojrlEdVE2efxAdKreX8WkDafxvYW95ZQg==}
+ engines: {node: '>=12.0.0'}
+ dependencies:
+ protobufjs: 7.2.2
+ dev: false
+
+ /protobufjs-cli/[email protected]:
+ resolution: {integrity: sha512-VPWMgIcRNyQwWUv8OLPyGQ/0lQY/QTQAVN5fh+XzfDwsVw1FZ2L3DM/bcBf8WPiRz2tNpaov9lPZfNcmNo6LXA==}
+ engines: {node: '>=12.0.0'}
+ hasBin: true
+ peerDependencies:
+ protobufjs: ^7.0.0
+ dependencies:
+ chalk: 4.1.2
+ escodegen: 1.14.3
+ espree: 9.4.0
+ estraverse: 5.3.0
+ glob: 8.1.0
+ jsdoc: 4.0.0
+ minimist: 1.2.7
+ protobufjs: 7.2.2
+ semver: 7.3.7
+ tmp: 0.2.1
+ uglify-js: 3.15.4
+ dev: false
+
+ /protobufjs/7.2.2:
+ resolution: {integrity: sha512-++PrQIjrom+bFDPpfmqXfAGSQs40116JRrqqyf53dymUMvvb5d/LMRyicRoF1AUKoXVS1/IgJXlEgcpr4gTF3Q==}
+ engines: {node: '>=12.0.0'}
+ requiresBuild: true
+ dependencies:
+ '@protobufjs/aspromise': 1.1.2
+ '@protobufjs/base64': 1.1.2
+ '@protobufjs/codegen': 2.0.4
+ '@protobufjs/eventemitter': 1.1.0
+ '@protobufjs/fetch': 1.1.0
+ '@protobufjs/float': 1.0.2
+ '@protobufjs/inquire': 1.1.0
+ '@protobufjs/path': 1.1.2
+ '@protobufjs/pool': 1.1.0
+ '@protobufjs/utf8': 1.1.0
+ '@types/node': 18.11.2
+ long: 5.2.1
+ dev: false
+
/protocols/1.4.8:
resolution: {integrity: sha512-IgjKyaUSjsROSO8/D49Ab7hP8mJgTYcqApOqdPhLoPxAplXmkp+zRvsrSQjFn5by0rhm4VH0GAUELIPpx7B1yg==}
dev: false
@@ -19687,6 +20016,12 @@ packages:
/requires-port/1.0.0:
resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==}
+ /requizzle/0.2.4:
+ resolution: {integrity: sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==}
+ dependencies:
+ lodash: 4.17.21
+ dev: false
+
/resolve-alpn/1.2.1:
resolution: {integrity: sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==}
@@ -21226,6 +21561,13 @@ packages:
os-tmpdir: 1.0.2
dev: false
+ /tmp/0.2.1:
+ resolution: {integrity: sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==}
+ engines: {node: '>=8.17.0'}
+ dependencies:
+ rimraf: 3.0.2
+ dev: false
+
/tmpl/1.0.5:
resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==}
@@ -21545,7 +21887,6 @@ packages:
engines: {node: '>= 0.8.0'}
dependencies:
prelude-ls: 1.1.2
- dev: true
/type-check/0.4.0:
resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
@@ -21660,6 +22001,10 @@ packages:
resolution: {integrity: sha512-6Gurc1n//gjp9eQNXjD9O3M/sMwVtN5S8Lv9bvOYBfKfDNiIIhqiyi01vMBO45u4zkDE420w/e0se7Vs+sIg+g==}
dev: false
+ /uc.micro/1.0.6:
+ resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==}
+ dev: false
+
/ufo/1.0.1:
resolution: {integrity: sha512-boAm74ubXHY7KJQZLlXrtMz52qFvpsbOxDcZOnw/Wf+LS4Mmyu7JxmzD4tDLtUQtmZECypJ0FrCz4QIe6dvKRA==}
dev: true
@@ -21679,7 +22024,6 @@ packages:
hasBin: true
requiresBuild: true
dev: false
- optional: true
/uid-number/0.0.6:
resolution: {integrity: sha1-DqEOgDXo61uOREnwbaHHMGY7qoE=}
@@ -21705,6 +22049,10 @@ packages:
has-symbols: 1.0.3
which-boxed-primitive: 1.0.2
+ /underscore/1.13.6:
+ resolution: {integrity: sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==}
+ dev: false
+
/unherit/1.1.3:
resolution: {integrity: sha512-Ft16BJcnapDKp0+J/rqFC3Rrk6Y/Ng4nzsC028k2jdDII/rdZ7Wd3pPT/6+vIIxRagwRc9K0IUX0Ra4fKvw+WQ==}
dependencies:
@@ -23004,6 +23352,10 @@ packages:
resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==}
dev: true
+ /xmlcreate/2.0.4:
+ resolution: {integrity: sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==}
+ dev: false
+
/xtend/4.0.2:
resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==}
engines: {node: '>=0.4'}