Skip to content

Commit

Permalink
Change to esm
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur- committed Oct 13, 2022
1 parent b7879e7 commit 5cdda78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 33 deletions.
3 changes: 2 additions & 1 deletion modules/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "atmosphere.js",
"version": "3.0.3",
"description": "",
"main": "src/main/webapp/javascript/atmosphere.js",
"exports": "src/main/webapp/javascript/atmosphere.js",
"type": "module",
"registry": "npm",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
15 changes: 0 additions & 15 deletions modules/javascript/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,4 @@
<dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
20 changes: 3 additions & 17 deletions modules/javascript/src/main/webapp/javascript/atmosphere.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,17 @@
* Highly inspired by
* - Portal by Donghwan Kim http://flowersinthesand.github.io/portal/
*/
(function (root, factory) {
if (typeof define === "function" && define.amd) {
// AMD
define(factory);
} else if (typeof exports !== 'undefined') {
// CommonJS
module.exports = factory();
} else {
// Browser globals, Window
root.atmosphere = factory();
}
}(this, function () {

"use strict";

var atmosphere = {},
guid,
var guid,
offline = false,
requests = [],
callbacks = [],
uuid = 0,
hasOwn = Object.prototype.hasOwnProperty;

atmosphere = {
export const atmosphere = {
version: "3.1.4-javascript",
onError: function (response) {
},
Expand Down Expand Up @@ -3486,6 +3473,5 @@

atmosphere.bindEvents();

return atmosphere;
}));

/* jshint eqnull:true, noarg:true, noempty:true, eqeqeq:true, evil:true, laxbreak:true, undef:true, browser:true, indent:false, maxerr:50 */

0 comments on commit 5cdda78

Please sign in to comment.