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

@nodescript/core

Package Overview
Dependencies
Maintainers
2
Versions
267
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nodescript/core - npm Package Compare versions

Comparing version 7.3.1 to 7.3.2

4

out/main/runtime/NodeView.d.ts

@@ -16,2 +16,6 @@ import { NodeSpec } from '../types/model.js';

readonly nodeSpec: NodeSpec;
/**
* Returns nodes in right-to-left order based on topology.
*/
static orderNodes(nodes: Iterable<NodeView>): NodeView[];
private _moduleSpec;

@@ -18,0 +22,0 @@ private _nodeUid;

@@ -18,2 +18,20 @@ import { coerce } from 'airtight';

}
/**
* Returns nodes in right-to-left order based on topology.
*/
static orderNodes(nodes) {
const result = [...nodes];
for (let i = 0; i < result.length; i++) {
const node = result[i];
for (const link of node.inboundLinks()) {
const index = result.findIndex(_ => _.nodeUid === link.linkNode.nodeUid);
if (index > -1 && index < i) {
result.splice(i, 1);
result.splice(index, 0, node);
i = index;
}
}
}
return result;
}
toJSON() {

@@ -20,0 +38,0 @@ return clone(this.nodeSpec);

2

package.json
{
"name": "@nodescript/core",
"version": "7.3.1",
"version": "7.3.2",
"type": "module",

@@ -5,0 +5,0 @@ "description": "Visual programming language for Browser and Node",

Sorry, the diff of this file is not supported yet

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