@moneko/core 3.27.4 → 3.27.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";module.exports=function(a,e){if(e||(e={}),"Buffer"===a.type){let e=Buffer.from(a.data);return`data:${function(a){let e=a.toString("hex",0,8).toLowerCase();for(let[a,i]of Object.entries({"89504e47":"image/png",ffd8ffe0:"image/jpeg",ffd8ffe1:"image/jpeg",ffd8ffe2:"image/jpeg",ffd8ffe3:"image/jpeg",ffd8ffe8:"image/jpeg",47494638:"image/gif","49492a00":"image/tiff","4d4d002a":"image/tiff",52494646:"image/webp",52494646:"image/bmp",494433:"audio/mpeg",fff1:"audio/aac","4f676753":"audio/ogg",52494646:"audio/wav","664c6143":"audio/flac","1a45dfa3":"audio/x-matroska","00000018":"video/mp4","1a45dfa3":"video/webm",66747970:"video/quicktime",52494646:"video/avi","000001ba":"video/mpeg","000001b3":"video/mpeg","464c5601":"video/x-flv",25504446:"application/pdf",d0cf11e0:"application/msword","504b0304":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",52617221:"application/vnd.rar","7f454c46":"application/x-executable","3c3f786d":"application/xml","68746d6c":"text/html",efbbbf:"text/plain","1f8b08":"application/gzip","425a68":"application/x-bzip2","5a4d":"application/x-7z-compressed",52617221:"application/vnd.rar","00010000":"font/ttf","4f54544f":"font/otf","774f4646":"font/woff","774f4632":"font/woff2",74746366:"font/collection","1a45dfa3":"video/x-matroska","4d546864":"audio/midi",52494646:"application/x-ms-asf","504b0304":"application/zip",75737461:"application/x-tar","3c3f786d":"application/xml",232120:"text/x-shellscript","7061636b":"application/x-java-applet"}))if(e.startsWith(a))return i;return"unknown"}(e)};base64,${e.toString("base64")}`}return"string"!=typeof(a=a&&a.__esModule?a.default:a)?a:(/^['"].*['"]$/.test(a)&&(a=a.slice(1,-1)),e.hash&&(a+=e.hash),/["'() \t\n]/.test(a)||e.needQuotes)?'"'.concat(a.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):a};
1
+ "use strict";module.exports=function(e,f){if(f||(f={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)){if("Buffer"===e.type&&e.data){let f=Buffer.from(e.data);return`data:${function(e){let f=e.toString("hex",0,16).toLowerCase();for(let[e,a]of Object.entries({"0001000000":"font/ttf","4f54544f":"font/otf","774f4646":"font/woff","774f4632":"font/woff2","89504e470d0a1a0a":"image/png",ffd8ffe0:"image/jpeg",ffd8ffdb:"image/jpeg",ffd8ffee:"image/jpeg",ffd8ffe000104a4649460001:"image/jpeg","ffd8ffe1????457869660000":"image/jpeg","0000000c4a584c200d0a870a":"image/jxl","474946383761":"image/gif","474946383961":"image/gif","49492a00":"image/tif","49492b00":"image/tif","4d4d002a":"image/tiff","4d4d002b":"image/tiff","52494646????????57454250":"image/webp","424d":"image/bmp","00000100":"image/x-icon","69636e73":"image/x-icns","6674797068656963":"image/heic","667479706d":"image/heic",ff4fff51:"image/jp2","0000000c6a5020200d0a870a":"image/jp2","667479704d534e56":"video/mp4","6674797069736f6d":"video/mp4","1a45dfa3":"video/webm","52494646????????41564920":"video/avi","000001ba":"video/mpeg","000001b3":"video/mpeg","464c56":"video/x-flv",494433:"audio/mpeg","4f676753":"audio/ogg","52494646????????57415645":"audio/wav","664c6143":"audio/flac","4d546864":"audio/midi","3026b2758e66cf11a6d900aa0062ce6c":"application/x-ms-asf"}))if(f.startsWith(e))return a;return"unknown"}(f)};base64,${f.toString("base64")}`}return e}return(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),f.hash&&(e+=f.hash),/["'() \t\n]/.test(e)||f.needQuotes)?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e};
@@ -1,5 +1,7 @@
1
1
  type Url = {
2
2
  __esModule?: boolean;
3
3
  default: string;
4
+ type?: string;
5
+ data?: number[];
4
6
  };
5
7
  declare function getMimeType(buffer: Buffer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/core",
3
- "version": "3.27.4",
3
+ "version": "3.27.5",
4
4
  "description": "core",
5
5
  "main": "lib/index.mjs",
6
6
  "type": "module",