netlify-cli 17.21.0 → 17.21.2

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.
@@ -206,7 +206,7 @@ export const createDevCommand = (program) => {
206
206
  .addOption(new Option('--targetPort <port>', 'Old, prefer --target-port. Port of target app server')
207
207
  .argParser((value) => Number.parseInt(value))
208
208
  .hideHelp(true))
209
- .option('--skip-wait-port', 'disables waiting for target port to become available')
209
+ .addOption(new Option('--skip-wait-port', 'disables waiting for target port to become available').hideHelp(true))
210
210
  .addOption(new Option('--no-open', 'disables the automatic opening of a browser window'))
211
211
  .option('--target-port <port>', 'port of target app server', (value) => Number.parseInt(value))
212
212
  .option('--framework <name>', 'framework to use. Defaults to #auto which automatically detects a framework')
@@ -1 +1 @@
1
- {"version":3,"file":"functions-create.d.ts","sourceRoot":"","sources":["../../../src/commands/functions/functions-create.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAgBxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AA0tB5C,eAAO,MAAM,eAAe,SAAgB,MAAM,WAAW,YAAY,WAAW,WAAW,kBAQ9F,CAAA"}
1
+ {"version":3,"file":"functions-create.d.ts","sourceRoot":"","sources":["../../../src/commands/functions/functions-create.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAexC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AA0tB5C,eAAO,MAAM,eAAe,SAAgB,MAAM,WAAW,YAAY,WAAW,WAAW,kBAQ9F,CAAA"}
@@ -11,7 +11,6 @@ import copyTemplateDirOriginal from 'copy-template-dir';
11
11
  import { findUp } from 'find-up';
12
12
  import fuzzy from 'fuzzy';
13
13
  import inquirer from 'inquirer';
14
- // @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'node... Remove this comment to see the full error message
15
14
  import fetch from 'node-fetch';
16
15
  import ora from 'ora';
17
16
  import { fileExistsAsync } from '../../lib/fs.js';
@@ -1 +1 @@
1
- {"version":3,"file":"functions-invoke.d.ts","sourceRoot":"","sources":["../../../src/commands/functions/functions-invoke.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAOxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAwI5C,eAAO,MAAM,eAAe,iBAAwB,MAAM,WAAW,YAAY,WAAW,WAAW,kBA6FtG,CAAA"}
1
+ {"version":3,"file":"functions-invoke.d.ts","sourceRoot":"","sources":["../../../src/commands/functions/functions-invoke.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAMxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAwI5C,eAAO,MAAM,eAAe,iBAAwB,MAAM,WAAW,YAAY,WAAW,WAAW,kBA6FtG,CAAA"}
@@ -2,7 +2,6 @@ import fs from 'fs';
2
2
  import { createRequire } from 'module';
3
3
  import path from 'path';
4
4
  import inquirer from 'inquirer';
5
- // @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'node... Remove this comment to see the full error message
6
5
  import fetch from 'node-fetch';
7
6
  import { NETLIFYDEVWARN, chalk, error, exit } from '../../utils/command-helpers.js';
8
7
  import { BACKGROUND, CLOCKWORK_USERAGENT, getFunctions } from '../../utils/functions/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../src/commands/integration/deploy.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAWxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAS5C,wBAAgB,cAAc,CAAC,WAAW,KAAA,EAAE,YAAY,KAAA,OAOvD;AA2FD,wBAAsB,mBAAmB,CAAC,UAAU,KAAA,EAAE,MAAM,KAAA,EAAE,SAAS,KAAA,EAAE,sBAAsB,KAAA,EAAE,KAAK,KAAA,iBAwErG;AAGD,wBAAsB,iBAAiB,CAErC,UAAU,KAAA,EAEV,OAAO,KAAA,EAEP,MAAM,KAAA,EAEN,SAAS,KAAA,EAET,sBAAsB,KAAA,EAEtB,KAAK,KAAA,EAEL,qBAAqB,KAAA,iBA6HtB;AA4BD,eAAO,MAAM,gBAAgB,0BA6B5B,CAAA;AAED,eAAO,MAAM,MAAM,YAAmB,YAAY,WAAW,WAAW,kBAmEvE,CAAA"}
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../src/commands/integration/deploy.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAUxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAS5C,wBAAgB,cAAc,CAAC,WAAW,KAAA,EAAE,YAAY,KAAA,OAOvD;AA0FD,wBAAsB,mBAAmB,CAAC,UAAU,KAAA,EAAE,MAAM,KAAA,EAAE,SAAS,KAAA,EAAE,sBAAsB,KAAA,EAAE,KAAK,KAAA,iBAuErG;AAED,wBAAsB,iBAAiB,CAErC,UAAU,KAAA,EAEV,OAAO,KAAA,EAEP,MAAM,KAAA,EAEN,SAAS,KAAA,EAET,sBAAsB,KAAA,EAEtB,KAAK,KAAA,EAEL,qBAAqB,KAAA,iBA4HtB;AA4BD,eAAO,MAAM,gBAAgB,0BA6B5B,CAAA;AAED,eAAO,MAAM,MAAM,YAAmB,YAAY,WAAW,WAAW,kBAkEvE,CAAA"}
@@ -4,7 +4,6 @@ import { exit, env } from 'process';
4
4
  import inquirer from 'inquirer';
5
5
  // @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'js-y... Remove this comment to see the full error message
6
6
  import yaml from 'js-yaml';
7
- // @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'node... Remove this comment to see the full error message
8
7
  import fetch from 'node-fetch';
9
8
  import { z } from 'zod';
10
9
  import { getBuildOptions } from '../../lib/build.js';
@@ -97,7 +96,6 @@ function verifyRequiredFieldsAreInConfig(name, description, scopes, integrationL
97
96
  return true;
98
97
  }
99
98
  // @ts-expect-error TS(7006) FIXME: Parameter 'workingDir' implicitly has an 'any' typ... Remove this comment to see the full error message
100
- // eslint-disable-next-line max-params
101
99
  export async function registerIntegration(workingDir, siteId, accountId, localIntegrationConfig, token) {
102
100
  const { description, integrationLevel, name, scopes, slug } = localIntegrationConfig;
103
101
  log(chalk.yellow(`An integration associated with the site ID ${siteId} is not registered.`));
@@ -131,7 +129,6 @@ export async function registerIntegration(workingDir, siteId, accountId, localIn
131
129
  scopes: formatScopesForRemote(scopes),
132
130
  integrationLevel,
133
131
  }),
134
- // @ts-expect-error TS(7006) FIXME: Parameter 'res' implicitly has an 'any' type.
135
132
  }).then(async (res) => {
136
133
  const response = await res.json();
137
134
  return { body: response, statusCode: res.status };
@@ -154,7 +151,6 @@ export async function registerIntegration(workingDir, siteId, accountId, localIn
154
151
  await fs.promises.writeFile(filePath, updatedIntegrationConfig);
155
152
  log(chalk.yellow('Your integration.yaml file has been updated. Please commit and push these changes.'));
156
153
  }
157
- // eslint-disable-next-line max-params
158
154
  export async function updateIntegration(
159
155
  // @ts-expect-error TS(7006) FIXME: Parameter 'workingDir' implicitly has an 'any' typ... Remove this comment to see the full error message
160
156
  workingDir,
@@ -1 +1 @@
1
- {"version":3,"file":"geo-location.d.ts","sourceRoot":"","sources":["../../src/lib/geo-location.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAOxB,CAAA;AAED;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,cAAc;;;;;kBAyD1B,CAAA"}
1
+ {"version":3,"file":"geo-location.d.ts","sourceRoot":"","sources":["../../src/lib/geo-location.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAOxB,CAAA;AAED;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,cAAc;;;;;kBAyD1B,CAAA"}
@@ -1,4 +1,3 @@
1
- // @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'node... Remove this comment to see the full error message
2
1
  import fetch from 'node-fetch';
3
2
  const API_URL = 'https://netlifind.netlify.app';
4
3
  const STATE_GEO_PROPERTY = 'geolocation';