mirror of https://bitbucket.org/ausocean/av.git
Merged in m3u-packages (pull request #332)
mjpeg-player: made node.js packages compatible for es6 import/exports Approved-by: Saxon Milton Approved-by: Scott Barnard
This commit is contained in:
commit
1b7e817266
|
@ -328,9 +328,4 @@ EventEmitter.prefixed = prefix;
|
||||||
//
|
//
|
||||||
EventEmitter.EventEmitter = EventEmitter;
|
EventEmitter.EventEmitter = EventEmitter;
|
||||||
|
|
||||||
//
|
export default EventEmitter;
|
||||||
// Expose the module.
|
|
||||||
//
|
|
||||||
if ('undefined' !== typeof module) {
|
|
||||||
module.exports = EventEmitter;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
// see https://tools.ietf.org/html/rfc1808
|
// see https://tools.ietf.org/html/rfc1808
|
||||||
|
|
||||||
/* jshint ignore:start */
|
|
||||||
(function(root) {
|
|
||||||
/* jshint ignore:end */
|
|
||||||
|
|
||||||
var URL_REGEX = /^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/;
|
var URL_REGEX = /^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/;
|
||||||
var FIRST_SEGMENT_REGEX = /^([^\/?#]*)(.*)$/;
|
var FIRST_SEGMENT_REGEX = /^([^\/?#]*)(.*)$/;
|
||||||
var SLASH_DOT_REGEX = /(?:\/|^)\.(?=\/)/g;
|
var SLASH_DOT_REGEX = /(?:\/|^)\.(?=\/)/g;
|
||||||
|
@ -150,14 +146,4 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/* jshint ignore:start */
|
export default URLToolkit;
|
||||||
if(typeof exports === 'object' && typeof module === 'object')
|
|
||||||
module.exports = URLToolkit;
|
|
||||||
else if(typeof define === 'function' && define.amd)
|
|
||||||
define([], function() { return URLToolkit; });
|
|
||||||
else if(typeof exports === 'object')
|
|
||||||
exports["URLToolkit"] = URLToolkit;
|
|
||||||
else
|
|
||||||
root["URLToolkit"] = URLToolkit;
|
|
||||||
})(this);
|
|
||||||
/* jshint ignore:end */
|
|
||||||
|
|
Loading…
Reference in New Issue