New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

graphology-types

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphology-types - npm Package Compare versions

Comparing version 0.19.2 to 0.19.3

43

index.d.ts

@@ -20,10 +20,9 @@ /**

type EdgeKeyGeneratorFunction<
EdgeAttributes extends Attributes = Attributes
> = (data: {
undirected: boolean;
source: string;
target: string;
attributes: EdgeAttributes;
}) => EdgeKey;
type EdgeKeyGeneratorFunction<EdgeAttributes extends Attributes = Attributes> =
(data: {
undirected: boolean;
source: string;
target: string;
attributes: EdgeAttributes;
}) => EdgeKey;

@@ -348,3 +347,4 @@ type GraphOptions<EdgeAttributes extends Attributes = Attributes> = {

extends EventEmitter<NodeAttributes, EdgeAttributes, GraphAttributes>
implements Iterable<AdjacencyEntry<NodeAttributes, EdgeAttributes>> {
implements Iterable<AdjacencyEntry<NodeAttributes, EdgeAttributes>>
{
// Constructor

@@ -368,4 +368,7 @@ constructor(options?: GraphOptions<EdgeAttributes>);

hasNode(node: NodeKey): boolean;
hasDirectedEdge(edge: EdgeKey): boolean;
hasDirectedEdge(source: NodeKey, target: NodeKey): boolean;
hasUndirectedEdge(edge: EdgeKey): boolean;
hasUndirectedEdge(source: NodeKey, target: NodeKey): boolean;
hasEdge(edge: EdgeKey): boolean;
hasEdge(source: NodeKey, target: NodeKey): boolean;

@@ -399,3 +402,3 @@ directedEdge(source: NodeKey, target: NodeKey): string | undefined;

addNode(node: NodeKey, attributes?: NodeAttributes): string;
mergeNode(node: NodeKey, attributes?: NodeAttributes): string;
mergeNode(node: NodeKey, attributes?: Partial<NodeAttributes>): string;
updateNode(

@@ -413,3 +416,3 @@ node: NodeKey,

target: NodeKey,
attributes?: EdgeAttributes
attributes?: Partial<EdgeAttributes>
): string;

@@ -429,3 +432,3 @@ updateEdge(

target: NodeKey,
attributes?: EdgeAttributes
attributes?: Partial<EdgeAttributes>
): string;

@@ -445,3 +448,3 @@ updateDirectedEdge(

target: NodeKey,
attributes?: EdgeAttributes
attributes?: Partial<EdgeAttributes>
): string;

@@ -463,3 +466,3 @@ updateUndirectedEdge(

target: NodeKey,
attributes?: EdgeAttributes
attributes?: Partial<EdgeAttributes>
): string;

@@ -481,3 +484,3 @@ updateEdgeWithKey(

target: NodeKey,
attributes?: EdgeAttributes
attributes?: Partial<EdgeAttributes>
): string;

@@ -499,3 +502,3 @@ updateDirectedEdgeWithKey(

target: NodeKey,
attributes?: EdgeAttributes
attributes?: Partial<EdgeAttributes>
): string;

@@ -521,3 +524,3 @@ updateUndirectedEdgeWithKey(

replaceAttributes(attributes: GraphAttributes): this;
mergeAttributes(attributes: GraphAttributes): this;
mergeAttributes(attributes: Partial<GraphAttributes>): this;

@@ -536,3 +539,3 @@ // Node attribute methods

replaceNodeAttributes(node: NodeKey, attributes: NodeAttributes): this;
mergeNodeAttributes(node: NodeKey, attributes: NodeAttributes): this;
mergeNodeAttributes(node: NodeKey, attributes: Partial<NodeAttributes>): this;
updateEachNodeAttributes(

@@ -555,3 +558,3 @@ updater: NodeUpdateIterationCallback<NodeAttributes>,

replaceEdgeAttributes(edge: EdgeKey, attributes: EdgeAttributes): this;
mergeEdgeAttributes(edge: EdgeKey, attributes: EdgeAttributes): this;
mergeEdgeAttributes(edge: EdgeKey, attributes: Partial<EdgeAttributes>): this;
updateEachEdgeAttributes(

@@ -586,3 +589,3 @@ updater: EdgeUpdateIterationCallback<EdgeAttributes>,

target: NodeKey,
attributes: EdgeAttributes
attributes: Partial<EdgeAttributes>
): this;

@@ -589,0 +592,0 @@

{
"name": "graphology-types",
"version": "0.19.2",
"version": "0.19.3",
"description": "TypeScript declaration for graphology.",

@@ -36,5 +36,5 @@ "main": "index.d.ts",

"@yomguithereal/prettier-config": "^1.1.0",
"prettier": "^2.1.2"
"prettier": "^2.3.2"
},
"prettier": "@yomguithereal/prettier-config"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc