@opengis/bi 1.0.2 → 1.0.3
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(P,Ie){typeof exports=="object"&&typeof module<"u"?module.exports=Ie(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Ie):(P=typeof globalThis<"u"?globalThis:P||self,P.
|
|
1
|
+
(function(P,Ie){typeof exports=="object"&&typeof module<"u"?module.exports=Ie(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Ie):(P=typeof globalThis<"u"?globalThis:P||self,P.bi=Ie(P.Vue))})(this,function(P){"use strict";var bj=Object.defineProperty;var wj=(P,Ie,N)=>Ie in P?bj(P,Ie,{enumerable:!0,configurable:!0,writable:!0,value:N}):P[Ie]=N;var Ut=(P,Ie,N)=>wj(P,typeof Ie!="symbol"?Ie+"":Ie,N);/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
package/package.json
CHANGED
package/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import fp from 'fastify-plugin';
|
|
2
|
-
import config from './config.js';
|
|
3
|
-
|
|
4
|
-
import biDashboard from './server/routes/dashboard/index.mjs';
|
|
5
|
-
import biData from './server/routes/data/index.mjs';
|
|
6
|
-
import biEdit from './server/routes/edit/index.mjs';
|
|
7
|
-
import biMap from './server/routes/map/index.mjs';
|
|
8
|
-
|
|
9
|
-
async function plugin(fastify, opt) {
|
|
10
|
-
config.folder = opt.folder;
|
|
11
|
-
config.root = opt.root;
|
|
12
|
-
|
|
13
|
-
config.funcs = fastify;
|
|
14
|
-
config.pg = opt.pg;
|
|
15
|
-
config.redis = opt.redis;
|
|
16
|
-
config.s3 = opt.s3;
|
|
17
|
-
|
|
18
|
-
// independent npm start / unit test
|
|
19
|
-
if (!fastify.config) {
|
|
20
|
-
fastify.decorate('config', config);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (!fastify.funcs) {
|
|
24
|
-
fastify.addHook('onRequest', async (req) => {
|
|
25
|
-
req.funcs = fastify;
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
biDashboard(fastify); // { prefix: config.prefix }
|
|
30
|
-
biData(fastify); // { prefix: config.prefix }
|
|
31
|
-
biEdit(fastify); // { prefix: config.prefix }
|
|
32
|
-
biMap(fastify); // { prefix: config.prefix }
|
|
33
|
-
}
|
|
34
|
-
export default fp(plugin);
|
|
File without changes
|