netlify-cli 17.27.0 → 17.29.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.
@@ -26,7 +26,8 @@ declare const hashFns: (command: BaseCommand, directories: string[], config: {
26
26
  } | undefined)[];
27
27
  functions: {};
28
28
  functionsWithNativeModules: (Omit<import("@netlify/zip-it-and-ship-it/dist/function.js").FunctionArchive, "runtime"> & {
29
- routes?: import("@netlify/zip-it-and-ship-it/dist/utils/routes.js").Route[] | undefined;
29
+ routes?: import("@netlify/zip-it-and-ship-it").ExtendedRoute[] | undefined;
30
+ excludedRoutes?: import("@netlify/zip-it-and-ship-it").Route[] | undefined;
30
31
  runtime: import("@netlify/zip-it-and-ship-it").RuntimeName;
31
32
  schedule?: string | undefined;
32
33
  runtimeAPIVersion?: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"hash-fns.d.ts","sourceRoot":"","sources":["../../../src/utils/deploy/hash-fns.ts"],"names":[],"mappings":"AAYA,OAAO,WAAW,MAAM,gCAAgC,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAoGlD,QAAA,MAAM,OAAO,YACF,WAAW,eACP,MAAM,EAAE,UACb;IACN,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,QAAQ,CAAA;IACzB,wBAAwB;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,QAAQ,CAAA;IACtB,OAAO,EAAE,QAAQ,CAAA;IACjB,kBAAkB,EAAE,QAAQ,CAAA;IAC5B,QAAQ,EAAE,QAAQ,CAAA;IAClB,MAAM,EAAE,QAAQ,CAAA;CACjB;;;;;;;;;;;;;;;;;;;oBAvFyC,OAAO;;;;;EA8LlD,CAAA;AAED,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"hash-fns.d.ts","sourceRoot":"","sources":["../../../src/utils/deploy/hash-fns.ts"],"names":[],"mappings":"AAUA,OAAO,WAAW,MAAM,gCAAgC,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAoGlD,QAAA,MAAM,OAAO,YACF,WAAW,eACP,MAAM,EAAE,UACb;IACN,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,QAAQ,CAAA;IACzB,wBAAwB;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,QAAQ,CAAA;IACtB,OAAO,EAAE,QAAQ,CAAA;IACjB,kBAAkB,EAAE,QAAQ,CAAA;IAC5B,QAAQ,EAAE,QAAQ,CAAA;IAClB,MAAM,EAAE,QAAQ,CAAA;CACjB;;;;;;;;;;;;;;;;;;;;oBAvFyC,OAAO;;;;;EA+LlD,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -119,6 +119,7 @@ const hashFns = async (command, directories, config) => {
119
119
  ...funcs,
120
120
  [curr.name]: {
121
121
  display_name: curr.displayName,
122
+ excluded_routes: curr.excludedRoutes,
122
123
  generator: curr.generator,
123
124
  routes: curr.routes,
124
125
  build_data: curr.buildData,
@@ -602,9 +602,6 @@ const onRequest = async ({ addonsUrls, api, edgeFunctionsProxy, env, functionsRe
602
602
  jwtRolePath: settings.jwtRolePath,
603
603
  framework: settings.framework,
604
604
  };
605
- if (api && process.env.NETLIFY_DEV_SERVER_ID) {
606
- notifyActivity(api, siteInfo.id, process.env.NETLIFY_DEV_SERVER_ID);
607
- }
608
605
  if (match) {
609
606
  // We don't want to generate an ETag for 3xx redirects.
610
607
  // @ts-expect-error TS(7031) FIXME: Binding element 'statusCode' implicitly has an 'an... Remove this comment to see the full error message
@@ -625,6 +622,9 @@ const onRequest = async ({ addonsUrls, api, edgeFunctionsProxy, env, functionsRe
625
622
  (ct.endsWith('/x-www-form-urlencoded') || ct === 'multipart/form-data')) {
626
623
  return proxy.web(req, res, { target: functionsServer });
627
624
  }
625
+ if (req.method === 'GET' && api && process.env.NETLIFY_DEV_SERVER_ID) {
626
+ notifyActivity(api, siteInfo.id, process.env.NETLIFY_DEV_SERVER_ID);
627
+ }
628
628
  proxy.web(req, res, options);
629
629
  };
630
630
  export const getProxyUrl = function (settings) {