Socket
Socket
Sign inDemoInstall

miniflare

Package Overview
Dependencies
Maintainers
1
Versions
230
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 0.0.0-3efefe711 to 0.0.0-4107f573b

18

dist/src/workers/assets/assets.worker.js

@@ -23,7 +23,7 @@ // ../workers-shared/dist/asset-worker.mjs

if (r < 0) {
let o = t.byteOffset, a = n - t.byteOffset;
return p(new Uint8Array(t.buffer, o, a), e);
let a = t.byteOffset, o = n - t.byteOffset;
return p(new Uint8Array(t.buffer, a, o), e);
} else if (r > 0) {
let o = n + 40, a = t.buffer.byteLength - n - 40;
return p(new Uint8Array(t.buffer, o, a), e);
let a = n + 40, o = t.buffer.byteLength - n - 40;
return p(new Uint8Array(t.buffer, a, o), e);
} else

@@ -83,3 +83,3 @@ return new Uint8Array(t.buffer, n, 40);

throw new Error(`Requested asset ${e} could not be fetched from KV namespace.`);
await new Promise((o) => setTimeout(o, Math.pow(2, s++) * 1e3));
await new Promise((a) => setTimeout(a, Math.pow(2, s++) * 1e3));
}

@@ -104,8 +104,8 @@ }

throw new Error(`Requested asset ${e} exists in the asset manifest but not in the KV namespace.`);
let { value: s, metadata: r } = n, o = A(e, r, t), a = y(t.headers, o);
return new c(s, { headers: a });
let { value: s, metadata: r } = n, a = A(e, r, t), o = y(t.headers, a);
return new c(s, { headers: o });
}
async getAssetEntry(t) {
let e = new URL(t.url), { pathname: n } = e, s = new i(this.env.ASSETS_MANIFEST);
return n = globalThis.decodeURIComponent(n), await s.get(n);
let e = new URL(t.url);
return await new i(this.env.ASSETS_MANIFEST).get(e.pathname);
}

@@ -112,0 +112,0 @@ };

{
"name": "miniflare",
"version": "0.0.0-3efefe711",
"version": "0.0.0-4107f573b",
"description": "Fun, full-featured, fully-local simulator for Cloudflare Workers",

@@ -82,3 +82,3 @@ "keywords": [

"@cloudflare/kv-asset-handler": "0.3.4",
"@cloudflare/workers-shared": "0.0.0-3efefe711"
"@cloudflare/workers-shared": "0.0.0-4107f573b"
},

@@ -85,0 +85,0 @@ "engines": {

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

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