Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@layerzerolabs/dependency-graph

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@layerzerolabs/dependency-graph - npm Package Compare versions

Comparing version
0.0.2
to
0.0.5
+4
.turbo/turbo-lint.log
> @layerzerolabs/dependency-graph@0.0.2 lint /home/runner/work/monorepo-internal/monorepo-internal/packages/dependency-graph
> eslint . --max-warnings 0
'use strict';
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// src/dependencyNode.ts
var DependencyNode = class {
static {
__name(this, "DependencyNode");
}
name;
dependencies;
constructor({ name, dependencies = {} }) {
this.name = name;
this.dependencies = dependencies;
}
};
exports.DependencyNode = DependencyNode;
//# sourceMappingURL=QHT3NC3M.cjs.map
//# sourceMappingURL=QHT3NC3M.cjs.map
{"version":3,"sources":["../src/dependencyNode.ts"],"names":["DependencyNode","name","dependencies"],"mappings":";;;;;;AASO,IAAeA,iBAAf,MAAeA;EATtB;;;AAUoBC,EAAAA,IAAAA;AACAC,EAAAA,YAAAA;AAChB,EAAA,WAAA,CAAY,EACRD,IAAAA,EACAC,YAAAA,GAAe,IAAmB,EAInC;AACC,IAAA,IAAA,CAAKD,IAAAA,GAAOA,IAAAA;AACZ,IAAA,IAAA,CAAKC,YAAAA,GAAeA,YAAAA;AACxB,EAAA;AACJ","file":"QHT3NC3M.cjs","sourcesContent":["/**\n * Dependency nodes are abstract nodes in the dependency graph. They're used to build the graph,\n * but as an abstract class, lacks the required information to actually be resolved to anything.\n * If you want to implement a new dependency node, see ObjectDefinition or FactoryDefinition\n * @param name the name of this node. It should be unique across the entire graph.\n * @param dependencies a map of other nodes that this node depends on. These children will be resolved first.\n * The key of the dependencies map should be some arbitrary name within the context of *this* node. It does\n * not have to be unique.\n */\nexport abstract class DependencyNode<Name extends string, _Dependencies extends Dependencies> {\n public readonly name: Name;\n public readonly dependencies: _Dependencies;\n constructor({\n name,\n dependencies = {} as _Dependencies,\n }: {\n name: Name;\n dependencies?: _Dependencies;\n }) {\n this.name = name;\n this.dependencies = dependencies;\n }\n}\n\nexport type Dependencies = { [key: string]: DependencyNode<any, any> };\n"]}
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// src/dependencyNode.ts
var DependencyNode = class {
static {
__name(this, "DependencyNode");
}
name;
dependencies;
constructor({ name, dependencies = {} }) {
this.name = name;
this.dependencies = dependencies;
}
};
export { DependencyNode };
//# sourceMappingURL=RL6YOPZH.js.map
//# sourceMappingURL=RL6YOPZH.js.map
{"version":3,"sources":["../src/dependencyNode.ts"],"names":["DependencyNode","name","dependencies"],"mappings":";;;;AASO,IAAeA,iBAAf,MAAeA;EATtB;;;AAUoBC,EAAAA,IAAAA;AACAC,EAAAA,YAAAA;AAChB,EAAA,WAAA,CAAY,EACRD,IAAAA,EACAC,YAAAA,GAAe,IAAmB,EAInC;AACC,IAAA,IAAA,CAAKD,IAAAA,GAAOA,IAAAA;AACZ,IAAA,IAAA,CAAKC,YAAAA,GAAeA,YAAAA;AACxB,EAAA;AACJ","file":"RL6YOPZH.js","sourcesContent":["/**\n * Dependency nodes are abstract nodes in the dependency graph. They're used to build the graph,\n * but as an abstract class, lacks the required information to actually be resolved to anything.\n * If you want to implement a new dependency node, see ObjectDefinition or FactoryDefinition\n * @param name the name of this node. It should be unique across the entire graph.\n * @param dependencies a map of other nodes that this node depends on. These children will be resolved first.\n * The key of the dependencies map should be some arbitrary name within the context of *this* node. It does\n * not have to be unique.\n */\nexport abstract class DependencyNode<Name extends string, _Dependencies extends Dependencies> {\n public readonly name: Name;\n public readonly dependencies: _Dependencies;\n constructor({\n name,\n dependencies = {} as _Dependencies,\n }: {\n name: Name;\n dependencies?: _Dependencies;\n }) {\n this.name = name;\n this.dependencies = dependencies;\n }\n}\n\nexport type Dependencies = { [key: string]: DependencyNode<any, any> };\n"]}
+14
-17

> @layerzerolabs/dependency-graph@0.0.1 build /Users/ivan.kurinnyi/project/monorepo-internal/packages/dependency-graph
> @layerzerolabs/dependency-graph@0.0.2 build /home/runner/work/monorepo-internal/monorepo-internal/packages/dependency-graph
> tsup

@@ -9,3 +8,3 @@

CLI tsup v8.4.0
CLI Using tsup config: /Users/ivan.kurinnyi/project/monorepo-internal/packages/dependency-graph/tsup.config.ts
CLI Using tsup config: /home/runner/work/monorepo-internal/monorepo-internal/packages/dependency-graph/tsup.config.ts
CLI Target: es2022

@@ -15,17 +14,15 @@ CLI Cleaning output folder

ESM Build start
ESM You have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin
ESM You have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin
ESM dist/dependencyNode.js 166.00 B
ESM dist/index.js 148.00 B
ESM dist/chunk-ZBWD6VEX.js 317.00 B
CJS dist/index.cjs 267.00 B
CJS dist/QHT3NC3M.cjs 503.00 B
CJS dist/dependencyNode.cjs 285.00 B
CJS dist/index.cjs.map 70.00 B
CJS dist/QHT3NC3M.cjs.map 1.48 KB
CJS dist/dependencyNode.cjs.map 79.00 B
CJS ⚡️ Build success in 129ms
ESM dist/dependencyNode.js 133.00 B
ESM dist/RL6YOPZH.js 472.00 B
ESM dist/index.js 115.00 B
ESM dist/dependencyNode.js.map 78.00 B
ESM dist/RL6YOPZH.js.map 1.47 KB
ESM dist/index.js.map 69.00 B
ESM dist/chunk-ZBWD6VEX.js.map 792.00 B
ESM ⚡️ Build success in 30ms
CJS dist/index.cjs 312.00 B
CJS dist/chunk-557AEMKE.cjs 350.00 B
CJS dist/dependencyNode.cjs 330.00 B
CJS dist/index.cjs.map 70.00 B
CJS dist/chunk-557AEMKE.cjs.map 795.00 B
CJS dist/dependencyNode.cjs.map 79.00 B
CJS ⚡️ Build success in 30ms
ESM ⚡️ Build success in 130ms
'use strict';
require('reflect-metadata');
var chunk557AEMKE_cjs = require('./chunk-557AEMKE.cjs');
var QHT3NC3M_cjs = require('./QHT3NC3M.cjs');

@@ -10,5 +9,5 @@

enumerable: true,
get: function () { return chunk557AEMKE_cjs.DependencyNode; }
get: function () { return QHT3NC3M_cjs.DependencyNode; }
});
//# sourceMappingURL=dependencyNode.cjs.map
//# sourceMappingURL=dependencyNode.cjs.map

@@ -0,1 +1,10 @@

/**
* Dependency nodes are abstract nodes in the dependency graph. They're used to build the graph,
* but as an abstract class, lacks the required information to actually be resolved to anything.
* If you want to implement a new dependency node, see ObjectDefinition or FactoryDefinition
* @param name the name of this node. It should be unique across the entire graph.
* @param dependencies a map of other nodes that this node depends on. These children will be resolved first.
* The key of the dependencies map should be some arbitrary name within the context of *this* node. It does
* not have to be unique.
*/
export declare abstract class DependencyNode<Name extends string, _Dependencies extends Dependencies> {

@@ -2,0 +11,0 @@ readonly name: Name;

@@ -1,1 +0,1 @@

{"version":3,"file":"dependencyNode.d.ts","sourceRoot":"","sources":["../src/dependencyNode.ts"],"names":[],"mappings":"AAAA,8BAAsB,cAAc,CAAC,IAAI,SAAS,MAAM,EAAE,aAAa,SAAS,YAAY;IACxF,SAAgB,IAAI,EAAE,IAAI,CAAC;IAC3B,SAAgB,YAAY,EAAE,aAAa,CAAC;gBAChC,EACR,IAAI,EACJ,YAAkC,GACrC,EAAE;QACC,IAAI,EAAE,IAAI,CAAC;QACX,YAAY,CAAC,EAAE,aAAa,CAAC;KAChC;CAIJ;AAED,MAAM,MAAM,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CAAE,CAAC"}
{"version":3,"file":"dependencyNode.d.ts","sourceRoot":"","sources":["../src/dependencyNode.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,8BAAsB,cAAc,CAAC,IAAI,SAAS,MAAM,EAAE,aAAa,SAAS,YAAY;IACxF,SAAgB,IAAI,EAAE,IAAI,CAAC;IAC3B,SAAgB,YAAY,EAAE,aAAa,CAAC;gBAChC,EACR,IAAI,EACJ,YAAkC,GACrC,EAAE;QACC,IAAI,EAAE,IAAI,CAAC;QACX,YAAY,CAAC,EAAE,aAAa,CAAC;KAChC;CAIJ;AAED,MAAM,MAAM,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CAAE,CAAC"}

@@ -1,4 +0,3 @@

import 'reflect-metadata';
export { DependencyNode } from './chunk-ZBWD6VEX.js';
export { DependencyNode } from './RL6YOPZH.js';
//# sourceMappingURL=dependencyNode.js.map
//# sourceMappingURL=dependencyNode.js.map
'use strict';
require('reflect-metadata');
var chunk557AEMKE_cjs = require('./chunk-557AEMKE.cjs');
var QHT3NC3M_cjs = require('./QHT3NC3M.cjs');

@@ -10,5 +9,5 @@

enumerable: true,
get: function () { return chunk557AEMKE_cjs.DependencyNode; }
get: function () { return QHT3NC3M_cjs.DependencyNode; }
});
//# sourceMappingURL=index.cjs.map
//# sourceMappingURL=index.cjs.map

@@ -1,4 +0,3 @@

import 'reflect-metadata';
export { DependencyNode } from './chunk-ZBWD6VEX.js';
export { DependencyNode } from './RL6YOPZH.js';
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map
{
"name": "@layerzerolabs/dependency-graph",
"version": "0.0.2",
"version": "0.0.5",
"license": "MIT",

@@ -13,10 +13,6 @@ "main": "./dist/index.cjs",

"tsup": "^8.4.0",
"@layerzerolabs/typescript-configuration": "0.0.0",
"@layerzerolabs/tsup-configuration": "0.0.1",
"@layerzerolabs/eslint-configuration": "0.0.0",
"@layerzerolabs/typescript-utils": "0.0.0"
"@layerzerolabs/tsup-configuration": "0.0.5",
"@layerzerolabs/typescript-utils": "0.0.5",
"@layerzerolabs/typescript-configuration": "0.0.5"
},
"dependencies": {
"reflect-metadata": "^0.2.2"
},
"module": "./dist/index.js",

@@ -36,5 +32,4 @@ "exports": {

"lint:fix": "eslint . --fix --max-warnings 0",
"typecheck": "tsc --noEmit",
"dev": "tsup --watch"
}
}

@@ -0,1 +1,10 @@

/**
* Dependency nodes are abstract nodes in the dependency graph. They're used to build the graph,
* but as an abstract class, lacks the required information to actually be resolved to anything.
* If you want to implement a new dependency node, see ObjectDefinition or FactoryDefinition
* @param name the name of this node. It should be unique across the entire graph.
* @param dependencies a map of other nodes that this node depends on. These children will be resolved first.
* The key of the dependencies map should be some arbitrary name within the context of *this* node. It does
* not have to be unique.
*/
export abstract class DependencyNode<Name extends string, _Dependencies extends Dependencies> {

@@ -2,0 +11,0 @@ public readonly name: Name;

{
"extends": "@layerzerolabs/typescript-configuration/tsconfig.base.json",
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020"],
"rootDir": "./src",

@@ -7,0 +5,0 @@ "outDir": "./dist",

@@ -7,5 +7,3 @@ import { defineConfig } from 'tsup';

...createPackageTsupConfig(),
entry: ['src/**/*.ts', 'src/**/*.tsx'],
splitting: true,
clean: !watch,
}));
/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
extends: [require.resolve('@layerzerolabs/eslint-configuration/base')],
};
'use strict';
require('reflect-metadata');
// src/dependencyNode.ts
var DependencyNode = class {
constructor({
name,
dependencies = {}
}) {
this.name = name;
this.dependencies = dependencies;
}
};
exports.DependencyNode = DependencyNode;
//# sourceMappingURL=chunk-557AEMKE.cjs.map
//# sourceMappingURL=chunk-557AEMKE.cjs.map
{"version":3,"sources":["../src/dependencyNode.ts"],"names":[],"mappings":";;;;;AAAO,IAAe,iBAAf,MAAuF;AAAA,EAG1F,WAAY,CAAA;AAAA,IACR,IAAA;AAAA,IACA,eAAe;AAAC,GAIjB,EAAA;AACC,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AACZ,IAAA,IAAA,CAAK,YAAe,GAAA,YAAA;AAAA;AAE5B","file":"chunk-557AEMKE.cjs","sourcesContent":["export abstract class DependencyNode<Name extends string, _Dependencies extends Dependencies> {\n public readonly name: Name;\n public readonly dependencies: _Dependencies;\n constructor({\n name,\n dependencies = {} as _Dependencies,\n }: {\n name: Name;\n dependencies?: _Dependencies;\n }) {\n this.name = name;\n this.dependencies = dependencies;\n }\n}\n\nexport type Dependencies = { [key: string]: DependencyNode<any, any> };\n"]}
import 'reflect-metadata';
// src/dependencyNode.ts
var DependencyNode = class {
constructor({
name,
dependencies = {}
}) {
this.name = name;
this.dependencies = dependencies;
}
};
export { DependencyNode };
//# sourceMappingURL=chunk-ZBWD6VEX.js.map
//# sourceMappingURL=chunk-ZBWD6VEX.js.map
{"version":3,"sources":["../src/dependencyNode.ts"],"names":[],"mappings":";;;AAAO,IAAe,iBAAf,MAAuF;AAAA,EAG1F,WAAY,CAAA;AAAA,IACR,IAAA;AAAA,IACA,eAAe;AAAC,GAIjB,EAAA;AACC,IAAA,IAAA,CAAK,IAAO,GAAA,IAAA;AACZ,IAAA,IAAA,CAAK,YAAe,GAAA,YAAA;AAAA;AAE5B","file":"chunk-ZBWD6VEX.js","sourcesContent":["export abstract class DependencyNode<Name extends string, _Dependencies extends Dependencies> {\n public readonly name: Name;\n public readonly dependencies: _Dependencies;\n constructor({\n name,\n dependencies = {} as _Dependencies,\n }: {\n name: Name;\n dependencies?: _Dependencies;\n }) {\n this.name = name;\n this.dependencies = dependencies;\n }\n}\n\nexport type Dependencies = { [key: string]: DependencyNode<any, any> };\n"]}

Sorry, the diff of this file is not supported yet