2019-01-06 16:47:08 +01:00
|
|
|
var update = (function() {
|
|
|
|
|
|
|
|
var _update_100 = function(data) {
|
|
|
|
var time = new Date().getTime();
|
|
|
|
data.bookmarks.forEach(function(arrayItem, index) {
|
|
|
|
time = time + 1;
|
|
|
|
arrayItem.timeStamp = time;
|
|
|
|
});
|
|
|
|
data.version = 1.00;
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
|
|
|
var _update_200 = function(data) {
|
2019-02-03 14:51:54 +01:00
|
|
|
helper.setObject({
|
|
|
|
object: state.get(),
|
2019-01-06 16:47:08 +01:00
|
|
|
path: "layout.theme",
|
2019-02-03 14:51:54 +01:00
|
|
|
newValue: data.theme
|
2019-01-06 16:47:08 +01:00
|
|
|
});
|
|
|
|
data = {
|
|
|
|
state: state.get(),
|
|
|
|
bookmarks: data.bookmarks
|
|
|
|
};
|
|
|
|
data.version = 2.00;
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-01-07 15:42:14 +01:00
|
|
|
var _update_210 = function(data) {
|
|
|
|
data.state.layout.theme = {
|
|
|
|
current: data.state.layout.theme,
|
|
|
|
random: false
|
|
|
|
};
|
|
|
|
data.version = 2.10;
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-01-14 19:50:48 +01:00
|
|
|
var _update_230 = function(data) {
|
|
|
|
data.state.layout.theme.random = {
|
|
|
|
active: data.state.layout.theme.random,
|
|
|
|
style: "any"
|
|
|
|
};
|
|
|
|
data.version = 2.30;
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-01-24 21:28:11 +01:00
|
|
|
var _update_240 = function(data) {
|
|
|
|
data.state.link.show = {
|
|
|
|
active: true,
|
|
|
|
name: true,
|
|
|
|
url: true
|
|
|
|
};
|
|
|
|
data.state.layout.alignment = {
|
2019-01-25 00:21:00 +01:00
|
|
|
horizontal: "left",
|
2019-01-24 21:28:11 +01:00
|
|
|
vertical: "top"
|
|
|
|
};
|
|
|
|
data.state.background = {
|
|
|
|
image: {
|
|
|
|
active: false,
|
|
|
|
url: "../background/gray-steps.jpg",
|
|
|
|
blur: 0,
|
|
|
|
opacity: 1,
|
2019-01-24 21:37:36 +01:00
|
|
|
grayscale: 0,
|
2019-01-24 21:28:11 +01:00
|
|
|
accentOpacity: 0
|
|
|
|
}
|
|
|
|
};
|
|
|
|
data.version = 2.40;
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-01-25 00:21:00 +01:00
|
|
|
var _update_250 = function(data) {
|
|
|
|
data.state.header.search.focus = false;
|
|
|
|
data.version = 2.50;
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-02-03 14:51:54 +01:00
|
|
|
var _update_270 = function(data) {
|
|
|
|
// update date character length
|
|
|
|
data.state.header.date.character = {
|
|
|
|
length: data.state.header.date.characterLength
|
|
|
|
};
|
|
|
|
// change editAdd active to show
|
|
|
|
data.state.header.editAdd.show = data.state.header.editAdd.active;
|
|
|
|
delete data.state.header.editAdd.active;
|
|
|
|
// change editAdd active to show
|
|
|
|
data.state.header.accent.show = data.state.header.accent.active;
|
|
|
|
delete data.state.header.accent.active;
|
|
|
|
// move alignment into header
|
|
|
|
data.state.header.alignment = {
|
|
|
|
horizontal: data.state.layout.alignment.horizontal,
|
|
|
|
vertical: data.state.layout.alignment.vertical
|
|
|
|
};
|
|
|
|
delete data.state.layout.alignment;
|
|
|
|
// change header search
|
|
|
|
data.state.header.search.show = data.state.header.search.active;
|
|
|
|
delete data.state.header.search.active;
|
|
|
|
// move searching
|
|
|
|
data.state.search = {
|
|
|
|
active: false
|
|
|
|
};
|
|
|
|
delete data.state.header.search.searching;
|
|
|
|
// change links to bookmarks
|
|
|
|
data.state.bookmarks = data.state.link;
|
|
|
|
delete data.state.link;
|
|
|
|
// change bookmarks show
|
|
|
|
data.state.bookmarks.show.link = data.state.bookmarks.show.active;
|
|
|
|
delete data.state.bookmarks.show.active;
|
|
|
|
// move edit
|
|
|
|
data.state.bookmarks.edit = false;
|
|
|
|
delete data.state.edit;
|
|
|
|
// change layout width
|
|
|
|
data.state.layout.width = data.state.layout.container;
|
|
|
|
delete data.state.layout.container;
|
|
|
|
// change background active
|
|
|
|
data.state.background.image.show = data.state.background.image.active;
|
|
|
|
delete data.state.background.image.active;
|
|
|
|
// change background accent
|
|
|
|
data.state.background.image.accent = data.state.background.image.accentOpacity;
|
|
|
|
delete data.state.background.image.accentOpacity;
|
|
|
|
// change menu active
|
|
|
|
data.state.menu.show = data.state.menu.active;
|
|
|
|
delete data.state.menu.active;
|
|
|
|
delete data.state.menu.open;
|
|
|
|
// update version
|
|
|
|
data.version = 2.70;
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-02-03 16:18:45 +01:00
|
|
|
var _update_280 = function(data) {
|
|
|
|
data.state.layout.title = "New Tab";
|
|
|
|
data.version = 2.80;
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-02-16 23:27:54 +01:00
|
|
|
var _update_290 = function(data) {
|
|
|
|
data.state.header.shade = {
|
|
|
|
show: true,
|
|
|
|
padding: 4,
|
|
|
|
style: "scroll",
|
|
|
|
opacity: 0.95,
|
|
|
|
border: {
|
|
|
|
top: false,
|
|
|
|
bottom: false
|
|
|
|
}
|
|
|
|
};
|
|
|
|
data.version = 2.90;
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-04-18 14:30:40 +02:00
|
|
|
var _update_2110 = function(data) {
|
|
|
|
data.state.header.greeting = {
|
|
|
|
show: false,
|
|
|
|
type: "good",
|
|
|
|
name: ""
|
|
|
|
};
|
|
|
|
data.version = "2.11.0";
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
|
|
|
var _update_2110 = function(data) {
|
|
|
|
data.state.header.greeting = {
|
|
|
|
show: false,
|
|
|
|
type: "good",
|
|
|
|
name: ""
|
|
|
|
};
|
|
|
|
data.version = "2.11.0";
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
|
|
|
var _update_2120 = function(data) {
|
|
|
|
data.state.bookmarks.link = {
|
|
|
|
show: data.state.bookmarks.show.link
|
|
|
|
};
|
|
|
|
data.state.bookmarks.name = {
|
|
|
|
show: data.state.bookmarks.show.name
|
|
|
|
};
|
|
|
|
data.state.bookmarks.url = {
|
|
|
|
show: data.state.bookmarks.show.url,
|
|
|
|
style: "dark"
|
|
|
|
};
|
|
|
|
delete data.state.bookmarks.show;
|
|
|
|
data.state.theme = {
|
|
|
|
accent: {
|
|
|
|
current: data.state.layout.theme.current,
|
|
|
|
random: data.state.layout.theme.random
|
|
|
|
},
|
|
|
|
style: "dark"
|
|
|
|
};
|
|
|
|
delete data.state.layout.theme;
|
|
|
|
data.version = "2.12.0";
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
|
|
|
var _update_2140 = function(data) {
|
|
|
|
data.state.layout.width = 72;
|
|
|
|
data.version = "2.14.0";
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
|
|
|
var _update_2160 = function(data) {
|
|
|
|
data.state.header.shade.padding = {
|
|
|
|
top: data.state.header.shade.padding,
|
|
|
|
bottom: data.state.header.shade.padding
|
|
|
|
};
|
|
|
|
data.state.header.shade.border = {
|
|
|
|
top: {
|
|
|
|
show: data.state.header.shade.border.top,
|
|
|
|
width: 1
|
|
|
|
},
|
|
|
|
bottom: {
|
|
|
|
show: data.state.header.shade.border.bottom,
|
|
|
|
width: 1
|
|
|
|
}
|
|
|
|
};
|
|
|
|
data.version = "2.16.0";
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
|
|
|
var _update_2170 = function(data) {
|
|
|
|
data.state.header.search.engine.google.name = "Google";
|
|
|
|
data.state.header.search.engine.duckduckgo.name = "Duck Duck Go";
|
|
|
|
data.state.header.search.engine.giphy.name = "Giphy";
|
|
|
|
data.version = "2.17.0";
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
|
|
|
var _update_2190 = function(data) {
|
|
|
|
data.state.header.search.engine.youtube = {
|
|
|
|
url: "https://www.youtube.com/results?search_query=",
|
|
|
|
name: "YouTube"
|
|
|
|
};
|
|
|
|
data.state.header.search.engine.custom.name = "";
|
|
|
|
data.version = "2.19.0";
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
|
|
|
var _update_2200 = function(data) {
|
|
|
|
data.version = "2.20.0";
|
|
|
|
data.state.header.search.width = {
|
|
|
|
style: "auto",
|
|
|
|
custom: 30
|
|
|
|
};
|
|
|
|
data.state.header.search.text = {
|
|
|
|
align: "left"
|
|
|
|
};
|
|
|
|
delete data.state.header.search.grow;
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-04-26 14:48:37 +02:00
|
|
|
var _update_2210 = function(data) {
|
|
|
|
data.version = "2.21.0";
|
|
|
|
data.state.header.clock = {
|
|
|
|
hours: {
|
|
|
|
show: data.state.header.clock.show.hours,
|
|
|
|
display: "number"
|
|
|
|
},
|
|
|
|
minutes: {
|
|
|
|
show: data.state.header.clock.show.minutes,
|
|
|
|
display: "number"
|
|
|
|
},
|
|
|
|
seconds: {
|
|
|
|
show: data.state.header.clock.show.seconds,
|
|
|
|
display: "number"
|
|
|
|
},
|
|
|
|
separator: {
|
|
|
|
show: data.state.header.clock.show.separator
|
|
|
|
},
|
|
|
|
meridiem: {
|
|
|
|
show: data.state.header.clock.show.meridiem
|
|
|
|
},
|
|
|
|
hour24: {
|
|
|
|
show: data.state.header.clock.hour24
|
|
|
|
}
|
|
|
|
};
|
|
|
|
data.state.header.date = {
|
|
|
|
day: {
|
|
|
|
show: data.state.header.date.show.day,
|
|
|
|
display: "word",
|
|
|
|
weekStart: "monday",
|
|
|
|
length: data.state.header.date.character.length
|
|
|
|
},
|
|
|
|
date: {
|
|
|
|
show: data.state.header.date.show.date,
|
|
|
|
display: "number",
|
|
|
|
ordinal: true
|
|
|
|
},
|
|
|
|
month: {
|
|
|
|
show: data.state.header.date.show.month,
|
|
|
|
display: "word",
|
|
|
|
length: data.state.header.date.character.length,
|
|
|
|
ordinal: true
|
|
|
|
},
|
|
|
|
year: {
|
|
|
|
show: data.state.header.date.show.year,
|
|
|
|
display: "number"
|
|
|
|
},
|
|
|
|
separator: {
|
|
|
|
show: data.state.header.date.show.separator
|
|
|
|
},
|
|
|
|
format: "datemonth"
|
|
|
|
};
|
|
|
|
data.state.header.transitional = {
|
|
|
|
show: false,
|
|
|
|
type: "timeanddate"
|
|
|
|
};
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-05-04 14:53:18 +02:00
|
|
|
var _update_2220 = function(data) {
|
|
|
|
data.version = "2.22.0";
|
|
|
|
data.bookmarks.forEach(function(item, index) {
|
|
|
|
item.accent = {
|
|
|
|
override: false,
|
|
|
|
color: {
|
|
|
|
r: null,
|
|
|
|
g: null,
|
|
|
|
b: null
|
|
|
|
}
|
|
|
|
};
|
|
|
|
});
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-05-23 20:15:14 +02:00
|
|
|
var _update_300 = function(data) {
|
2019-05-11 09:33:19 +02:00
|
|
|
data.version = "3.0.0";
|
|
|
|
data.bookmarks.forEach(function(item, index) {
|
|
|
|
item.display = "letter";
|
|
|
|
item.icon = {
|
|
|
|
name: null,
|
|
|
|
prefix: null,
|
|
|
|
label: null
|
|
|
|
};
|
|
|
|
});
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-05-23 20:15:14 +02:00
|
|
|
var _update_310 = function(data) {
|
|
|
|
data.version = "3.1.0";
|
|
|
|
data.state.header.area = {
|
|
|
|
width: 90,
|
|
|
|
alignment: {
|
|
|
|
horizontal: "center"
|
|
|
|
}
|
|
|
|
};
|
|
|
|
data.state.header.items = {
|
|
|
|
alignment: {
|
|
|
|
horizontal: "left"
|
|
|
|
}
|
|
|
|
};
|
|
|
|
delete data.state.header.alignment;
|
|
|
|
data.state.link = data.state.bookmarks;
|
|
|
|
delete data.state.bookmarks;
|
|
|
|
data.state.link.area = {
|
|
|
|
width: 90,
|
|
|
|
alignment: {
|
|
|
|
horizontal: "center"
|
|
|
|
}
|
|
|
|
};
|
|
|
|
data.state.link.items = {
|
|
|
|
width: 12,
|
|
|
|
alignment: {
|
|
|
|
horizontal: "left"
|
|
|
|
}
|
|
|
|
};
|
|
|
|
data.state.link.show = data.state.link.link.show;
|
|
|
|
delete data.state.link.link;
|
|
|
|
data.state.link.fit = "best";
|
|
|
|
delete data.state.link.editObject;
|
|
|
|
data.state.layout.alignment = {
|
|
|
|
horizontal: "center",
|
|
|
|
vertical: "center"
|
|
|
|
};
|
|
|
|
data.state.edge = false;
|
2019-05-23 20:44:52 +02:00
|
|
|
data.state.autoSuggest = false;
|
2019-05-23 20:15:14 +02:00
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-06-04 17:14:04 +02:00
|
|
|
var _update_320 = function(data) {
|
|
|
|
data.version = "3.2.0";
|
|
|
|
data.state.link.display = {
|
|
|
|
show: true,
|
|
|
|
alignment: {
|
|
|
|
horizontal: "center",
|
|
|
|
vertical: "center"
|
|
|
|
},
|
|
|
|
letter: {
|
|
|
|
size: 2
|
|
|
|
},
|
|
|
|
icon: {
|
2019-06-04 20:08:15 +02:00
|
|
|
size: 2.5
|
2019-06-04 17:14:04 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-06-05 00:26:09 +02:00
|
|
|
var _update_340 = function(data) {
|
|
|
|
data.version = "3.4.0";
|
|
|
|
data.state.header.padding = data.state.header.shade.padding;
|
|
|
|
delete data.state.header.shade.padding;
|
|
|
|
data.state.header.border = data.state.header.shade.border;
|
|
|
|
delete data.state.header.shade.border;
|
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
2019-01-06 16:47:08 +01:00
|
|
|
// var _update_300 = function(data) {
|
|
|
|
// data.version = 3.00;
|
|
|
|
// return data;
|
|
|
|
// };
|
|
|
|
|
2019-02-03 14:51:54 +01:00
|
|
|
function run(data) {
|
2019-01-06 16:47:08 +01:00
|
|
|
if (!("version" in data)) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update", 1.00);
|
2019-01-06 16:47:08 +01:00
|
|
|
data = _update_100(data);
|
|
|
|
};
|
2019-03-25 13:24:38 +01:00
|
|
|
if (typeof data.version == "number") {
|
|
|
|
if (data.version < 2.00) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.0.0");
|
2019-03-25 13:24:38 +01:00
|
|
|
data = _update_200(data);
|
|
|
|
};
|
|
|
|
if (data.version < 2.10) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.1.0");
|
2019-03-25 13:24:38 +01:00
|
|
|
data = _update_210(data);
|
|
|
|
};
|
|
|
|
if (data.version < 2.30) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.3.0");
|
2019-03-25 13:24:38 +01:00
|
|
|
data = _update_230(data);
|
|
|
|
};
|
|
|
|
if (data.version < 2.40) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.4.0");
|
2019-03-25 13:24:38 +01:00
|
|
|
data = _update_240(data);
|
|
|
|
};
|
|
|
|
if (data.version < 2.50) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.5.0");
|
2019-03-25 13:24:38 +01:00
|
|
|
data = _update_250(data);
|
|
|
|
};
|
|
|
|
if (data.version < 2.70) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.7.0");
|
2019-03-25 13:24:38 +01:00
|
|
|
data = _update_270(data);
|
|
|
|
};
|
|
|
|
if (data.version < 2.80) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.8.0");
|
2019-03-25 13:24:38 +01:00
|
|
|
data = _update_280(data);
|
|
|
|
};
|
|
|
|
if (data.version < 2.90) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.9.0");
|
2019-03-25 13:24:38 +01:00
|
|
|
data = _update_290(data);
|
|
|
|
};
|
|
|
|
if (data.version < 2.91) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.9.1");
|
2019-03-25 13:24:38 +01:00
|
|
|
data.version = 2.91;
|
|
|
|
};
|
|
|
|
if (data.version < 2.96) {
|
|
|
|
// introduction of a new semantic version check function so the version is being bumped to 2.10.0 and changed to a string
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.10.0");
|
2019-03-25 13:24:38 +01:00
|
|
|
data.version = "2.10.0";
|
|
|
|
};
|
2019-03-26 00:31:51 +01:00
|
|
|
};
|
|
|
|
if (typeof data.version == "string") {
|
|
|
|
if (version.compare(data.version, "2.11.0") == -1) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.11.0");
|
|
|
|
data = _update_2110(data);
|
2019-03-26 00:31:51 +01:00
|
|
|
};
|
2019-04-01 17:11:39 +02:00
|
|
|
if (version.compare(data.version, "2.12.0") == -1) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.12.0");
|
|
|
|
data = _update_2120(data);
|
2019-04-01 17:11:39 +02:00
|
|
|
};
|
2019-04-03 13:47:41 +02:00
|
|
|
if (version.compare(data.version, "2.14.0") == -1) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.14.0");
|
|
|
|
data = _update_2140(data);
|
2019-04-03 13:47:41 +02:00
|
|
|
};
|
2019-04-04 12:13:07 +02:00
|
|
|
if (version.compare(data.version, "2.16.0") == -1) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.16.0");
|
|
|
|
data = _update_2160(data);
|
2019-04-04 12:13:07 +02:00
|
|
|
};
|
2019-04-04 16:26:52 +02:00
|
|
|
if (version.compare(data.version, "2.17.0") == -1) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.17.0");
|
|
|
|
data = _update_2170(data);
|
2019-04-04 16:26:52 +02:00
|
|
|
};
|
2019-04-04 19:08:26 +02:00
|
|
|
if (version.compare(data.version, "2.19.0") == -1) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= running update 2.19.0");
|
|
|
|
data = _update_2190(data);
|
|
|
|
};
|
|
|
|
if (version.compare(data.version, "2.20.0") == -1) {
|
|
|
|
console.log("\t= running update 2.20.0");
|
|
|
|
data = _update_2200(data);
|
2019-04-04 19:08:26 +02:00
|
|
|
};
|
2019-04-26 14:48:37 +02:00
|
|
|
if (version.compare(data.version, "2.21.0") == -1) {
|
|
|
|
console.log("\t= running update 2.21.0");
|
|
|
|
data = _update_2210(data);
|
|
|
|
};
|
2019-05-04 14:53:18 +02:00
|
|
|
if (version.compare(data.version, "2.22.0") == -1) {
|
|
|
|
console.log("\t= running update 2.22.0");
|
|
|
|
data = _update_2220(data);
|
|
|
|
};
|
2019-05-11 09:33:19 +02:00
|
|
|
if (version.compare(data.version, "3.0.0") == -1) {
|
|
|
|
console.log("\t= running update 3.0.0");
|
2019-05-23 20:15:14 +02:00
|
|
|
data = _update_300(data);
|
|
|
|
};
|
|
|
|
if (version.compare(data.version, "3.1.0") == -1) {
|
|
|
|
console.log("\t= running update 3.1.0");
|
|
|
|
data = _update_310(data);
|
2019-05-11 09:33:19 +02:00
|
|
|
};
|
2019-06-04 17:14:04 +02:00
|
|
|
if (version.compare(data.version, "3.2.0") == -1) {
|
|
|
|
console.log("\t= running update 3.2.0");
|
|
|
|
data = _update_320(data);
|
|
|
|
};
|
2019-06-05 00:26:09 +02:00
|
|
|
if (version.compare(data.version, "3.4.0") == -1) {
|
|
|
|
console.log("\t= running update 3.4.0");
|
|
|
|
data = _update_340(data);
|
|
|
|
};
|
2019-02-17 15:31:29 +01:00
|
|
|
};
|
2019-02-23 16:15:02 +01:00
|
|
|
// if no update is needed
|
|
|
|
// version bump
|
2019-03-25 13:24:38 +01:00
|
|
|
if (version.compare(data.version, version.get()) == -1) {
|
2019-04-18 14:30:40 +02:00
|
|
|
console.log("\t= nothing to update, version bump to", version.get());
|
2019-02-23 16:15:02 +01:00
|
|
|
data.version = version.get();
|
|
|
|
};
|
2019-01-06 16:47:08 +01:00
|
|
|
return data;
|
|
|
|
};
|
|
|
|
|
|
|
|
// exposed methods
|
|
|
|
return {
|
2019-02-03 14:51:54 +01:00
|
|
|
run: run
|
2019-01-06 16:47:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
})();
|