Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kmc

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kmc - npm Package Compare versions

Comparing version 1.0.31 to 1.0.32

examples/kissy-extend.js

0

examples/alias.js

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,1 +1,7 @@

## 2013.12.23, Version 1.0.31(Stable)
### bugfix
- 修复一种代码书写的方式造成的依赖分析问题,参考test/src/kissy/kissy-extend.js
## 2013.12.31, Version 1.0.30(Stable)

@@ -2,0 +8,0 @@

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

6

lib/dependencies.js

@@ -55,6 +55,6 @@ /**

if(node instanceof UglifyJS.AST_String && call_expression && obj_expression === null){
moduleName = node.getValue();
// if(node instanceof UglifyJS.AST_String && call_expression && obj_expression === null){
// moduleName = node.getValue();
// console.log('Found Module ID: ' + moduleName);
}
// }

@@ -61,0 +61,0 @@ if(node instanceof UglifyJS.AST_Lambda && call_expression){

@@ -0,0 +0,0 @@ var fs = require('fs'),

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ var fs = require('fs'),

@@ -0,0 +0,0 @@ The MIT License

{
"name": "kmc",
"version": "1.0.31",
"version": "1.0.32",
"description": "KISSY Module Compiler",

@@ -5,0 +5,0 @@ "author": {

@@ -11,3 +11,3 @@ # ModuleCompiler

如果您有任何问题,请邮件或者来往(daxingplay)上联系我。
如果您有任何问题,请邮件或者来往(daxingplay)上联系我,阿里巴巴厂内用户还可以联系紫英。

@@ -14,0 +14,0 @@ ## 特点

KISSY.config('modules', {
'package4/index': { requires: ['package4/index.css', 'event', 'dom']}
});

@@ -1128,2 +1128,36 @@ /**

});
describe('When kissy was hacked', function(){
var result;
var inputFile = path.resolve(srcPath, 'package1/kissy-extend.js'),
outputFile = path.resolve(distPath, 'package1/kissy-extend.js');
before(function(){
ModuleCompiler.config({
packages: {
package1: {
base: srcPath,
charset: 'gbk'
}
},
silent: true,
charset: 'gbk'
});
result = ModuleCompiler.build({
src: inputFile,
dest: outputFile
});
});
after(function(){
ModuleCompiler.clean();
});
it('should have proper modules', function(){
var file = result.files[0];
file.name.should.equal('package1/kissy-extend');
file.should.have.property('requires').with.lengthOf('2');
});
});

@@ -0,0 +0,0 @@ KISSY.add(function(){

KISSY.add(function(){
return 'hello b'
});

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc