miniflare
Advanced tools
Comparing version 3.20231025.1 to 3.20231030.0
@@ -0,1 +1,2 @@ | ||
#!/usr/bin/env node | ||
const { Log } = require("."); | ||
@@ -5,7 +6,7 @@ | ||
log.error( | ||
[ | ||
"`miniflare@3` no longer includes a CLI. Please use `npx wrangler dev` instead.", | ||
"As of `wrangler@3`, this will use Miniflare by default.", | ||
"See https://miniflare.dev/get-started/migrating for more details.", | ||
].join("\n") | ||
[ | ||
"`miniflare@3` no longer includes a CLI. Please use `npx wrangler dev` instead.", | ||
"As of `wrangler@3`, this will use Miniflare by default.", | ||
"See https://miniflare.dev/get-started/migrating for more details.", | ||
].join("\n") | ||
); |
@@ -1,2 +0,2 @@ | ||
// packages/miniflare/src/workers/cache/constants.ts | ||
// src/workers/cache/constants.ts | ||
var CacheHeaders = { | ||
@@ -7,3 +7,3 @@ NAMESPACE: "cf-cache-namespace", | ||
// packages/miniflare/src/workers/cache/cache-entry-noop.worker.ts | ||
// src/workers/cache/cache-entry-noop.worker.ts | ||
var cache_entry_noop_worker_default = { | ||
@@ -10,0 +10,0 @@ async fetch(request) { |
@@ -1,5 +0,5 @@ | ||
// packages/miniflare/src/workers/cache/cache-entry.worker.ts | ||
// src/workers/cache/cache-entry.worker.ts | ||
import { SharedBindings } from "miniflare:shared"; | ||
// packages/miniflare/src/workers/cache/constants.ts | ||
// src/workers/cache/constants.ts | ||
var CacheHeaders = { | ||
@@ -12,3 +12,3 @@ NAMESPACE: "cf-cache-namespace", | ||
// packages/miniflare/src/workers/cache/cache-entry.worker.ts | ||
// src/workers/cache/cache-entry.worker.ts | ||
var cache_entry_worker_default = { | ||
@@ -15,0 +15,0 @@ async fetch(request, env) { |
@@ -29,5 +29,5 @@ var __create = Object.create; | ||
// node_modules/http-cache-semantics/index.js | ||
// ../../node_modules/.pnpm/http-cache-semantics@4.1.0/node_modules/http-cache-semantics/index.js | ||
var require_http_cache_semantics = __commonJS({ | ||
"node_modules/http-cache-semantics/index.js"(exports, module) { | ||
"../../node_modules/.pnpm/http-cache-semantics@4.1.0/node_modules/http-cache-semantics/index.js"(exports, module) { | ||
"use strict"; | ||
@@ -363,3 +363,3 @@ var statusCodeCacheableByDefault = /* @__PURE__ */ new Set([ | ||
// packages/miniflare/src/workers/cache/cache.worker.ts | ||
// src/workers/cache/cache.worker.ts | ||
var import_http_cache_semantics = __toESM(require_http_cache_semantics()); | ||
@@ -379,3 +379,3 @@ import assert from "node:assert"; | ||
// packages/miniflare/src/workers/kv/constants.ts | ||
// src/workers/kv/constants.ts | ||
import { testRegExps } from "miniflare:shared"; | ||
@@ -395,6 +395,6 @@ var KVLimits = { | ||
// packages/miniflare/src/workers/cache/errors.worker.ts | ||
// src/workers/cache/errors.worker.ts | ||
import { HttpError } from "miniflare:shared"; | ||
// packages/miniflare/src/workers/cache/constants.ts | ||
// src/workers/cache/constants.ts | ||
var CacheHeaders = { | ||
@@ -405,3 +405,3 @@ NAMESPACE: "cf-cache-namespace", | ||
// packages/miniflare/src/workers/cache/errors.worker.ts | ||
// src/workers/cache/errors.worker.ts | ||
var CacheError = class extends HttpError { | ||
@@ -447,3 +447,3 @@ constructor(code, message, headers = []) { | ||
// packages/miniflare/src/workers/cache/cache.worker.ts | ||
// src/workers/cache/cache.worker.ts | ||
function getCacheKey(req) { | ||
@@ -450,0 +450,0 @@ return req.cf?.cacheKey ? String(req.cf?.cacheKey) : req.url; |
@@ -1,2 +0,2 @@ | ||
// node_modules/kleur/colors.mjs | ||
// ../../node_modules/.pnpm/kleur@4.1.5/node_modules/kleur/colors.mjs | ||
var FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, isTTY = !0; | ||
@@ -15,6 +15,6 @@ typeof process < "u" && ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {}, isTTY = process.stdout && process.stdout.isTTY); | ||
// packages/miniflare/src/workers/core/entry.worker.ts | ||
// src/workers/core/entry.worker.ts | ||
import { LogLevel, SharedHeaders } from "miniflare:shared"; | ||
// packages/miniflare/src/workers/core/constants.ts | ||
// src/workers/core/constants.ts | ||
var CoreHeaders = { | ||
@@ -70,3 +70,3 @@ CUSTOM_SERVICE: "MF-Custom-Service", | ||
// packages/miniflare/src/workers/core/http.ts | ||
// src/workers/core/http.ts | ||
var STATUS_CODES = { | ||
@@ -138,3 +138,3 @@ 100: "Continue", | ||
// packages/miniflare/src/workers/core/routing.ts | ||
// src/workers/core/routing.ts | ||
function matchRoutes(routes, url) { | ||
@@ -160,20 +160,7 @@ for (let route of routes) { | ||
// packages/miniflare/src/workers/core/proxy.worker.ts | ||
// src/workers/core/proxy.worker.ts | ||
import assert2 from "node:assert"; | ||
// node_modules/devalue/src/utils.js | ||
var escaped = { | ||
"<": "\\u003C", | ||
">": "\\u003E", | ||
"/": "\\u002F", | ||
"\\": "\\\\", | ||
"\b": "\\b", | ||
"\f": "\\f", | ||
"\n": "\\n", | ||
"\r": "\\r", | ||
" ": "\\t", | ||
"\0": "\\u0000", | ||
"\u2028": "\\u2028", | ||
"\u2029": "\\u2029" | ||
}, DevalueError = class extends Error { | ||
// ../../node_modules/.pnpm/devalue@4.3.2/node_modules/devalue/src/utils.js | ||
var DevalueError = class extends Error { | ||
/** | ||
@@ -190,3 +177,5 @@ * @param {string} message | ||
} | ||
var object_proto_names = Object.getOwnPropertyNames(Object.prototype).sort().join("\0"); | ||
var object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames( | ||
Object.prototype | ||
).sort().join("\0"); | ||
function is_plain_object(thing) { | ||
@@ -199,22 +188,39 @@ let proto = Object.getPrototypeOf(thing); | ||
} | ||
function get_escaped_char(char) { | ||
switch (char) { | ||
case '"': | ||
return '\\"'; | ||
case "<": | ||
return "\\u003C"; | ||
case "\\": | ||
return "\\\\"; | ||
case ` | ||
`: | ||
return "\\n"; | ||
case "\r": | ||
return "\\r"; | ||
case " ": | ||
return "\\t"; | ||
case "\b": | ||
return "\\b"; | ||
case "\f": | ||
return "\\f"; | ||
case "\u2028": | ||
return "\\u2028"; | ||
case "\u2029": | ||
return "\\u2029"; | ||
default: | ||
return char < " " ? `\\u${char.charCodeAt(0).toString(16).padStart(4, "0")}` : ""; | ||
} | ||
} | ||
function stringify_string(str) { | ||
let result = '"'; | ||
for (let i = 0; i < str.length; i += 1) { | ||
let char = str.charAt(i), code = char.charCodeAt(0); | ||
if (char === '"') | ||
result += '\\"'; | ||
else if (char in escaped) | ||
result += escaped[char]; | ||
else if (code <= 31) | ||
result += `\\u${code.toString(16).toUpperCase().padStart(4, "0")}`; | ||
else if (code >= 55296 && code <= 57343) { | ||
let next = str.charCodeAt(i + 1); | ||
code <= 56319 && next >= 56320 && next <= 57343 ? result += char + str[++i] : result += `\\u${code.toString(16).toUpperCase()}`; | ||
} else | ||
result += char; | ||
let result = "", last_pos = 0, len = str.length; | ||
for (let i = 0; i < len; i += 1) { | ||
let char = str[i], replacement = get_escaped_char(char); | ||
replacement && (result += str.slice(last_pos, i) + replacement, last_pos = i + 1); | ||
} | ||
return result += '"', result; | ||
return `"${last_pos === 0 ? str : result + str.slice(last_pos)}"`; | ||
} | ||
// node_modules/devalue/src/parse.js | ||
// ../../node_modules/.pnpm/devalue@4.3.2/node_modules/devalue/src/parse.js | ||
function parse(serialized, revivers) { | ||
@@ -310,3 +316,3 @@ return unflatten(JSON.parse(serialized), revivers); | ||
// node_modules/devalue/src/stringify.js | ||
// ../../node_modules/.pnpm/devalue@4.3.2/node_modules/devalue/src/stringify.js | ||
function stringify(value, reducers) { | ||
@@ -413,6 +419,6 @@ let stringified = [], indexes = /* @__PURE__ */ new Map(), custom = []; | ||
// packages/miniflare/src/workers/core/proxy.worker.ts | ||
// src/workers/core/proxy.worker.ts | ||
import { readPrefix, reduceError } from "miniflare:shared"; | ||
// packages/miniflare/src/workers/core/devalue.ts | ||
// src/workers/core/devalue.ts | ||
import assert from "node:assert"; | ||
@@ -584,3 +590,3 @@ import { Buffer } from "node:buffer"; | ||
// packages/miniflare/src/workers/core/proxy.worker.ts | ||
// src/workers/core/proxy.worker.ts | ||
var ENCODER = new TextEncoder(), DECODER = new TextDecoder(), WORKERS_PLATFORM_IMPL = { | ||
@@ -762,3 +768,3 @@ Blob, | ||
// packages/miniflare/src/workers/core/entry.worker.ts | ||
// src/workers/core/entry.worker.ts | ||
function getUserRequest(request, env) { | ||
@@ -765,0 +771,0 @@ let originalUrl = request.headers.get(CoreHeaders.ORIGINAL_URL), upstreamUrl = env[CoreBindings.TEXT_UPSTREAM_URL], url = new URL(originalUrl ?? request.url); |
@@ -9,3 +9,3 @@ var __defProp = Object.defineProperty; | ||
// packages/miniflare/src/workers/d1/database.worker.ts | ||
// src/workers/d1/database.worker.ts | ||
import assert from "node:assert"; | ||
@@ -12,0 +12,0 @@ import { |
@@ -9,3 +9,3 @@ var __defProp = Object.defineProperty; | ||
// packages/miniflare/src/workers/kv/namespace.worker.ts | ||
// src/workers/kv/namespace.worker.ts | ||
import assert from "node:assert"; | ||
@@ -23,3 +23,3 @@ import { | ||
// packages/miniflare/src/workers/kv/constants.ts | ||
// src/workers/kv/constants.ts | ||
import { testRegExps } from "miniflare:shared"; | ||
@@ -46,3 +46,3 @@ var KVLimits = { | ||
// packages/miniflare/src/workers/kv/validator.worker.ts | ||
// src/workers/kv/validator.worker.ts | ||
import { Buffer as Buffer2 } from "node:buffer"; | ||
@@ -149,3 +149,3 @@ import { HttpError } from "miniflare:shared"; | ||
// packages/miniflare/src/workers/kv/namespace.worker.ts | ||
// src/workers/kv/namespace.worker.ts | ||
function createMaxValueSizeError(length, maxValueSize) { | ||
@@ -152,0 +152,0 @@ return new HttpError2( |
@@ -1,5 +0,5 @@ | ||
// packages/miniflare/src/workers/kv/sites.worker.ts | ||
// src/workers/kv/sites.worker.ts | ||
import { SharedBindings, base64Decode, base64Encode } from "miniflare:shared"; | ||
// packages/miniflare/src/workers/kv/constants.ts | ||
// src/workers/kv/constants.ts | ||
import { testRegExps } from "miniflare:shared"; | ||
@@ -49,3 +49,3 @@ var KVLimits = { | ||
// packages/miniflare/src/workers/kv/validator.worker.ts | ||
// src/workers/kv/validator.worker.ts | ||
import { Buffer } from "node:buffer"; | ||
@@ -83,3 +83,3 @@ import { HttpError } from "miniflare:shared"; | ||
// packages/miniflare/src/workers/kv/sites.worker.ts | ||
// src/workers/kv/sites.worker.ts | ||
var siteRegExpsCache = /* @__PURE__ */ new WeakMap(); | ||
@@ -86,0 +86,0 @@ function getSiteRegExps(env) { |
@@ -9,7 +9,7 @@ var __defProp = Object.defineProperty; | ||
// packages/miniflare/src/workers/queues/broker.worker.ts | ||
// src/workers/queues/broker.worker.ts | ||
import assert from "node:assert"; | ||
import { Buffer as Buffer2 } from "node:buffer"; | ||
// node_modules/kleur/colors.mjs | ||
// ../../node_modules/.pnpm/kleur@4.1.5/node_modules/kleur/colors.mjs | ||
var FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, isTTY = !0; | ||
@@ -28,3 +28,3 @@ typeof process < "u" && ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {}, isTTY = process.stdout && process.stdout.isTTY); | ||
// packages/miniflare/src/workers/queues/broker.worker.ts | ||
// src/workers/queues/broker.worker.ts | ||
import { | ||
@@ -39,3 +39,3 @@ HttpError, | ||
// packages/miniflare/src/workers/queues/constants.ts | ||
// src/workers/queues/constants.ts | ||
var QueueBindings = { | ||
@@ -46,3 +46,3 @@ SERVICE_WORKER_PREFIX: "MINIFLARE_WORKER_", | ||
// packages/miniflare/src/workers/queues/schemas.ts | ||
// src/workers/queues/schemas.ts | ||
import { Base64DataSchema, z } from "miniflare:zod"; | ||
@@ -71,3 +71,3 @@ var QueueConsumerOptionsSchema = /* @__PURE__ */ z.object({ | ||
// packages/miniflare/src/workers/queues/broker.worker.ts | ||
// src/workers/queues/broker.worker.ts | ||
var MAX_MESSAGE_SIZE_BYTES = 128 * 1e3, MAX_MESSAGE_BATCH_COUNT = 100, MAX_MESSAGE_BATCH_SIZE = (256 + 32) * 1e3, DEFAULT_BATCH_SIZE = 5, DEFAULT_BATCH_TIMEOUT = 1, DEFAULT_RETRIES = 2, exceptionQueueResponse = { | ||
@@ -74,0 +74,0 @@ outcome: "exception", |
@@ -9,3 +9,3 @@ var __defProp = Object.defineProperty; | ||
// packages/miniflare/src/workers/r2/bucket.worker.ts | ||
// src/workers/r2/bucket.worker.ts | ||
import assert2 from "node:assert"; | ||
@@ -28,3 +28,3 @@ import { Buffer as Buffer3 } from "node:buffer"; | ||
// packages/miniflare/src/workers/r2/constants.ts | ||
// src/workers/r2/constants.ts | ||
var R2Limits = { | ||
@@ -46,3 +46,3 @@ MAX_LIST_KEYS: 1e3, | ||
// packages/miniflare/src/workers/r2/errors.worker.ts | ||
// src/workers/r2/errors.worker.ts | ||
import { HttpError } from "miniflare:shared"; | ||
@@ -222,3 +222,3 @@ var R2ErrorCode = { | ||
// packages/miniflare/src/workers/r2/r2Object.worker.ts | ||
// src/workers/r2/r2Object.worker.ts | ||
import { HEX_REGEXP } from "miniflare:zod"; | ||
@@ -289,3 +289,3 @@ var InternalR2Object = class { | ||
// packages/miniflare/src/workers/r2/schemas.worker.ts | ||
// src/workers/r2/schemas.worker.ts | ||
import { Base64DataSchema, HexDataSchema, z } from "miniflare:zod"; | ||
@@ -466,3 +466,3 @@ var MultipartUploadState = { | ||
// packages/miniflare/src/workers/r2/validator.worker.ts | ||
// src/workers/r2/validator.worker.ts | ||
import assert from "node:assert"; | ||
@@ -567,3 +567,3 @@ import { Buffer as Buffer2 } from "node:buffer"; | ||
// packages/miniflare/src/workers/r2/bucket.worker.ts | ||
// src/workers/r2/bucket.worker.ts | ||
var DigestingStream = class extends TransformStream { | ||
@@ -570,0 +570,0 @@ digests; |
@@ -1,6 +0,6 @@ | ||
// packages/miniflare/src/workers/shared/blob.worker.ts | ||
// src/workers/shared/blob.worker.ts | ||
import assert from "node-internal:internal_assert"; | ||
import { Buffer as Buffer2 } from "node-internal:internal_buffer"; | ||
// packages/miniflare/src/workers/shared/data.ts | ||
// src/workers/shared/data.ts | ||
import { Buffer } from "node-internal:internal_buffer"; | ||
@@ -27,3 +27,3 @@ function viewToBuffer(view) { | ||
// packages/miniflare/src/workers/shared/blob.worker.ts | ||
// src/workers/shared/blob.worker.ts | ||
var ENCODER = new TextEncoder(); | ||
@@ -156,3 +156,3 @@ async function readPrefix(stream, prefixLength) { | ||
// packages/miniflare/src/workers/shared/constants.ts | ||
// src/workers/shared/constants.ts | ||
var SharedHeaders = { | ||
@@ -167,6 +167,6 @@ LOG_LEVEL: "MF-Log-Level" | ||
// packages/miniflare/src/workers/shared/keyvalue.worker.ts | ||
// src/workers/shared/keyvalue.worker.ts | ||
import assert3 from "node-internal:internal_assert"; | ||
// packages/miniflare/src/workers/shared/sql.worker.ts | ||
// src/workers/shared/sql.worker.ts | ||
import assert2 from "node-internal:internal_assert"; | ||
@@ -221,3 +221,3 @@ function isTypedValue(value) { | ||
// packages/miniflare/src/workers/shared/keyvalue.worker.ts | ||
// src/workers/shared/keyvalue.worker.ts | ||
var SQL_SCHEMA = ` | ||
@@ -333,3 +333,3 @@ CREATE TABLE IF NOT EXISTS _mf_entries ( | ||
// packages/miniflare/src/workers/shared/matcher.ts | ||
// src/workers/shared/matcher.ts | ||
function testRegExps(matcher, value) { | ||
@@ -345,6 +345,6 @@ for (let exclude of matcher.exclude) | ||
// packages/miniflare/src/workers/shared/object.worker.ts | ||
// src/workers/shared/object.worker.ts | ||
import assert5 from "node-internal:internal_assert"; | ||
// packages/miniflare/src/workers/shared/router.worker.ts | ||
// src/workers/shared/router.worker.ts | ||
var HttpError = class extends Error { | ||
@@ -396,3 +396,3 @@ constructor(code, message) { | ||
// packages/miniflare/src/workers/shared/timers.worker.ts | ||
// src/workers/shared/timers.worker.ts | ||
import assert4 from "node-internal:internal_assert"; | ||
@@ -457,3 +457,3 @@ var kFakeTimerHandle = Symbol("kFakeTimerHandle"), Timers = class { | ||
// packages/miniflare/src/workers/shared/types.ts | ||
// src/workers/shared/types.ts | ||
function reduceError(e) { | ||
@@ -471,3 +471,3 @@ return { | ||
// packages/miniflare/src/workers/shared/object.worker.ts | ||
// src/workers/shared/object.worker.ts | ||
var MiniflareDurableObject = class extends Router { | ||
@@ -559,3 +559,3 @@ constructor(state, env) { | ||
// packages/miniflare/src/workers/shared/range.ts | ||
// src/workers/shared/range.ts | ||
var rangePrefixRegexp = /^ *bytes *=/i, rangeRegexp = /^ *(?<start>\d+)? *- *(?<end>\d+)? *$/; | ||
@@ -597,3 +597,3 @@ function parseRanges(rangeHeader, length) { | ||
// packages/miniflare/src/workers/shared/sync.ts | ||
// src/workers/shared/sync.ts | ||
import assert6 from "node-internal:internal_assert"; | ||
@@ -643,3 +643,3 @@ var DeferredPromise = class extends Promise { | ||
async drained() { | ||
if (this.resolveQueue.length !== 0) | ||
if (!(this.resolveQueue.length === 0 && !this.locked)) | ||
return new Promise((resolve) => this.drainQueue.push(resolve)); | ||
@@ -646,0 +646,0 @@ } |
@@ -1,2 +0,2 @@ | ||
// packages/miniflare/src/workers/shared/constants.ts | ||
// src/workers/shared/constants.ts | ||
var SharedBindings = { | ||
@@ -9,3 +9,3 @@ TEXT_NAMESPACE: "MINIFLARE_NAMESPACE", | ||
// packages/miniflare/src/workers/shared/object-entry.worker.ts | ||
// src/workers/shared/object-entry.worker.ts | ||
var object_entry_worker_default = { | ||
@@ -12,0 +12,0 @@ async fetch(request, env) { |
{ | ||
"name": "miniflare", | ||
"version": "3.20231025.1", | ||
"version": "3.20231030.0", | ||
"description": "Fun, full-featured, fully-local simulator for Cloudflare Workers", | ||
@@ -12,10 +12,10 @@ "keywords": [ | ||
], | ||
"homepage": "https://github.com/cloudflare/miniflare/tree/master/packages/tre#readme", | ||
"homepage": "https://github.com/cloudflare/workers-sdk/tree/main/packages/miniflare#readme", | ||
"bugs": { | ||
"url": "https://github.com/cloudflare/miniflare/issues" | ||
"url": "https://github.com/cloudflare/workers-sdk/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/cloudflare/miniflare.git", | ||
"directory": "packages/tre" | ||
"url": "https://github.com/cloudflare/workers-sdk.git", | ||
"directory": "packages/miniflare" | ||
}, | ||
@@ -30,2 +30,5 @@ "license": "MIT", | ||
], | ||
"bin": { | ||
"miniflare": "bootstrap.js" | ||
}, | ||
"dependencies": { | ||
@@ -40,3 +43,3 @@ "acorn": "^8.8.0", | ||
"undici": "^5.22.1", | ||
"workerd": "1.20231025.0", | ||
"workerd": "1.20231030.0", | ||
"ws": "^8.11.0", | ||
@@ -47,4 +50,6 @@ "youch": "^3.2.2", | ||
"devDependencies": { | ||
"@ava/typescript": "^4.0.0", | ||
"@cloudflare/kv-asset-handler": "^0.3.0", | ||
"@cloudflare/workers-types": "^4.20231002.0", | ||
"@microsoft/api-extractor": "^7.36.3", | ||
"@types/debug": "^4.1.7", | ||
@@ -54,9 +59,28 @@ "@types/estree": "^1.0.0", | ||
"@types/http-cache-semantics": "^4.0.1", | ||
"@types/node": "^18.11.9", | ||
"@types/rimraf": "^3.0.2", | ||
"@types/source-map-support": "^0.5.6", | ||
"@types/stoppable": "^1.1.1", | ||
"@types/which": "^2.0.1", | ||
"@types/ws": "^8.5.3", | ||
"@typescript-eslint/eslint-plugin": "^6.9.0", | ||
"@typescript-eslint/parser": "^6.9.0", | ||
"ava": "^5.2.0", | ||
"capnpc-ts": "^0.7.0", | ||
"concurrently": "^8.2.2", | ||
"devalue": "^4.3.0", | ||
"devtools-protocol": "^0.0.1182435", | ||
"esbuild": "^0.16.17", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-es": "^4.1.0", | ||
"eslint-plugin-import": "2.26.x", | ||
"eslint-plugin-prettier": "^5.0.1", | ||
"expect-type": "^0.15.0", | ||
"http-cache-semantics": "^4.1.0", | ||
"kleur": "^4.1.5" | ||
"kleur": "^4.1.5", | ||
"prettier": "^3.0.3", | ||
"rimraf": "^3.0.2", | ||
"source-map": "^0.6.0", | ||
"typescript": "~5.0.4", | ||
"which": "^2.0.2" | ||
}, | ||
@@ -71,3 +95,14 @@ "engines": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"build": "node scripts/build.mjs && pnpm run types:build", | ||
"capnp:workerd": "capnpc -o ts src/runtime/config/workerd.capnp", | ||
"clean": "rimraf ./dist ./dist-types", | ||
"dev": "concurrently -n esbuild,typechk,typewrk -c yellow,blue,blue.dim \"node scripts/build.mjs watch\" \"node scripts/types.mjs tsconfig.json watch\" \"node scripts/types.mjs src/workers/tsconfig.json watch\"", | ||
"test": "node scripts/build.mjs && ava && rimraf ./.tmp", | ||
"test:ci": "pnpm run test", | ||
"check:lint": "eslint \"{src,test}/**/*.ts\" \"scripts/**/*.{js,mjs}\" \"types/**/*.ts\"", | ||
"lint:fix": "pnpm run lint -- --fix", | ||
"types:build": "node scripts/types.mjs tsconfig.json && node scripts/types.mjs src/workers/tsconfig.json" | ||
} | ||
} | ||
} |
@@ -21,3 +21,3 @@ # 🔥 Miniflare | ||
const mf = new Miniflare({ | ||
script: `addEventListener("fetch", (event) => { | ||
script: `addEventListener("fetch", (event) => { | ||
event.respondWith(new Response("Hello Miniflare!")); | ||
@@ -462,4 +462,4 @@ })`, | ||
new Miniflare({ | ||
httpsKeyPath: "key.pem", | ||
httpsCertPath: "cert.pem", | ||
httpsKeyPath: "key.pem", | ||
httpsCertPath: "cert.pem", | ||
}); | ||
@@ -466,0 +466,0 @@ ``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1459718
31
29206
0
34
72
10
+ Added@cloudflare/workerd-darwin-64@1.20231030.0(transitive)
+ Added@cloudflare/workerd-darwin-arm64@1.20231030.0(transitive)
+ Added@cloudflare/workerd-linux-64@1.20231030.0(transitive)
+ Added@cloudflare/workerd-linux-arm64@1.20231030.0(transitive)
+ Added@cloudflare/workerd-windows-64@1.20231030.0(transitive)
+ Addedworkerd@1.20231030.0(transitive)
- Removed@cloudflare/workerd-darwin-64@1.20231025.0(transitive)
- Removed@cloudflare/workerd-darwin-arm64@1.20231025.0(transitive)
- Removed@cloudflare/workerd-linux-64@1.20231025.0(transitive)
- Removed@cloudflare/workerd-linux-arm64@1.20231025.0(transitive)
- Removed@cloudflare/workerd-windows-64@1.20231025.0(transitive)
- Removedworkerd@1.20231025.0(transitive)
Updatedworkerd@1.20231030.0