@layerzerolabs/dependency-graph
Advanced tools
| > @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 @@ | ||
| [34mCLI[39m tsup v8.4.0 | ||
| [34mCLI[39m Using tsup config: /Users/ivan.kurinnyi/project/monorepo-internal/packages/dependency-graph/tsup.config.ts | ||
| [34mCLI[39m Using tsup config: /home/runner/work/monorepo-internal/monorepo-internal/packages/dependency-graph/tsup.config.ts | ||
| [34mCLI[39m Target: es2022 | ||
@@ -15,17 +14,15 @@ [34mCLI[39m Cleaning output folder | ||
| [34mESM[39m Build start | ||
| [33mESM[39m [33mYou have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin[39m | ||
| [33mESM[39m [33mYou have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin[39m | ||
| [32mESM[39m [1mdist/dependencyNode.js [22m[32m166.00 B[39m | ||
| [32mESM[39m [1mdist/index.js [22m[32m148.00 B[39m | ||
| [32mESM[39m [1mdist/chunk-ZBWD6VEX.js [22m[32m317.00 B[39m | ||
| [32mCJS[39m [1mdist/index.cjs [22m[32m267.00 B[39m | ||
| [32mCJS[39m [1mdist/QHT3NC3M.cjs [22m[32m503.00 B[39m | ||
| [32mCJS[39m [1mdist/dependencyNode.cjs [22m[32m285.00 B[39m | ||
| [32mCJS[39m [1mdist/index.cjs.map [22m[32m70.00 B[39m | ||
| [32mCJS[39m [1mdist/QHT3NC3M.cjs.map [22m[32m1.48 KB[39m | ||
| [32mCJS[39m [1mdist/dependencyNode.cjs.map [22m[32m79.00 B[39m | ||
| [32mCJS[39m ⚡️ Build success in 129ms | ||
| [32mESM[39m [1mdist/dependencyNode.js [22m[32m133.00 B[39m | ||
| [32mESM[39m [1mdist/RL6YOPZH.js [22m[32m472.00 B[39m | ||
| [32mESM[39m [1mdist/index.js [22m[32m115.00 B[39m | ||
| [32mESM[39m [1mdist/dependencyNode.js.map [22m[32m78.00 B[39m | ||
| [32mESM[39m [1mdist/RL6YOPZH.js.map [22m[32m1.47 KB[39m | ||
| [32mESM[39m [1mdist/index.js.map [22m[32m69.00 B[39m | ||
| [32mESM[39m [1mdist/chunk-ZBWD6VEX.js.map [22m[32m792.00 B[39m | ||
| [32mESM[39m ⚡️ Build success in 30ms | ||
| [32mCJS[39m [1mdist/index.cjs [22m[32m312.00 B[39m | ||
| [32mCJS[39m [1mdist/chunk-557AEMKE.cjs [22m[32m350.00 B[39m | ||
| [32mCJS[39m [1mdist/dependencyNode.cjs [22m[32m330.00 B[39m | ||
| [32mCJS[39m [1mdist/index.cjs.map [22m[32m70.00 B[39m | ||
| [32mCJS[39m [1mdist/chunk-557AEMKE.cjs.map [22m[32m795.00 B[39m | ||
| [32mCJS[39m [1mdist/dependencyNode.cjs.map [22m[32m79.00 B[39m | ||
| [32mCJS[39m ⚡️ Build success in 30ms | ||
| [32mESM[39m ⚡️ 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 |
+2
-3
| '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
-2
@@ -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 |
+4
-9
| { | ||
| "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; |
+0
-2
| { | ||
| "extends": "@layerzerolabs/typescript-configuration/tsconfig.base.json", | ||
| "compilerOptions": { | ||
| "target": "ES2020", | ||
| "lib": ["ES2020"], | ||
| "rootDir": "./src", | ||
@@ -7,0 +5,0 @@ "outDir": "./dist", |
+0
-2
@@ -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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
-100%4
-20%131
9.17%11311
-72.9%23
-4.17%1
Infinity%- Removed
- Removed