Skip to content

Commit 5b5db69

Browse files
committed
Releasing AMDClean v0.3.2
1 parent 6f41b73 commit 5b5db69

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "amdclean",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "A build tool that converts AMD code to standard JavaScript",
55
"main": "./src/amdclean",
66
"repository": {

src/amdclean.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! amdclean - v0.3.1 - 2013-11-25
1+
/*! amdclean - v0.3.2 - 2013-11-26
22
* http://gregfranko.com/amdclean
33
* Copyright (c) 2013 Greg Franko; Licensed MIT*/
44

@@ -35,7 +35,7 @@
3535
// The Public API object
3636
publicAPI = {
3737
// Current project version number
38-
VERSION: '0.3.1',
38+
VERSION: '0.3.2',
3939
// Default Options
4040
defaultOptions: {
4141
'globalObject': false,

test/specs/convert.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ describe('amdclean specs', function() {
2626
expect(cleanedCode).toBe(standardJavaScript);
2727
});
2828

29+
it('should correctly normalize multi-level relative file paths', function() {
30+
var AMDcode = "define('./foo/prototype/commonMethodName.js', ['example1', 'example2'], function(one, two) {});",
31+
cleanedCode = amdclean.clean({ code: AMDcode, escodegen: { format: { compact: true } } }),
32+
standardJavaScript = "var foo_prototype_commonMethodNamejs=function (one,two){}(example1,example2);";
33+
expect(cleanedCode).toBe(standardJavaScript);
34+
});
35+
2936
it('should correctly prefix reserved keywords with an underscore', function() {
3037
var AMDcode = "define('foo', ['./function'], function(fn){ fn.bar(); });",
3138
cleanedCode = amdclean.clean({ code: AMDcode, escodegen: { format: { compact: true } } }),

0 commit comments

Comments
 (0)