fis-kernel
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -79,2 +79,3 @@ /* | ||
var name = Array.prototype.slice.call(arguments, 0).join('-'); | ||
if(fis.require._cache.hasOwnProperty(name)) return fis.require._cache[name]; | ||
var names = []; | ||
@@ -87,3 +88,3 @@ for(var i = 0, len = fis.require.prefixes.length; i < len; i++){ | ||
try { | ||
return require(pluginName); | ||
return fis.require._cache[name] = require(pluginName); | ||
} catch (e){ | ||
@@ -97,2 +98,4 @@ fis.log.error('load plugin [' + pluginName + '] error : ' + e.message); | ||
fis.require._cache = {}; | ||
fis.require.prefixes = ['fis']; | ||
@@ -99,0 +102,0 @@ |
@@ -105,2 +105,3 @@ /* | ||
case '.js': | ||
case '.jsx': | ||
case '.coffee': | ||
@@ -114,2 +115,4 @@ this.isJsLike = true; | ||
case '.less': | ||
case '.sass': | ||
case '.styl': | ||
case '.scss': | ||
@@ -116,0 +119,0 @@ this.isCssLike = true; |
@@ -28,3 +28,4 @@ /* | ||
'h', 'cshtml', 'asax', 'master', | ||
'ascx', 'cs', 'ftl', 'vm', 'ejs' | ||
'ascx', 'cs', 'ftl', 'vm', 'ejs', | ||
'styl', 'jsx' | ||
], | ||
@@ -43,2 +44,3 @@ IMAGE_FILE_EXTS = [ | ||
'js' : 'text/javascript', | ||
'jsx' : 'text/javascript', | ||
'php' : 'text/html', | ||
@@ -61,2 +63,4 @@ 'asp' : 'text/html', | ||
'sass' : 'text/css', | ||
'scss' : 'text/css', | ||
'styl' : 'text/css', | ||
'manifest' : 'text/cache-manifest', | ||
@@ -63,0 +67,0 @@ //image |
{ | ||
"name" : "fis-kernel", | ||
"description" : "fis kernel.", | ||
"version" : "2.0.2", | ||
"version" : "2.0.3", | ||
"author" : "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage" : "http://fis.baidu.com/", |
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
76399
2292
5