@ts-graphviz/core 0.0.0-pr956-20240225160253 → 0.0.0-pr956-20240225163634

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @ts-graphviz/core
2
2
 
3
- ## 0.0.0-pr956-20240225160253
3
+ ## 0.0.0-pr956-20240225163634
4
4
 
5
5
  ### Major Changes
6
6
 
@@ -297,5 +297,5 @@
297
297
  ### Patch Changes
298
298
 
299
299
  - Updated dependencies [[`6b2f0e8`](https://github.com/ts-graphviz/ts-graphviz/commit/6b2f0e8349605b4fe0dd950147ba3a8285b24b24)]:
300
- - @ts-graphviz/common@0.0.0-pr956-20240225160253
301
- - @ts-graphviz/ast@0.0.0-pr956-20240225160253
300
+ - @ts-graphviz/common@0.0.0-pr956-20240225163634
301
+ - @ts-graphviz/ast@0.0.0-pr956-20240225163634
package/lib/core.cjs CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const registerDefault = require("./register-default.cjs");
3
4
  const AttributeList = require("./AttributeList.cjs");
4
5
  const AttributesBase = require("./AttributesBase.cjs");
5
6
  const AttributesGroup = require("./AttributesGroup.cjs");
@@ -11,6 +12,7 @@ const GraphBase = require("./GraphBase.cjs");
11
12
  const Node = require("./Node.cjs");
12
13
  const RootGraph = require("./RootGraph.cjs");
13
14
  const Subgraph = require("./Subgraph.cjs");
15
+ exports.registerDefault = registerDefault.registerDefault;
14
16
  exports.AttributeList = AttributeList.AttributeList;
15
17
  exports.AttributesBase = AttributesBase.AttributesBase;
16
18
  exports.AttributesGroup = AttributesGroup.AttributesGroup;
package/lib/core.d.ts CHANGED
@@ -528,6 +528,8 @@ export declare class Node extends DotObject_9 implements NodeModel {
528
528
  port(port: string | Partial<Port>): ForwardRefNode;
529
529
  }
530
530
 
531
+ export declare function registerDefault(): void;
532
+
531
533
  /**
532
534
  * Base class representing a root graph(digraph, graph).
533
535
  * @group Models
package/lib/core.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { registerDefault } from "./register-default.js";
1
2
  import { AttributeList } from "./AttributeList.js";
2
3
  import { AttributesBase } from "./AttributesBase.js";
3
4
  import { AttributesGroup } from "./AttributesGroup.js";
@@ -20,5 +21,6 @@ export {
20
21
  GraphBase,
21
22
  Node,
22
23
  RootGraph,
23
- Subgraph
24
+ Subgraph,
25
+ registerDefault
24
26
  };
@@ -1,14 +1,18 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
3
  const common = require("@ts-graphviz/common");
3
4
  const Digraph = require("./Digraph.cjs");
4
5
  const Edge = require("./Edge.cjs");
5
6
  const Graph = require("./Graph.cjs");
6
7
  const Node = require("./Node.cjs");
7
8
  const Subgraph = require("./Subgraph.cjs");
8
- Object.assign(common.RootModelsContext, {
9
- Graph: Graph.Graph,
10
- Digraph: Digraph.Digraph,
11
- Subgraph: Subgraph.Subgraph,
12
- Node: Node.Node,
13
- Edge: Edge.Edge
14
- });
9
+ function registerDefault() {
10
+ Object.assign(common.RootModelsContext, {
11
+ Graph: Graph.Graph,
12
+ Digraph: Digraph.Digraph,
13
+ Subgraph: Subgraph.Subgraph,
14
+ Node: Node.Node,
15
+ Edge: Edge.Edge
16
+ });
17
+ }
18
+ exports.registerDefault = registerDefault;
@@ -1 +1,3 @@
1
+ export declare function registerDefault(): void;
2
+
1
3
  export { }
@@ -4,10 +4,15 @@ import { Edge } from "./Edge.js";
4
4
  import { Graph } from "./Graph.js";
5
5
  import { Node } from "./Node.js";
6
6
  import { Subgraph } from "./Subgraph.js";
7
- Object.assign(RootModelsContext, {
8
- Graph,
9
- Digraph,
10
- Subgraph,
11
- Node,
12
- Edge
13
- });
7
+ function registerDefault() {
8
+ Object.assign(RootModelsContext, {
9
+ Graph,
10
+ Digraph,
11
+ Subgraph,
12
+ Node,
13
+ Edge
14
+ });
15
+ }
16
+ export {
17
+ registerDefault
18
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-graphviz/core",
3
- "version": "0.0.0-pr956-20240225160253",
3
+ "version": "0.0.0-pr956-20240225163634",
4
4
  "description": "Graphviz Models for Object-Oriented Programming",
5
5
  "keywords": [
6
6
  "graphviz",
@@ -27,9 +27,6 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "author": "Yuki Yamazaki <yuki@kamiazya.tech>",
30
- "sideEffects": [
31
- "./lib/register-default.*"
32
- ],
33
30
  "type": "module",
34
31
  "exports": {
35
32
  ".": {
@@ -58,8 +55,8 @@
58
55
  "LICENSE"
59
56
  ],
60
57
  "dependencies": {
61
- "@ts-graphviz/ast": "^0.0.0-pr956-20240225160253",
62
- "@ts-graphviz/common": "^0.0.0-pr956-20240225160253"
58
+ "@ts-graphviz/ast": "^0.0.0-pr956-20240225163634",
59
+ "@ts-graphviz/common": "^0.0.0-pr956-20240225163634"
63
60
  },
64
61
  "devDependencies": {
65
62
  "typescript": "^5.3.3",