@steedos/metadata-api 3.0.0-beta.70 → 3.0.0-beta.72
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.
|
@@ -5,8 +5,15 @@ const path = require("path");
|
|
|
5
5
|
const metadata_core_1 = require("@steedos/metadata-core");
|
|
6
6
|
function checkNameEquals(json, name, filepath, metadataName) {
|
|
7
7
|
var fullName = (0, metadata_core_1.getFullName)(metadataName, json);
|
|
8
|
+
if (!fullName && json.extend) {
|
|
9
|
+
fullName = json.extend;
|
|
10
|
+
}
|
|
8
11
|
if (fullName != name) {
|
|
9
|
-
throw new Error('The attribute "name" in the file does not match its filename.\nName:"' +
|
|
12
|
+
throw new Error('The attribute "name" in the file does not match its filename.\nName:"' +
|
|
13
|
+
json["name"] +
|
|
14
|
+
'" Filename:"' +
|
|
15
|
+
path.basename(filepath) +
|
|
16
|
+
'"');
|
|
10
17
|
}
|
|
11
18
|
}
|
|
12
19
|
//# sourceMappingURL=check_name_equals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check_name_equals.js","sourceRoot":"","sources":["../../src/util/check_name_equals.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"check_name_equals.js","sourceRoot":"","sources":["../../src/util/check_name_equals.ts"],"names":[],"mappings":";;AAGA,0CAgBC;AAnBD,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,0DAAqD;AAErD,SAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY;IAChE,IAAI,QAAQ,GAAG,IAAA,2BAAW,EAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IAE/C,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;QAC7B,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC;IACzB,CAAC;IAED,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,KAAK,CACb,uEAAuE;YACrE,IAAI,CAAC,MAAM,CAAC;YACZ,cAAc;YACd,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;YACvB,GAAG,CACN,CAAC;IACJ,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/metadata-api",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.72",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@steedos/auth": "3.0.0-beta.
|
|
26
|
-
"@steedos/metadata-core": "3.0.0-beta.
|
|
27
|
-
"@steedos/objectql": "3.0.0-beta.
|
|
25
|
+
"@steedos/auth": "3.0.0-beta.72",
|
|
26
|
+
"@steedos/metadata-core": "3.0.0-beta.72",
|
|
27
|
+
"@steedos/objectql": "3.0.0-beta.72",
|
|
28
28
|
"chalk": "^4.1.0",
|
|
29
29
|
"clone": "2.1.2",
|
|
30
30
|
"compressing": "^1.5.1",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"typescript": "5.7.3"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "18b81ddcdafac5d7690c29bfdb1ee0bd8cf8bc48"
|
|
42
42
|
}
|