@vyacheslav97/ct
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -1,2 +0,2 @@ | ||
import { comparator } from '../../interfaces/algorithms/binarySearch.js'; | ||
import { comparator } from '../../interfaces/index.js'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Binary search function template |
@@ -1,2 +0,2 @@ | ||
import { ValueExtractor, DuplicateData } from '../../interfaces/algorithms/duplicatesSearcher.js'; | ||
import { ValueExtractor, DuplicateData } from '../../interfaces/index.js'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Looks for duplications input iterable may have |
@@ -1,2 +0,2 @@ | ||
import { GraphConfig, GraphInterface, GraphNodeInterface, LevelingStepFunction, PathBuilder } from '../../interfaces/graphs/interfaces.js'; | ||
import { GraphConfig, GraphInterface, GraphNodeInterface, LevelingStepFunction, PathBuilder } from '../../interfaces/index.js'; | ||
/** | ||
@@ -24,3 +24,3 @@ * **Graph** class represents graph abstraction. | ||
*/ | ||
declare class Graph<NodeData> implements GraphInterface<NodeData> { | ||
export declare class Graph<NodeData> implements GraphInterface<NodeData> { | ||
nodes: Map<string, GraphNodeInterface<NodeData>>; | ||
@@ -96,2 +96,1 @@ /** | ||
} | ||
export default Graph; |
@@ -24,3 +24,3 @@ import { graphErrorsEmitters } from '../../utilsArea/errorEmitters/graphErrorEmitters.js'; | ||
*/ | ||
class Graph { | ||
export class Graph { | ||
/** | ||
@@ -192,2 +192,1 @@ * Builds a **Graph** class instance | ||
} | ||
export default Graph; |
@@ -1,3 +0,3 @@ | ||
import Graph from './graph.js'; | ||
import { GraphConfig, GraphNodeInterface, TreeNodeExtraData } from '../../interfaces/graphs/interfaces.js'; | ||
import { Graph } from './graph'; | ||
import { GraphConfig, GraphNodeInterface, TreeNodeExtraData } from '../../interfaces/index.js'; | ||
/** | ||
@@ -11,3 +11,3 @@ * **Tree** class represents tree abstraction extending **Graph** class. | ||
*/ | ||
declare class Tree<NodeData extends TreeNodeExtraData> extends Graph<NodeData> { | ||
export declare class Tree<NodeData extends TreeNodeExtraData> extends Graph<NodeData> { | ||
rootNodeId: string; | ||
@@ -34,2 +34,1 @@ constructor(rootNodeId?: string, sourceIterable?: Iterable<[string, GraphNodeInterface<NodeData>]>, config?: GraphConfig<NodeData>); | ||
} | ||
export default Tree; |
@@ -1,2 +0,2 @@ | ||
import Graph from './graph.js'; | ||
import { Graph } from './graph'; | ||
import { treeErrorsEmitters } from '../../utilsArea/errorEmitters/treeErrorEmitters.js'; | ||
@@ -11,3 +11,3 @@ /** | ||
*/ | ||
class Tree extends Graph { | ||
export class Tree extends Graph { | ||
constructor(rootNodeId = '', sourceIterable, config) { | ||
@@ -91,2 +91,1 @@ super(sourceIterable, config); | ||
} | ||
export default Tree; |
@@ -1,2 +0,2 @@ | ||
import { MutationsHistoryInterface } from '../../interfaces/MutationsHistory/interfaces.js'; | ||
import { MutationsHistoryInterface } from '../../interfaces/index.js'; | ||
/** | ||
@@ -27,3 +27,3 @@ * **MutationsHistory** class implements changes history abstraction | ||
*/ | ||
declare class MutationsHistory<HistoryUnitType> implements MutationsHistoryInterface<HistoryUnitType> { | ||
export declare class MutationsHistory<HistoryUnitType> implements MutationsHistoryInterface<HistoryUnitType> { | ||
lastSavedChangeIndex: number; | ||
@@ -42,2 +42,1 @@ commitedMutations: HistoryUnitType[]; | ||
} | ||
export default MutationsHistory; |
@@ -26,3 +26,3 @@ /** | ||
*/ | ||
class MutationsHistory { | ||
export class MutationsHistory { | ||
constructor(sourceIterable) { | ||
@@ -84,2 +84,1 @@ this.commitedMutations = sourceIterable ? [...sourceIterable] : []; | ||
} | ||
export default MutationsHistory; |
@@ -1,2 +0,1 @@ | ||
declare function isNumber(value: unknown): boolean; | ||
export default isNumber; | ||
export declare function isNumber(value: unknown): value is number; |
@@ -1,4 +0,3 @@ | ||
function isNumber(value) { | ||
export function isNumber(value) { | ||
return typeof value === 'number' && !Number.isNaN(value); | ||
} | ||
export default isNumber; |
@@ -1,2 +0,2 @@ | ||
import { IterableConstructor, ValueTransformer } from '../../interfaces/uic/interfaces.js'; | ||
import { IterableConstructor, ValueTransformer } from '../../interfaces/index.js'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Creates iterable transformer into target iterable via **targetIterableConstructor** |
@@ -1,2 +0,2 @@ | ||
import { SingleToSingle, SingleToPair, PairToSingle } from '../../interfaces/uic/interfaces.js'; | ||
import { SingleToSingle, SingleToPair, PairToSingle } from '../../interfaces/index.js'; | ||
/**********************************************************************************************************************/ | ||
@@ -3,0 +3,0 @@ /** |
// UIC Standard Data Structures (UICSDS) | ||
import { createIterableTransformer } from "./uic.js"; | ||
import { createIterableTransformer } from "../index.js"; | ||
// "arrayTo" converters | ||
@@ -4,0 +4,0 @@ /**********************************************************************************************************************/ |
{ | ||
"type": "module", | ||
"name": "@vyacheslav97/ct", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "", | ||
@@ -24,48 +24,3 @@ "keywords": [ | ||
], | ||
"exports": { | ||
"./uic": { | ||
"import": "./dist/implementations/uic/uic.js", | ||
"types": "./dist/implementations/uic/uic.d.ts" | ||
}, | ||
"./uicsds": { | ||
"import": "./dist/implementations/uic/uicsds.js", | ||
"types": "./dist/implementations/uic/uicsds.d.ts" | ||
}, | ||
"./uic/interfaces": { | ||
"import": "./dist/interfaces/uic/interfaces.js", | ||
"types": "./dist/interfaces/uic/interfaces.d.ts" | ||
}, | ||
"./graph": { | ||
"import": "./dist/implementations/graphs/graph.js", | ||
"types": "./dist/implementations/graphs/graph.d.ts" | ||
}, | ||
"./tree": { | ||
"import": "./dist/implementations/graphs/tree.js", | ||
"types": "./dist/implementations/graphs/tree.d.ts" | ||
}, | ||
"./graphs/interfaces": { | ||
"import": "./dist/interfaces/graphs/interfaces.js", | ||
"types": "./dist/interfaces/graphs/interfaces.d.ts" | ||
}, | ||
"./mutationsHistory": { | ||
"import": "./dist/implementations/MutationsHistory/MutationsHistory.js", | ||
"types": "./dist/implementations/MutationsHistory/MutationsHistory.d.ts" | ||
}, | ||
"./algorithms/binarySearch": { | ||
"import": "./dist/implementations/algorithms/binarySearch.js", | ||
"types": "./dist/implementations/algorithms/binarySearch.d.ts" | ||
}, | ||
"./algorithms/duplicatesSearcher": { | ||
"import": "./dist/implementations/algorithms/duplicatesSearcher.js", | ||
"tyoes": "./dist/implementations/algorithms/duplicatesSearcher.d.ts" | ||
}, | ||
"./isNumber": { | ||
"import": "./dist/implementations/NumberValidators/isNumber.js", | ||
"types": "./dist/implementations/NumberValidators/isNumber.d.ts" | ||
}, | ||
"./numbersRegExps": { | ||
"import": "./dist/implementations/NumberValidators/NumberRegExps.js", | ||
"types": "./dist/implementations/NumberValidators/NumberRegExps.d.ts" | ||
} | ||
}, | ||
"main": "./dist/index.js", | ||
"scripts": { | ||
@@ -89,4 +44,4 @@ "build": "tsc && tsc-alias", | ||
"files": [ | ||
"dist/" | ||
"dist/*" | ||
] | ||
} |
# <u>Common tools (ct, also @vyacheslav97/ct)</u> | ||
***ATTENTION!!!*** Huge work in progress, do not download version with this mark | ||
Common tools (hereinafter referred to as **ct**) - a common JavaScript data structures and associated processing procedures package ([package repository](https://github.com/VyacheslavMishin/ct/tree/master)). | ||
@@ -4,0 +6,0 @@ |
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
58
1043
674
69620