@cloudflare/kv-asset-handler
Advanced tools
Comparing version 0.0.12 to 0.1.0
@@ -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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
139156