@cloudflare/deploy-helpers 0.27.2 → 0.28.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.
@@ -0,0 +1,30 @@
1
+ import { createRequire } from "node:module";
2
+ //#region \0rolldown/runtime.js
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __name = (target, value) => __defProp(target, "name", {
6
+ value,
7
+ configurable: true
8
+ });
9
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
10
+ var __getOwnPropNames = Object.getOwnPropertyNames;
11
+ var __getProtoOf = Object.getPrototypeOf;
12
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
13
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
16
+ key = keys[i];
17
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
+ get: ((k) => from[k]).bind(null, key),
19
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
+ });
21
+ }
22
+ return to;
23
+ };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
25
+ value: mod,
26
+ enumerable: true
27
+ }) : target, mod));
28
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
29
+ //#endregion
30
+ export { __toESM as i, __name as n, __require as r, __commonJSMin as t };
@@ -1,13 +1,13 @@
1
- import { Protocol } from 'devtools-protocol';
2
- import { FormData } from 'undici';
3
-
1
+ import { FormData } from "undici";
2
+ import { Protocol } from "devtools-protocol";
3
+ //#region src/startup-profile.d.ts
4
4
  interface StartupProfileSummary {
5
- profileWindow: number;
6
- sampledTime: number;
7
- activeTime: number;
8
- garbageCollectionTime: number;
9
- idleTime: number;
10
- sampleCount: number;
5
+ profileWindow: number;
6
+ sampledTime: number;
7
+ activeTime: number;
8
+ garbageCollectionTime: number;
9
+ idleTime: number;
10
+ sampleCount: number;
11
11
  }
12
12
  /**
13
13
  * Parses a multipart Worker upload from disk, or returns an existing upload.
@@ -24,8 +24,8 @@ declare function parseWorkerBundle(workerBundle: string | FormData): Promise<For
24
24
  * @returns Raw and compressed byte counts.
25
25
  */
26
26
  declare function getBundleSize(workerBundle: FormData): Promise<{
27
- size: number;
28
- gzipSize: number;
27
+ size: number;
28
+ gzipSize: number;
29
29
  }>;
30
30
  /**
31
31
  * Summarizes the timing samples in a Worker startup CPU profile.
@@ -41,5 +41,5 @@ declare function summarizeStartupProfile(profile: Protocol.Profiler.Profile): St
41
41
  * @returns A Chrome DevTools Protocol CPU profile.
42
42
  */
43
43
  declare function analyseBundle(workerBundle: string | FormData): Promise<Protocol.Profiler.Profile>;
44
-
45
- export { type StartupProfileSummary, analyseBundle, getBundleSize, parseWorkerBundle, summarizeStartupProfile };
44
+ //#endregion
45
+ export { StartupProfileSummary, analyseBundle, getBundleSize, parseWorkerBundle, summarizeStartupProfile };