Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

miniflare

Package Overview
Dependencies
Maintainers
2
Versions
471
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

miniflare - npm Package Compare versions

Comparing version 2.6.0-d1.1 to 2.6.0-d1.2

4

dist/src/index.d.ts

@@ -27,2 +27,4 @@ /// <reference types="node" />

import { MiniflareCoreOptions } from '@miniflare/core';
import { R2Bucket } from '@miniflare/r2';
import { R2Plugin } from '@miniflare/r2';
import { Request } from '@miniflare/core';

@@ -47,2 +49,3 @@ import { RequestInfo } from '@miniflare/core';

getKVNamespace(namespace: string): Promise<KVNamespace>;
getR2Bucket(bucket: string): Promise<R2Bucket>;
getCaches(): Promise<CacheStorage>;

@@ -71,2 +74,3 @@ getDurableObjectNamespace(objectName: string): Promise<DurableObjectNamespace>;

D1Plugin: typeof D1Plugin;
R2Plugin: typeof R2Plugin;
DurableObjectsPlugin: typeof DurableObjectsPlugin;

@@ -73,0 +77,0 @@ CachePlugin: typeof CachePlugin;

@@ -46,2 +46,3 @@ var __create = Object.create;

var import_kv = __toModule(require("@miniflare/kv"));
var import_r2 = __toModule(require("@miniflare/r2"));
var import_runner_vm = __toModule(require("@miniflare/runner-vm"));

@@ -121,2 +122,3 @@ var import_scheduler = __toModule(require("@miniflare/scheduler"));

D1Plugin: import_d1.D1Plugin,
R2Plugin: import_r2.R2Plugin,
DurableObjectsPlugin: import_durable_objects.DurableObjectsPlugin,

@@ -153,2 +155,7 @@ CachePlugin: import_cache.CachePlugin,

}
async getR2Bucket(bucket) {
const plugin = (await this.getPlugins()).R2Plugin;
const storage = this.getPluginStorage("R2Plugin");
return plugin.getBucket(storage, bucket);
}
async getCaches() {

@@ -155,0 +162,0 @@ const plugin = (await this.getPlugins()).CachePlugin;

37

package.json
{
"name": "miniflare",
"version": "2.6.0-d1.1",
"version": "2.6.0-d1.2",
"description": "Fun, full-featured, fully-local simulator for Cloudflare Workers",

@@ -49,17 +49,18 @@ "keywords": [

"dependencies": {
"@miniflare/cache": "2.6.0-d1.1",
"@miniflare/cli-parser": "2.6.0-d1.1",
"@miniflare/core": "2.6.0-d1.1",
"@miniflare/durable-objects": "2.6.0-d1.1",
"@miniflare/html-rewriter": "2.6.0-d1.1",
"@miniflare/http-server": "2.6.0-d1.1",
"@miniflare/kv": "2.6.0-d1.1",
"@miniflare/d1": "2.6.0-d1.1",
"@miniflare/runner-vm": "2.6.0-d1.1",
"@miniflare/scheduler": "2.6.0-d1.1",
"@miniflare/shared": "2.6.0-d1.1",
"@miniflare/sites": "2.6.0-d1.1",
"@miniflare/storage-file": "2.6.0-d1.1",
"@miniflare/storage-memory": "2.6.0-d1.1",
"@miniflare/web-sockets": "2.6.0-d1.1",
"@miniflare/cache": "2.6.0-d1.2",
"@miniflare/cli-parser": "2.6.0-d1.2",
"@miniflare/core": "2.6.0-d1.2",
"@miniflare/durable-objects": "2.6.0-d1.2",
"@miniflare/html-rewriter": "2.6.0-d1.2",
"@miniflare/http-server": "2.6.0-d1.2",
"@miniflare/kv": "2.6.0-d1.2",
"@miniflare/d1": "2.6.0-d1.2",
"@miniflare/r2": "2.6.0-d1.2",
"@miniflare/runner-vm": "2.6.0-d1.2",
"@miniflare/scheduler": "2.6.0-d1.2",
"@miniflare/shared": "2.6.0-d1.2",
"@miniflare/sites": "2.6.0-d1.2",
"@miniflare/storage-file": "2.6.0-d1.2",
"@miniflare/storage-memory": "2.6.0-d1.2",
"@miniflare/web-sockets": "2.6.0-d1.2",
"kleur": "^4.1.4",

@@ -71,3 +72,3 @@ "semiver": "^1.1.0",

"devDependencies": {
"@miniflare/shared-test": "2.6.0-d1.1",
"@miniflare/shared-test": "2.6.0-d1.2",
"@types/source-map-support": "^0.5.4",

@@ -77,3 +78,3 @@ "open": "^8.4.0"

"peerDependencies": {
"@miniflare/storage-redis": "2.6.0-d1.1",
"@miniflare/storage-redis": "2.6.0-d1.2",
"cron-schedule": "^3.0.4",

@@ -80,0 +81,0 @@ "ioredis": "^4.27.9"

@@ -25,2 +25,3 @@ # ๐Ÿ”ฅ Miniflare

- ๐Ÿ“ฆ KV (with optional persistence)
- ๐Ÿชฃ R2 (with optional persistence)
- โœจ Cache (with optional persistence)

@@ -85,71 +86,78 @@ - ๐Ÿ“Œ Durable Objects (with optional persistence)

Core Options:
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
-c, --wrangler-config Path to wrangler.toml [string]
--wrangler-env Environment in wrangler.toml to use [string]
--package Path to package.json [string]
-m, --modules Enable modules [boolean]
--modules-rule Modules import rule [array:TYPE=GLOB]
--compat-date Opt into backwards-incompatible changes from [string]
--compat-flag Control specific backwards-incompatible changes [array]
-u, --upstream URL of upstream origin [string]
-w, --watch Watch files for changes [boolean]
-d, --debug Enable debug logging [boolean]
-V, --verbose Enable verbose logging [boolean]
--(no-)update-check Enable update checker (enabled by default) [boolean]
--root Path to resolve files relative to [string]
--mount Mount additional named workers [array:NAME=PATH[@ENV]]
--name Name of service [string]
--route Route to respond with this worker on [array]
--global-async-io Allow async I/O outside handlers [boolean]
--global-timers Allow setting timers outside handlers [boolean]
--global-random Allow secure random generation outside handlers [boolean]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
-c, --wrangler-config Path to wrangler.toml [string]
--wrangler-env Environment in wrangler.toml to use [string]
--package Path to package.json [string]
-m, --modules Enable modules [boolean]
--modules-rule Modules import rule [array:TYPE=GLOB]
--compat-date Opt into backwards-incompatible changes from [string]
--compat-flag Control specific backwards-incompatible changes [array]
--usage-model Usage model (bundled by default) [string]
-u, --upstream URL of upstream origin [string]
-w, --watch Watch files for changes [boolean]
-d, --debug Enable debug logging [boolean]
-V, --verbose Enable verbose logging [boolean]
--(no-)update-check Enable update checker (enabled by default) [boolean]
--repl Enable interactive REPL [boolean]
--root Path to resolve files relative to [string]
--mount Mount additional named workers [array:NAME=PATH[@ENV]]
--name Name of service [string]
--route Route to respond with this worker on [array]
--global-async-io Allow async I/O outside handlers [boolean]
--global-timers Allow setting timers outside handlers [boolean]
--global-random Allow secure random generation outside handlers [boolean]
--actual-time Always return correct time from Date methods [boolean]
HTTP Options:
-H, --host Host for HTTP(S) server to listen on [string]
-p, --port Port for HTTP(S) server to listen on [number]
-O, --open Automatically open browser to URL [boolean/string]
--https Enable self-signed HTTPS (with optional cert path) [boolean/string]
--https-key Path to PEM SSL key [string]
--https-cert Path to PEM SSL cert chain [string]
--https-ca Path to SSL trusted CA certs [string]
--https-pfx Path to PFX/PKCS12 SSL key/cert chain [string]
--https-passphrase Passphrase to decrypt SSL files [string]
--(no-)cf-fetch Path for cached Request cf object from Cloudflare [boolean/string]
--live-reload Reload HTML pages whenever worker is reloaded [boolean]
-H, --host Host for HTTP(S) server to listen on [string]
-p, --port Port for HTTP(S) server to listen on [number]
-O, --open Automatically open browser to URL [boolean/string]
--https Enable self-signed HTTPS (with optional cert path) [boolean/string]
--https-key Path to PEM SSL key [string]
--https-cert Path to PEM SSL cert chain [string]
--https-ca Path to SSL trusted CA certs [string]
--https-pfx Path to PFX/PKCS12 SSL key/cert chain [string]
--https-passphrase Passphrase to decrypt SSL files [string]
--(no-)cf-fetch Path for cached Request cf object from Cloudflare [boolean/string]
--live-reload Reload HTML pages whenever worker is reloaded [boolean]
Scheduler Options:
-t, --cron CRON expression for triggering scheduled events [array]
-t, --cron CRON expression for triggering scheduled events [array]
Build Options:
-B, --build-command Command to build project [string]
--build-base-path Working directory for build command [string]
--build-watch-path Directory to watch for rebuilding on changes [array]
-B, --build-command Command to build project [string]
--build-base-path Working directory for build command [string]
--build-watch-path Directory to watch for rebuilding on changes [array]
KV Options:
-k, --kv KV namespace to bind [array]
--kv-persist Persist KV data (to optional path) [boolean/string]
-k, --kv KV namespace to bind [array]
--kv-persist Persist KV data (to optional path) [boolean/string]
R2 Options:
-r, --r2 R2 bucket to bind [array]
--r2-persist Persist R2 data (to optional path) [boolean/string]
Durable Objects Options:
-o, --do Durable Object to bind [array:NAME=CLASS[@MOUNT]]
--do-persist Persist Durable Object data (to optional path) [boolean/string]
--(no-)do-alarms Enable Durable Object alarms (enabled by default) [boolean]
-o, --do Durable Object to bind [array:NAME=CLASS[@MOUNT]]
--do-persist Persist Durable Object data (to optional path) [boolean/string]
--(no-)do-alarms Enable Durable Object alarms (enabled by default) [boolean]
Cache Options:
--(no-)cache Enable default/named caches (enabled by default) [boolean]
--cache-persist Persist cached data (to optional path) [boolean/string]
--(no-)cache Enable default/named caches (enabled by default) [boolean]
--cache-persist Persist cached data (to optional path) [boolean/string]
Sites Options:
-s, --site Path to serve Workers Site files from [string]
--site-include Glob pattern of site files to serve [array]
--site-exclude Glob pattern of site files not to serve [array]
-s, --site Path to serve Workers Site files from [string]
--site-include Glob pattern of site files to serve [array]
--site-exclude Glob pattern of site files not to serve [array]
Bindings Options:
-e, --env Path to .env file [string]
-b, --binding Binds variable/secret to environment [array:KEY=VALUE]
--global Binds variable/secret to global scope [array:KEY=VALUE]
--wasm WASM module to bind [array:NAME=PATH]
--text-blob Text blob to bind [array:NAME=PATH]
--data-blob Data blob to bind [array:NAME=PATH]
-S, --service Mounted service to bind [array:NAME=MOUNT[@ENV]]
-e, --env Path to .env file [string]
-b, --binding Binds variable/secret to environment [array:KEY=VALUE]
--global Binds variable/secret to global scope [array:KEY=VALUE]
--wasm WASM module to bind [array:NAME=PATH]
--text-blob Text blob to bind [array:NAME=PATH]
--data-blob Data blob to bind [array:NAME=PATH]
-S, --service Mounted service to bind [array:NAME=MOUNT[@ENV]]
```

@@ -156,0 +164,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc