mm_statics 1.5.0 → 1.5.1

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 +2 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  const fs = require('fs');
2
2
  const send = require('koa-send');
3
3
  const path = require('path');
4
- const es6_to_amd = require('mm_es6_to_amd');
5
-
4
+ const mm_es6_to_amd = require('mm_es6_to_amd');
6
5
 
7
6
  class Statics {
8
7
  /**
@@ -94,7 +93,7 @@ Statics.prototype.main = async function(ctx, next) {
94
93
  var code;
95
94
  try {
96
95
  var str = file.loadText();
97
- code = es6_to_amd(str);
96
+ code = mm_es6_to_amd(str);
98
97
  } catch (e) {
99
98
  throw e
100
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_statics",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "这是超级美眉statics函数模块,用于web服务端statics缓存",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -32,6 +32,6 @@
32
32
  "dependencies": {
33
33
  "abstract-syntax-tree": "^2.22.0",
34
34
  "koa-send": "^5.0.1",
35
- "mm_es6_to_amd": "^1.4.3"
35
+ "mm_es6_to_amd": "^1.4.5"
36
36
  }
37
37
  }