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

@chapeaux/cpx-operator-graph

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chapeaux/cpx-operator-graph - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

cpx-operator-graph.js.map

27

cpx-operator-graph.cjs.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CPXOperatorGraph = void 0;
const semver_parser_1 = require("https://cdn.skypack.dev/semver-parser");
function versionSelector(strings, csv, versions, all) {

@@ -36,2 +37,22 @@ return `<tr>

class OperatorGraph {
constructor() {
Object.defineProperty(this, "active", {
enumerable: true,
configurable: true,
writable: true,
value: false
});
Object.defineProperty(this, "inbound", {
enumerable: true,
configurable: true,
writable: true,
value: false
});
Object.defineProperty(this, "outbound", {
enumerable: true,
configurable: true,
writable: true,
value: false
});
}
}

@@ -159,2 +180,8 @@ class OperatorBundle {

if (this._data) {
this.channels.forEach((versions, channel, d) => {
d.set(channel, versions.sort((a, b) => {
const ord = { desc: 1, asc: -1 };
return (0, semver_parser_1.compareSemVer)(b['version'], a['version']) * ord[this.order];
}));
});
}

@@ -161,0 +188,0 @@ this.render();

4

package.json
{
"name": "@chapeaux/cpx-operator-graph",
"version": "0.4.0",
"version": "0.4.1",
"description": "Chapeaux Operator Graph Component",

@@ -32,3 +32,3 @@ "type": "module",

"homepage": "https://github.com/chapeaux/cpx-components/components/cpx-operator-graph",
"gitHead": "ea9192ca94ec3dbc28de00fb9a1add934ffe585e"
"gitHead": "dcaa7eae112fdcf003d4f869272123e418b8f104"
}

@@ -61,5 +61,28 @@ import { compareSemVer } from 'https://cdn.skypack.dev/semver-parser';

class OperatorChannel {}
class OperatorGraph {}
class OperatorGraph {
active = false;
inbound = false;
outbound = false;
/*
Base SVG
Base Node Group
<g id="node" stroke="grey" fill="transparent" stroke-width="3">
<circle cx="20" cy="50" r="10"/>
<circle cx="20" cy="50" r="3" fill="green" />
<line x1="10" y1="50" x2="30" y2="50"/>
<line x1="5" y1="43" x2="35" y2="43" stroke="white" stroke-width="12"/>
<line x1="10" y1="50" x2="30" y2="50"/>
<line x1="5" y1="57" x2="35" y2="57" stroke="white" stroke-width="12"/>
</g>
Base Edge Group
<g id="edges" stroke="blue" fill="transparent" stroke-width="3">
*/
}
class OperatorBundle {

@@ -121,8 +144,8 @@ versions = new Set();

// this.channels.forEach((versions,channel,d)=> {
// d.set(channel,versions.sort((a, b) => {
// const ord = { desc: 1, asc: -1 };
// return compareSemVer(b['version'], a['version']) * ord[this.order];
// }));
// });
this.channels.forEach((versions,channel,d)=> {
d.set(channel,versions.sort((a, b) => {
const ord = { desc: 1, asc: -1 };
return compareSemVer(b['version'], a['version']) * ord[this.order];
}));
});
}

@@ -129,0 +152,0 @@ this.render();

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