@hamak/navigation-utils 0.5.2 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  // Path utilities
2
- export * from './path/pathway';
3
- export * from './path/pathway-resolver';
2
+ export * from './path/pathway.js';
3
+ export * from './path/pathway-resolver.js';
4
4
  // Itinerary utilities
5
- export * from './itinerary/itinerary';
6
- export * from './itinerary/stack';
7
- export * from './itinerary/hyper-layer-node';
5
+ export * from './itinerary/itinerary.js';
6
+ export * from './itinerary/stack.js';
7
+ export * from './itinerary/hyper-layer-node.js';
8
8
  // Filesystem abstractions
9
- export * from './filesystem/fs-node-abstract.types';
9
+ export * from './filesystem/fs-node-abstract.types.js';
@@ -1,4 +1,4 @@
1
- import stack from "./stack";
1
+ import stack from "./stack.js";
2
2
  export function constructiveItinerary(steps) {
3
3
  const segments = [];
4
4
  const prototypes = [];
@@ -1,7 +1,7 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { areSameItineraryStep, constructiveItinerary, itineraryOf, itineraryOverlay, itineraryToStepArray, navigate, navigationDepth, overlayNavigator, positionStep, propertyStep, xpathFromStack } from './itinerary';
3
- import stack from './stack';
4
- import { hyperReflect } from './hyper-layer-node';
2
+ import { areSameItineraryStep, constructiveItinerary, itineraryOf, itineraryOverlay, itineraryToStepArray, navigate, navigationDepth, overlayNavigator, positionStep, propertyStep, xpathFromStack } from './itinerary.js';
3
+ import stack from './stack.js';
4
+ import { hyperReflect } from './hyper-layer-node.js';
5
5
  describe('Navigate itinerary', () => {
6
6
  it('should work', () => {
7
7
  const itinerary = {
@@ -1,4 +1,4 @@
1
- import stack from "./stack";
1
+ import stack from "./stack.js";
2
2
  import { describe, it, expect } from 'vitest';
3
3
  describe("Core util stack", () => {
4
4
  it("fromArray should work", () => {
@@ -1,4 +1,4 @@
1
- import { Pathway } from "./pathway";
1
+ import { Pathway } from "./pathway.js";
2
2
  export class RecordPathwayResolver {
3
3
  constructor(record) {
4
4
  this.record = record;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export * from './path/pathway';
2
- export * from './path/pathway-resolver';
3
- export * from './itinerary/itinerary';
4
- export * from './itinerary/stack';
5
- export * from './itinerary/hyper-layer-node';
6
- export * from './filesystem/fs-node-abstract.types';
1
+ export * from './path/pathway.js';
2
+ export * from './path/pathway-resolver.js';
3
+ export * from './itinerary/itinerary.js';
4
+ export * from './itinerary/stack.js';
5
+ export * from './itinerary/hyper-layer-node.js';
6
+ export * from './filesystem/fs-node-abstract.types.js';
7
7
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  // Path utilities
2
- export * from './path/pathway';
3
- export * from './path/pathway-resolver';
2
+ export * from './path/pathway.js';
3
+ export * from './path/pathway-resolver.js';
4
4
  // Itinerary utilities
5
- export * from './itinerary/itinerary';
6
- export * from './itinerary/stack';
7
- export * from './itinerary/hyper-layer-node';
5
+ export * from './itinerary/itinerary.js';
6
+ export * from './itinerary/stack.js';
7
+ export * from './itinerary/hyper-layer-node.js';
8
8
  // Filesystem abstractions
9
- export * from './filesystem/fs-node-abstract.types';
9
+ export * from './filesystem/fs-node-abstract.types.js';
@@ -1,5 +1,5 @@
1
- import { StackElement } from "./stack";
2
- import { HyperLayerNode } from "./hyper-layer-node";
1
+ import { StackElement } from "./stack.js";
2
+ import { HyperLayerNode } from "./hyper-layer-node.js";
3
3
  export type ObjectId = string | number;
4
4
  interface PropertyValuePair<P = string, V = any> {
5
5
  propertyName: P;
@@ -1,4 +1,4 @@
1
- import stack from "./stack";
1
+ import stack from "./stack.js";
2
2
  export function constructiveItinerary(steps) {
3
3
  const segments = [];
4
4
  const prototypes = [];
@@ -1,7 +1,7 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { areSameItineraryStep, constructiveItinerary, itineraryOf, itineraryOverlay, itineraryToStepArray, navigate, navigationDepth, overlayNavigator, positionStep, propertyStep, xpathFromStack } from './itinerary';
3
- import stack from './stack';
4
- import { hyperReflect } from './hyper-layer-node';
2
+ import { areSameItineraryStep, constructiveItinerary, itineraryOf, itineraryOverlay, itineraryToStepArray, navigate, navigationDepth, overlayNavigator, positionStep, propertyStep, xpathFromStack } from './itinerary.js';
3
+ import stack from './stack.js';
4
+ import { hyperReflect } from './hyper-layer-node.js';
5
5
  describe('Navigate itinerary', () => {
6
6
  it('should work', () => {
7
7
  const itinerary = {
@@ -1,4 +1,4 @@
1
- import stack from "./stack";
1
+ import stack from "./stack.js";
2
2
  import { describe, it, expect } from 'vitest';
3
3
  describe("Core util stack", () => {
4
4
  it("fromArray should work", () => {
@@ -1,4 +1,4 @@
1
- import { Path, Pathway } from "./pathway";
1
+ import { Path, Pathway } from "./pathway.js";
2
2
  export interface PathwayResolver<T> {
3
3
  resolve(path: string | string[] | Pathway): T | undefined;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { Pathway } from "./pathway";
1
+ import { Pathway } from "./pathway.js";
2
2
  export class RecordPathwayResolver {
3
3
  constructor(record) {
4
4
  this.record = record;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamak/navigation-utils",
3
- "version": "0.5.2",
3
+ "version": "0.5.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Navigation utilities for path manipulation and data structure navigation",
@@ -19,7 +19,7 @@
19
19
  "access": "public"
20
20
  },
21
21
  "scripts": {
22
- "build": "tsc -p tsconfig.json && tsc -p tsconfig.es2015.json",
22
+ "build": "tsc -p tsconfig.json && tsc -p tsconfig.es2015.json && node ../../../scripts/fix-esm-extensions.mjs ./dist",
23
23
  "clean": "rm -rf dist",
24
24
  "test": "vitest run",
25
25
  "test:watch": "vitest"