@steedos/service-package-loader 2.5.17 → 2.5.18-beta.2
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/index.js +2 -12
- package/package.json +6 -6
package/index.js
CHANGED
|
@@ -101,16 +101,6 @@ module.exports = {
|
|
|
101
101
|
this.broker.logger.warn(`The public folder has been deprecated. ${publicPath}`);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
// 扫描软件包中的元数据, 如果有 .client.js 文件, 则输出警告信息
|
|
105
|
-
const filePatten = [
|
|
106
|
-
path.join(packagePath, "**", "*.client.js"),
|
|
107
|
-
"!" + path.join(packagePath, "node_modules"),
|
|
108
|
-
]
|
|
109
|
-
const matchedPaths = metaDataCore.syncMatchFiles(filePatten);
|
|
110
|
-
for await (const filePath of matchedPaths) {
|
|
111
|
-
this.broker.logger.warn(`The client.js file has been deprecated. ${filePath}`);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
104
|
// 扫描软件包中的元数据, 如果有 .object.js 文件, 则输出警告信息
|
|
115
105
|
const filePatten2 = [
|
|
116
106
|
path.join(packagePath, "**", "*.object.js"),
|
|
@@ -177,7 +167,7 @@ module.exports = {
|
|
|
177
167
|
await triggerYmlLoader.load(this.broker, packagePath, name);
|
|
178
168
|
await importLoader.load(this.broker, packagePath, name);
|
|
179
169
|
if(this.core){
|
|
180
|
-
this.core.loadClientScripts();
|
|
170
|
+
// this.core.loadClientScripts();
|
|
181
171
|
const routersInfo = await this.loadPackageRouters(packagePath, name);
|
|
182
172
|
await this.broker.call(`@steedos/service-packages.setPackageRoutersInfo`, {packageName: name, data: routersInfo});
|
|
183
173
|
}
|
|
@@ -407,7 +397,7 @@ module.exports = {
|
|
|
407
397
|
})
|
|
408
398
|
}
|
|
409
399
|
await this.objectql.deletePackageClientScripts(this.name);
|
|
410
|
-
await this.core.loadClientScripts();
|
|
400
|
+
// await this.core.loadClientScripts();
|
|
411
401
|
}
|
|
412
402
|
this.broker.call(`@steedos/service-packages.offline`, {serviceInfo: {name: this.name, nodeID: this.broker.nodeID, instanceID: this.broker.instanceID}})
|
|
413
403
|
await this.broker.call(`metadata.refreshServiceMetadatas`, { offlinePackageServices: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-package-loader",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.18-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@steedos/metadata-core": "2.5.
|
|
14
|
-
"@steedos/metadata-registrar": "2.5.
|
|
15
|
-
"@steedos/router": "2.5.
|
|
16
|
-
"@steedos/service-object-mixin": "2.5.
|
|
13
|
+
"@steedos/metadata-core": "2.5.18-beta.2",
|
|
14
|
+
"@steedos/metadata-registrar": "2.5.18-beta.2",
|
|
15
|
+
"@steedos/router": "2.5.18-beta.2",
|
|
16
|
+
"@steedos/service-object-mixin": "2.5.18-beta.2",
|
|
17
17
|
"clone": "^2.1.2",
|
|
18
18
|
"csvtojson": "~2.0.10",
|
|
19
19
|
"moleculer": "^0.14.25",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "0f48957d39df17d699a5177f473401362a9916bf"
|
|
31
31
|
}
|