devflare 1.0.0-next.34 → 1.0.0-next.35
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/LICENSE +21 -0
- package/bin/devflare.js +1 -1
- package/dist/{account-p9eywryw.js → account-4tgh03a8.js} +4 -6
- package/dist/browser.js +2340 -19
- package/dist/{build-8bn7frg8.js → build-rh7ghrgw.js} +7 -10
- package/dist/cli/index.js +1377 -6
- package/dist/cloudflare/index.js +2 -3
- package/dist/config-entry.js +1 -9
- package/dist/{config-gphd6wx7.js → config-ghk2bxj3.js} +3 -6
- package/dist/{deploy-vpcp41fw.js → deploy-6hzv76sh.js} +13 -17
- package/dist/{dev-9scy9gap.js → dev-mkhjdwh7.js} +971 -73
- package/dist/{doctor-swfeeqny.js → doctor-0ng5qrr1.js} +2 -3
- package/dist/{index-e7xn30bh.js → index-0cc05hzv.js} +1 -1
- package/dist/{index-t0r7evpw.js → index-293aqfy4.js} +7 -9
- package/dist/{index-3t0e51a0.js → index-2yv7w548.js} +1 -1
- package/dist/{index-ksqth51q.js → index-a8pnvg3r.js} +1 -1
- package/dist/{index-bhxj7ff6.js → index-e251zhns.js} +943 -117
- package/dist/{index-2xz4etye.js → index-hvtd936d.js} +3 -0
- package/dist/{index-13sfensw.js → index-kcp7y951.js} +2 -13
- package/dist/{index-w8c8tjc5.js → index-mek9msfv.js} +1 -4
- package/dist/{index-dem45895.js → index-mjvybn39.js} +1 -1
- package/dist/{index-x0wpeb3x.js → index-phcrvs6d.js} +112 -2
- package/dist/{index-b20xx2vk.js → index-se4kw8tm.js} +4 -6
- package/dist/{index-pd97hk2j.js → index-x8s9rwfh.js} +466 -19
- package/dist/index.js +1 -42
- package/dist/{login-7vyzeqy4.js → login-4h1sfsed.js} +4 -6
- package/dist/{previews-jfbectpc.js → previews-qr7c5j8h.js} +10 -14
- package/dist/{productions-49ct4kjm.js → productions-xpmd6bw8.js} +6 -9
- package/dist/{remote-6876k6mz.js → remote-kqcvhnfx.js} +100 -5
- package/dist/runtime/index.js +0 -63
- package/dist/{secrets-9ne7armr.js → secrets-6wbdsdek.js} +3 -5
- package/dist/sveltekit/index.js +0 -263
- package/dist/test/index.js +2 -4626
- package/dist/{types-zekmbebk.js → types-ahnnpphq.js} +6 -8
- package/dist/vite/index.js +7 -9
- package/dist/{worker-706g8qeh.js → worker-1yg72jxg.js} +6 -9
- package/package.json +5 -3
- package/dist/index-1trss579.js +0 -2299
- package/dist/index-34dejneh.js +0 -214
- package/dist/index-3z20d3kd.js +0 -1380
- package/dist/index-4xmtkg9g.js +0 -109
- package/dist/index-62b3gt2g.js +0 -12
- package/dist/index-97rfy7n2.js +0 -413
- package/dist/index-c4zd39tc.js +0 -155
- package/dist/index-dgx495pv.js +0 -1036
- package/dist/index-dm9q84c7.js +0 -360
- package/dist/index-pmnb7eke.js +0 -109
- package/dist/index-t23wq5js.js +0 -111
- package/dist/index-wxdcrzcp.js +0 -475
- package/dist/index-x2fd1361.js +0 -133
- package/dist/index-za0r01bx.js +0 -588
|
@@ -292,6 +292,7 @@ function getExplicitPreviewSyncOverrides(options, versionId) {
|
|
|
292
292
|
commitSha: options.commitSha
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
+
|
|
295
296
|
// src/cloudflare/preview-registry-shape.ts
|
|
296
297
|
function markRecordDeleted(record, now, parser) {
|
|
297
298
|
return parser.parse({
|
|
@@ -424,6 +425,7 @@ function markPreviewScopeRecordDeleted(record, now) {
|
|
|
424
425
|
function markDeploymentRecordDeleted(record, now) {
|
|
425
426
|
return markRecordDeleted(record, now, devflareDeploymentRecordSchema);
|
|
426
427
|
}
|
|
428
|
+
|
|
427
429
|
// src/cloudflare/preview-registry-transport.ts
|
|
428
430
|
async function getVersionInfoById(accountId, workerName, versionId, versionMap, apiOptions) {
|
|
429
431
|
const existing = versionMap.get(versionId);
|
|
@@ -438,6 +440,7 @@ async function getVersionInfoById(accountId, workerName, versionId, versionMap,
|
|
|
438
440
|
return;
|
|
439
441
|
}
|
|
440
442
|
}
|
|
443
|
+
|
|
441
444
|
// src/cloudflare/preview-registry-store.ts
|
|
442
445
|
var REGISTRY_TABLES = [
|
|
443
446
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeSecretsStoreBinding
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-x8s9rwfh.js";
|
|
4
4
|
|
|
5
5
|
// src/secrets/local-secrets.ts
|
|
6
6
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
@@ -132,16 +132,5 @@ function buildLocalSecretWrappedBindingConfig(config, cwd) {
|
|
|
132
132
|
}))
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
function buildLocalSecretNodeBindings(config, cwd) {
|
|
136
|
-
const values = resolveLocalSecretValuesForBindings(config, cwd);
|
|
137
|
-
return Object.fromEntries(Object.entries(values).map(([bindingName, value]) => [
|
|
138
|
-
bindingName,
|
|
139
|
-
{
|
|
140
|
-
async get() {
|
|
141
|
-
return value;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
]));
|
|
145
|
-
}
|
|
146
135
|
|
|
147
|
-
export { writeLocalSecret, deleteLocalSecret, listLocalSecrets,
|
|
136
|
+
export { writeLocalSecret, deleteLocalSecret, listLocalSecrets, buildLocalSecretWrappedBindingConfig };
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
normalizeSecretsStoreBinding,
|
|
16
16
|
normalizeWorkflowBinding,
|
|
17
17
|
resolveConfigForEnvironment
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-x8s9rwfh.js";
|
|
19
19
|
import {
|
|
20
20
|
__require
|
|
21
21
|
} from "./index-37x76zdn.js";
|
|
@@ -563,9 +563,6 @@ async function applyLocalDevVarsToConfig(config, options) {
|
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
565
|
|
|
566
|
-
// src/config/compiler/do-workers.ts
|
|
567
|
-
import { resolve as resolve3 } from "pathe";
|
|
568
|
-
|
|
569
566
|
// src/config/compiler.ts
|
|
570
567
|
function compileConfig(config, environment) {
|
|
571
568
|
return compileConfigInternal(config, environment);
|
|
@@ -1,10 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createAccountOwnedAPIToken,
|
|
3
|
+
deleteAccountOwnedAPIToken,
|
|
4
|
+
listAccountOwnedAPITokens,
|
|
5
|
+
listAccountTokenPermissionGroups,
|
|
6
|
+
normalizeDevflareTokenName
|
|
7
|
+
} from "./index-atwc3csp.js";
|
|
8
|
+
import {
|
|
9
|
+
DEVFLARE_PREVIEW_REGISTRY_DATABASE,
|
|
10
|
+
cleanupPreviewRegistry,
|
|
11
|
+
ensurePreviewRegistry,
|
|
12
|
+
getPreviewRegistryContext,
|
|
13
|
+
listTrackedDeploymentRecords,
|
|
14
|
+
listTrackedPreviewRecords,
|
|
15
|
+
listTrackedPreviewScopeRecords,
|
|
16
|
+
listTrackedRegistryState,
|
|
17
|
+
reconcilePreviewRegistry,
|
|
18
|
+
retirePreviewRegistry
|
|
19
|
+
} from "./index-hvtd936d.js";
|
|
1
20
|
import {
|
|
2
21
|
DEVFLARE_KV_NAMESPACE_TITLE,
|
|
22
|
+
clearGlobalDefaultAccountId,
|
|
23
|
+
createD1Database,
|
|
24
|
+
deleteWorker,
|
|
25
|
+
getAccountById,
|
|
26
|
+
getAccountSummary,
|
|
27
|
+
getAccounts,
|
|
28
|
+
getAllServiceStatus,
|
|
3
29
|
getEffectiveAccountId,
|
|
30
|
+
getGlobalDefaultAccountId,
|
|
4
31
|
getOrCreateNamedKVNamespace,
|
|
5
|
-
getPrimaryAccount
|
|
32
|
+
getPrimaryAccount,
|
|
33
|
+
getServiceStatus,
|
|
34
|
+
getWorkerVersionDetail,
|
|
35
|
+
getWorkersSubdomain,
|
|
36
|
+
getWorkspaceAccountId,
|
|
37
|
+
hasService,
|
|
38
|
+
listAIModels,
|
|
39
|
+
listD1Databases,
|
|
40
|
+
listKVNamespaces,
|
|
41
|
+
listR2Buckets,
|
|
42
|
+
listVectorizeIndexes,
|
|
43
|
+
listWorkerDeployments,
|
|
44
|
+
listWorkerVersions,
|
|
45
|
+
listWorkers,
|
|
46
|
+
queryD1Database,
|
|
47
|
+
rawD1DatabaseQuery,
|
|
48
|
+
renameWorker,
|
|
49
|
+
setGlobalDefaultAccountId,
|
|
50
|
+
setWorkspaceAccountId
|
|
6
51
|
} from "./index-h7r11y4a.js";
|
|
7
52
|
import {
|
|
53
|
+
getApiToken,
|
|
54
|
+
getWranglerAuth,
|
|
55
|
+
hasWranglerConfig,
|
|
8
56
|
isAuthenticated,
|
|
9
57
|
kvGet,
|
|
10
58
|
kvPut
|
|
@@ -229,4 +277,66 @@ async function shouldSkip(service) {
|
|
|
229
277
|
}
|
|
230
278
|
}
|
|
231
279
|
|
|
232
|
-
|
|
280
|
+
// src/cloudflare/index.ts
|
|
281
|
+
var account = {
|
|
282
|
+
isAuthenticated,
|
|
283
|
+
hasWranglerConfig,
|
|
284
|
+
getApiToken,
|
|
285
|
+
getWranglerAuth,
|
|
286
|
+
getAccounts,
|
|
287
|
+
getPrimaryAccount,
|
|
288
|
+
getAccountById,
|
|
289
|
+
getAccountSummary,
|
|
290
|
+
workers: listWorkers,
|
|
291
|
+
renameWorker,
|
|
292
|
+
deleteWorker,
|
|
293
|
+
workerVersions: listWorkerVersions,
|
|
294
|
+
workerVersion: getWorkerVersionDetail,
|
|
295
|
+
workerDeployments: listWorkerDeployments,
|
|
296
|
+
workersSubdomain: getWorkersSubdomain,
|
|
297
|
+
kv: listKVNamespaces,
|
|
298
|
+
d1: listD1Databases,
|
|
299
|
+
createD1Database,
|
|
300
|
+
queryD1Database,
|
|
301
|
+
rawD1DatabaseQuery,
|
|
302
|
+
r2: listR2Buckets,
|
|
303
|
+
vectorize: listVectorizeIndexes,
|
|
304
|
+
ai: listAIModels,
|
|
305
|
+
getServiceStatus,
|
|
306
|
+
getAllServiceStatus,
|
|
307
|
+
hasService,
|
|
308
|
+
getUsage,
|
|
309
|
+
recordUsage,
|
|
310
|
+
resetUsage,
|
|
311
|
+
getAllUsageSummaries,
|
|
312
|
+
getUsageSummary,
|
|
313
|
+
getLimits,
|
|
314
|
+
setLimits,
|
|
315
|
+
setLimitsEnabled,
|
|
316
|
+
isWithinLimits,
|
|
317
|
+
canProceedWithTest,
|
|
318
|
+
recordTestUsage,
|
|
319
|
+
shouldSkip,
|
|
320
|
+
getGlobalDefaultAccountId,
|
|
321
|
+
setGlobalDefaultAccountId,
|
|
322
|
+
getWorkspaceAccountId,
|
|
323
|
+
setWorkspaceAccountId,
|
|
324
|
+
getEffectiveAccountId,
|
|
325
|
+
clearGlobalDefaultAccountId,
|
|
326
|
+
listAccountTokenPermissionGroups,
|
|
327
|
+
listAccountOwnedAPITokens,
|
|
328
|
+
createAccountOwnedAPIToken,
|
|
329
|
+
deleteAccountOwnedAPIToken,
|
|
330
|
+
normalizeDevflareTokenName,
|
|
331
|
+
previewRegistryDatabase: DEVFLARE_PREVIEW_REGISTRY_DATABASE,
|
|
332
|
+
ensurePreviewRegistry,
|
|
333
|
+
getPreviewRegistryContext,
|
|
334
|
+
listTrackedPreviewRecords,
|
|
335
|
+
listTrackedRegistryState,
|
|
336
|
+
listTrackedPreviewScopeRecords,
|
|
337
|
+
listTrackedDeploymentRecords,
|
|
338
|
+
reconcilePreviewRegistry,
|
|
339
|
+
cleanupPreviewRegistry,
|
|
340
|
+
retirePreviewRegistry
|
|
341
|
+
};
|
|
342
|
+
export { account };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
+
isPreviewScopedName,
|
|
3
|
+
materializePreviewScopedConfig,
|
|
4
|
+
materializePreviewScopedString,
|
|
2
5
|
mergeConfigForEnvironment
|
|
3
|
-
} from "./index-
|
|
6
|
+
} from "./index-x8s9rwfh.js";
|
|
4
7
|
import {
|
|
5
8
|
createD1Database,
|
|
6
9
|
createKVNamespace,
|
|
@@ -22,11 +25,6 @@ import {
|
|
|
22
25
|
listR2Buckets,
|
|
23
26
|
listVectorizeIndexes
|
|
24
27
|
} from "./index-h7r11y4a.js";
|
|
25
|
-
import {
|
|
26
|
-
isPreviewScopedName,
|
|
27
|
-
materializePreviewScopedConfig,
|
|
28
|
-
materializePreviewScopedString
|
|
29
|
-
} from "./index-wxdcrzcp.js";
|
|
30
28
|
|
|
31
29
|
// src/config/preview-resources.ts
|
|
32
30
|
var defaultPreviewScopedResourceLifecycleApi = {
|