Skip to content

Commit

Permalink
Fixed can't find global object in webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Sep 29, 2016
1 parent 79f26ea commit 509ba70
Show file tree
Hide file tree
Showing 30 changed files with 100 additions and 100 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Ma Bingyao <andot@hprose.com>",
"name": "hprose-html5",
"version": "2.0.17",
"version": "2.0.18",
"description": "Hprose is a High Performance Remote Object Service Engine.",
"keywords": [
"hprose",
Expand Down
8 changes: 4 additions & 4 deletions dist/hprose-html5.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hprose-html5.min.js

Large diffs are not rendered by default.

90 changes: 45 additions & 45 deletions dist/hprose-html5.src.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hprose-html5",
"filename": "hprose-html5.js",
"version": "2.0.17",
"version": "2.0.18",
"description": "Hprose is a High Performance Remote Object Service Engine.",
"homepage": "https://github.com/andot/hprose",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions src/APICloudTcpSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* *
* APICloud tcp socket for HTML5. *
* *
* LastModified: Mar 8, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -129,4 +129,4 @@

global.hprose.APICloudTcpSocket = APICloudTcpSocket;

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/Base64.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* *
* Base64 for HTML5. *
* *
* LastModified: Mar 2, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -131,4 +131,4 @@
})();
}

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/BytesIO.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* hprose BytesIO for HTML5. *
* *
* LastModified: Sep 28, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -620,4 +620,4 @@

global.hprose.BytesIO = BytesIO;

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/ChromeTcpSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* *
* chrome tcp socket for JavaScript. *
* *
* LastModified: Mar 2, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -178,4 +178,4 @@

global.hprose.ChromeTcpSocket = ChromeTcpSocket;

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/ClassManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* hprose ClassManager for HTML5. *
* *
* LastModified: Feb 23, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -49,4 +49,4 @@

register(Object, 'Object');

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* *
* hprose client for HTML5. *
* *
* LastModified: Sep 28, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -1192,4 +1192,4 @@

global.hprose.Client = Client;

})(this);
})(this || [eval][0]('this'));
2 changes: 1 addition & 1 deletion src/CopyRight.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Hprose for HTML5 v2.0.17
// Hprose for HTML5 v2.0.18
// Copyright (c) 2008-2016 http://hprose.com
// Hprose is freely distributable under the MIT license.
// For all details and documentation:
Expand Down
4 changes: 2 additions & 2 deletions src/Formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* hprose Formatter for HTML5. *
* *
* LastModified: Feb 23, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -50,4 +50,4 @@

global.hprose.unserialize = unserialize;

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/Future.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* hprose Future for HTML5. *
* *
* LastModified: Aug 12, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -695,4 +695,4 @@
reject: { value: error }
});

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/HarmonyMaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* Harmony Maps for HTML5. *
* *
* LastModified: Mar 2, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -297,4 +297,4 @@
return m;
};
}
})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/Helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* hprose helper for HTML5. *
* *
* LastModified: Sep 28, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -100,4 +100,4 @@
global.hprose.toArray = toArray;
global.hprose.parseuri = parseuri;

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/HttpClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* *
* hprose http client for HTML5. *
* *
* LastModified: Jul 26, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -187,4 +187,4 @@

global.hprose.HttpClient = HttpClient;

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/Init.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* hprose init for HTML5. *
* *
* LastModified: Feb 23, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand All @@ -23,4 +23,4 @@

global.hprose = Object.create(null);

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/JSONRPCClientFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* jsonrpc client filter for JavaScript. *
* *
* LastModified: Feb 23, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -91,4 +91,4 @@

global.hprose.JSONRPCClientFilter = JSONRPCClientFilter;

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* hprose CommonJS/AMD/CMD loader for HTML5. *
* *
* LastModified: Sep 28, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -60,4 +60,4 @@
if (typeof module === 'object') {
module.exports = global.hprose;
}
})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/Polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* Polyfill for JavaScript. *
* *
* LastModified: Mar 2, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -413,4 +413,4 @@
'slice'
]);

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/Reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* hprose Reader for HTML5. *
* *
* LastModified: Mar 2, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -739,4 +739,4 @@
});

global.hprose.Reader = Reader;
})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/ResultMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* hprose ResultMode for HTML5. *
* *
* LastModified: Feb 23, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand All @@ -32,4 +32,4 @@
global.hprose.Raw = global.hprose.ResultMode.Raw;
global.hprose.RawWithEndTag = global.hprose.ResultMode.RawWithEndTag;

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/Tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* *
* hprose tags enum for HTML5. *
* *
* LastModified: Feb 23, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -59,4 +59,4 @@
TagError : 0x45, // 'E'
TagEnd : 0x7A // 'z'
};
})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/TcpClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* *
* hprose tcp client for HTML5. *
* *
* LastModified: Sep 28, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -467,4 +467,4 @@

global.hprose.TcpClient = TcpClient;

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/TimeoutError.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* TimeoutError for HTML5. *
* *
* LastModified: Mar 29, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand All @@ -32,4 +32,4 @@
TimeoutError.prototype.constructor = TimeoutError;
global.TimeoutError = TimeoutError;
}
})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/WebSocketClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* *
* hprose websocket client for HTML5. *
* *
* LastModified: Sep 28, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -179,4 +179,4 @@

global.hprose.WebSocketClient = WebSocketClient;

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/Writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* hprose Writer for HTML5. *
* *
* LastModified: Mar 2, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -554,4 +554,4 @@

global.hprose.Writer = Writer;

})(this);
})(this || [eval][0]('this'));
4 changes: 2 additions & 2 deletions src/setImmediate.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* setImmediate for HTML5. *
* *
* LastModified: Sep 28, 2016 *
* LastModified: Sep 29, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -179,4 +179,4 @@
}

attachTo.clearImmediate = clear;
})(this);
})(this || [eval][0]('this'));
2 changes: 1 addition & 1 deletion test/Future.Test.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,4 @@
testPromise();
testPromise();
testPromise();
})(this);
})(this || [eval][0]('this'));

0 comments on commit 509ba70

Please sign in to comment.