mm_statics 1.6.3 → 1.6.4

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -714,7 +714,7 @@ Static.prototype._handleCache = async function (url, ctx) {
714
714
  * @returns {string|null} 编译后的内容
715
715
  */
716
716
  Static.prototype._handleFileCompile = async function (path) {
717
- if (this.config.compile_md && file_type === 'md') {
717
+ if (this.config.compile_md && path.extname() === '.md') {
718
718
  return await this._runMarkdown(path);
719
719
  } else if (!path.startsWith(this.config.path)) return null;
720
720
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_statics",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "这是超级美眉statics函数模块,用于web服务端statics缓存",
5
5
  "main": "index.js",
6
6
  "scripts": {