2020-06-03 22:39:30 -04:00
|
|
|
(function() {
|
|
|
|
|
|
2022-09-01 11:19:13 -04:00
|
|
|
const is_self = typeof(self) !== 'undefined';
|
|
|
|
|
|
2020-06-03 22:39:30 -04:00
|
|
|
let terms = {
|
|
|
|
|
COPYRIGHT: "Copyright (C) Stewart Allen <sa@grid.space> - All Rights Reserved",
|
|
|
|
|
LICENSE: "See the license.md file included with the source distribution",
|
2022-10-19 00:13:22 -04:00
|
|
|
VERSION: (is_self ? self : this).debug_version || "3.6.D8"
|
2020-06-03 22:39:30 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if (typeof(module) === 'object') {
|
|
|
|
|
module.exports = terms;
|
2021-08-28 09:45:56 -04:00
|
|
|
}
|
2021-12-26 13:59:02 -05:00
|
|
|
|
2021-12-29 10:37:17 -05:00
|
|
|
// allow license to be required() by app without gapp
|
2022-09-01 11:19:13 -04:00
|
|
|
if (is_self && self.gapp) {
|
2021-12-26 13:59:02 -05:00
|
|
|
let app = self.gapp;
|
|
|
|
|
app.license = terms.LICENSE;
|
|
|
|
|
app.version = terms.VERSION;
|
|
|
|
|
app.copyright = terms.COPYRIGHT;
|
2021-12-29 16:31:17 -05:00
|
|
|
// satisfy resolver
|
|
|
|
|
gapp.register('moto.license');
|
2021-12-26 13:59:02 -05:00
|
|
|
// for earcut and other modules
|
2021-12-29 16:31:17 -05:00
|
|
|
(self.module = self.module || {}).exports = terms;
|
2020-06-03 22:39:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})();
|