Socket
Socket
Sign inDemoInstall

@cloudflare/kv-asset-handler

Package Overview
Dependencies
Maintainers
5
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudflare/kv-asset-handler - npm Package Compare versions

Comparing version 0.0.12 to 0.1.0

2

dist/index.js

@@ -153,3 +153,3 @@ "use strict";

mimeType = mime.getType(pathKey) || options.defaultMimeType;
if (mimeType.startsWith('text')) {
if (mimeType.startsWith('text') || mimeType === 'application/javascript') {
mimeType += '; charset=utf-8';

@@ -156,0 +156,0 @@ }

{
"name": "@cloudflare/kv-asset-handler",
"version": "0.0.12",
"version": "0.1.0",
"description": "Routes requests to KV assets",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -122,3 +122,3 @@ import * as mime from 'mime'

let mimeType = mime.getType(pathKey) || options.defaultMimeType
if (mimeType.startsWith('text')) {
if (mimeType.startsWith('text') || mimeType === 'application/javascript') {
mimeType += '; charset=utf-8'

@@ -125,0 +125,0 @@ }

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