@shaclmate/compiler 4.0.32 → 4.0.33
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,5 +1,6 @@
|
|
|
1
1
|
import { Maybe } from "purify-ts";
|
|
2
2
|
import { invariant } from "ts-invariant";
|
|
3
|
+
import { syntheticNamePrefix } from "../syntheticNamePrefix.js";
|
|
3
4
|
import { code, joinCode } from "../ts-poet-wrapper.js";
|
|
4
5
|
export function NamedObjectType_createFunctionDeclaration() {
|
|
5
6
|
if (!this.features.has("create")) {
|
|
@@ -45,7 +46,11 @@ export function NamedObjectType_createFunctionDeclaration() {
|
|
|
45
46
|
return Maybe.of(code `\
|
|
46
47
|
export function create(parameters${parametersHasQuestionToken ? "?" : ""}: ${joinCode(parametersType, { on: " & " })}): ${omitPropertyNames.length === 0 ? this.name : `Omit<${this.name}, ${omitPropertyNames.map((omitPropertyName) => `"${omitPropertyName}"`).join(" | ")}>`} {
|
|
47
48
|
${joinCode(propertyStatements)}
|
|
48
|
-
|
|
49
|
+
const ${syntheticNamePrefix}object = { ${propertyInitializers.join(", ")} };
|
|
50
|
+
if (!globalThis.Object.prototype.hasOwnProperty.call(${syntheticNamePrefix}object, "toString")) {
|
|
51
|
+
(${syntheticNamePrefix}object as any).toString = ${syntheticNamePrefix}toString;
|
|
52
|
+
}
|
|
53
|
+
return ${syntheticNamePrefix}object;
|
|
49
54
|
}`);
|
|
50
55
|
}
|
|
51
56
|
//# sourceMappingURL=NamedObjectType_createFunctionDeclaration.js.map
|
package/dist/input/generated.js
CHANGED
|
@@ -916,7 +916,7 @@ export var PropertyShape;
|
|
|
916
916
|
else {
|
|
917
917
|
xone = parameters.xone;
|
|
918
918
|
}
|
|
919
|
-
|
|
919
|
+
const $object = {
|
|
920
920
|
$identifier,
|
|
921
921
|
$type,
|
|
922
922
|
and,
|
|
@@ -956,6 +956,10 @@ export var PropertyShape;
|
|
|
956
956
|
uniqueLang,
|
|
957
957
|
xone,
|
|
958
958
|
};
|
|
959
|
+
if (!globalThis.Object.prototype.hasOwnProperty.call($object, "toString")) {
|
|
960
|
+
$object.toString = $toString;
|
|
961
|
+
}
|
|
962
|
+
return $object;
|
|
959
963
|
}
|
|
960
964
|
PropertyShape.create = create;
|
|
961
965
|
let Identifier;
|
|
@@ -2339,7 +2343,11 @@ export var PropertyGroup;
|
|
|
2339
2343
|
else {
|
|
2340
2344
|
label = parameters?.label;
|
|
2341
2345
|
}
|
|
2342
|
-
|
|
2346
|
+
const $object = { $identifier, $type, comment, label };
|
|
2347
|
+
if (!globalThis.Object.prototype.hasOwnProperty.call($object, "toString")) {
|
|
2348
|
+
$object.toString = $toString;
|
|
2349
|
+
}
|
|
2350
|
+
return $object;
|
|
2343
2351
|
}
|
|
2344
2352
|
PropertyGroup.create = create;
|
|
2345
2353
|
let Identifier;
|
|
@@ -2577,7 +2585,7 @@ export var Ontology;
|
|
|
2577
2585
|
else {
|
|
2578
2586
|
tsImports = parameters?.tsImports;
|
|
2579
2587
|
}
|
|
2580
|
-
|
|
2588
|
+
const $object = {
|
|
2581
2589
|
$identifier,
|
|
2582
2590
|
$type,
|
|
2583
2591
|
comment,
|
|
@@ -2586,6 +2594,10 @@ export var Ontology;
|
|
|
2586
2594
|
tsFeatureIncludes,
|
|
2587
2595
|
tsImports,
|
|
2588
2596
|
};
|
|
2597
|
+
if (!globalThis.Object.prototype.hasOwnProperty.call($object, "toString")) {
|
|
2598
|
+
$object.toString = $toString;
|
|
2599
|
+
}
|
|
2600
|
+
return $object;
|
|
2589
2601
|
}
|
|
2590
2602
|
Ontology.create = create;
|
|
2591
2603
|
let Identifier;
|
|
@@ -3530,7 +3542,7 @@ export var NodeShape;
|
|
|
3530
3542
|
else {
|
|
3531
3543
|
xone = parameters?.xone;
|
|
3532
3544
|
}
|
|
3533
|
-
|
|
3545
|
+
const $object = {
|
|
3534
3546
|
$identifier,
|
|
3535
3547
|
$type,
|
|
3536
3548
|
and,
|
|
@@ -3574,6 +3586,10 @@ export var NodeShape;
|
|
|
3574
3586
|
types,
|
|
3575
3587
|
xone,
|
|
3576
3588
|
};
|
|
3589
|
+
if (!globalThis.Object.prototype.hasOwnProperty.call($object, "toString")) {
|
|
3590
|
+
$object.toString = $toString;
|
|
3591
|
+
}
|
|
3592
|
+
return $object;
|
|
3577
3593
|
}
|
|
3578
3594
|
NodeShape.create = create;
|
|
3579
3595
|
let Identifier;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@shaclmate/shacl-ast": "4.0.
|
|
3
|
+
"@shaclmate/shacl-ast": "4.0.33",
|
|
4
4
|
"@rdfjs/dataset": "~2.0.2",
|
|
5
5
|
"@rdfjs/prefix-map": "~0.1.2",
|
|
6
6
|
"@rdfjs/term-map": "~2.0.2",
|
|
7
7
|
"@rdfjs/term-set": "~2.0.3",
|
|
8
8
|
"@rdfjs/types": "~2.0.1",
|
|
9
|
-
"@rdfx/data-factory": "0.0.
|
|
10
|
-
"@rdfx/literal": "0.0.
|
|
11
|
-
"@rdfx/resource": "0.0.
|
|
12
|
-
"@rdfx/string": "0.0.
|
|
9
|
+
"@rdfx/data-factory": "0.0.13",
|
|
10
|
+
"@rdfx/literal": "0.0.13",
|
|
11
|
+
"@rdfx/resource": "0.0.13",
|
|
12
|
+
"@rdfx/string": "0.0.13",
|
|
13
13
|
"@sindresorhus/base62": "~0.1.0",
|
|
14
14
|
"@tpluscode/rdf-ns-builders": "~4.3.0",
|
|
15
15
|
"@types/rdfjs__dataset": "~2.0.7",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
},
|
|
69
69
|
"type": "module",
|
|
70
70
|
"types": "./dist/index.d.ts",
|
|
71
|
-
"version": "4.0.
|
|
71
|
+
"version": "4.0.33"
|
|
72
72
|
}
|