changed function returns to objects
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const fs_1 = require("fs");
|
||||
const paths_1 = require("./paths");
|
||||
function default_1(name) {
|
||||
function readMeta(name) {
|
||||
var meta = {
|
||||
name: name,
|
||||
namespace: 'zomo.dev',
|
||||
@@ -50,9 +50,9 @@ function default_1(name) {
|
||||
injectinto: 'inject-into',
|
||||
excludematch: 'exclude-match',
|
||||
};
|
||||
return [
|
||||
return {
|
||||
meta,
|
||||
`// ==UserScript==
|
||||
metaString: `// ==UserScript==
|
||||
${Object.keys(meta)
|
||||
.filter(key => {
|
||||
let val = meta[key];
|
||||
@@ -99,7 +99,7 @@ ${Object.keys(meta)
|
||||
.join('\n')}
|
||||
// ==/UserScript==
|
||||
`,
|
||||
];
|
||||
};
|
||||
}
|
||||
exports.default = default_1;
|
||||
exports.default = readMeta;
|
||||
//# sourceMappingURL=readmeta.js.map
|
||||
Reference in New Issue
Block a user