logixia 1.8.2 → 1.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/{index-CthBT3t8.d.mts → index-DknhKCCg.d.ts} +12 -1
- package/dist/index-DknhKCCg.d.ts.map +1 -0
- package/dist/{index-ClPZrfIU.d.ts → index-DnhKoNBG.d.mts} +12 -1
- package/dist/index-DnhKoNBG.d.mts.map +1 -0
- package/dist/index.d.mts +87 -16
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +86 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +78 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +77 -37
- package/dist/index.mjs.map +1 -1
- package/dist/{logitron-logger.module-Dx2mUz-g.d.ts → logitron-logger.module-BkPXi0He.d.ts} +97 -5
- package/dist/logitron-logger.module-BkPXi0He.d.ts.map +1 -0
- package/dist/logitron-logger.module-CMDM61Iz.js +2566 -0
- package/dist/logitron-logger.module-CMDM61Iz.js.map +1 -0
- package/dist/{logitron-logger.module-KU_L04y1.d.mts → logitron-logger.module-Cd5M_59H.d.mts} +97 -5
- package/dist/logitron-logger.module-Cd5M_59H.d.mts.map +1 -0
- package/dist/logitron-logger.module-uyg1-Khn.mjs +2285 -0
- package/dist/logitron-logger.module-uyg1-Khn.mjs.map +1 -0
- package/dist/middleware.d.mts +1 -1
- package/dist/middleware.d.mts.map +1 -1
- package/dist/middleware.d.ts +1 -1
- package/dist/middleware.d.ts.map +1 -1
- package/dist/middleware.js +4 -1
- package/dist/middleware.js.map +1 -1
- package/dist/middleware.mjs +4 -1
- package/dist/middleware.mjs.map +1 -1
- package/dist/nest.d.mts +4 -44
- package/dist/nest.d.mts.map +1 -1
- package/dist/nest.d.ts +4 -44
- package/dist/nest.d.ts.map +1 -1
- package/dist/nest.js +3 -93
- package/dist/nest.mjs +3 -92
- package/dist/search.d.mts +1 -1
- package/dist/search.js +1 -1
- package/dist/search.mjs +1 -1
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{transport.manager-BCnLEmOy.mjs → transport.manager-D3U03fJg.mjs} +21 -11
- package/dist/transport.manager-D3U03fJg.mjs.map +1 -0
- package/dist/{transport.manager-DU1W0wV3.js → transport.manager-DPjB-dFH.js} +49 -15
- package/dist/transport.manager-DPjB-dFH.js.map +1 -0
- package/dist/transports.d.mts +3 -1
- package/dist/transports.d.mts.map +1 -1
- package/dist/transports.d.ts +3 -1
- package/dist/transports.d.ts.map +1 -1
- package/dist/transports.js +1 -1
- package/dist/transports.mjs +1 -1
- package/package.json +24 -23
- package/dist/build-DOx-YxF1.js +0 -536
- package/dist/build-DOx-YxF1.js.map +0 -1
- package/dist/build-DWmxA6A2.mjs +0 -536
- package/dist/build-DWmxA6A2.mjs.map +0 -1
- package/dist/chunk-BTgCAUrQ.js +0 -53
- package/dist/chunk-uEZWKkIX.mjs +0 -32
- package/dist/esm-1Ra90uql.mjs +0 -4256
- package/dist/esm-1Ra90uql.mjs.map +0 -1
- package/dist/esm-FNhqFIqG.js +0 -4267
- package/dist/esm-FNhqFIqG.js.map +0 -1
- package/dist/index-ClPZrfIU.d.ts.map +0 -1
- package/dist/index-CthBT3t8.d.mts.map +0 -1
- package/dist/lib-8XKCHDOH.mjs +0 -66301
- package/dist/lib-8XKCHDOH.mjs.map +0 -1
- package/dist/lib-BNEYXXTQ.js +0 -66304
- package/dist/lib-BNEYXXTQ.js.map +0 -1
- package/dist/logitron-logger.module-DucvDnxZ.mjs +0 -10986
- package/dist/logitron-logger.module-DucvDnxZ.mjs.map +0 -1
- package/dist/logitron-logger.module-Dx2mUz-g.d.ts.map +0 -1
- package/dist/logitron-logger.module-Fof9Er2E.js +0 -11260
- package/dist/logitron-logger.module-Fof9Er2E.js.map +0 -1
- package/dist/logitron-logger.module-KU_L04y1.d.mts.map +0 -1
- package/dist/nest.js.map +0 -1
- package/dist/nest.mjs.map +0 -1
- package/dist/promise-BI-3eI4n.js +0 -22743
- package/dist/promise-BI-3eI4n.js.map +0 -1
- package/dist/promise-BrZcjavs.mjs +0 -22740
- package/dist/promise-BrZcjavs.mjs.map +0 -1
- package/dist/sqlite3-CSkpjC90.js +0 -420
- package/dist/sqlite3-CSkpjC90.js.map +0 -1
- package/dist/sqlite3-DD2_nRRH.mjs +0 -417
- package/dist/sqlite3-DD2_nRRH.mjs.map +0 -1
- package/dist/transport.manager-BCnLEmOy.mjs.map +0 -1
- package/dist/transport.manager-DU1W0wV3.js.map +0 -1
- /package/dist/{search-DanSf_yc.d.mts → search-DN676Dnz.d.mts} +0 -0
- /package/dist/{search-1txemGPh.mjs → search-DOvSI-mb.mjs} +0 -0
- /package/dist/{search-DeZHhWxB.js → search-DoZF3RZj.js} +0 -0
package/dist/sqlite3-CSkpjC90.js
DELETED
|
@@ -1,420 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-BTgCAUrQ.js');
|
|
2
|
-
|
|
3
|
-
//#region node_modules/file-uri-to-path/index.js
|
|
4
|
-
var require_file_uri_to_path = /* @__PURE__ */ require_chunk.__commonJS({ "node_modules/file-uri-to-path/index.js": ((exports, module) => {
|
|
5
|
-
/**
|
|
6
|
-
* Module dependencies.
|
|
7
|
-
*/
|
|
8
|
-
var sep = require("path").sep || "/";
|
|
9
|
-
/**
|
|
10
|
-
* Module exports.
|
|
11
|
-
*/
|
|
12
|
-
module.exports = fileUriToPath;
|
|
13
|
-
/**
|
|
14
|
-
* File URI to Path function.
|
|
15
|
-
*
|
|
16
|
-
* @param {String} uri
|
|
17
|
-
* @return {String} path
|
|
18
|
-
* @api public
|
|
19
|
-
*/
|
|
20
|
-
function fileUriToPath(uri) {
|
|
21
|
-
if ("string" != typeof uri || uri.length <= 7 || "file://" != uri.substring(0, 7)) throw new TypeError("must pass in a file:// URI to convert to a file path");
|
|
22
|
-
var rest = decodeURI(uri.substring(7));
|
|
23
|
-
var firstSlash = rest.indexOf("/");
|
|
24
|
-
var host = rest.substring(0, firstSlash);
|
|
25
|
-
var path$2 = rest.substring(firstSlash + 1);
|
|
26
|
-
if ("localhost" == host) host = "";
|
|
27
|
-
if (host) host = sep + sep + host;
|
|
28
|
-
path$2 = path$2.replace(/^(.+)\|/, "$1:");
|
|
29
|
-
if (sep == "\\") path$2 = path$2.replace(/\//g, "\\");
|
|
30
|
-
if (/^.+\:/.test(path$2)) {} else path$2 = sep + path$2;
|
|
31
|
-
return host + path$2;
|
|
32
|
-
}
|
|
33
|
-
}) });
|
|
34
|
-
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region node_modules/bindings/bindings.js
|
|
37
|
-
var require_bindings = /* @__PURE__ */ require_chunk.__commonJS({ "node_modules/bindings/bindings.js": ((exports, module) => {
|
|
38
|
-
/**
|
|
39
|
-
* Module dependencies.
|
|
40
|
-
*/
|
|
41
|
-
var fs = require("fs"), path$1 = require("path"), fileURLToPath = require_file_uri_to_path(), join = path$1.join, dirname = path$1.dirname, exists = fs.accessSync && function(path$2) {
|
|
42
|
-
try {
|
|
43
|
-
fs.accessSync(path$2);
|
|
44
|
-
} catch (e) {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
return true;
|
|
48
|
-
} || fs.existsSync || path$1.existsSync, defaults = {
|
|
49
|
-
arrow: process.env.NODE_BINDINGS_ARROW || " → ",
|
|
50
|
-
compiled: process.env.NODE_BINDINGS_COMPILED_DIR || "compiled",
|
|
51
|
-
platform: process.platform,
|
|
52
|
-
arch: process.arch,
|
|
53
|
-
nodePreGyp: "node-v" + process.versions.modules + "-" + process.platform + "-" + process.arch,
|
|
54
|
-
version: process.versions.node,
|
|
55
|
-
bindings: "bindings.node",
|
|
56
|
-
try: [
|
|
57
|
-
[
|
|
58
|
-
"module_root",
|
|
59
|
-
"build",
|
|
60
|
-
"bindings"
|
|
61
|
-
],
|
|
62
|
-
[
|
|
63
|
-
"module_root",
|
|
64
|
-
"build",
|
|
65
|
-
"Debug",
|
|
66
|
-
"bindings"
|
|
67
|
-
],
|
|
68
|
-
[
|
|
69
|
-
"module_root",
|
|
70
|
-
"build",
|
|
71
|
-
"Release",
|
|
72
|
-
"bindings"
|
|
73
|
-
],
|
|
74
|
-
[
|
|
75
|
-
"module_root",
|
|
76
|
-
"out",
|
|
77
|
-
"Debug",
|
|
78
|
-
"bindings"
|
|
79
|
-
],
|
|
80
|
-
[
|
|
81
|
-
"module_root",
|
|
82
|
-
"Debug",
|
|
83
|
-
"bindings"
|
|
84
|
-
],
|
|
85
|
-
[
|
|
86
|
-
"module_root",
|
|
87
|
-
"out",
|
|
88
|
-
"Release",
|
|
89
|
-
"bindings"
|
|
90
|
-
],
|
|
91
|
-
[
|
|
92
|
-
"module_root",
|
|
93
|
-
"Release",
|
|
94
|
-
"bindings"
|
|
95
|
-
],
|
|
96
|
-
[
|
|
97
|
-
"module_root",
|
|
98
|
-
"build",
|
|
99
|
-
"default",
|
|
100
|
-
"bindings"
|
|
101
|
-
],
|
|
102
|
-
[
|
|
103
|
-
"module_root",
|
|
104
|
-
"compiled",
|
|
105
|
-
"version",
|
|
106
|
-
"platform",
|
|
107
|
-
"arch",
|
|
108
|
-
"bindings"
|
|
109
|
-
],
|
|
110
|
-
[
|
|
111
|
-
"module_root",
|
|
112
|
-
"addon-build",
|
|
113
|
-
"release",
|
|
114
|
-
"install-root",
|
|
115
|
-
"bindings"
|
|
116
|
-
],
|
|
117
|
-
[
|
|
118
|
-
"module_root",
|
|
119
|
-
"addon-build",
|
|
120
|
-
"debug",
|
|
121
|
-
"install-root",
|
|
122
|
-
"bindings"
|
|
123
|
-
],
|
|
124
|
-
[
|
|
125
|
-
"module_root",
|
|
126
|
-
"addon-build",
|
|
127
|
-
"default",
|
|
128
|
-
"install-root",
|
|
129
|
-
"bindings"
|
|
130
|
-
],
|
|
131
|
-
[
|
|
132
|
-
"module_root",
|
|
133
|
-
"lib",
|
|
134
|
-
"binding",
|
|
135
|
-
"nodePreGyp",
|
|
136
|
-
"bindings"
|
|
137
|
-
]
|
|
138
|
-
]
|
|
139
|
-
};
|
|
140
|
-
/**
|
|
141
|
-
* The main `bindings()` function loads the compiled bindings for a given module.
|
|
142
|
-
* It uses V8's Error API to determine the parent filename that this function is
|
|
143
|
-
* being invoked from, which is then used to find the root directory.
|
|
144
|
-
*/
|
|
145
|
-
function bindings(opts) {
|
|
146
|
-
if (typeof opts == "string") opts = { bindings: opts };
|
|
147
|
-
else if (!opts) opts = {};
|
|
148
|
-
Object.keys(defaults).map(function(i$1) {
|
|
149
|
-
if (!(i$1 in opts)) opts[i$1] = defaults[i$1];
|
|
150
|
-
});
|
|
151
|
-
if (!opts.module_root) opts.module_root = exports.getRoot(exports.getFileName());
|
|
152
|
-
if (path$1.extname(opts.bindings) != ".node") opts.bindings += ".node";
|
|
153
|
-
var requireFunc = typeof __webpack_require__ === "function" ? __non_webpack_require__ : require;
|
|
154
|
-
var tries = [], i = 0, l = opts.try.length, n, b, err;
|
|
155
|
-
for (; i < l; i++) {
|
|
156
|
-
n = join.apply(null, opts.try[i].map(function(p) {
|
|
157
|
-
return opts[p] || p;
|
|
158
|
-
}));
|
|
159
|
-
tries.push(n);
|
|
160
|
-
try {
|
|
161
|
-
b = opts.path ? requireFunc.resolve(n) : requireFunc(n);
|
|
162
|
-
if (!opts.path) b.path = n;
|
|
163
|
-
return b;
|
|
164
|
-
} catch (e) {
|
|
165
|
-
if (e.code !== "MODULE_NOT_FOUND" && e.code !== "QUALIFIED_PATH_RESOLUTION_FAILED" && !/not find/i.test(e.message)) throw e;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
err = /* @__PURE__ */ new Error("Could not locate the bindings file. Tried:\n" + tries.map(function(a) {
|
|
169
|
-
return opts.arrow + a;
|
|
170
|
-
}).join("\n"));
|
|
171
|
-
err.tries = tries;
|
|
172
|
-
throw err;
|
|
173
|
-
}
|
|
174
|
-
module.exports = exports = bindings;
|
|
175
|
-
/**
|
|
176
|
-
* Gets the filename of the JavaScript file that invokes this function.
|
|
177
|
-
* Used to help find the root directory of a module.
|
|
178
|
-
* Optionally accepts an filename argument to skip when searching for the invoking filename
|
|
179
|
-
*/
|
|
180
|
-
exports.getFileName = function getFileName(calling_file) {
|
|
181
|
-
var origPST = Error.prepareStackTrace, origSTL = Error.stackTraceLimit, dummy = {}, fileName;
|
|
182
|
-
Error.stackTraceLimit = 10;
|
|
183
|
-
Error.prepareStackTrace = function(e, st) {
|
|
184
|
-
for (var i = 0, l = st.length; i < l; i++) {
|
|
185
|
-
fileName = st[i].getFileName();
|
|
186
|
-
if (fileName !== __filename) if (calling_file) {
|
|
187
|
-
if (fileName !== calling_file) return;
|
|
188
|
-
} else return;
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
Error.captureStackTrace(dummy);
|
|
192
|
-
dummy.stack;
|
|
193
|
-
Error.prepareStackTrace = origPST;
|
|
194
|
-
Error.stackTraceLimit = origSTL;
|
|
195
|
-
if (fileName.indexOf("file://") === 0) fileName = fileURLToPath(fileName);
|
|
196
|
-
return fileName;
|
|
197
|
-
};
|
|
198
|
-
/**
|
|
199
|
-
* Gets the root directory of a module, given an arbitrary filename
|
|
200
|
-
* somewhere in the module tree. The "root directory" is the directory
|
|
201
|
-
* containing the `package.json` file.
|
|
202
|
-
*
|
|
203
|
-
* In: /home/nate/node-native-module/lib/index.js
|
|
204
|
-
* Out: /home/nate/node-native-module
|
|
205
|
-
*/
|
|
206
|
-
exports.getRoot = function getRoot(file) {
|
|
207
|
-
var dir = dirname(file), prev;
|
|
208
|
-
while (true) {
|
|
209
|
-
if (dir === ".") dir = process.cwd();
|
|
210
|
-
if (exists(join(dir, "package.json")) || exists(join(dir, "node_modules"))) return dir;
|
|
211
|
-
if (prev === dir) throw new Error("Could not find module root given file: \"" + file + "\". Do you have a `package.json` file? ");
|
|
212
|
-
prev = dir;
|
|
213
|
-
dir = join(dir, "..");
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
}) });
|
|
217
|
-
|
|
218
|
-
//#endregion
|
|
219
|
-
//#region node_modules/sqlite3/lib/sqlite3-binding.js
|
|
220
|
-
var require_sqlite3_binding = /* @__PURE__ */ require_chunk.__commonJS({ "node_modules/sqlite3/lib/sqlite3-binding.js": ((exports, module) => {
|
|
221
|
-
module.exports = require_bindings()("node_sqlite3.node");
|
|
222
|
-
}) });
|
|
223
|
-
|
|
224
|
-
//#endregion
|
|
225
|
-
//#region node_modules/sqlite3/lib/trace.js
|
|
226
|
-
var require_trace = /* @__PURE__ */ require_chunk.__commonJS({ "node_modules/sqlite3/lib/trace.js": ((exports) => {
|
|
227
|
-
const util = require("util");
|
|
228
|
-
function extendTrace(object, property, pos) {
|
|
229
|
-
const old = object[property];
|
|
230
|
-
object[property] = function() {
|
|
231
|
-
const error = /* @__PURE__ */ new Error();
|
|
232
|
-
const name = object.constructor.name + "#" + property + "(" + Array.prototype.slice.call(arguments).map(function(el) {
|
|
233
|
-
return util.inspect(el, false, 0);
|
|
234
|
-
}).join(", ") + ")";
|
|
235
|
-
if (typeof pos === "undefined") pos = -1;
|
|
236
|
-
if (pos < 0) pos += arguments.length;
|
|
237
|
-
const cb = arguments[pos];
|
|
238
|
-
if (typeof arguments[pos] === "function") arguments[pos] = function replacement() {
|
|
239
|
-
const err = arguments[0];
|
|
240
|
-
if (err && err.stack && !err.__augmented) {
|
|
241
|
-
err.stack = filter(err).join("\n");
|
|
242
|
-
err.stack += "\n--> in " + name;
|
|
243
|
-
err.stack += "\n" + filter(error).slice(1).join("\n");
|
|
244
|
-
err.__augmented = true;
|
|
245
|
-
}
|
|
246
|
-
return cb.apply(this, arguments);
|
|
247
|
-
};
|
|
248
|
-
return old.apply(this, arguments);
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
exports.extendTrace = extendTrace;
|
|
252
|
-
function filter(error) {
|
|
253
|
-
return error.stack.split("\n").filter(function(line) {
|
|
254
|
-
return line.indexOf(__filename) < 0;
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
}) });
|
|
258
|
-
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region node_modules/sqlite3/lib/sqlite3.js
|
|
261
|
-
var require_sqlite3 = /* @__PURE__ */ require_chunk.__commonJS({ "node_modules/sqlite3/lib/sqlite3.js": ((exports, module) => {
|
|
262
|
-
const path = require("path");
|
|
263
|
-
const sqlite3 = require_sqlite3_binding();
|
|
264
|
-
const EventEmitter = require("events").EventEmitter;
|
|
265
|
-
module.exports = exports = sqlite3;
|
|
266
|
-
function normalizeMethod(fn) {
|
|
267
|
-
return function(sql) {
|
|
268
|
-
let errBack;
|
|
269
|
-
const args = Array.prototype.slice.call(arguments, 1);
|
|
270
|
-
if (typeof args[args.length - 1] === "function") {
|
|
271
|
-
const callback = args[args.length - 1];
|
|
272
|
-
errBack = function(err) {
|
|
273
|
-
if (err) callback(err);
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
const statement = new Statement(this, sql, errBack);
|
|
277
|
-
return fn.call(this, statement, args);
|
|
278
|
-
};
|
|
279
|
-
}
|
|
280
|
-
function inherits(target, source) {
|
|
281
|
-
for (const k in source.prototype) target.prototype[k] = source.prototype[k];
|
|
282
|
-
}
|
|
283
|
-
sqlite3.cached = {
|
|
284
|
-
Database: function(file, a, b) {
|
|
285
|
-
if (file === "" || file === ":memory:") return new Database(file, a, b);
|
|
286
|
-
let db;
|
|
287
|
-
file = path.resolve(file);
|
|
288
|
-
if (!sqlite3.cached.objects[file]) db = sqlite3.cached.objects[file] = new Database(file, a, b);
|
|
289
|
-
else {
|
|
290
|
-
db = sqlite3.cached.objects[file];
|
|
291
|
-
const callback = typeof a === "number" ? b : a;
|
|
292
|
-
if (typeof callback === "function") {
|
|
293
|
-
function cb() {
|
|
294
|
-
callback.call(db, null);
|
|
295
|
-
}
|
|
296
|
-
if (db.open) process.nextTick(cb);
|
|
297
|
-
else db.once("open", cb);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
return db;
|
|
301
|
-
},
|
|
302
|
-
objects: {}
|
|
303
|
-
};
|
|
304
|
-
const Database = sqlite3.Database;
|
|
305
|
-
const Statement = sqlite3.Statement;
|
|
306
|
-
const Backup = sqlite3.Backup;
|
|
307
|
-
inherits(Database, EventEmitter);
|
|
308
|
-
inherits(Statement, EventEmitter);
|
|
309
|
-
inherits(Backup, EventEmitter);
|
|
310
|
-
Database.prototype.prepare = normalizeMethod(function(statement, params) {
|
|
311
|
-
return params.length ? statement.bind.apply(statement, params) : statement;
|
|
312
|
-
});
|
|
313
|
-
Database.prototype.run = normalizeMethod(function(statement, params) {
|
|
314
|
-
statement.run.apply(statement, params).finalize();
|
|
315
|
-
return this;
|
|
316
|
-
});
|
|
317
|
-
Database.prototype.get = normalizeMethod(function(statement, params) {
|
|
318
|
-
statement.get.apply(statement, params).finalize();
|
|
319
|
-
return this;
|
|
320
|
-
});
|
|
321
|
-
Database.prototype.all = normalizeMethod(function(statement, params) {
|
|
322
|
-
statement.all.apply(statement, params).finalize();
|
|
323
|
-
return this;
|
|
324
|
-
});
|
|
325
|
-
Database.prototype.each = normalizeMethod(function(statement, params) {
|
|
326
|
-
statement.each.apply(statement, params).finalize();
|
|
327
|
-
return this;
|
|
328
|
-
});
|
|
329
|
-
Database.prototype.map = normalizeMethod(function(statement, params) {
|
|
330
|
-
statement.map.apply(statement, params).finalize();
|
|
331
|
-
return this;
|
|
332
|
-
});
|
|
333
|
-
Database.prototype.backup = function() {
|
|
334
|
-
let backup;
|
|
335
|
-
if (arguments.length <= 2) backup = new Backup(this, arguments[0], "main", "main", true, arguments[1]);
|
|
336
|
-
else backup = new Backup(this, arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);
|
|
337
|
-
backup.retryErrors = [sqlite3.BUSY, sqlite3.LOCKED];
|
|
338
|
-
return backup;
|
|
339
|
-
};
|
|
340
|
-
Statement.prototype.map = function() {
|
|
341
|
-
const params = Array.prototype.slice.call(arguments);
|
|
342
|
-
const callback = params.pop();
|
|
343
|
-
params.push(function(err, rows) {
|
|
344
|
-
if (err) return callback(err);
|
|
345
|
-
const result = {};
|
|
346
|
-
if (rows.length) {
|
|
347
|
-
const keys = Object.keys(rows[0]);
|
|
348
|
-
const key = keys[0];
|
|
349
|
-
if (keys.length > 2) for (let i = 0; i < rows.length; i++) result[rows[i][key]] = rows[i];
|
|
350
|
-
else {
|
|
351
|
-
const value = keys[1];
|
|
352
|
-
for (let i = 0; i < rows.length; i++) result[rows[i][key]] = rows[i][value];
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
callback(err, result);
|
|
356
|
-
});
|
|
357
|
-
return this.all.apply(this, params);
|
|
358
|
-
};
|
|
359
|
-
let isVerbose = false;
|
|
360
|
-
const supportedEvents = [
|
|
361
|
-
"trace",
|
|
362
|
-
"profile",
|
|
363
|
-
"change"
|
|
364
|
-
];
|
|
365
|
-
Database.prototype.addListener = Database.prototype.on = function(type) {
|
|
366
|
-
const val = EventEmitter.prototype.addListener.apply(this, arguments);
|
|
367
|
-
if (supportedEvents.indexOf(type) >= 0) this.configure(type, true);
|
|
368
|
-
return val;
|
|
369
|
-
};
|
|
370
|
-
Database.prototype.removeListener = function(type) {
|
|
371
|
-
const val = EventEmitter.prototype.removeListener.apply(this, arguments);
|
|
372
|
-
if (supportedEvents.indexOf(type) >= 0 && !this._events[type]) this.configure(type, false);
|
|
373
|
-
return val;
|
|
374
|
-
};
|
|
375
|
-
Database.prototype.removeAllListeners = function(type) {
|
|
376
|
-
const val = EventEmitter.prototype.removeAllListeners.apply(this, arguments);
|
|
377
|
-
if (supportedEvents.indexOf(type) >= 0) this.configure(type, false);
|
|
378
|
-
return val;
|
|
379
|
-
};
|
|
380
|
-
sqlite3.verbose = function() {
|
|
381
|
-
if (!isVerbose) {
|
|
382
|
-
const trace = require_trace();
|
|
383
|
-
[
|
|
384
|
-
"prepare",
|
|
385
|
-
"get",
|
|
386
|
-
"run",
|
|
387
|
-
"all",
|
|
388
|
-
"each",
|
|
389
|
-
"map",
|
|
390
|
-
"close",
|
|
391
|
-
"exec"
|
|
392
|
-
].forEach(function(name) {
|
|
393
|
-
trace.extendTrace(Database.prototype, name);
|
|
394
|
-
});
|
|
395
|
-
[
|
|
396
|
-
"bind",
|
|
397
|
-
"get",
|
|
398
|
-
"run",
|
|
399
|
-
"all",
|
|
400
|
-
"each",
|
|
401
|
-
"map",
|
|
402
|
-
"reset",
|
|
403
|
-
"finalize"
|
|
404
|
-
].forEach(function(name) {
|
|
405
|
-
trace.extendTrace(Statement.prototype, name);
|
|
406
|
-
});
|
|
407
|
-
isVerbose = true;
|
|
408
|
-
}
|
|
409
|
-
return sqlite3;
|
|
410
|
-
};
|
|
411
|
-
}) });
|
|
412
|
-
|
|
413
|
-
//#endregion
|
|
414
|
-
Object.defineProperty(exports, 'default', {
|
|
415
|
-
enumerable: true,
|
|
416
|
-
get: function () {
|
|
417
|
-
return require_sqlite3();
|
|
418
|
-
}
|
|
419
|
-
});
|
|
420
|
-
//# sourceMappingURL=sqlite3-CSkpjC90.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite3-CSkpjC90.js","names":["path","path","i"],"sources":["../node_modules/file-uri-to-path/index.js","../node_modules/bindings/bindings.js","../node_modules/sqlite3/lib/sqlite3-binding.js","../node_modules/sqlite3/lib/trace.js","../node_modules/sqlite3/lib/sqlite3.js"],"sourcesContent":["\n/**\n * Module dependencies.\n */\n\nvar sep = require('path').sep || '/';\n\n/**\n * Module exports.\n */\n\nmodule.exports = fileUriToPath;\n\n/**\n * File URI to Path function.\n *\n * @param {String} uri\n * @return {String} path\n * @api public\n */\n\nfunction fileUriToPath (uri) {\n if ('string' != typeof uri ||\n uri.length <= 7 ||\n 'file://' != uri.substring(0, 7)) {\n throw new TypeError('must pass in a file:// URI to convert to a file path');\n }\n\n var rest = decodeURI(uri.substring(7));\n var firstSlash = rest.indexOf('/');\n var host = rest.substring(0, firstSlash);\n var path = rest.substring(firstSlash + 1);\n\n // 2. Scheme Definition\n // As a special case, <host> can be the string \"localhost\" or the empty\n // string; this is interpreted as \"the machine from which the URL is\n // being interpreted\".\n if ('localhost' == host) host = '';\n\n if (host) {\n host = sep + sep + host;\n }\n\n // 3.2 Drives, drive letters, mount points, file system root\n // Drive letters are mapped into the top of a file URI in various ways,\n // depending on the implementation; some applications substitute\n // vertical bar (\"|\") for the colon after the drive letter, yielding\n // \"file:///c|/tmp/test.txt\". In some cases, the colon is left\n // unchanged, as in \"file:///c:/tmp/test.txt\". In other cases, the\n // colon is simply omitted, as in \"file:///c/tmp/test.txt\".\n path = path.replace(/^(.+)\\|/, '$1:');\n\n // for Windows, we need to invert the path separators from what a URI uses\n if (sep == '\\\\') {\n path = path.replace(/\\//g, '\\\\');\n }\n\n if (/^.+\\:/.test(path)) {\n // has Windows drive at beginning of path\n } else {\n // unix path…\n path = sep + path;\n }\n\n return host + path;\n}\n","/**\n * Module dependencies.\n */\n\nvar fs = require('fs'),\n path = require('path'),\n fileURLToPath = require('file-uri-to-path'),\n join = path.join,\n dirname = path.dirname,\n exists =\n (fs.accessSync &&\n function(path) {\n try {\n fs.accessSync(path);\n } catch (e) {\n return false;\n }\n return true;\n }) ||\n fs.existsSync ||\n path.existsSync,\n defaults = {\n arrow: process.env.NODE_BINDINGS_ARROW || ' → ',\n compiled: process.env.NODE_BINDINGS_COMPILED_DIR || 'compiled',\n platform: process.platform,\n arch: process.arch,\n nodePreGyp:\n 'node-v' +\n process.versions.modules +\n '-' +\n process.platform +\n '-' +\n process.arch,\n version: process.versions.node,\n bindings: 'bindings.node',\n try: [\n // node-gyp's linked version in the \"build\" dir\n ['module_root', 'build', 'bindings'],\n // node-waf and gyp_addon (a.k.a node-gyp)\n ['module_root', 'build', 'Debug', 'bindings'],\n ['module_root', 'build', 'Release', 'bindings'],\n // Debug files, for development (legacy behavior, remove for node v0.9)\n ['module_root', 'out', 'Debug', 'bindings'],\n ['module_root', 'Debug', 'bindings'],\n // Release files, but manually compiled (legacy behavior, remove for node v0.9)\n ['module_root', 'out', 'Release', 'bindings'],\n ['module_root', 'Release', 'bindings'],\n // Legacy from node-waf, node <= 0.4.x\n ['module_root', 'build', 'default', 'bindings'],\n // Production \"Release\" buildtype binary (meh...)\n ['module_root', 'compiled', 'version', 'platform', 'arch', 'bindings'],\n // node-qbs builds\n ['module_root', 'addon-build', 'release', 'install-root', 'bindings'],\n ['module_root', 'addon-build', 'debug', 'install-root', 'bindings'],\n ['module_root', 'addon-build', 'default', 'install-root', 'bindings'],\n // node-pre-gyp path ./lib/binding/{node_abi}-{platform}-{arch}\n ['module_root', 'lib', 'binding', 'nodePreGyp', 'bindings']\n ]\n };\n\n/**\n * The main `bindings()` function loads the compiled bindings for a given module.\n * It uses V8's Error API to determine the parent filename that this function is\n * being invoked from, which is then used to find the root directory.\n */\n\nfunction bindings(opts) {\n // Argument surgery\n if (typeof opts == 'string') {\n opts = { bindings: opts };\n } else if (!opts) {\n opts = {};\n }\n\n // maps `defaults` onto `opts` object\n Object.keys(defaults).map(function(i) {\n if (!(i in opts)) opts[i] = defaults[i];\n });\n\n // Get the module root\n if (!opts.module_root) {\n opts.module_root = exports.getRoot(exports.getFileName());\n }\n\n // Ensure the given bindings name ends with .node\n if (path.extname(opts.bindings) != '.node') {\n opts.bindings += '.node';\n }\n\n // https://github.com/webpack/webpack/issues/4175#issuecomment-342931035\n var requireFunc =\n typeof __webpack_require__ === 'function'\n ? __non_webpack_require__\n : require;\n\n var tries = [],\n i = 0,\n l = opts.try.length,\n n,\n b,\n err;\n\n for (; i < l; i++) {\n n = join.apply(\n null,\n opts.try[i].map(function(p) {\n return opts[p] || p;\n })\n );\n tries.push(n);\n try {\n b = opts.path ? requireFunc.resolve(n) : requireFunc(n);\n if (!opts.path) {\n b.path = n;\n }\n return b;\n } catch (e) {\n if (e.code !== 'MODULE_NOT_FOUND' &&\n e.code !== 'QUALIFIED_PATH_RESOLUTION_FAILED' &&\n !/not find/i.test(e.message)) {\n throw e;\n }\n }\n }\n\n err = new Error(\n 'Could not locate the bindings file. Tried:\\n' +\n tries\n .map(function(a) {\n return opts.arrow + a;\n })\n .join('\\n')\n );\n err.tries = tries;\n throw err;\n}\nmodule.exports = exports = bindings;\n\n/**\n * Gets the filename of the JavaScript file that invokes this function.\n * Used to help find the root directory of a module.\n * Optionally accepts an filename argument to skip when searching for the invoking filename\n */\n\nexports.getFileName = function getFileName(calling_file) {\n var origPST = Error.prepareStackTrace,\n origSTL = Error.stackTraceLimit,\n dummy = {},\n fileName;\n\n Error.stackTraceLimit = 10;\n\n Error.prepareStackTrace = function(e, st) {\n for (var i = 0, l = st.length; i < l; i++) {\n fileName = st[i].getFileName();\n if (fileName !== __filename) {\n if (calling_file) {\n if (fileName !== calling_file) {\n return;\n }\n } else {\n return;\n }\n }\n }\n };\n\n // run the 'prepareStackTrace' function above\n Error.captureStackTrace(dummy);\n dummy.stack;\n\n // cleanup\n Error.prepareStackTrace = origPST;\n Error.stackTraceLimit = origSTL;\n\n // handle filename that starts with \"file://\"\n var fileSchema = 'file://';\n if (fileName.indexOf(fileSchema) === 0) {\n fileName = fileURLToPath(fileName);\n }\n\n return fileName;\n};\n\n/**\n * Gets the root directory of a module, given an arbitrary filename\n * somewhere in the module tree. The \"root directory\" is the directory\n * containing the `package.json` file.\n *\n * In: /home/nate/node-native-module/lib/index.js\n * Out: /home/nate/node-native-module\n */\n\nexports.getRoot = function getRoot(file) {\n var dir = dirname(file),\n prev;\n while (true) {\n if (dir === '.') {\n // Avoids an infinite loop in rare cases, like the REPL\n dir = process.cwd();\n }\n if (\n exists(join(dir, 'package.json')) ||\n exists(join(dir, 'node_modules'))\n ) {\n // Found the 'package.json' file or 'node_modules' dir; we're done\n return dir;\n }\n if (prev === dir) {\n // Got to the top\n throw new Error(\n 'Could not find module root given file: \"' +\n file +\n '\". Do you have a `package.json` file? '\n );\n }\n // Try the parent dir next\n prev = dir;\n dir = join(dir, '..');\n }\n};\n","module.exports = require('bindings')('node_sqlite3.node');\n","// Inspired by https://github.com/tlrobinson/long-stack-traces\nconst util = require('util');\n\nfunction extendTrace(object, property, pos) {\n const old = object[property];\n object[property] = function() {\n const error = new Error();\n const name = object.constructor.name + '#' + property + '(' +\n Array.prototype.slice.call(arguments).map(function(el) {\n return util.inspect(el, false, 0);\n }).join(', ') + ')';\n\n if (typeof pos === 'undefined') pos = -1;\n if (pos < 0) pos += arguments.length;\n const cb = arguments[pos];\n if (typeof arguments[pos] === 'function') {\n arguments[pos] = function replacement() {\n const err = arguments[0];\n if (err && err.stack && !err.__augmented) {\n err.stack = filter(err).join('\\n');\n err.stack += '\\n--> in ' + name;\n err.stack += '\\n' + filter(error).slice(1).join('\\n');\n err.__augmented = true;\n }\n return cb.apply(this, arguments);\n };\n }\n return old.apply(this, arguments);\n };\n}\nexports.extendTrace = extendTrace;\n\n\nfunction filter(error) {\n return error.stack.split('\\n').filter(function(line) {\n return line.indexOf(__filename) < 0;\n });\n}\n","const path = require('path');\nconst sqlite3 = require('./sqlite3-binding.js');\nconst EventEmitter = require('events').EventEmitter;\nmodule.exports = exports = sqlite3;\n\nfunction normalizeMethod (fn) {\n return function (sql) {\n let errBack;\n const args = Array.prototype.slice.call(arguments, 1);\n\n if (typeof args[args.length - 1] === 'function') {\n const callback = args[args.length - 1];\n errBack = function(err) {\n if (err) {\n callback(err);\n }\n };\n }\n const statement = new Statement(this, sql, errBack);\n return fn.call(this, statement, args);\n };\n}\n\nfunction inherits(target, source) {\n for (const k in source.prototype)\n target.prototype[k] = source.prototype[k];\n}\n\nsqlite3.cached = {\n Database: function(file, a, b) {\n if (file === '' || file === ':memory:') {\n // Don't cache special databases.\n return new Database(file, a, b);\n }\n\n let db;\n file = path.resolve(file);\n\n if (!sqlite3.cached.objects[file]) {\n db = sqlite3.cached.objects[file] = new Database(file, a, b);\n }\n else {\n // Make sure the callback is called.\n db = sqlite3.cached.objects[file];\n const callback = (typeof a === 'number') ? b : a;\n if (typeof callback === 'function') {\n function cb() { callback.call(db, null); }\n if (db.open) process.nextTick(cb);\n else db.once('open', cb);\n }\n }\n\n return db;\n },\n objects: {}\n};\n\n\nconst Database = sqlite3.Database;\nconst Statement = sqlite3.Statement;\nconst Backup = sqlite3.Backup;\n\ninherits(Database, EventEmitter);\ninherits(Statement, EventEmitter);\ninherits(Backup, EventEmitter);\n\n// Database#prepare(sql, [bind1, bind2, ...], [callback])\nDatabase.prototype.prepare = normalizeMethod(function(statement, params) {\n return params.length\n ? statement.bind.apply(statement, params)\n : statement;\n});\n\n// Database#run(sql, [bind1, bind2, ...], [callback])\nDatabase.prototype.run = normalizeMethod(function(statement, params) {\n statement.run.apply(statement, params).finalize();\n return this;\n});\n\n// Database#get(sql, [bind1, bind2, ...], [callback])\nDatabase.prototype.get = normalizeMethod(function(statement, params) {\n statement.get.apply(statement, params).finalize();\n return this;\n});\n\n// Database#all(sql, [bind1, bind2, ...], [callback])\nDatabase.prototype.all = normalizeMethod(function(statement, params) {\n statement.all.apply(statement, params).finalize();\n return this;\n});\n\n// Database#each(sql, [bind1, bind2, ...], [callback], [complete])\nDatabase.prototype.each = normalizeMethod(function(statement, params) {\n statement.each.apply(statement, params).finalize();\n return this;\n});\n\nDatabase.prototype.map = normalizeMethod(function(statement, params) {\n statement.map.apply(statement, params).finalize();\n return this;\n});\n\n// Database#backup(filename, [callback])\n// Database#backup(filename, destName, sourceName, filenameIsDest, [callback])\nDatabase.prototype.backup = function() {\n let backup;\n if (arguments.length <= 2) {\n // By default, we write the main database out to the main database of the named file.\n // This is the most likely use of the backup api.\n backup = new Backup(this, arguments[0], 'main', 'main', true, arguments[1]);\n } else {\n // Otherwise, give the user full control over the sqlite3_backup_init arguments.\n backup = new Backup(this, arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]);\n }\n // Per the sqlite docs, exclude the following errors as non-fatal by default.\n backup.retryErrors = [sqlite3.BUSY, sqlite3.LOCKED];\n return backup;\n};\n\nStatement.prototype.map = function() {\n const params = Array.prototype.slice.call(arguments);\n const callback = params.pop();\n params.push(function(err, rows) {\n if (err) return callback(err);\n const result = {};\n if (rows.length) {\n const keys = Object.keys(rows[0]);\n const key = keys[0];\n if (keys.length > 2) {\n // Value is an object\n for (let i = 0; i < rows.length; i++) {\n result[rows[i][key]] = rows[i];\n }\n } else {\n const value = keys[1];\n // Value is a plain value\n for (let i = 0; i < rows.length; i++) {\n result[rows[i][key]] = rows[i][value];\n }\n }\n }\n callback(err, result);\n });\n return this.all.apply(this, params);\n};\n\nlet isVerbose = false;\n\nconst supportedEvents = [ 'trace', 'profile', 'change' ];\n\nDatabase.prototype.addListener = Database.prototype.on = function(type) {\n const val = EventEmitter.prototype.addListener.apply(this, arguments);\n if (supportedEvents.indexOf(type) >= 0) {\n this.configure(type, true);\n }\n return val;\n};\n\nDatabase.prototype.removeListener = function(type) {\n const val = EventEmitter.prototype.removeListener.apply(this, arguments);\n if (supportedEvents.indexOf(type) >= 0 && !this._events[type]) {\n this.configure(type, false);\n }\n return val;\n};\n\nDatabase.prototype.removeAllListeners = function(type) {\n const val = EventEmitter.prototype.removeAllListeners.apply(this, arguments);\n if (supportedEvents.indexOf(type) >= 0) {\n this.configure(type, false);\n }\n return val;\n};\n\n// Save the stack trace over EIO callbacks.\nsqlite3.verbose = function() {\n if (!isVerbose) {\n const trace = require('./trace');\n [\n 'prepare',\n 'get',\n 'run',\n 'all',\n 'each',\n 'map',\n 'close',\n 'exec'\n ].forEach(function (name) {\n trace.extendTrace(Database.prototype, name);\n });\n [\n 'bind',\n 'get',\n 'run',\n 'all',\n 'each',\n 'map',\n 'reset',\n 'finalize',\n ].forEach(function (name) {\n trace.extendTrace(Statement.prototype, name);\n });\n isVerbose = true;\n }\n\n return sqlite3;\n};\n"],"x_google_ignoreList":[0,1,2,3,4],"mappings":";;;;;;;CAKA,IAAI,MAAM,QAAQ,OAAO,CAAC,OAAO;;;;AAMjC,QAAO,UAAU;;;;;;;;CAUjB,SAAS,cAAe,KAAK;AAC3B,MAAI,YAAY,OAAO,OACnB,IAAI,UAAU,KACd,aAAa,IAAI,UAAU,GAAG,EAAE,CAClC,OAAM,IAAI,UAAU,uDAA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