We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4c9d24 commit 565c60bCopy full SHA for 565c60b
src/simple-middleware.js
@@ -1,8 +1,10 @@
1
/* jshint asi:true */
2
;(function () {
3
4
- var compose = typeof require !== "undefined"? require("../../compose-simple-middleware/src/compose-simple-middleware.js") : window['module:peey/compose-simple-middleware'] ;
+ /* importing */
5
+ var compose = typeof require !== "undefined"? require("compose-simple-middleware") : window.composeMiddleware ;
6
7
+ /* actual code */
8
var Middleware = function () {
9
this.context = {}
10
this.list = []
@@ -26,8 +28,7 @@
26
28
27
29
// for browsers
30
if (typeof window !== "undefined") {
- window['module:peey/simple-middleware'] = Middleware
- if (typeof window.composeMiddleware === "undefined") window.Middleware = Middleware ; // don't overwrite variable if it exists
31
+ window.Middleware = Middleware;
32
}
33
34
})();
0 commit comments