Comparing version 0.6.0 to 0.6.1
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } |
{ | ||
"name": "@dags/dag", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Directed Acyclic Graph implementation", | ||
@@ -49,4 +49,3 @@ "main": "dist/cjs/index.js", | ||
}, | ||
"sideEffects": false, | ||
"gitHead": "41b21b3b6698230911a5eb8a989e25301f337033" | ||
"sideEffects": false | ||
} |
@@ -1,1 +0,40 @@ | ||
# Directed Acyclic Graph in TypeScript | ||
# Directed Acyclic Graph with global node identification | ||
This is the core module of the dags monorepo. | ||
<br> | ||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/@dags/core"><img alt="NPM module version" src="https://img.shields.io/npm/v/@dags/core"></a> | ||
<a href="https://github.com/AlexanderLapygin/dags/actions?query=workflow%3Aci"><img alt="CI status" src="https://github.com/alexanderlapygin/dags/workflows/CI/badge.svg"></a> | ||
<a href="https://github.com/AlexanderLapygin/dags/issues"><img alt="GitHub issues" src="https://img.shields.io/github/issues/AlexanderLapygin/dags"></a> | ||
<img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@dags/core.svg?style=flat"/> | ||
<img alt="Bundle Size" src="https://badgen.net/bundlephobia/minzip/@dags/core"/> | ||
<a href="https://github.com/AlexanderLapygin/dags/blob/master/LICENSE"><img alt="MIT License" src="https://img.shields.io/github/license/AlexanderLapygin/dags"></a> | ||
</p> | ||
<br /> | ||
## Install | ||
```sh | ||
$ yarn add @dags/core | ||
# or | ||
$ npm install @dags/core | ||
``` | ||
## Usage | ||
```ts | ||
import { Dag } from '@dags/core' | ||
const dag = new Dag() | ||
const parent = dag.newNode() | ||
const child = dag.newNode() | ||
console.log(parent.equals(parent)) | ||
console.log(parent.equals(child)) | ||
dag.setParenthood(parent, child) | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70881
41
19