Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bakeryjs

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bakeryjs - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

6

build/lib/bakeryjs/builders/DAGBuilder/builder.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DAGBuilder = exports.ROOT_NODE = void 0;
const jsnetworkx_1 = require("jsnetworkx");
const sb_jsnetworkx_1 = require("sb-jsnetworkx");
const joinedQueue_1 = require("./joinedQueue");

@@ -64,3 +64,3 @@ const MemoryPriorityQueue_1 = require("../../queue/MemoryPriorityQueue");

function analyzeSchema(schema) {
const graph = new jsnetworkx_1.DiGraph();
const graph = new sb_jsnetworkx_1.DiGraph();
graph.addNode(exports.ROOT_NODE);

@@ -115,3 +115,3 @@ return _analyzeRecursive(schema, [exports.ROOT_NODE], graph);

// that for a particular box `A` all the boxes requiring A are listed before the `A` itself.
const boxBuildOrder = jsnetworkx_1.topologicalSort(graph);
const boxBuildOrder = sb_jsnetworkx_1.topologicalSort(graph);
// Now, go through the boxes and

@@ -118,0 +118,0 @@ // 1. instantiate the box (as all its flow-dependents are already instantiated, inlcuding their queues, we have all the information)

@@ -7,3 +7,3 @@ "use strict";

const Flow_1 = require("../Flow");
const jsnetworkx_1 = require("jsnetworkx");
const sb_jsnetworkx_1 = require("sb-jsnetworkx");
exports.ROOT_NODE = '_root_';

@@ -61,3 +61,3 @@ /**

function analyzeSchema(schema) {
const graph = new jsnetworkx_1.DiGraph();
const graph = new sb_jsnetworkx_1.DiGraph();
graph.addNode(exports.ROOT_NODE);

@@ -64,0 +64,0 @@ return _analyzeRecursive(schema, [exports.ROOT_NODE], graph);

@@ -6,3 +6,3 @@ /// <reference types="node" />

import { FlowExplicitDescription } from './FlowBuilderI';
import { DiGraph } from 'jsnetworkx';
import { DiGraph } from 'sb-jsnetworkx';
import { EventEmitter } from 'events';

@@ -9,0 +9,0 @@ /**

@@ -5,3 +5,3 @@ "use strict";

const Message_1 = require("./Message");
const jsnetworkx_1 = require("jsnetworkx");
const sb_jsnetworkx_1 = require("sb-jsnetworkx");
const events_1 = require("events");

@@ -121,3 +121,3 @@ const builder_1 = require("./builders/DAGBuilder/builder");

analyzeDimensions(graph) {
const dimGraph = new jsnetworkx_1.DiGraph();
const dimGraph = new sb_jsnetworkx_1.DiGraph();
dimGraph.addNode([], { boxes: [builder_1.ROOT_NODE] });

@@ -129,3 +129,3 @@ // root node has top dimension

// proceed from top to down.
const boxTopoOrder = jsnetworkx_1.topologicalSort(graph).reverse();
const boxTopoOrder = sb_jsnetworkx_1.topologicalSort(graph).reverse();
// Don't analyze root node

@@ -132,0 +132,0 @@ boxTopoOrder.slice(1).forEach((boxName) => {

@@ -105,3 +105,3 @@ /**

*/
import { DiGraph } from 'jsnetworkx';
import { DiGraph } from 'sb-jsnetworkx';
/**

@@ -108,0 +108,0 @@ * Helper class. Throughout this code, the maps of maps are used extensively

{
"name": "bakeryjs",
"version": "0.1.1",
"version": "0.1.2",
"description": "FBP-inspired library",

@@ -27,7 +27,7 @@ "main": "build/index",

"dependencies": {
"ajv": "^6.10.2",
"async": "^2.6.2",
"ajv": "^6.10.2",
"better-queue": "^3.8.10",
"debug": "^4.1.1",
"jsnetworkx": "^0.3.4",
"sb-jsnetworkx": "^0.3.6",
"verror": "^1.10.0"

@@ -34,0 +34,0 @@ },

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